URL Shortener Expander - Redirect Checker avatar

URL Shortener Expander - Redirect Checker

Pricing

from $0.80 / 1,000 results

Go to Apify Store
URL Shortener Expander - Redirect Checker

URL Shortener Expander - Redirect Checker

Returns where a short link really leads: the final URL and domain, every redirect step with its status code, the redirect count and whether the start is a known shortener such as bit.ly or t.co. Bulk lists of links in one run. For link safety checks, ad and affiliate audits and spam research.

Pricing

from $0.80 / 1,000 results

Rating

0.0

(0)

Developer

Ben

Ben

Maintained by Community

Actor stats

0

Bookmarked

13

Total users

3

Monthly active users

2 days ago

Last modified

Features

Limited permissions

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 you get

  • Paste a list of short links (bit.ly, t.co, tinyurl, ow.ly, lnkd.in, youtu.be and any other redirecting URL) and get one row per link.
  • Every hop of the redirect chain with its HTTP status code and Location header, so 301 vs 302 vs 307 is visible.
  • The final URL, final domain and redirect count, ready to group or filter.
  • A failed link does not stop the batch: it gets a row with the error text and the hops reached so far.
  • No browser, so runs are fast and light.

Redirect checker, unshortener and chain tracer in one

People search for this under different names: URL unshortener, short link expander, redirect checker, redirect chain checker, "where does this link go". It is the same job, and the output covers all of them. Use it to unshorten a link, to see whether a link goes through one hop or six, or to confirm that a tracking link ends on the page you expect.

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.

What it does not do

It follows HTTP redirects only (301, 302, 303, 307, 308 with a Location header). Redirects done by JavaScript or an HTML meta refresh are not followed, so the chain stops on that page. It sends plain GET requests, so a link that counts clicks may count one. It reports where a link leads, not whether the destination is safe.

FAQ

How do I unshorten a bit.ly link in bulk?

Put the links in the urls list, one per entry, and run the actor. Each link becomes one row with final_url and final_domain. Download the dataset as CSV or Excel.

How many redirects does a link have?

redirect_count gives the number of redirects followed, and redirect_chain lists each hop with its status code.

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 checker, redirect tracer, bulk URL unshortener, bitly expander, t.co expander, tinyurl expander, SEO redirect audit, 301 302 checker, affiliate link checker, link checker.