Tiktok Url Expander

by trinityhades

Follows redirects for one or many shortened TikTok (or any) URLs and returns the final resolved URL plus redirect chain.

6,607 runs
78 users
Try This Actor

Opens on Apify.com

About Tiktok Url Expander

Follows redirects for one or many shortened TikTok (or any) URLs and returns the final resolved URL plus redirect chain.

What does this actor do?

Tiktok Url Expander is a web scraping and automation tool available on the Apify platform. It's designed to help you extract data and automate tasks efficiently in the cloud.

Key Features

  • Cloud-based execution - no local setup required
  • Scalable infrastructure for large-scale operations
  • API access for integration with your applications
  • Built-in proxy rotation and anti-blocking measures
  • Scheduled runs and webhooks for automation

How to Use

  1. Click "Try This Actor" to open it on Apify
  2. Create a free Apify account if you don't have one
  3. Configure the input parameters as needed
  4. Run the actor and download your results

Documentation

TikTok (and generic) URL Expander Expand shortened or redirecting URLs (especially TikTok short links like https://vm.tiktok.com/...) and obtain the final resolved URL together with the full redirect chain. Each processed URL becomes one dataset item containing: json { "originalUrl": "https://vm.tiktok.com/example/", "finalUrl": "https://www.tiktok.com/@user/video/1234567890", "redirectChain": [ "https://www.tiktok.com/?_r=1", "https://www.tiktok.com/@user/video/1234567890" ], "totalRedirects": 2, "durationMillis": 742 } An OUTPUT record in the key-value store includes a summary with the dataset ID and count. ## Included features - Apify SDK for Actor runtime helpers - Input schema supporting single URL (url) or multiple URLs (urlsText as newline-separated) - Dataset output for structured results - Manual redirect handling (HEAD first, GET fallback) to log every hop - Configurable maxRedirects, timeoutMillis, optional custom userAgent ## How it works 1. Reads url or urlsText from input. 2. For each URL performs a HEAD request with redirects disabled. 3. On 3xx + Location: resolve to absolute URL, append to chain, repeat. 4. If HEAD not allowed / errors (405 / 501 etc.), retries with GET. 5. Stops when non-redirect status or maxRedirects hit. 6. Stores result object and logs progress. ## Input schema Either url OR urlsText must be provided. | Field | Type | Required | Default | Description | |-------|------|----------|---------|-------------| | url | string | conditional | - | Single URL to expand | | urlsText | string | conditional | - | Multiple URLs to expand (one per line) | | maxRedirects | integer | no | 10 | Safety cap on redirect depth | | timeoutMillis | integer | no | 15000 | Per-request timeout in ms | | userAgent | string | no | desktop UA | Override User-Agent | ### Example (single URL) json { "url": "https://vm.tiktok.com/example1/" } ### Example (multiple URLs) json { "urlsText": "https://vm.tiktok.com/example1/\nhttps://vm.tiktok.com/example2/", "maxRedirects": 10, "timeoutMillis": 15000 } ## Output Dataset (default) items: one per input URL. Retrieve via API: https://api.apify.com/v2/datasets/<DATASET_ID>/items?format=json Key-value store: OUTPUT summary object. ## Local development Install dependencies: bash npm install Run in dev (TypeScript on-the-fly): bash npm run start:dev Build & run production JS: bash npm run build && npm run start:prod ## Deploy to Apify Login (if needed) then push: bash apify login apify push ## Documentation reference - Apify SDK (JS) - Apify Platform docs - Discord community

Common Use Cases

Market Research

Gather competitive intelligence and market data

Lead Generation

Extract contact information for sales outreach

Price Monitoring

Track competitor pricing and product changes

Content Aggregation

Collect and organize content from multiple sources

Ready to Get Started?

Try Tiktok Url Expander now on Apify. Free tier available with no credit card required.

Start Free Trial

Actor Information

Developer
trinityhades
Pricing
Paid
Total Runs
6,607
Active Users
78
Apify Platform

Apify provides a cloud platform for web scraping, data extraction, and automation. Build and run web scrapers in the cloud.

Learn more about Apify

Need Professional Help?

Couldn't solve your problem? Hire a verified specialist on Fiverr to get it done quickly and professionally.

Find a Specialist

Trusted by millions | Money-back guarantee | 24/7 Support