Echo API
Request inspection (httpbin-style). Echoes back everything the server received, for any verb and any sub-path.
Free: these endpoints need no account or key.
- GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/echoEchoes back everything the server received: method, URL, query, headers, cookies, body and client info. - GETPOSTPUTPATCHDELETEHEADOPTIONS
https://api.testingapis.com/api/echo/{path}Echoes back everything the server received: method, URL, query, headers, cookies, body and client info. - GET
https://api.testingapis.com/api/echo/headersReturns the request's headers. - GET
https://api.testingapis.com/api/echo/ipReturns the caller's IP address and port. - GET
https://api.testingapis.com/api/echo/user-agentReturns the request's User-Agent header.
Example request
Returns the request's headers. Full reference and a Send button.
cURL
curl -X GET "https://api.testingapis.com/api/echo/headers"Response · 200 OK
{
"count": 5,
"headers": {
"Accept": "*/*",
"Connection": "keep-alive",
"Host": "api.testingapis.com",
"User-Agent": "python-requests/2.33.1",
"Accept-Encoding": "gzip, deflate, zstd"
}
}