Echo-API
Request-Inspektion (wie bei httpbin). Gibt alles zurück, was der Server empfangen hat, für jedes Verb und jeden Unterpfad.
Kostenlos: Diese Endpunkte brauchen kein Konto.
- 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.
Beispiel-Request
Returns the request's headers. Vollständige Referenz und Send-Button (auf Englisch).
cURL
curl -X GET "https://api.testingapis.com/api/echo/headers"Antwort · 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"
}
}