This API is designed to provide a comprehensive analysis of a domain's behavior when an HTTP request is made, offering a clear and structured view of the redirection cycle, the final response, and the associated metadata. Its main function is to receive an input domain and return detailed information that allows you to understand how the server handles the request, what path it follows to reach the final URL, and what characteristics the response delivered by the website has.
When querying a domain, the API identifies the initial URL and automatically follows any chain of redirects, recording for each hop the URL visited, the redirect destination, and the corresponding status code. This makes it easy to detect common behaviors such as redirects from HTTP to HTTPS, from domains without “www” to domains with “www,” or internal changes caused by security policies or load balancers. Each redirect is organized in an easy-to-read structure that includes a step number, the HTTP status, and the resulting URL.
The final result provides a deep understanding of how a domain responds to a real request. It is especially useful for monitoring security configurations, validating migrations, checking for correct redirects, or debugging access issues. In short, the API provides a complete and organized snapshot of a website's initial loading process, from the submitted URL to the final server response.
{"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/11317/capture+web+header+information+api/21458/url+data?url=https://google.com&country=US' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The GET URL Data endpoint returns detailed information about a domain's HTTP request behavior, including the initial URL, final URL, redirect paths, status codes, headers, and relevant cookies. This data helps users understand how a server processes requests and handles redirects.
Key fields in the response include "start_url," "final_url" (which contains "url," "redirect_to," "status_code," and "is_end_url"), and "headers" that provide metadata about the response. Each redirect is also documented with its status and resulting URL.
The response data is structured in a JSON format, with a clear hierarchy. The main object contains "info," which includes the "start_url" and "final_url" details, along with an organized list of redirects, each showing the step number, status code, and URL visited.
The endpoint provides information on the redirection cycle, including each URL visited, the corresponding status codes, and response headers. It also captures behaviors like HTTP to HTTPS redirects and domain variations (e.g., with or without "www").
Users can customize their requests by specifying the initial URL they want to analyze. The API automatically follows redirects, so no additional parameters are needed for tracking the redirection path.
Typical use cases include monitoring website security configurations, validating URL migrations, checking for correct redirects, and debugging access issues. This data is essential for web developers and SEO specialists.
Data accuracy is maintained through real-time analysis of HTTP requests and responses. The API captures live data directly from the server, ensuring that the information reflects the current behavior of the domain being queried.
Users can expect patterns such as multiple redirects, common status codes (e.g., 200, 301, 302), and variations in headers based on server configurations. Understanding these patterns helps in diagnosing issues and optimizing web performance.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
3,882ms
Service Level:
100%
Response Time:
4,082ms
Service Level:
100%
Response Time:
3,038ms
Service Level:
100%
Response Time:
2,425ms
Service Level:
100%
Response Time:
3,264ms
Service Level:
100%
Response Time:
85ms
Service Level:
100%
Response Time:
10,496ms
Service Level:
100%
Response Time:
173ms
Service Level:
66%
Response Time:
7,990ms
Service Level:
100%
Response Time:
1,151ms
Service Level:
100%
Response Time:
1,066ms
Service Level:
100%
Response Time:
1,459ms
Service Level:
100%
Response Time:
455ms
Service Level:
100%
Response Time:
863ms
Service Level:
100%
Response Time:
1,026ms
Service Level:
100%
Response Time:
2,103ms
Service Level:
100%
Response Time:
1,053ms
Service Level:
100%
Response Time:
562ms
Service Level:
100%
Response Time:
4,674ms
Service Level:
100%
Response Time:
10,371ms