Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Credit-based: each request uses credits and some options (include_replies, long transcription) cost more. account.credits shows the balance.
- Public data only, found by URL or handle; paging is by a cursor-like token whose name differs per endpoint (cursor, max_cursor, next_max_id, continuationToken, after, page).
- Set trim=true where offered for a much smaller response; cache_max_age lets a cached answer stand in for a fresh call.
- X and LinkedIn post search go through Google, so coverage is partial.
- download_media is left out: it stores the media in the user’s Scrape Creators account.
Endpoints
Get the credit balance
Get a TikTok profile
List a TikTok user’s videos
Get a TikTok video
List comments on a TikTok video
Search TikTok videos by keyword
- region sets where the request is routed from; it does not filter results by country.
Get an Instagram profile
- Can be slower than other calls because it needs several requests to Instagram.
List an Instagram user’s posts
Get an Instagram post or reel
List comments on an Instagram post
- include_replies=true costs extra credits.