URL Shortener Expander - Redirect Checker avatar

URL Shortener Expander - Redirect Checker

Pricing

from $1.00 / 1,000 results

Go to Apify Store
URL Shortener Expander - Redirect Checker

URL Shortener Expander - Redirect Checker

Expand shortened URLs and inspect redirect chains with final URL, status codes, redirect count and intermediate locations.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

Ben

Ben

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Share

Expand short links and inspect redirect chains in a structured Apify dataset. Paste shortened URLs, tracking links or any redirected URLs and the actor returns the final destination, HTTP status codes, redirect count, final domain and every intermediate location.

What is the URL Shortener Expander?

Short links are everywhere: social posts, email campaigns, affiliate links, ad creatives, newsletters, SMS campaigns and customer support messages. They are convenient for sharing, but they hide the final destination. For analytics, compliance, SEO, security checks and campaign QA, you often need to know where a link actually lands.

This actor follows redirects step by step without using a browser. It records each hop so you can see exactly how a link moves from the original URL to the final page. The result is a clean dataset you can export to JSON, CSV or Excel, or connect to automation tools.

Common use cases

Use this actor to audit social media links, verify affiliate redirects, check email campaign destinations, expand t.co links from exported tweets, inspect bit.ly links in a dataset, detect broken or suspicious redirects, document redirect chains for SEO migrations, or normalize links before deduplication.

Marketing teams can QA campaign links before launch. SEO teams can spot redirect loops or long redirect chains. Data teams can expand short links before enrichment. Security teams can inspect final domains without manually clicking every URL.

Input

Provide one or more URLs.

{
"urls": [
"https://bit.ly/3Yq8PzP",
"https://t.co/example"
],
"maxRedirects": 10
}

Output

Each dataset item represents one expanded URL.

{
"original_url": "https://bit.ly/3Yq8PzP",
"final_url": "https://example.com/final-page",
"status_code": 200,
"redirect_count": 2,
"redirect_chain": [
{
"url": "https://bit.ly/3Yq8PzP",
"status_code": 301,
"location": "https://example.com/intermediate"
},
{
"url": "https://example.com/intermediate",
"status_code": 302,
"location": "https://example.com/final-page"
},
{
"url": "https://example.com/final-page",
"status_code": 200,
"location": null
}
],
"is_shortener_domain": true,
"final_domain": "example.com",
"error": null
}

Output fields

  • original_url - URL from the input.
  • final_url - last URL reached after redirects.
  • status_code - status code of the final request.
  • redirect_count - number of redirects followed.
  • redirect_chain - full hop-by-hop redirect trace.
  • is_shortener_domain - true for common shortener domains such as bit.ly, t.co and tinyurl.com.
  • final_domain - domain of the final destination.
  • error - request error, if one occurred.

Why use this actor?

Redirects are easy to hide and hard to audit manually. This actor makes them visible in a repeatable way. It is lightweight, fast and cheap to run because it does not open a browser. You can run it on a schedule, call it through the Apify API, or plug it into Make, Zapier, n8n and custom data pipelines.

Example workflows

For social media analysis, export posts that contain short links, pass the URLs into this actor, and group results by final_domain. For email marketing QA, expand every tracked link before sending a campaign and catch destinations that point to staging, 404 pages or old redirects. For affiliate operations, inspect redirect chains to confirm that tracking links route through the expected network.

For SEO migrations, use the actor to document redirects after a site move. Long chains can slow crawlers and create unnecessary hops, while broken redirects can leak traffic. The redirect_chain field gives you a clear audit trail you can hand to a developer or client.

Integration ideas

Combine this actor with a sitemap or RSS scraper. First collect URLs from a site, feed, ad library or exported dataset, then expand only the URLs that look shortened or redirected. Send the final URLs into a domain enrichment actor, content scraper or security scanner.

You can schedule recurring checks for important marketing links. If final_url, final_domain or status_code changes, trigger a webhook and alert the responsible team. This is especially useful for paid ads, newsletters, influencer links and partner campaigns where broken links cost money quickly.

Notes and limits

Some websites block automated requests or vary redirects by geography, device or cookies. The actor returns the redirect chain seen from the Apify run environment. For browser-only landing pages or heavily protected links, final status may differ from what a logged-in user sees. Long redirect chains are capped by maxRedirects to avoid loops.

Best practices

Keep maxRedirects at the default unless you are diagnosing loops. Store both the original URL and final URL so you can deduplicate campaigns without losing the raw source. When auditing large datasets, group by final_domain and investigate unexpected domains first. If a link returns an error, re-test from a browser before making a final compliance or security decision because some links behave differently with cookies or regional routing.

FAQ

Does it click links in a browser?

No. It follows HTTP redirects directly. That keeps runs fast and predictable.

Can it detect redirect loops?

It caps redirects using maxRedirects, and the chain shows repeated URLs if a loop occurs.

Can I use it for SEO checks?

Yes. Redirect count, final status and redirect chain are useful for migration audits and broken link cleanup.

Can it expand social short links?

Yes, when the shortener allows normal HTTP redirect resolution.

You might also like

  • Sitemap URL Extractor - collect URLs to audit.
  • Website Contact Extractor - enrich domains with contact data.
  • Robots Sitemap Analyzer - inspect crawl rules and sitemap links.

Keywords

URL expander, short link expander, redirect checker, redirect chain API, bitly expander, t.co expander, SEO redirect audit, URL unshortener, link checker, Apify URL tool.