# TikTok Scraper (`icoe-man/tiktok-scraper`) Actor

Use this tiktok trending hashtags scraper to collect public TikTok videos by hashtag, trend or sound, plus comments, followers, shop products and ad library entries. Export JSON, CSV or Excel.

- **URL**: https://apify.com/icoe-man/tiktok-scraper.md
- **Developed by:** [Icoe Man](https://apify.com/icoe-man) (community)
- **Categories:** Social media
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## TikTok Scraper

Get public TikTok data in a table you can download or use in other tools. Compare videos by hashtag, region, or sound, then read their comments in a separate run. You can also collect a profile's followers and the accounts it follows, look up TikTok Shop products and reviews, or search the TikTok ad library. Pick the data you need under What to collect.

### What you get

Under **What to collect**, choose the type of results you want. Fill in the fields for that choice, then start the run. Each run returns one kind of result. The Actor ignores fields from other modes. Use full web addresses. If you have a short link, open it and copy the full address from your browser's address bar. Choose **Live** under **Data freshness** to collect fresh data on every run.

### Collection modes

#### Hashtag posts

Collect public videos that use the hashtags you enter. In `hashtag-posts` mode, fill in **Hashtags** (up to 100 entries), and **Videos from** (optional), **Videos before** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 10000. Each post appears in its own row and counts as one **Hashtag posts** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "tiktok",
  "id": "7706542552752622861",
  "url": "https://www.tiktok.com/@user_fe31b7e8/video/7706542552752622861",
  "author": {
    "id": "935702047842235111",
    "username": "user_fe31b7e8",
    "displayName": "Fixture User 650bd0",
    "verified": null
  },
  "text": "These are the last pictures a NASA spacecraft ever took — because it was about to crash into this asteroid on purpose...",
  "language": "en",
  "createdAt": "2026-11-10T14:01:22Z",
  "metrics": {
    "likes": 6,
    "comments": 0,
    "shares": 0,
    "views": 107,
    "saves": 0
  },
  "hashtags": [
    "nasa",
    "asteroid"
  ],
  "mentions": [],
  "media": [
    {
      "kind": "video",
      "url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-4864c799-sg/o4LRjVhf8JCAAcMngyfMdAiAzWDek5mRjkQAHR/",
      "thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast5-p-85c255-tx/os7zBqfQ8rHEwIlzDEQmykOfzMdgGFIDD4SB0y~tplv-tiktokx-origin.image",
      "durationSec": 42,
      "width": 720,
      "height": 1280
    }
  ],
  "details": {
    "tiktok": {
      "music": {
        "id": "7706542689109429006",
        "title": "original sound",
        "artist": "Fixture Artist",
        "durationSec": 30,
        "isOriginal": true
      },
      "isAd": false,
      "downloads": 85,
      "isPinned": false,
      "paidPartnership": false,
      "aiGenerated": false,
      "placeName": null,
      "postedFromCountry": "US"
    }
  },
  "collectedAt": "2026-11-10T14:28:05Z",
  "input": {
    "hashtag": "nasa",
    "maxItems": 30
  }
}
```

#### Trending posts

See which videos are trending in each region you choose. In `trending-posts` mode, fill in **Regions** (up to 100 entries). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 500. Each post appears in its own row and counts as one **Trending posts** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "tiktok",
  "id": "7700732303634418958",
  "url": "https://www.tiktok.com/@user_90ee5646/photo/7700732303634418958",
  "author": {
    "id": "978685825807663855",
    "username": "user_90ee5646",
    "displayName": "Fixture User 72edc4"
  },
  "text": "reminiscing i guess",
  "createdAt": "2026-10-25T22:14:39Z",
  "metrics": {
    "likes": 82362,
    "comments": 36,
    "shares": 5803,
    "views": 395393,
    "saves": 6933
  },
  "hashtags": [],
  "mentions": [],
  "media": [
    {
      "kind": "image",
      "url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-i-photomode-tx/b510ea9df8fd459a8c22ae70fa011b3d~tplv-photomode-sr-vqe2-new:1440:0:1080:0:q80.jpeg",
      "thumbnailUrl": null,
      "durationSec": null
    }
  ],
  "details": {
    "tiktok": {
      "music": {
        "id": "7689880735657822998",
        "title": "original sound - user_b55cea6c",
        "artist": "Fixture Artist",
        "durationSec": 30,
        "isOriginal": true
      },
      "isAd": false,
      "downloads": 85,
      "postedFromCountry": "US"
    }
  },
  "collectedAt": "2026-11-10T16:06:33Z",
  "input": {
    "region": "US",
    "maxItems": 30
  }
}
```

#### Post comments

Collect public comments from each video you link to. In `post-comments` mode, fill in **Video links** (up to 100 entries). Use **Result limit per target** to set how many comments the Actor can collect per entry. The default is 100 and the highest setting is 10000. Each comment appears in its own row and counts as one **Post comments** charge.

Example result for one comment:

```json
{
  "status": "ok",
  "type": "comment",
  "platform": "tiktok",
  "id": "7704742889041969951",
  "postId": "7704743057127673119",
  "author": {
    "id": "987673395845314133",
    "username": "user_9f7a5f6a",
    "displayName": "Fixture User 4f1674",
    "verified": null
  },
  "text": "First",
  "createdAt": "2026-11-05T17:39:33Z",
  "metrics": {
    "likes": 3,
    "replies": 1
  },
  "details": {
    "tiktok": {
      "post": {
        "text": "Fixture caption of the video",
        "likes": 4256,
        "comments": 128,
        "shares": 167,
        "views": 28100
      },
      "creatorLiked": false
    }
  },
  "collectedAt": "2026-11-10T18:02:24Z",
  "input": {
    "url": "https://www.tiktok.com/@espn/video/7704743057127673119",
    "maxItems": 30
  }
}
```

#### Profile followers

List the accounts that follow each TikTok profile you enter. In `profile-followers` mode, fill in **Usernames** (up to 100 entries). Use **Result limit per target** to set how many profiles the Actor can collect per entry. The default is 100 and the highest setting is 10000. Each profile appears in its own row and counts as one **Profile followers** charge.

Example result for one profile:

```json
{
  "status": "ok",
  "type": "profile",
  "platform": "tiktok",
  "id": "939120201579596558",
  "url": "https://www.tiktok.com/@user_d933eff3",
  "username": "user_d933eff3",
  "displayName": "Fixture User a762fc",
  "bio": null,
  "avatarUrl": "https://p16-sign.tiktokcdn.com/fixture/93ca935ae614.jpeg",
  "verified": null,
  "isPrivate": null,
  "followers": null,
  "following": null,
  "postsCount": null,
  "externalUrl": null,
  "createdAt": null,
  "details": {
    "tiktok": {
      "totalLikes": 1520000,
      "likedVideos": 210,
      "region": "US",
      "language": "en"
    }
  },
  "collectedAt": "2026-11-10T16:40:19Z",
  "input": {
    "username": "nasa",
    "maxItems": 30
  }
}
```

#### Profile following

List the accounts that each TikTok profile you enter follows. In `profile-following` mode, fill in **Usernames** (up to 100 entries). Use **Result limit per target** to set how many profiles the Actor can collect per entry. The default is 100 and the highest setting is 10000. Each profile appears in its own row and counts as one **Profile following** charge.

Example result for one profile:

```json
{
  "status": "ok",
  "type": "profile",
  "platform": "tiktok",
  "id": "980808526877152197",
  "url": "https://www.tiktok.com/@user_16635d07",
  "username": "user_16635d07",
  "displayName": "Fixture User 16635d",
  "bio": "RANKING BEST FAN TRADITIONS IN SPORTS 📣",
  "avatarUrl": "https://p16-sign.tiktokcdn.com/fixture/dfdae24c872c.jpeg",
  "verified": true,
  "isPrivate": false,
  "followers": 12300000,
  "following": 360,
  "postsCount": 75,
  "externalUrl": null,
  "createdAt": "2016-07-02T16:49:40Z",
  "details": {
    "tiktok": {
      "totalLikes": 1520000,
      "likedVideos": 210,
      "region": "US",
      "language": "en"
    }
  },
  "collectedAt": "2026-11-10T16:42:55Z",
  "input": {
    "username": "nba",
    "maxItems": 30
  }
}
```

#### Music posts

Collect public videos that use the sounds you link to. In `music-posts` mode, fill in **Sound links** (up to 100 entries), and **Videos from** (optional), **Videos before** (optional). Use **Result limit per target** to set how many posts the Actor can collect per entry. The default is 100 and the highest setting is 10000. Each post appears in its own row and counts as one **Music posts** charge.

Example result for one post:

```json
{
  "status": "ok",
  "type": "post",
  "platform": "tiktok",
  "id": "7704757415274679583",
  "url": "https://www.tiktok.com/@user_88f93574/video/7704757415274679583",
  "author": {
    "id": "986407597131435319",
    "username": "user_88f93574",
    "displayName": "Fixture User ba6f56",
    "verified": null
  },
  "text": "The massive Russell Brand investigation just took a major turn. The Story: Following the 2023 Dispatches documentary...",
  "language": "en",
  "createdAt": "2026-11-05T18:34:01Z",
  "metrics": {
    "likes": 9,
    "comments": 0,
    "shares": 8,
    "views": 1755,
    "saves": 1
  },
  "hashtags": [
    "russellbrand",
    "guilty"
  ],
  "mentions": [],
  "media": [
    {
      "kind": "video",
      "url": "https://v16-webapp-prime.tiktok.com/video/tos/alisg/tos-alisg-ve-37c799-sg/oIR1KYusCBAaBE6jRQPBazB1EiAbNiQINVzky/",
      "thumbnailUrl": "https://p16-common-sign.tiktokcdn.com/tos-useast8-p-0068-tx2/ocANGX3fRqEaDVEkCfDsiwFMAB57AAuE8dzAIE~tplv-tiktokx-dmt-logom:tos-useast8-i-0068-tx2/okXsX5A7fAEckwDEADRq6BCfzEEVFEAELMAIsj.image",
      "durationSec": 13,
      "width": 1080,
      "height": 1920
    }
  ],
  "details": {
    "tiktok": {
      "music": {
        "id": "7704745898420669207",
        "title": "original sound - user_b329413f",
        "artist": "Fixture Artist",
        "durationSec": 30,
        "isOriginal": true
      },
      "isAd": false,
      "downloads": 85,
      "isPinned": false,
      "aiGenerated": false,
      "placeName": null,
      "postedFromCountry": "US"
    }
  },
  "collectedAt": "2026-11-10T15:28:00Z",
  "input": {
    "url": "https://www.tiktok.com/music/original-sound-bbcnews-7704745898420669207",
    "maxItems": 30
  }
}
```

#### Music details

Look up each sound's title, artist, and length and see how many videos use it. In `music-get` mode, fill in **Sound links** (up to 100 entries). You get one sound per entry. Each sound appears in its own row and counts as one **Music details** charge.

Example result for one sound:

```json
{
  "status": "ok",
  "type": "sound",
  "platform": "tiktok",
  "id": "7704745898420669207",
  "url": "https://www.tiktok.com/music/original-sound-user-b58220c9-7704745898420669207",
  "title": "original sound - user_b58220c9",
  "artist": "Fixture User 6caa85",
  "durationSec": 127,
  "coverUrl": "https://p16-common-sign.tiktokcdn-eu.com/tos-maliva-avt-0068/598739a861a35cdea311310b32ef7fa8~tplv-tiktokx-cropcenter:1080:1080.webp",
  "isOriginal": true,
  "postsCount": 3,
  "details": null,
  "collectedAt": "2026-11-10T19:00:18Z",
  "input": {
    "url": "https://www.tiktok.com/music/original-sound-bbcnews-7704745898420669207",
    "maxItems": 1
  }
}
```

#### Shop search

Find TikTok Shop products that match the words or phrases you enter. In `shop-search` mode, fill in **Keywords** (up to 100 entries), and **Shop region** (optional). Use **Result limit per target** to set how many products the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each product appears in its own row and counts as one **Shop search** charge.

Example result for one product:

```json
{
  "status": "ok",
  "type": "product",
  "platform": "tiktok",
  "id": "1732218790671716493",
  "url": "https://www.tiktok.com/shop/pdp/1732218790671716493",
  "title": "Women's White PU Upper Low-Top Casual Trainers - Gold Chain Accent, Lightweight Walking Style All-Seasons Shoes for W...",
  "price": {
    "amount": 9.99,
    "currency": "USD"
  },
  "seller": {
    "id": "927527919656710496",
    "name": "Fixture User 7fb74e"
  },
  "rating": 3.9,
  "reviewsCount": null,
  "soldCount": 169,
  "images": [
    "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/bcbb792ce6504d8595b345fa44d40238~tplv-fhlh96nyum-crop-webp:400:400.webp"
  ],
  "details": {
    "tiktok": {
      "originalPrice": 24.99,
      "discountPercent": 20,
      "categories": [
        "Beauty & Personal Care",
        "Skincare"
      ],
      "shipsFrom": "Fixture City, CA"
    }
  },
  "collectedAt": "2026-11-10T17:36:41Z",
  "input": {
    "keyword": "shoes",
    "region": "US",
    "maxItems": 30
  }
}
```

#### Shop products

Collect product listings from each TikTok Shop store you link to. In `shop-products` mode, fill in **Store links** (up to 100 entries), and **Sort by** (optional), **Shop region** (optional). Use **Result limit per target** to set how many products the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each product appears in its own row and counts as one **Shop products** charge.

Example result for one product:

```json
{
  "status": "ok",
  "type": "product",
  "platform": "tiktok",
  "id": "1729527313880355335",
  "url": "https://www.tiktok.com/shop/pdp/1729527313880355335",
  "title": "Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, KSM-66, Vegan, Plant Based, Non-GMO, Gluten-Free & Gelatin Free. Am...",
  "price": {
    "amount": 19.47,
    "currency": "USD"
  },
  "seller": {
    "id": "992788544625259066",
    "name": "Fixture User 46c8ec"
  },
  "rating": 4.5,
  "reviewsCount": 94529,
  "soldCount": 1307494,
  "images": [
    "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/2bc69aa9f6084480beee1bb4a8db3a69~tplv-fhlh96nyum-crop-webp:500:500.webp"
  ],
  "details": {
    "tiktok": {
      "originalPrice": 24.99,
      "discountPercent": 20
    }
  },
  "collectedAt": "2026-11-10T17:35:24Z",
  "input": {
    "url": "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079",
    "maxItems": 30
  }
}
```

#### Product details

Look up each linked TikTok Shop product's name, price, seller, rating, and how many units it has sold. In `product-get` mode, fill in **Product links** (up to 100 entries), and **Shop region** (optional). You get one product per entry. Each product appears in its own row and counts as one **Product details** charge.

Example result for one product:

```json
{
  "status": "ok",
  "type": "product",
  "platform": "tiktok",
  "id": "1729527313880355335",
  "url": "https://www.tiktok.com/shop/pdp/1729527313880355335",
  "title": "Goli Ashwagandha & Vitamin D Gummy - Mixed Berry, KSM-66, Vegan, Plant Based, Non-GMO, Gluten-Free & Gelatin Free. Am...",
  "price": {
    "amount": 19.47,
    "currency": "USD"
  },
  "seller": {
    "id": "993989535353846251",
    "name": "Fixture User 33f2a5"
  },
  "rating": 4.5,
  "reviewsCount": 94529,
  "soldCount": 1307494,
  "images": [
    "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/2bc69aa9f6084480beee1bb4a8db3a69~tplv-fhlh96nyum-crop-webp:800:800.webp",
    "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/e55105f652d84992807aefb34664bb00~tplv-fhlh96nyum-crop-webp:800:800.webp"
  ],
  "details": {
    "tiktok": {
      "originalPrice": 24.99,
      "discountPercent": 20,
      "variants": [
        {
          "id": "1729527314017325831",
          "name": "Mixed Berry / 60 count",
          "price": 19.47,
          "originalPrice": 24.99,
          "stock": 120
        }
      ]
    }
  },
  "collectedAt": "2026-11-10T17:43:34Z",
  "input": {
    "url": "https://www.tiktok.com/shop/pdp/1729527313880355335",
    "maxItems": 1
  }
}
```

#### Product reviews

Collect customer reviews for each TikTok Shop product you link to. In `product-reviews` mode, fill in **Product links** (up to 100 entries), and **Shop region** (optional). Use **Result limit per target** to set how many reviews the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each review appears in its own row and counts as one **Product reviews** charge.

Example result for one review:

```json
{
  "status": "ok",
  "type": "comment",
  "platform": "tiktok",
  "id": "7583743951656519479",
  "postId": "1729527313880355335",
  "author": {
    "id": "969125777608057528",
    "displayName": "Fixture User 87e0c2"
  },
  "text": "Since adding them to my routine, I’ve noticed a significant improvement in my stress levels. I feel calmer, more bala...",
  "createdAt": "2025-12-14T15:59:55Z",
  "metrics": {},
  "details": {
    "tiktok": {
      "rating": 5,
      "images": []
    }
  },
  "collectedAt": "2026-11-10T18:14:45Z",
  "input": {
    "url": "https://www.tiktok.com/shop/pdp/1729527313880355335",
    "maxItems": 11
  }
}
```

#### Profile showcase

Collect the products listed in the shop section of each TikTok profile you enter. In `profile-showcase` mode, fill in **Usernames** (up to 100 entries), and **Shop region** (optional). Use **Result limit per target** to set how many products the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each product appears in its own row and counts as one **Profile showcase** charge.

Example result for one product:

```json
{
  "status": "ok",
  "type": "product",
  "platform": "tiktok",
  "id": "1732805173714916305",
  "url": "https://www.tiktok.com/shop/pdp/1732805173714916305",
  "title": "iPhone 16 Pro Symmetry Series Clear Case for MagSafe",
  "price": {
    "amount": 59.99,
    "currency": "USD"
  },
  "seller": {
    "id": "905691262526491921"
  },
  "rating": null,
  "reviewsCount": null,
  "soldCount": 1,
  "images": [
    "https://p16-oec-general-useast5.ttcdn-us.com/tos-useast5-i-omjb5zjo8w-tx/40b4900d25124088ba2af6a9ad53a89b~tplv-fhlh96nyum-crop-webp:500:500.webp"
  ],
  "details": null,
  "collectedAt": "2026-11-10T17:37:43Z",
  "input": {
    "username": "natgeo",
    "maxItems": 20
  }
}
```

#### Ad library search

Search the TikTok ad library for ads that match the words or phrases you enter. In `adlibrary-search` mode, fill in **Keywords** (up to 100 entries). Use **Result limit per target** to set how many ads the Actor can collect per entry. The default is 100 and the highest setting is 1000. Each ad appears in its own row and counts as one **Ad library search** charge.

Example result for one ad:

```json
{
  "status": "ok",
  "type": "ad",
  "platform": "tiktok",
  "id": "1881490767262306",
  "url": "https://library.tiktok.com/ads/detail/",
  "advertiser": {
    "name": "Fixture User ef53a4"
  },
  "text": "#nike #nike #nike #nike #nike ",
  "startedAt": "2026-11-10T16:55:04Z",
  "endedAt": "2026-11-10T16:55:04Z",
  "media": [
    {
      "kind": "video",
      "url": "https://library.tiktok.com/api/v1/cdn/1794337323/video/aHR0cHM6Ly92NzcudGlrdG9rY2RuLmNvbS83NTU3YTNlN2ZlNjc1MDdmZTdjZmRlZjFiMTE0MjkzMS82YWYzYmU5ZC92aWRlby90b3Mvbm8xYS90b3Mtbm8xYS12ZS0wMDY4YzAwMS1uby9vd0RDNk0xVlFaSWtpMHVDaVRBanJJRUJpd1B5Y1Q3QWtnZnNuNy8=/b484db62-e61c-429c-b324-6538cd9bf121",
      "thumbnailUrl": "https://p19-common-sign.tiktokcdn.com/tos-no1a-p-0037-no/o4ge3Em1qFOzZJp3ADBv3Lm4FBZIkQfRmErciI~tplv-noop.image",
      "durationSec": null,
      "width": null,
      "height": null
    }
  ],
  "details": {
    "tiktok": {
      "estimatedAudience": "10K-100K"
    }
  },
  "collectedAt": "2026-11-10T19:01:41Z",
  "input": {
    "keyword": "nike",
    "maxItems": 30
  }
}
```

### Ways to use the data

- See which videos are trending by region and compare what gets views and likes across hashtags.
- Find videos that use your campaign's hashtag or sound, then read the comments to see how viewers responded.
- Compare a brand's public follower list with the list of accounts the brand follows.
- Compare TikTok Shop prices and ratings side by side, then read what buyers say in their reviews.
- Search the TikTok ad library by keyword to compare how brands advertise similar products.

### What to enter

| Field key | Name on the form | What to enter |
| --- | --- | --- |
| `mode` | What to collect | Choose one type of result per run, then fill in the fields for that choice. |
| `hashtags` | Hashtags | Enter the hashtags you want videos for, with or without the # sign. |
| `postedAfter` | Videos from | Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date. The tool may filter by date after reading posts, so you can get fewer results than your limit. The run stops early if three pages in a row have no matches. |
| `postedBefore` | Videos before | Enter the first day to exclude, such as 2026-11-15 (UTC). The tool skips videos from that day onward. Leave blank for no cutoff. The tool may filter by date after reading posts, so you can get fewer results than your limit. The run stops early if three pages in a row have no matches. |
| `regions` | Regions | Enter a two-letter country code, such as US or GB, for each region you want trending videos from. |
| `videoUrls` | Video links | Paste full TikTok video links, such as https://www.tiktok.com/@name/video/1234567890123456789. |
| `usernames` | Usernames | Enter TikTok usernames with or without the @ sign, or paste profile links. |
| `musicUrls` | Sound links | Paste full links to TikTok sound pages, such as https://www.tiktok.com/music/original-sound-name-1234567890123456789. |
| `keywords` | Keywords | Enter words or phrases to search for in TikTok Shop. |
| `region` | Shop region | Enter a two-letter country code, such as US or GB, to choose which TikTok Shop market to search. |
| `storeUrls` | Store links | Paste full TikTok Shop store links, such as https://www.tiktok.com/shop/store/name/1234567890123456789. |
| `sortBy` | Sort by | Leave this set to best-sellers to keep the store's default order, or choose newest to put new releases first. |
| `productUrls` | Product links | Paste full TikTok Shop product links, such as https://www.tiktok.com/shop/pdp/1234567890123456789. |
| `maxItems` | Result limit per target | Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Music details and Product details. |
| `freshness` | Data freshness | Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run. |

Example input:

```json
{
  "mode": "hashtag-posts",
  "hashtags": [
    "nasa",
    "natgeo"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

### Your results

Each mode has its own view of the results table. See **Collection modes** for what each mode returns.

Every row has a `status` field. For each entry that fails, the Actor returns one row with `status: "error"`. The `error` field has a `code` and a `message`. If a required field for your mode is blank, the run returns one error row and collects no data.

### Pricing

You pay per result. Prices for each Apify plan are in USD per 1,000 results.

| What you pay for | Free | Bronze | Silver | Gold | Platinum | Diamond |
| --- | --- | --- | --- | --- | --- | --- |
| Ad library search | $1.294 | $1.125 | $0.956 | $0.788 | $0.788 | $0.788 |
| Hashtag posts | $4.111 | $3.001 | $2.276 | $1.601 | $1.601 | $1.601 |
| Music details | $4.125 | $3.300 | $3.300 | $3.300 | $3.300 | $3.300 |
| Music posts | $3.751 | $3.001 | $2.501 | $2.051 | $2.051 | $2.051 |
| Post comments | $1.330 | $1.000 | $0.973 | $0.886 | $0.886 | $0.886 |
| Product details | $18.752 | $15.001 | $13.335 | $11.439 | $11.439 | $11.439 |
| Product reviews | $1.830 | $1.500 | $1.187 | $0.896 | $0.896 | $0.896 |
| Profile followers | $2.440 | $2.000 | $2.000 | $1.931 | $1.931 | $1.931 |
| Profile following | $2.440 | $2.000 | $2.000 | $1.931 | $1.931 | $1.931 |
| Profile showcase | $18.752 | $15.001 | $13.335 | $11.439 | $11.439 | $11.439 |
| Shop products | $18.752 | $15.001 | $13.335 | $11.439 | $11.439 | $11.439 |
| Shop search | $18.752 | $15.001 | $13.335 | $11.439 | $11.439 | $11.439 |
| Trending posts | $0.946 | $0.769 | $0.641 | $0.530 | $0.530 | $0.530 |

You don't pay for errors or empty results. The run stops when it reaches your spending limit.

On the free plan, you can collect up to 10 results per run and make up to 20 runs per day.

### Common questions

#### What can I collect in a run?

Choose one option per run under What to collect: Hashtag posts, Trending posts, Post comments, Profile followers, Profile following, Music posts, Music details, Shop search, Shop products, Product details, Product reviews, Profile showcase, or Ad library search.

#### What details come with each result?

Video results include the sound's artist and length. The tagged place, country the video was posted from, and download count can be blank. So can the fields that say whether the video was pinned, part of a paid partnership, or generated by AI. Hashtag posts, Trending posts, and Music posts don't include counts for the video's author. Comment results show whether the creator liked the comment and may include the video's caption and counts. Account results may show total likes, how many videos the account has liked, its region, and its language. When shown, product details include the price before the discount, the discount percentage, product categories, where the product ships from, and options like size. Ad results include the estimated audience. To narrow Hashtag posts or Music posts by date, use Videos from and Videos before. To see new releases first in Shop products, choose newest under Sort by.

#### Which TikTok links can I paste into the form?

Paste a full link, like https://www.tiktok.com/@name/video/1234567890123456789. Links on m.tiktok.com and links without www work too. The tool ignores anything after the question mark. For short links like vm.tiktok.com/... or www.tiktok.com/t/..., open the link in your browser first, then copy the full address from the address bar.

#### Do I need to sign in to TikTok?

No. The tool only collects public information. You don't need to sign in or share cookies from your browser (the files that keep you signed in).

#### How do I limit my results, and what do I pay for?

Use Result limit per target to set the most results you want for each hashtag, video link, or other input. You pay only for results you receive. There's no charge for errors or empty results. The run stops if it reaches your spending limit.

#### Is this tool affiliated with TikTok?

No. This tool is independent and has no affiliation with TikTok or ByteDance. Neither company endorses or sponsors it. It collects only information that's public on TikTok.

### Disclaimer

This Actor is not affiliated with, endorsed by, or sponsored by TikTok. All trademarks belong to their owners.

# Actor input Schema

## `mode` (type: `string`):

Choose one type of result per run, then fill in the fields for that choice.

## `hashtags` (type: `array`):

Enter the hashtags you want videos for, with or without the # sign.

## `postedAfter` (type: `string`):

Enter the first day to include, such as 2026-11-01 (UTC). Leave blank for no start date. The tool may filter by date after reading posts, so you can get fewer results than your limit. The run stops early if three pages in a row have no matches.

## `postedBefore` (type: `string`):

Enter the first day to exclude, such as 2026-11-15 (UTC). The tool skips videos from that day onward. Leave blank for no cutoff. The tool may filter by date after reading posts, so you can get fewer results than your limit. The run stops early if three pages in a row have no matches.

## `regions` (type: `array`):

Enter a two-letter country code, such as US or GB, for each region you want trending videos from.

## `videoUrls` (type: `array`):

Paste full TikTok video links, such as https://www.tiktok.com/@name/video/1234567890123456789.

## `commentIds` (type: `array`):

Enter the numbers that identify the comments you want replies to. In Video link, paste the full link to the video with those comments.

## `videoUrl` (type: `string`):

Paste the full link to the TikTok video with those comments, such as https://www.tiktok.com/@name/video/1234567890123456789.

## `usernames` (type: `array`):

Enter TikTok usernames with or without the @ sign, or paste profile links.

## `musicUrls` (type: `array`):

Paste full links to TikTok sound pages, such as https://www.tiktok.com/music/original-sound-name-1234567890123456789.

## `keywords` (type: `array`):

Enter words or phrases to search for in TikTok Shop.

## `region` (type: `string`):

Enter a two-letter country code, such as US or GB, to choose which TikTok Shop market to search.

## `storeUrls` (type: `array`):

Paste full TikTok Shop store links, such as https://www.tiktok.com/shop/store/name/1234567890123456789.

## `sortBy` (type: `string`):

Leave this set to best-sellers to keep the store's default order, or choose newest to put new releases first.

## `productUrls` (type: `array`):

Paste full TikTok Shop product links, such as https://www.tiktok.com/shop/pdp/1234567890123456789.

## `maxItems` (type: `integer`):

Set the most results to collect from each target, up to the mode's maximum. Leave this blank to use the mode's default limit. The limit you set doesn't apply to these modes, which return one result per target: Music details and Product details.

## `freshness` (type: `string`):

Standard can return results faster when recently collected data is available. Choose Live to collect fresh data on every run.

## Actor input object example

```json
{
  "mode": "hashtag-posts",
  "hashtags": [
    "nasa",
    "natgeo"
  ],
  "regions": [
    "US"
  ],
  "videoUrls": [
    "https://www.tiktok.com/@espn/video/7704743057127673119"
  ],
  "commentIds": [
    "7665081157037802254"
  ],
  "usernames": [
    "nasa",
    "natgeo"
  ],
  "musicUrls": [
    "https://www.tiktok.com/music/original-sound-bbcnews-7704745898420669207"
  ],
  "keywords": [
    "coffee",
    "shoes"
  ],
  "region": "US",
  "storeUrls": [
    "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079"
  ],
  "sortBy": "best-sellers",
  "productUrls": [
    "https://www.tiktok.com/shop/pdp/1729527313880355335"
  ],
  "maxItems": 20,
  "freshness": "standard"
}
```

# Actor output Schema

## `results` (type: `string`):

See everything this run collected in one table.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mode": "hashtag-posts",
    "hashtags": [
        "nasa",
        "natgeo"
    ],
    "regions": [
        "US"
    ],
    "videoUrls": [
        "https://www.tiktok.com/@espn/video/7704743057127673119"
    ],
    "commentIds": [
        "7665081157037802254"
    ],
    "usernames": [
        "nasa",
        "natgeo"
    ],
    "musicUrls": [
        "https://www.tiktok.com/music/original-sound-bbcnews-7704745898420669207"
    ],
    "keywords": [
        "coffee",
        "shoes"
    ],
    "storeUrls": [
        "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079"
    ],
    "productUrls": [
        "https://www.tiktok.com/shop/pdp/1729527313880355335"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("icoe-man/tiktok-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mode": "hashtag-posts",
    "hashtags": [
        "nasa",
        "natgeo",
    ],
    "regions": ["US"],
    "videoUrls": ["https://www.tiktok.com/@espn/video/7704743057127673119"],
    "commentIds": ["7665081157037802254"],
    "usernames": [
        "nasa",
        "natgeo",
    ],
    "musicUrls": ["https://www.tiktok.com/music/original-sound-bbcnews-7704745898420669207"],
    "keywords": [
        "coffee",
        "shoes",
    ],
    "storeUrls": ["https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079"],
    "productUrls": ["https://www.tiktok.com/shop/pdp/1729527313880355335"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("icoe-man/tiktok-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mode": "hashtag-posts",
  "hashtags": [
    "nasa",
    "natgeo"
  ],
  "regions": [
    "US"
  ],
  "videoUrls": [
    "https://www.tiktok.com/@espn/video/7704743057127673119"
  ],
  "commentIds": [
    "7665081157037802254"
  ],
  "usernames": [
    "nasa",
    "natgeo"
  ],
  "musicUrls": [
    "https://www.tiktok.com/music/original-sound-bbcnews-7704745898420669207"
  ],
  "keywords": [
    "coffee",
    "shoes"
  ],
  "storeUrls": [
    "https://www.tiktok.com/shop/store/goli-nutrition/7495794203056835079"
  ],
  "productUrls": [
    "https://www.tiktok.com/shop/pdp/1729527313880355335"
  ],
  "maxItems": 20
}' |
apify call icoe-man/tiktok-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,icoe-man/tiktok-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/YQ7PjuR0eyodN9xD9/builds/ZFVmc37BBglxfRZM2/openapi.json
