Inspect HTTP response headers and redirect chain for any URL.
inspectpassing, 0.0s/v1/dev-tools:http-headers/inspect5m cache2 paramschecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("dev-tools:http-headers", "inspect", {
"url": "https://example.com",
"method": "HEAD"
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/dev-tools:http-headers/inspect?url=https%3A%2F%2Fexample.com&method=HEAD" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/dev-tools:http-headers/inspectFetch HTTP response headers and redirect chain.urlstringrequiredmethodenumoptionalcurl -X GET "https://api.zpi.web.id/v1/dev-tools:http-headers/inspect?url=https%3A%2F%2Fexample.com&method=HEAD" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"url": "https://example.com",
"method": "HEAD",
"status": 200,
"headers": {
"age": "1939",
"date": "Wed, 27 May 2026 13:44:44 GMT",
"allow": "GET, HEAD",
"cf-ray": "a02574beabfcf8d6-SIN",
"server": "cloudflare",
"connection": "keep-alive",
"content-type": "text/html",
"last-modified": "Fri, 22 May 2026 08:22:30 GMT",
"cf-cache-status": "HIT",
"content-encoding": "br"
},
"finalUrl": "https://example.com",
"redirectChain": []
}