agentleFS
mike-scrapingbotmike-scrapingbot/scrapingbot/skills/tiktok-data/SKILL.md

tiktok-data

Skill0 starsChanged 39 days agoMITView on GitHub

Get public TikTok data as JSON through the ScrapingBot API - video stats and media URLs, profiles, an account's videos, followers/following lists, user and video search, sounds and the videos using them, comments and replies. Use when the user asks about TikTok videos, creators, sounds, hashtags or comments. Requires SCRAPINGBOT_API_KEY.

  • Reads credentials
  • Sends data out

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. superagnt/leverage★ 6same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository4 other files it gives its agents.

The file

Files
SKILL.md

TikTok public data with ScrapingBot

POST https://scrapingbot.io/api/v1/tiktok, headers x-api-key: $SCRAPINGBOT_API_KEY and Content-Type: application/json. Body: {"endpoint": "<endpoint>", "params": {...}}. 1 credit per call (each page is a call), charged only on success. Timeout 30 s.

Endpoints

endpointUse forParams
/One video's stats, caption, author, sound, media URLsurl (must contain /video/), optional hd: "1"
/user/infoProfile and countersunique_id (username, @handle or profile URL) or user_id (numeric)
/user/postsAn account's videos, newest firstunique_id, count (max 10), cursor
/user/followers, /user/followingFollower / following accountsuser_id (numeric, required), count 1–50
/user/searchAccounts matching a keywordkeywords, count 1–50
/feed/searchVideos matching a keywordkeywords, count 1–50, offset (or cursor), search_id, region (e.g. US)
/music/infoA sound's detailsmusic_id (or sound page url)
/music/postsVideos using a soundmusic_id (or url), count 1–35, cursor
/comment/listComments on a videourl (video URL), count 1–50, cursor
/comment/replyReplies to one commentcomment_id, video_id (or video url), count 1–50, cursor

user_id must be the numeric id from /user/info (data.user.id); a username returns 400. So: /user/info first, then followers/following.

Example

curl -X POST "https://scrapingbot.io/api/v1/tiktok" \
  -H "x-api-key: $SCRAPINGBOT_API_KEY" -H "Content-Type: application/json" \
  -d '{"endpoint": "/user/info", "params": {"unique_id": "tiktok"}}'

Fields worth reading

Envelope: success, data, duration, creditsUsed.

  • /: data.id, title, create_time (unix), duration, play_count, digg_count (likes), comment_count, share_count, collect_count, play (video URL), cover, author.unique_id, music_info.
  • /user/info: data.user (id, uniqueId, nickname, signature, verified), data.stats (followerCount, followingCount, heartCount, videoCount).
  • /user/posts, /music/posts, /feed/search: data.videos[] with video_id, title, play_count, digg_count, comment_count, create_time, author.
  • /user/search: data.user_list[] with user and stats.
  • /user/followers → data.followers[]; /user/following → data.followings[]; data.total is the account's full count, not the number returned.
  • /comment/list, /comment/reply: data.comments[] with id, text, digg_count, reply_total, create_time, user; data.total.
  • /music/info: data.title, author, duration, video_count, play.

Pagination

List endpoints return data.cursor and data.hasMore. Send cursor back unchanged (for /feed/search send it as offset along with search_id from data.searchId). Continue while hasMore is 1 or true; page sizes vary, so don't stop on a short page. De-duplicate on video_id. /user/search, /user/followers and /user/following are single-page: raise count instead.

Errors

Errors look like {"success": false, "error": "unique_id is required.", "code": 400} and are never charged.

  • 400: missing/invalid param or unsupported endpoint; fix and resend.
  • 404: the video or account wasn't found.
  • 401 bad key; 402 not enough credits (tell the user); 429 concurrency limit (free plan: 1 at a time; wait and retry).
  • 408 / 5xx: temporary; retry with backoff.

Docs: https://scrapingbot.io/docs/tiktok

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.