PATHGRIND

AboutAPI Documentation

Where does this URL lead?

Follow client and server-side redirects

Enter a valid URL in the field above and press the search button to find where it leads


About Pathgrind

Comprehensive URL Redirection Tracking

Pathgrind is an advanced service designed to provide a complete understanding of URL redirection. When you input a URL into Pathgrind, it doesn’t just perform a basic HTTP request. Instead, it simulates a full browser session, meticulously tracking every step a user’s browser would take to reach the final destination. This ensures that Pathgrind can detect even the most complex redirect chains, giving you precise insight into where a URL ultimately leads. This level of scrutiny is essential for both optimizing user experience and identifying potentially malicious redirects that could compromise security.

Why Accurate Redirect Tracking Matters

Understanding URLs are redirecting is crucial for a range of web activities, from cybersecurity to user experience enhancement. Malicious redirects are often used in phishing and scams, tricking users into visiting harmful websites. Pathgrind provides a detailed analysis of both server-side and client-side redirects, ensuring that you have a complete picture of how URLs behave across different browsers and devices, which is key to maintaining a secure online environment.

Server-Side vs. Client-Side Redirects

One of the key distinctions in URL redirection is between server-side and client-side redirects. Server-side redirects occur before the webpage is fully loaded and are usually indicated by 3XX status codes. Client-side redirects, however, happen after the page loads, typically triggered by JavaScript or meta-refresh tags. Most traditional redirect tracking tools only capture server-side redirects, leaving you in the dark about what happens after the page is loaded. Pathgrind's unique approach captures both, ensuring that you don’t miss any crucial steps in the redirect chain. This comprehensive tracking helps prevent hidden threats from slipping through unnoticed, adding an extra layer of security for users navigating the web.

How Pathgrind Stands Out

Unlike many other redirect tracking tools, Pathgrind simulates a real browser session, which allows it to capture the full spectrum of redirections—including those that other tools might miss. This level of detail is particularly beneficial for developers, SEO specialists, and digital marketers who need to ensure that their URLs are functioning exactly as intended. In addition, it’s an invaluable resource for security teams who need to detect and avoid malicious redirects, providing an accurate analysis of where a link truly leads. With Pathgrind, you get the most accurate and comprehensive analysis of URL redirections available today, reducing the risk of falling victim to redirect-based security threats.

Pathgrind API for Seamless Integration

For those looking to automate their URL redirection checks, Pathgrind offers a powerful API that can be easily integrated into your existing workflows. This API allows for programmatic access to Pathgrind’s robust redirection tracking capabilities, making it easier to manage large-scale projects and maintain consistency across multiple URLs. Whether you’re conducting routine checks, in-depth analysis, or monitoring for potential security threats, Pathgrind’s API ensures that you have the tools you need to stay on top of your redirect management and protect against hidden dangers in redirect chains.


API Documentation

The Pathgrind API allows you to programmatically resolve URLs and track their redirection paths. To use the API, send a POST request to the following endpoint:
POST https://pathgrind.com/api
With the following JSON payload:
{
"url": "https://example.com",
"initial_wait": 1,
"wait_on_connection_error": 0.5,
"wait_on_difference": 0.5,
"wait_on_match": 0.5,
"min_match_count": 2
}

Parameters

All times are in seconds

Note

Only the url field is required. The other fields will default to the values shown above if not provided.

Response

The API will return a JSON object with the following fields:
{
"url": "https://example.com",
"redirect": false
}
The url field contains the final URL after all redirections, and the redirect field is set to true if any redirections were detected.