tiktok-api

Một giải pháp thay thế TikTok API trên fetcher.sh — trả phí theo lượt gọi bằng USDC qua x402, hoặc tín dụng trả trước với khóa Bearer, không cần đăng nhập và không cần xét duyệt ứng dụng. Sử dụng khi người dùng muốn tìm kiếm bài đăng TikTok theo từ khóa và sắp xếp theo lượt thích nhiều nhất hoặc mới nhất trong một khoảng thời gian, tra cứu bài đăng bằng URL chia sẻ hoặc ID, thu thập hồ sơ TikTok theo @username, lấy bài đăng, người theo dõi hoặc đang theo dõi của người dùng, lấy bài đăng của hashtag, lấy bài đăng sử dụng một âm thanh/bản nhạc cụ thể, lấy bài đăng từ một vị trí, hoặc đọc một bài đăng...

npx skills add https://github.com/fetcher-sh/fetcher-skills --skill tiktok-api

TikTok API

TikTok data on demand: keyword post search with sort/date filters, profile lookup by handle, followers and followings, hashtag and music/sound feeds, location-based posts, and comment threads — one plain HTTP GET per call, paid as you go. No login, no session cookies, no browser automation, no TikTok developer app review.

Base URL: https://tiktok.fetcher.sh

Quick reference

Base URLhttps://tiktok.fetcher.sh
AuthAuthorization: Bearer bby_live_... or x402 (USDC)
Price$0.004/call (flat)
Endpoints13, all GET
MCPhttps://tiktok.fetcher.sh/mcp
Machine-readable/openapi.json · /llms.txt · /skill.md

Which endpoint do I need?

I want to...Call
Search posts by keyword (optionally most-liked/recent)GET /api/post/search
Look up a post by its share URLGET /api/post?url=...
Look up a profile by @usernameGET /api/user/handle/{username}
Get a user's posts, followers, or followingsGET /api/user/{id}/posts / /followers / /followings
Get a post's commentsGET /api/post/{id}/comments
Find posts under a hashtagGET /api/hashtag/{id}/posts
Find posts using a specific soundGET /api/music/{id}/posts

Full param details for every row: references/endpoints.md.

Authentication

Two ways to pay, same data — full mechanics in the fetcher skill:

# 1. Prepaid credits (recommended — get a key at https://fetcher.sh/topup
#    or via POST /api/credits/topup, see the fetcher skill)
export FETCHER_API_KEY="bby_live_xxxxxxxxxxxx"
curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/post/search?keyword=hello"

# 2. x402 pay-per-call — omit the header; a GET with no payment returns 402
#    with machine-readable payment requirements (USDC on Base, Polygon,
#    Arbitrum, Monad, or Solana). @x402/fetch signs and retries automatically.

Every response is { "status": number, "message": string, "data": ... }; the HTTP status mirrors status.

Endpoints (13 — all GET, $0.004/call)

EndpointWhat it returns
/api/post/searchPosts matching a keyword; sort and date-range filters
/api/postA single post resolved from its share URL
/api/post/{id}A single post by ID
/api/post/{id}/commentsA post's comments
/api/post/{id}/comments/{commentId}/repliesReplies to a comment
/api/user/handle/{username}Profile by @username
/api/user/{id}/postsA user's posts
/api/user/{id}/followersA user's followers
/api/user/{id}/followingsAccounts a user follows
/api/hashtag/handle/{name}Hashtag metadata by name
/api/hashtag/{id}/postsPosts under a hashtag
/api/music/{id}/postsPosts using a sound/music track
/api/location/{locationId}/postsPosts tagged at a location

{id} / {username} / {name} are path parameters. Optional query params (cursor, region) paginate or geo-scope results; keyword (search) and url (post lookup) are required where they appear.

Scenarios

Most liked posts this month:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "keyword=ai agent" -G \
  --data-urlencode "sortType=MOST_LIKED" \
  --data-urlencode "dateRange=THIS_MONTH" \
  "https://tiktok.fetcher.sh/api/post/search"

Posted yesterday, most recent first:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  --data-urlencode "keyword=crypto payments" -G \
  --data-urlencode "sortType=DATE_POSTED" \
  --data-urlencode "dateRange=YESTERDAY" \
  "https://tiktok.fetcher.sh/api/post/search"

Other sortType values: RELEVANCE. Other dateRange values: ALL_TIME, THIS_WEEK, LAST_THREE_MONTHS, LAST_SIX_MONTHS.

Look up a post by its share URL, or directly by ID:

curl -H "Authorization: Bearer $FETCHER_API_KEY" -G \
  --data-urlencode "url=https://www.tiktok.com/@username/video/1234567890123456789" \
  "https://tiktok.fetcher.sh/api/post"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/post/1234567890123456789"

A post's comments and comment replies:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/post/1234567890123456789/comments"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/post/1234567890123456789/comments/9876543210/replies"

A profile by @handle, then its posts, followers, and followings:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/user/handle/khaby.lame"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/user/6935741396776976390/posts"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/user/6935741396776976390/followers"

A hashtag's metadata, then its posts:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/hashtag/handle/fyp"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/hashtag/1234567890/posts"

Posts using a specific sound, and posts from a location:

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/music/1234567890123456789/posts"

curl -H "Authorization: Bearer $FETCHER_API_KEY" \
  "https://tiktok.fetcher.sh/api/location/1234567890123456789/posts"

MCP

{
  "mcpServers": {
    "tiktok": {
      "url": "https://tiktok.fetcher.sh/mcp",
      "headers": { "Authorization": "Bearer bby_live_..." }
    }
  }
}

Free: search_endpoints, describe_endpoint, check_balance. Paid: fetch_data (any endpoint above), topup_credits, plus the named shortcut tiktok_post_search. Drop the headers block to pay per call with x402 instead — see the fetcher skill for the full flow.

Errors

  • 400 — missing/invalid parameter (message names it)
  • 401 — unknown or rotated key
  • 402 — payment required (x402 challenge) or topup_required (credits exhausted)
  • 404 — not a priced path
  • No rate limits; no refunds on upstream failures (settlement precedes delivery)

Reference

Thêm skills từ fetcher-sh

twitter-api
fetcher-sh
Một giải pháp thay thế API Twitter và thay thế API X trên fetcher.sh — trả phí theo từng lần gọi bằng USDC qua x402, hoặc tín dụng trả trước với khóa Bearer, không cần OAuth và không cần đăng ký ứng dụng dành cho nhà phát triển. Sử dụng khi người dùng muốn tìm kiếm tweet theo từ khóa, hashtag hoặc toán tử nâng cao (from:, to:, since:, until:, min_faves:, filter:), thu thập hồ sơ Twitter/X theo tên tài khoản, lấy tweet, phản hồi, người theo dõi hoặc các tài khoản đang theo dõi của người dùng, lấy một tweet cụ thể kèm phản hồi hoặc người retweet, đọc thành viên hoặc tweet của một danh sách Twitter,...
instagram-api
fetcher-sh
Một giải pháp thay thế Instagram API trên fetcher.sh — trả phí theo lượt gọi bằng USDC qua x402, hoặc tín dụng trả trước với khóa Bearer, không cần đăng nhập và không có cookie phiên. Sử dụng khi người dùng muốn tra cứu hồ sơ Instagram theo @handle, tìm kiếm người dùng theo từ khóa, lấy bài đăng, reel, story, bài đăng được gắn thẻ, người theo dõi hoặc đang theo dõi của một hồ sơ, tra cứu một bài đăng cụ thể bằng shortcode, đọc bình luận của bài đăng, lấy bài đăng theo hashtag hoặc nguồn cấp dữ liệu hashtag chỉ reel, lấy bài đăng từ một địa điểm, hoặc lấy bài đăng bằng...