Getting Started
Guides
APIs
Sign up
Log in
Search
K
Log in
Sign up
Docs
httpbin
Copy page
More actions
View as Markdown
View page as Markdown
Download spec
JSON
Download spec as JSON
YAML
Download spec as YAML
Returns the user agent.
get
https://httpbin.org
/user-agent
Response
200
application/json
OK
user-agent
string
required
Example:
curl/7.37.0
get
/user-agent
Try It!
Shell
200
application/json
Returns the request headers.
get
https://httpbin.org
/headers
Response
200
application/json
OK
headers
object
required
get
/headers
Try It!
Shell
200
application/json
Delays responding for min(n, 10) seconds.
get
https://httpbin.org
/delay/{n}
Path Parameters
n
integer
required
Response delay, in seconds.
>= 0
<= 10
Response
200
application/json
OK
get
/delay/{n}
Try It!
Path Parameters
n
Query Parameters
Headers
Body
Shell
200
application/json
Returns some XML.
get
https://httpbin.org
/xml
Response
200
application/xml
OK
get
/xml
Try It!
Shell
200
application/xml
Returns an HTML page
get
https://httpbin.org
/html
Response
200
text/html
OK
get
/html
Try It!
Shell
200
text/html