httpbin
by httpbin.org
Testing and mock data
Added on October 31st, 2026
Checked and working on November 15th, 2026
Visit httpbin.org →
What it does
httpbin is a simple HTTP request and response service for testing HTTP clients. It echoes back your request (headers, query string, body, form data, cookies), returns any status code you ask for, and can simulate redirects, delays, compression, authentication and streaming. Responses are JSON. Free and open source, no key needed; you can also run it yourself in Docker.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free and open source, no key needed; you can also run it yourself in Docker.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- httpbin.org
- Last checked
- Working on November 15th, 2026
More information: https://httpbin.org/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://httpbin.org/get'
JavaScript
const response = await fetch("https://httpbin.org/get");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://httpbin.org/get",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.