Skip to content

The request's GET parameters

GET
/get

Responses

JSON
{
"method": "string",
"uri": "string",
"headers": {
},
"origin": "string",
"query": {
},
"body_string": "string",
"json": null
}

Samples

cURL
curl -X GET https://httpbin.rs/get
JavaScript
fetch("https://httpbin.rs/get")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://httpbin.rs/get");
Python
import requests
response = requests.get("https://httpbin.rs/get")
print(response.json())
Powered by VitePress OpenAPI