HTTP Headers API
Retrieve HTTP Headers for any Domain or IP
Our HTTP Headers API retrieves the HTTP response headers for a given domain or IP address, helping users quickly identify details about the web server.
Streamline the process of analysing the HTTP response headers of a domain or IP with one simple API.
Get Started for FreeWhy Choose ViewDNS.info HTTP Headers API?
- Industry Leading Coverage of Domain Name and IP Addresses
- Live Data Ensuring Freshness
- Highly Scalable to meet Business Needs
- Consistently Parsed HTTP Header Information
- Subscription Includes Access to ALL ViewDNS.info APIs
Our Valued Customers Include:
Key HTTP Headers API Features
Live Data
Our API retrieves data in real-time, ensuring that the most up to date HTTP header data is available.
Highly Scalable
Our HTTP Headers API employs a highly scalable backend ensuring that even high volume searches are met with the highest success rate.
Streamlined Process
Our API retrieves and parses all HTTP response headers provided by the web server. Take the hassle out of manually analysing HTTP header data with one simple API.
Thorough Coverage
Our HTTP Headers API supports all HTTP protocols and encryption ensuring accurate results.
Usage Details
Retrieve HTTP response headers for any domain name or IP address.
/httpheaders GET
https://api.viewdns.info/httpheaders/
Provides consistently parsed details about HTTP response headers for a domain name or IP address.
Parameters
-
apikeyrequiredYour API key associated with your ViewDNS.info account.
-
domainrequiredThe domain or IP to retrieve the HTTP response headers for (e.g.,
example.com). -
outputoptional (default=json)The output format required (
'xml'or'json').
Sample Request Live Demo!
https://api.viewdns.info/httpheaders/?domain=domain.com&apikey=demo&output=json
Sample Response
{
"query": {
"tool": "httpheaders_PRO",
"domain": "domain.com"
},
"response": {
"headers": [
{
"name": "http_status",
"value": "403"
},
{
"name": "Date",
"value": "Sat, 21 Sep 2024 06:28:24 GMT"
},
{
"name": "Content-Type",
"value": "text/html; charset=UTF-8"
},
{
"name": "Content-Length",
"value": "7111"
},
{
"name": "Connection",
"value": "close"
},
{
"name": "Accept-CH",
"value": "Sec-CH-UA-Bitness, Sec-CH-UA-Arch, Sec-CH-UA-Full-Version, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Platform, Sec-CH-UA, UA-Bitness, UA-Arch, UA-Full-Version, UA-Mobile, UA-Model, UA-Platform-Version, UA-Platform, UA"
},
{
"name": "Critical-CH",
"value": "Sec-CH-UA-Bitness, Sec-CH-UA-Arch, Sec-CH-UA-Full-Version, Sec-CH-UA-Mobile, Sec-CH-UA-Model, Sec-CH-UA-Platform-Version, Sec-CH-UA-Full-Version-List, Sec-CH-UA-Platform, Sec-CH-UA, UA-Bitness, UA-Arch, UA-Full-Version, UA-Mobile, UA-Model, UA-Platform-Version, UA-Platform, UA"
},
{
"name": "Cross-Origin-Embedder-Policy",
"value": "require-corp"
},
{
"name": "Cross-Origin-Opener-Policy",
"value": "same-origin"
},
{
"name": "Cross-Origin-Resource-Policy",
"value": "same-origin"
},
{
"name": "Origin-Agent-Cluster",
"value": "?1"
},
{
"name": "Permissions-Policy",
"value": "accelerometer=(),autoplay=(),browsing-topics=(),camera=(),clipboard-read=(),clipboard-write=(),geolocation=(),gyroscope=(),hid=(),interest-cohort=(),magnetometer=(),microphone=(),payment=(),publickey-credentials-get=(),screen-wake-lock=(),serial=(),sync-xhr=(),usb=()"
},
{
"name": "Referrer-Policy",
"value": "same-origin"
},
{
"name": "X-Content-Options",
"value": "nosniff"
},
{
"name": "X-Frame-Options",
"value": "SAMEORIGIN"
},
{
"name": "cf-mitigated",
"value": "challenge"
},
{
"name": "cf-chl-out",
"value": "NAa8nbK4XBqaYKwk5ruvsKLKkP+5Xp82hrHgPB9aJcrNzbQB1LlDu5wz51qPIUvu5qUXXuAHBFhW5a9+a1jpuOaU0Z/33+We/7ZBTBO9eAv6IEUQARtfehiiZtRp77+rry4IyKnpuFVSS0F8VBF3tg==$qK9s488iuZek4n+uZv67jg=="
},
{
"name": "Cache-Control",
"value": "private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
},
{
"name": "Expires",
"value": "Thu, 01 Jan 1970 00:00:01 GMT"
},
{
"name": "Set-Cookie",
"value": "__cf_bm=Ge3_K9cfErBjmmAZJ9fbyjc9pSxLlVaKFtkAf9dorsk-1726900104-1.0.1.1-MCqycarvdGlkGIJbOOb2obA40RTk4MaaHd2cyhkDP0EgxDguVIDJdEYBwFlSR3V_nn4LurhKJk4WDEZYT3HSOg; path=/; expires=Sat, 21-Sep-24 06:58:24 GMT; domain=.domain.com; HttpOnly"
},
{
"name": "Server",
"value": "cloudflare"
},
{
"name": "CF-RAY",
"value": "8c67feb53b02630c-ORD"
}
]
}
}
Code Example