1. Use cases
  2. Influencer discovery API

Influencer discovery API

Search creators by keyword, then read their follower counts and linked profiles.

The job

Discovery is a funnel: search a niche, pull each creator's numbers, then find where else they publish. Three calls per creator.

Endpoints

Failed requests and cached repeats cost 0 credits. Send max_age_days to accept a recent cached copy. See credits and caching.

EndpointReturnsCost
TikTok user search1 credit
TikTok profile1 credit
Find a creator's other social profiles1 credit
Instagram profile1 credit
YouTube channel details1 credit

Recipe

  1. Search users for a niche term.
  2. Read each profile for followers, bio and verification.
  3. Follow the links in their bio to their other platforms.
1import os2import requests34API = "https://api.socialscrape.dev"5HEADERS = {"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]}678def get(path, **params):9    res = requests.get(API + path, headers=HEADERS, params=params, timeout=60)10    res.raise_for_status()11    return res.json()["data"]1213# TikTok user search14found = get("/v1/tiktok/search/users", query="home barista")15# TikTok profile16profile = get("/v1/tiktok/profile", handle=found["items"][0]["handle"])17# Find a creator's other social profiles18linked = get("/v1/creators/social-profiles", handle=found["items"][0]["handle"], platform="tiktok")1920print(profile["handle"], profile["stats"]["followers"])21for p in linked["items"]:22    print(p["platform"], p["url"])

Calls use api.socialscrape.dev and return the shapes in the reference.

Good to know

Numbers are the counts at the time of the call. Engagement per video comes from the creator's own posts, not from the profile.

Related