Skip to content

Returns anything passed in request data.

GET
/anything/*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/*anything
JavaScript
fetch("https://httpbin.rs/anything/*anything")
  .then(response => response.json())
  .then(data => console.log(data));
PHP
file_get_contents("https://httpbin.rs/anything/*anything");
Python
import requests
response = requests.get("https://httpbin.rs/anything/*anything")
print(response.json())
Powered by VitePress OpenAPI