Skip to content

Returns anything passed in request data.

GET
/anything

Responses

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

Samples

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