---
title: "POST /httpheader"
method: POST
path: "/httpheader"
tags: ["httpheader"]
---

# POST /httpheader

`POST /httpheader`

Fetch HTTP headers for a given URL

## Request body

- HttpHeaderDto
  - `url` string, required — Target URL
  - `followRedirect` boolean — Whether to follow redirects when checking site status
  - `proxyCountry` string — Proxy country code to route the request

## Response `200`

HTTP headers retrieved successfully

- HttpHeaderResponseDto
  - `timestamp` number, required — Timestamp of the request in milliseconds
  - `apiStatus` 'success' | 'failure', required — API status message
  - `apiCode` number, required — API status code
  - `meta` HttpHeaderMetaDto, required
    - `url` string, required — The tested URL
    - `proxyCountry` string — Proxy country used for the request
    - `followRedirect` boolean — Indicates if redirects should be followed
    - `redirectedURL` string, required — Final URL after redirection (if any)
    - `test` TestMetaDto, required
      - `id` string, required — Unique test identifier
  - `data` string[], required — The headers returned by the requested URL

## Other responses

- `400` — Bad request (invalid parameters)
- `500` — Internal server error

---

[API](https://skmtc.net/geekflare/apis/geekflare-api.md) · [All operations](https://skmtc.net/geekflare/apis/geekflare-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/geekflare/geekflare-api/versions/936993afc936/schema)
