TestingAPIs is still being built. If something breaks, email support@testingapis.com.

Returns the request's headers

GEThttps://api.testingapis.com/api/echo/headers

Responses

200
Header count and a name-to-value map.

Example

Request
curl -X GET "https://api.testingapis.com/api/echo/headers"
Response200 OK
{
  "count": 5,
  "headers": {
    "Accept": "*/*",
    "Connection": "keep-alive",
    "Host": "api.testingapis.com",
    "User-Agent": "python-requests/2.33.1",
    "Accept-Encoding": "gzip, deflate, zstd"
  }
}