🖥️Get Website Headers

Gets the response headers of a website.

The API host for all tools is tools.datalabs.net.


Website Status API

POST https://tools.datalabs.net/getHeaders
Host: tools.datalabs.net
Content-Type: application/json

{
  "key": "DATALABS_API_KEY", // Required - DataLabs API Key
  "host": "example.com" // Required - Host to be checked
}
Example Response
{
    "success": true,
    "result": "HTTP/1.1 200 OK<br>\r\nAccept-Ranges: bytes<br>\r\nAge: 147103<br>\r\nCache-Control: max-age=604800<br>\r\nContent-Type: text/html; charset=UTF-8<br>\r\nDate: Fri, 07 Jun 2024 02:57:21 GMT<br>\r\nEtag: \"3147526947\"<br>\r\nExpires: Fri, 14 Jun 2024 02:57:21 GMT<br>\r\nLast-Modified: Thu, 17 Oct 2019 07:18:26 GMT<br>\r\nServer: ECAcc (chd/0796)<br>\r\nX-Cache: HIT<br>\r\nContent-Length: 1256<br>\r\n<br>\r\n",
    "splitted_result": [
        "HTTP/1.1 200 OK",
        "\r\nAccept-Ranges: bytes",
        "\r\nAge: 147103",
        "\r\nCache-Control: max-age=604800",
        "\r\nContent-Type: text/html; charset=UTF-8",
        "\r\nDate: Fri, 07 Jun 2024 02:57:21 GMT",
        "\r\nEtag: \"3147526947\"",
        "\r\nExpires: Fri, 14 Jun 2024 02:57:21 GMT",
        "\r\nLast-Modified: Thu, 17 Oct 2019 07:18:26 GMT",
        "\r\nServer: ECAcc (chd/0796)",
        "\r\nX-Cache: HIT",
        "\r\nContent-Length: 1256",
        "\r\n",
        "\r\n"
    ]
}

Last updated