How do I send a GET request to get JSON?

To get JSON from a REST API endpoint, you must send an HTTP GET request and pass the "Accept: application/json" request header to the server, which will tell the server that the client expects JSON in response. In this GET JSON example, we send a GET request to the ReqBin echo URL. Click Send to execute the GET JSON example online and see the results.
Loading...