DEV Community

George Kioko
George Kioko

Posted on

I Built a TikTok Shop Affiliate Finder That Maps Every Creator Promoting a Product in 2 Minutes

I Built a TikTok Shop Affiliate Finder That Maps Every Creator Promoting a Product in 2 Minutes

TikTok Shop is the most interesting place in ecommerce right now. Products go from zero to 200K sales in a week. The reason is the creator economy: thousands of TikTok accounts run affiliate videos, and the good ones can move inventory faster than any paid ad.

But if you are a seller, an affiliate manager, or just a researcher, one question never gets a clean answer: "Who is actually promoting this product?"

TikTok does not give you an API for that. You have to scroll through the product page, click into videos, click into creator profiles, one by one. An hour of clicking for one product. If you are researching a catalog of 50 products, good luck.

So I built a scraper that does it in two minutes.

Live example

I tested it on a real TikTok Shop product earlier today. A PRETTYGARDEN two-piece lounge set, 205K sales, 4.6 star rating. Here is what came back:

{
  "product": {
    "name": "PRETTYGARDEN Crewneck Two-Piece Set For Women Summer Casual Oversized Split Hem Shirts & Side Pocket Biker Shorts",
    "price": "$33.99",
    "salesCount": "205915",
    "rating": 4.6,
    "url": "https://shop.tiktok.com/view/product/1730228441641554287"
  },
  "affiliates": [
    { "username": "Kay and Tay", "followers": "685.6K" },
    { "username": "Anna Scott", "followers": "176.7K" },
    { "username": "Christina Moceanu Chapman", "followers": "153.5K" },
    { "username": "Kelsey Pumel Woods", "followers": "132.3K" },
    { "username": "stay at sam", "followers": "122.6K" },
    { "username": "Candy Holcombe", "followers": "79.5K" }
  ],
  "qualityState": "verified_success"
}
Enter fullscreen mode Exit fullscreen mode

That took one product URL as input and came back with a ranked creator list in about two minutes. No login, no cookies, no scrolling.

Why TikTok Shop is painful to scrape

If you tried to build this yourself, you would hit three walls in the first hour:

Anti-bot fingerprinting. Naive HTTP requests get blocked instantly. The product page renders behind JS and their bot detection is aggressive. You need a real Chromium with realistic fingerprints.

Dynamic creator blocks. The "videos for this product" section loads through a GraphQL-style API call triggered after scroll. You have to wait for it, capture it, parse it.

Frontend changes. TikTok ships UI updates every couple of weeks. Selectors that worked last month break this month. A reliable scraper needs fallback sources, not just one happy path.

The architecture: multi stage fallback

This is the part that makes it actually work in production.

Product URL
  --> Stage 1: Direct TikTok Shop page via residential proxy + Chromium
      --> Extract product data, scroll to creator block, capture API response
  --> Stage 2 (if Stage 1 blocks): TikTok product detail API fallback
      --> Structured product JSON recovered
  --> Stage 3 (if Stages 1-2 fail): Google SERP snippet extraction
      --> Product name, price, sales recovered from cached pages
  --> Output: structured JSON + qualityState tag
Enter fullscreen mode Exit fullscreen mode

Every result gets a qualityState:

  • verified_success — product and creators both confirmed from live TikTok
  • partial_verified — product confirmed, some creator data from cached sources
  • serp_enriched — product recovered from Google cached pages, creators not available

The quality tag is the part I am most proud of. You always know what you got. No silent data quality drops.

Use cases I did not expect

When I built this I thought it was for dropshippers picking products. Turns out the most interesting users are:

Affiliate managers at agencies. They run it across a client's product catalog to see which creators are already pushing similar products. Instead of cold outreach to random influencers, they recruit creators who have proven they can sell in the category.

Competitor researchers. Someone is winning a niche. You want to know why. Run the scraper on their top three products. You get the exact creator list. You see whose videos are driving the sales.

Freelancers backfilling TikTok Shop research gigs. People charge $200-500 on Upwork for TikTok product research reports. Running the actor is a fraction of that cost. The margin is the point.

Sellers validating before inventory. Before buying 1000 units of a trending product, check if creators are actually running videos for it. If there is no affiliate activity, the sales might be paid ads, not organic.

Try it

The actor runs on Apify. One click deploy, no infrastructure to manage.

TikTok Shop Affiliate Scraper on Apify

Input: product URL or search query. Output: structured JSON with product data and creator list. You pay per verified product returned.

Source code and full README (with Chinese translation for SEA markets):
github.com/the-ai-entrepreneur-ai-hub/tiktok-shop-scraper

Related tools I built

If you found this useful, these might help too:

Full catalog: apify.com/george.the.developer


Built this on Apify with Crawlee + Puppeteer. Questions, bugs, or weird TikTok edge cases: @ai_in_it on X.

Top comments (0)