Echo API
リクエストの確認(httpbin 風)。どのメソッドでもどのサブパスでも、サーバーが受け取った内容をすべて返します。
無料:これらのエンドポイントはアカウント不要です。
- 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.
リクエストの例
Returns the request's headers. 完全なリファレンスと Send ボタン(英語).
cURL
curl -X GET "https://api.testingapis.com/api/echo/headers"レスポンス · 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"
}
}