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://pr197-testing.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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
Service Level:
100%
Response Time:
4,082ms
Service Level:
100%
Response Time:
3,038ms
Service Level:
100%
Response Time:
3,882ms
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:
1,151ms
Service Level:
100%
Response Time:
173ms
Service Level:
66%
Response Time:
7,990ms
Service Level:
100%
Response Time:
605ms
Service Level:
100%
Response Time:
764ms
Service Level:
100%
Response Time:
699ms
Service Level:
100%
Response Time:
120ms
Service Level:
100%
Response Time:
392ms
Service Level:
100%
Response Time:
420ms
Service Level:
100%
Response Time:
376ms
Service Level:
100%
Response Time:
482ms
Service Level:
99%
Response Time:
2,279ms
Service Level:
100%
Response Time:
601ms