httpbin

httpbin

1.0-oas3OAS 3.0

An unofficial OpenAPI definition for httpbin.org.

API Base URL
  • Server 1:https://httpbin.org
  • Server 2:http://httpbin.apim.eu/
  • Server 3:https://eu.httpbin.org
  • Server 4:http://eu.httpbin.org
  • Server 5:http://localhost:8000/test
Security
basicAuth (http)

Use the same username and password as you will provide in path parameters.

bearerAuth (http)

Provide your bearer token in the Authorization header when making requests to protected resources.

Example: Authorization: Bearer 123

Additional Information

Returns Origin IP.

get

Response

200 application/json

OK

originstringrequired

The IP address, or a comma-separated list of IP addresses. For example, “10.100.10.10, 10.100.20.254, 52.91.14.13”’

Example:10.100.10.10

get/ip
 
200 application/json

Returns the user agent.

get

Response

200 application/json

OK

user-agentstringrequired

Example:curl/7.37.0

get/user-agent
 
200 application/json

Returns the request headers.

get

Response

200 application/json

OK

headersobjectrequired
get/headers
 
200 application/json

Delays responding for min(n, 10) seconds.

get

Path Parameters

nintegerrequired

Response delay, in seconds.

>= 0<= 10

Response

200 application/json

OK

get/delay/{n}
 
200 application/json