API Echo
Inspection des requêtes (à la manière de httpbin). Renvoie tout ce que le serveur a reçu, pour n’importe quel verbe et n’importe quel sous-chemin.
Gratuit : ces points d’accès ne demandent pas de compte.
- 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.
Exemple de requête
Returns the request's headers. Référence complète et bouton Send (en anglais).
cURL
curl -X GET "https://api.testingapis.com/api/echo/headers"Réponse · 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"
}
}