Skip to main content

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

  • 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.

Get a YouTube channel

List a YouTube channel’s videos

Get a YouTube video or short

Get a YouTube video transcript

List comments on a YouTube video

Get an X profile

List an X user’s tweets

Get a tweet

Get a LinkedIn profile

Get a LinkedIn company page

List a LinkedIn company’s posts

Get a subreddit’s details

List a subreddit’s posts

List comments on a Reddit post