<< All versions

Skill v1.0.0

currentAutomated scan100/100
scrapall/scrapall-agent-skills/tiktok
──Details
PublishedNovember 17, 2026 at 08:35 PM
Content Hashsha256:4de868d5427c8182...
Git SHA7017a2f8a3cd
──Files
Files (1 file, 4.3 KB)
SKILL.md4.3 KBactive
SKILL.md · 77 lines · 4.3 KB

name: scrapall-tiktok description: "Use when the user asks for public TikTok data (Collection Videos, Comment Replies, Comments, Followers, Following, Get Song Details, Live, Live Info, Profile, Profile Region, Profile Videos, Search Suggestions, Search Users, Search by Hashtag, Search by Keyword, TikT). Calls the Scrapall REST API with the X-Scapi-Key header." metadata: version: "1.0.0"


TikTok API skill

21 endpoints. Docs: https://scrapall.bipsport.com/docs/tiktok/

Auth

Send your key in the X-Scapi-Key header on every request. Read it from the SCRAPALL_API_KEY environment variable; never hard-code it.

bash
curl -sS "https://api.scrapall.bipsport.com/scapi/v1/tiktok/collection_videos?url=https://www.tiktok.com/@kibblemaster808/collection/Want-to-go-7665668414573546258" -H "X-Scapi-Key: $SCRAPALL_API_KEY"

Plan access: paid plans (Free plan covers Facebook and Instagram only).

Endpoints

MethodPathWhat it doesParams (required)Credits/call
GET/v1/tiktok/collection_videosCollection Videos`url`1
GET/v1/tiktok/get_trending_feedTrending Feed`region`1
GET/v1/tiktok/liveLive Info`room_id`, `user_id`1
GET/v1/tiktok/userProfileoptional: handle, user_id1
GET/v1/tiktok/user_regionProfile Region`handle`1
GET/v1/tiktok/search_hashtagSearch by Hashtag`hashtag`; optional: region1
GET/v1/tiktok/search_keywordSearch by Keyword`query`; optional: date_posted, sort_by, region1
GET/v1/tiktok/search_suggestionsSearch Suggestions`query`; optional: region1
GET/v1/tiktok/search_topTop Search`query`; optional: publish_time, sort_by, region1
GET/v1/tiktok/search_usersSearch Users`query`1
GET/v1/tiktok/songGet Song Details`clip_id`1
GET/v1/tiktok/song_videosTikToks using Songoptional: clip_id1
GET/v1/tiktok/user_audienceUser's Audience Demographics`handle`26
GET/v1/tiktok/user_followersFollowersoptional: handle, user_id, min_time1
GET/v1/tiktok/user_followingFollowing`handle`; optional: min_time1
GET/v1/tiktok/user_liveLive`handle`1
GET/v1/tiktok/video_comment_repliesComment Replies`comment_id`, `url`1
GET/v1/tiktok/video_commentsComments`url`1
GET/v1/tiktok/video_captionsTranscript`url`; optional: language, allow_long_transcription, use_ai_as_fallback1 (more with some params)
GET/v1/tiktok/video_plusVideo Info`url`; optional: region, get_transcript, download_media1
GET/v1/tiktok/user_videos_proProfile Videos`handle`; optional: user_id, sort_by, region1

Example agent workflow

Goal: "Find the 10 most recent items on TikTok for a given account or keyword and summarize what performs best."

  1. Call GET /v1/tiktok/collection_videos with the account or keyword the user gave.
  2. Keep the 10 newest items. Paginate with the cursor field only if fewer than 10 came back.
  3. For the top 3 items by engagement, call GET /v1/tiktok/get_trending_feed for details.
  4. Report a table (link, date, engagement) plus 3 patterns worth copying. Cite every URL.
  5. Budget check: estimate credits from the table above before looping; stop on HTTP 402.

Errors

Error bodies look like {"error": {"code": "...", "message": "..."}}.

HTTPerror.codeMeaningAgent action
401invalid_keyMissing or wrong X-Scapi-Key headerCheck SCRAPALL_API_KEY; get a key at /account
402insufficient_creditsNot enough credits leftStop and ask the user to top up
402plan_expiredPlan period endedAsk the user to renew
403plan_restrictedFree plan covers Facebook + Instagram onlyUpgrade (buy_url in body)
404not_foundUnknown path or methodUse a path from the table above
429rate_limitedToo many requestsBack off (2s, 4s, 8s) and retry
503upstream_unavailableTemporary failure, not chargedRetry later

Examples

  • curl: examples/curl/tiktok.sh
  • Python: examples/python/tiktok.py
  • JavaScript: examples/javascript/tiktok.mjs
All versions