URL Unshortener: Expand Short Links & Resolve Redirects avatar

URL Unshortener: Expand Short Links & Resolve Redirects

Pricing

from $0.64 / 1,000 url resolveds

Go to Apify Store
URL Unshortener: Expand Short Links & Resolve Redirects

URL Unshortener: Expand Short Links & Resolve Redirects

URL unshortener for bulk short links. Expand bit.ly, t.co, tinyurl, ow.ly, lnkd.in and amzn.to links, or resolve any redirect, to the final destination URL. Returns the full redirect chain, hop count, status code, final domain, page title and a clean URL without utm and fbclid. Pay per URL resolved.

Pricing

from $0.64 / 1,000 url resolveds

Rating

0.0

(0)

Developer

Data Done Right

Data Done Right

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

18 days ago

Last modified

Features

Limited permissions

Share

This URL unshortener expands bit.ly, t.co, tinyurl, ow.ly, lnkd.in, amzn.to and any other redirecting link in bulk, so you see the real destination before you click, share or store it.

What you get

  • The final destination URL, the final HTTP status code and the final domain for every link.
  • The full redirect chain (each hop with URL, status code and Location), the hop count, and a cleanUrl without utm_*, fbclid, gclid and other tracking parameters.
  • Clear statuses instead of silent failures: redirect loops, too many hops, timeouts, DNS and SSL errors, and blocked addresses each get their own status and message.

It follows redirects itself, hop by hop, with HEAD first and a GET fallback. It sends no cookies, uses an honest UrlUnshortenerBot User-Agent, and refuses private, loopback and cloud-metadata addresses on every hop. It does not defeat bot protection: if a site blocks the request, the row says so.

  1. Open the Actor and paste your short links into Short or redirecting URLs, one per line (or paste a block into Or paste URLs).
  2. Click Start. A typical link resolves in 1 to 3 seconds.
  3. Open the Overview tab of the dataset. finalUrl is where the link really goes; cleanUrl is the same address without tracking parameters.
  4. Download as JSON, CSV or Excel, or read the rows through the API.

How to resolve redirects and see every hop

Each row has redirectChain: an ordered list of {url, statusCode, location, type}. type is http for normal 301/302/303/307/308 redirects. Turn on Follow meta-refresh and JavaScript redirects to also follow <meta http-equiv="refresh"> and tiny interstitial pages that only set window.location; those hops get the type meta-refresh or javascript. The last response is not a hop: it is finalUrl with finalStatusCode.

Leave Remove tracking parameters on (default). cleanUrl drops utm_*, fbclid, gclid, dclid, msclkid, mc_cid, mc_eid, igshid, yclid, twclid, ttclid, _hsenc, _hsmi, mkt_tok, srsltid and similar, the Amazon affiliate tag and linkCode, and the #fragment. Add your own names in Extra parameters to remove. finalUrl is never changed, and trackingRemoved tells you when cleanUrl differs.

Turn on Fetch page title. The Actor then does one extra GET for the final page (first 256 KB only) and returns the <title> in title. It works for HTML pages; PDFs, images and JSON get null.

Input

{
"urls": ["http://github.com", "https://httpbin.org/redirect/2", "https://bit.ly/"],
"cleanTracking": true,
"fetchTitle": true,
"maxHops": 10
}
FieldDefaultWhat it does
urls (required)3 sample linksLinks to expand, one per line. Missing https:// is added, duplicates removed.
urlsTextemptySame, as one pasted block.
cleanTrackingtrueFill cleanUrl without tracking parameters and fragment.
extraTrackingParamsemptyMore parameter names to strip from cleanUrl.
fetchTitlefalseRead the title of the final HTML page (one extra GET).
followHtmlRedirectsfalseAlso follow meta-refresh and tiny JavaScript location= pages.
maxHops10Stop after this many hops (1 to 20).
timeoutSecs20Total time per URL, all hops included (1 to 120).
concurrency20URLs in parallel (1 to 50); at most 10 against one website.
maxUrls1000Cap on unique URLs per run (1 to 20,000); also caps your cost.
proxyConfigurationoffOptional Apify proxy.

Output

One dataset row per unique URL (real output of this Actor):

{
"inputUrl": "https://bit.ly/",
"url": "https://bit.ly/",
"status": "resolved",
"finalUrl": "https://bitly.com/",
"cleanUrl": "https://bitly.com/",
"finalDomain": "bitly.com",
"finalStatusCode": 200,
"hopCount": 1,
"redirectChain": [
{"url": "https://bit.ly/", "statusCode": 302, "location": "https://bitly.com/", "type": "http"}
],
"isShortener": true,
"shortenerDomain": "bit.ly",
"title": "Bitly | Short URLs, QR Codes, and More",
"contentType": "text/html",
"trackingRemoved": false,
"hasRedirectLoop": false,
"responseTimeMs": 631,
"warning": null,
"error": null,
"resolvedAt": "2026-10-29T22:39:47+00:00"
}

A tracking link looks like this (finalUrl keeps the original, cleanUrl is clean):

{
"url": "https://httpbin.org/redirect-to?url=https%3A%2F%2Fexample.com%2F%3Futm_source%3Dnewsletter%26fbclid%3Dabc123&status_code=302",
"status": "resolved",
"finalUrl": "https://example.com/?utm_source=newsletter&fbclid=abc123",
"cleanUrl": "https://example.com/",
"trackingRemoved": true,
"hopCount": 1
}

status is one of resolved, not-redirected, redirect-loop, too-many-redirects, timeout, blocked-address, dns-error, ssl-error, error, invalid. A SUMMARY record in the key-value store counts rows by status, shortener links found, average hops and top destination domains.

How much does it cost

Pay per event: $0.80 per 1,000 URLs resolved (url-resolved, $0.0008 each). You are charged only for rows with status resolved or not-redirected. Loops, timeouts, DNS errors, blocked addresses and invalid entries are free. Duplicates are removed before anything is charged. There is no start fee. Apify proxy traffic, if you turn the proxy on, is billed separately by Apify.

RunURLs resolvedCost
Small list1,000$0.80
Campaign audit10,000$8.00
Large export100,000$80.00

Use cases

  • Check where a short link goes before you click it or forward it (phishing and safety checks).
  • Clean a spreadsheet of shortened social or newsletter links into stable, tracking-free URLs for analytics.
  • Audit affiliate and campaign links: see whether an amzn.to or bit.ly link still lands on the intended page.
  • Find redirect chains that are too long or loop after a site migration.
  • Feed an AI agent or n8n/Make flow with the real destination domain of every link in a message, ticket or tweet export.

FAQ

Which shorteners work? Any link that answers with an HTTP redirect, including bit.ly, t.co, tinyurl.com, ow.ly, lnkd.in, amzn.to, is.gd, cutt.ly, rebrand.ly and goo.gl-style links. isShortener is true for dozens of well-known shortener domains; unknown ones still resolve.

Does it bypass bot protection or login pages? No. If a hop or the destination answers 401, 403 or 429 or serves a bot-protection challenge, the row is still resolved up to that URL and warning explains it. Some sites (for example Amazon) may answer a datacenter request with a challenge page; the chain up to there is correct.

Why is title empty? The title is only read when Fetch page title is on, and only from HTML pages that answer 200. Pages that need JavaScript to set a title return null.

Does it follow JavaScript redirects? Only simple ones, and only if you turn on Follow meta-refresh and JavaScript redirects: <meta http-equiv="refresh"> with a delay up to 10 seconds, and tiny pages (under about 4 KB) that only set window.location. Redirects built by complex scripts need a real browser and are not followed.

Can it reach private or internal addresses? No. Every hop is checked, and loopback, private, link-local, cloud-metadata and internal host names are blocked and reported as blocked-address. The connection is pinned to the address that passed the check.

Is cookie or login data sent? No cookies are stored or sent, no credentials are used, and the User-Agent says UrlUnshortenerBot. Some sites answer a bot differently than a browser; the Actor reports what it received.

Use with the Apify API, MCP, n8n or Make

Python:

from apify_client import ApifyClient
client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("<username>/url-unshortener").call(run_input={"urls": ["https://bit.ly/", "http://github.com"], "fetchTitle": True})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
print(row["url"], "->", row["cleanUrl"], row["hopCount"])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<APIFY_TOKEN>' });
const run = await client.actor('<username>/url-unshortener').call({ urls: ['https://bit.ly/', 'http://github.com'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((r) => [r.url, r.finalUrl]));

The Actor has two small, typed inputs for agents (urls is the only required field) and works through the Apify MCP server and the n8n and Make Apify modules: call the Actor with urls, then read the dataset.

  • HTTP Status Code Checker: Bulk URL, Website & Redirect Chains
  • Meta Tags & Open Graph Extractor: Title, SEO, Twitter Cards
  • Sitemap Parser & Extractor: Sitemap to CSV, URLs & New Pages