Skip to main content

Setup

Put them in your environment or .env; Data APIs covers the other ways.

Notes

  • Every call is a GET with the token as a query parameter.
  • Check the code field of the response body, not the HTTP status: 0 is success, 100 invalid token, 302 rate limit, 303 daily quota exceeded, 400 invalid parameters, 601 insufficient balance.
  • Docs recommend a client timeout of 120 seconds (at least 60).
  • Paging differs per endpoint: page, cursor, offset, paginationToken or nextToken.
  • The full catalog has hundreds of endpoints (Douyin, Taobao, Bilibili and more); this file names the social ones.

Endpoints

Get a TikTok profile

List a TikTok user’s posts

Get a TikTok post

List comments on a TikTok post

Get an Instagram profile

List an Instagram user’s posts

Get an Instagram post

List comments on an Instagram post

Get a YouTube video

List a YouTube channel’s videos

Get YouTube captions

List comments on a YouTube video

Get a Weibo profile

Search Xiaohongshu notes

Get a Xiaohongshu video note

Get a Xiaohongshu profile