API Echo
Inspección de peticiones (al estilo httpbin). Devuelve todo lo que recibió el servidor, para cualquier verbo y cualquier subruta.
Gratis: estos endpoints no necesitan cuenta.
- 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.
Petición de ejemplo
Returns the request's headers. Referencia completa y botón Send (en inglés).
cURL
curl -X GET "https://api.testingapis.com/api/echo/headers"Respuesta · 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"
}
}