{"info":{"start_url":"https://google.com","final_url":{"url":"https://www.google.com/","redirect_to":"https://www.google.com/","status_code":200,"is_end_url":true,"headers":{"Content-Type":"text/html; charset=UTF-8","Content-Security-Policy-Report-Only":"object-src 'none';base-uri 'self';script-src 'nonce-VSpX2ECFwxX2OeKXOaerNQ' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp","Cross-Origin-Opener-Policy":"same-origin-allow-popups; report-to=\"gws\"","Report-To":"{\"group\":\"gws\",\"max_age\":2592000,\"endpoints\":[{\"url\":\"https://csp.withgoogle.com/csp/report-to/gws/other\"}]}","Accept-CH":"Sec-CH-Prefers-Color-Scheme","Permissions-Policy":"unload=()","P3P":"CP=\"This is not a P3P policy! See g.co/p3phelp for more info.\"","Date":"Tue, 18 Nov 2025 23:32:16 GMT","Server":"gws","X-XSS-Protection":"0","X-Frame-Options":"SAMEORIGIN","Expires":"Tue, 18 Nov 2025 23:32:16 GMT","Cache-Control":"private","Set-Cookie":"AEC=AaJma5uoz7D07Us4-klSDf9xNW2wtaABuzu7fPOEdfhGz2w0topur-MIvTw; expires=Sun, 17-May-2026 23:32:16 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax","Transfer-Encoding":"chunked","Alt-Svc":"h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000"}},"urls_count":2},"urls":[{"url":"https://google.com","redirect_to":"https://www.google.com/","status_code":301,"url_number":1},{"url":"https://www.google.com/","redirect_to":"https://www.google.com/","status_code":200,"url_number":2}]}
curl --location --request GET 'https://zylalabs.com/api/11316/web+header+data+api/21456/url+data?url=https://google.com&country=US' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 网页头部数据 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
无长期承诺。随时升级、降级或取消。 免费试用包括最多 50 个请求。
(年度计费可节省 2 个月 🎉)
领先企业的信赖之选
GET URL数据端点返回有关域名的HTTP请求行为的详细信息,包括最终URL、重定向链、HTTP状态码、响应头和与最终响应相关的cookies
响应中的关键字段包括 `start_url`、`final_url`(其中包含 `url`、`redirect_to`、`status_code` 和 `is_end_url`),以及提供有关服务器响应的元数据的 `headers`
响应数据以JSON格式结构化,具有清晰的层次结构。它包含一个`info`对象,其中包含`start_url`和一个`final_url`对象,详细说明重定向过程和响应头
该端点提供关于重定向路径、HTTP状态码、响应头、Cookie和最终URL结构的信息,允许用户分析一个域名是如何处理请求的
用户可以通过指定他们想要分析的初始 URL 来自定义他们的请求 API 会自动跟随重定向并根据提供的 URL 收集数据
典型的用例包括监控网站安全配置 验证URL迁移 检查重定向是否正确 以及调试与网络域相关的访问问题
通过对HTTP请求和响应的实时分析来维护数据的准确性,确保信息反映被查询域的当前行为
用户可以利用返回的数据通过分析HTTP状态码和响应头来识别重定向模式 排查访问问题并确保遵守安全政策