# UnlimitedScrapers: TikTok scraper API > Public TikTok data (profiles, posts, followers, following, videos, comments and replies, music, hashtags, search, and the feed) as JSON over simple HTTPS GET requests. > Pricing: 1 credit = 1 API call. Credits are priced by purchase size, the whole purchase at one rate per 1,000 credits: under 10,000 $1.00; 10,000+ $0.90; 25,000+ $0.81; 50,000+ $0.73; 100,000+ $0.66; 150,000+ $0.59; 250,000+ $0.53; 350,000+ $0.50 ($5 minimum = 5,000 credits, never expire; 10 concurrent connections), or a monthly plan with no cap where calls use no credits: Unlimited at $197/month (10 concurrent connections) or Unlimited Ultra at $997/month (50 concurrent connections). One plan per account. > Refunds: email support@unlimitedscrapers.com from the account's email within 14 days of a purchase for a full refund, no questions asked. > Operated by TLZ, Inc. Only publicly available data is accessible. ## Authentication Send your API key in a header on every request (except /health): x-api-key: usk_... (Authorization: Bearer usk_... also works.) Get a key at https://unlimitedscrapers.com/dashboard/keys Base URL: https://api.unlimitedscrapers.com/v1 ## Endpoints (all GET) Each successful TikTok call costs 1 credit (0 on Unlimited / Unlimited Ultra); /usage and /health are free. List endpoints paginate with a cursor. Single-object endpoints (profile, video, music, hashtag) return one object in data, with cursor null and has_more false. ### Users #### /tiktok/user/posts A creator's public videos, newest first. Params: username (handle without @) OR user_id; cursor (optional); count (1-35, default 30) Example: GET https://api.unlimitedscrapers.com/v1/tiktok/user/posts?username=khaby.lame #### /tiktok/user/profile One public profile (single object): nickname, bio, avatar, private flag, stats{followers, following, likes, videos}. Params: username OR user_id Example: GET https://api.unlimitedscrapers.com/v1/tiktok/user/profile?username=khaby.lame #### /tiktok/user/followers Public followers of an account. Params: username OR user_id; sec_user_id (optional); cursor (opaque, pass back unchanged); count (1-50, default 30) #### /tiktok/user/following Accounts that a profile follows. Params: username OR user_id; sec_user_id (optional); cursor (opaque, pass back unchanged); count (1-50, default 30) ### Videos and comments #### /tiktok/video One video (single object, posts item shape). Params: video_id (numeric id from the video URL) OR url (full video URL, vm.tiktok.com links work) Example: GET https://api.unlimitedscrapers.com/v1/tiktok/video?video_id=7709194461913419038 #### /tiktok/video/comments Public comments on a video. Params: video_id OR url; cursor; count (1-50, default 30) #### /tiktok/video/comment/replies Replies to one comment (comments item shape). Params: video_id OR url; comment_id (required, numeric, from video/comments); cursor; count (1-50, default 30) #### /tiktok/feed The current For You / trending feed (posts item shape). Single page: has_more is always false. Locality is set on our side, not by the caller's location. Params: count (accepted, 1-20, default 20; TikTok sets the page size, about 7-12 videos whatever the count) ### Music #### /tiktok/music One song (single object): id, title, author, album, duration_s, is_original, user_count, cover, play_url, owner. Read from a video that uses the song, so user_count and owner can be 0/null. Params: music_id (required, numeric, e.g. a post's music.id) #### /tiktok/music/videos Videos using a song (posts item shape). Params: music_id (required); cursor; count (accepted, 1-50, default 30; TikTok sets the page size, about 12-14 videos per page whatever the count, fewer if the song has few videos) ### Search #### /tiktok/search/videos Keyword search over TikTok's Videos tab (posts item shape). About 10 videos per page. Params: query (required, max 200 chars); cursor (opaque, pass back unchanged; it carries the search session, never build one); sort_by (relevance default | most-liked | date-posted); date_posted (all-time default | yesterday | this-week | this-month | last-3-months | last-6-months); count is ignored (values outside 1-50 still return 400) The cursor does not carry sort_by or date_posted: send the same values on every page. Each page is sorted on its own, so neighboring pages can overlap a little; de-duplicate by id. Unknown values return 400. Page through gently: rapid bursts of next-page calls can hit TikTok's rate wall, which shows up as a retryable 503. Example: GET https://api.unlimitedscrapers.com/v1/tiktok/search/videos?query=pasta%20recipe #### /tiktok/search/users Top account matches for a query (followers item shape), usually 1-5. First page only: has_more is always false, cursor is ignored. Name-like queries work best; other queries can return an empty list. Params: query (required); sort_by; date_posted (same values as search/videos; validated, but they have no effect on account results) #### /tiktok/search/suggestions Autocomplete suggestions for a query, about 10. Single page. Params: query (required) ### Hashtags #### /tiktok/hashtag/search Hashtags matching a query, with their ids (use as ch_id). Params: query (required, a leading # is ignored); cursor (opaque, pass back unchanged); count (1-30, default 30; above 30 returns 400) TikTok ends the list at about 300 results (fewer for narrow queries). Later pages can repeat a few hashtags, so de-duplicate by id. #### /tiktok/hashtag One hashtag (single object): id, name, desc, view_count, user_count, use_count. Params: hashtag (name without #) OR ch_id (numeric). A name is looked up first: exact match, else the top search result. Example: GET https://api.unlimitedscrapers.com/v1/tiktok/hashtag?hashtag=pasta #### /tiktok/hashtag/videos Videos under a hashtag (posts item shape). Params: hashtag OR ch_id; cursor; count (1-50, default 30) ### Account #### /usage Your key's successful requests per day and endpoint, plus plan and credits_remaining. Free; works at a 0 balance. Params: days (1-366, default 30) Response: {"ok": true, "request_id": "...", "data": {"days": [{"day": "2026-11-23", "endpoint": "posts", "successes": 12}], "total_successes": 12, "plan": "credits", "credits_remaining": 9874}} #### /health Service status. No API key needed. Always HTTP 200; status is "ok", or "degraded" when the service is running but impaired. Example: GET https://api.unlimitedscrapers.com/v1/health -> {"status": "ok", "time": "2026-11-24T18:00:00Z"} Every TikTok endpoint also takes raw=true: data is then TikTok's decoded JSON unchanged instead of the clean items. ## Response envelope { "ok": true, "data": [ ... ], "cursor": "1793899806203", "has_more": true, "credits_used": 1, "credits_remaining": 98, "request_id": "...", "endpoint": "posts", "target": {"user_id": "127905465618821121", "username": "khaby.lame"}, "meta": {"attempts": 1, "duration_ms": 1147} } Item fields (ids are strings; missing fields are null): - posts (also video, feed, music/videos, search/videos, hashtag/videos): id, desc, create_time, stats{views, likes, comments, shares, saves}, author{user_id, username, nickname, sec_uid, verified, avatar}, music{id, title, author}, hashtags, duration_ms, cover, is_pinned, region, url - followers / following (also search/users): user_id, username, nickname, sec_uid, bio, verified, followers, following, likes, videos, avatar, url - comments (also comment/replies): id, text, create_time, likes, reply_count, author{...}, video_id, is_pinned, language - profile (object): user_id, username, nickname, sec_uid, bio, avatar, private, stats{followers, following, likes, videos}, url - music (object): id, title, author, album, duration_s, is_original, user_count, cover, play_url, owner{user_id, username, nickname} - search/suggestions: text, position, language, score - hashtag/search items and the hashtag object: id, name, desc, view_count, user_count, use_count Pagination: call without cursor; while has_more is true and cursor is not null, repeat the request with &cursor= exactly as received (cursors are opaque; never build one). Stop when has_more is false or cursor is null. An empty page (data: []) is a real answer. Headers: X-Credits-Used, X-Credits-Remaining. ## Errors Error body: {"ok": false, "error": {"code": "...", "message": "...", "retryable": false}}. Errors are never charged. 400 bad_request: missing or invalid parameter 401 invalid_api_key: missing, invalid or revoked key 402 insufficient_credits: out of credits; ask the user to buy credits at https://unlimitedscrapers.com/dashboard/billing (from $5) 403 account_suspended: contact support 404 not_found: profile, video, comment, song or hashtag not found or not public 429 concurrency_limit: too many parallel requests; wait ~1s and retry (limit 10 on credits, 10 on Unlimited, 50 on Unlimited Ultra) 503 upstream_failed / timeout: we already retried on fresh routes; retry once after Retry-After (not charged) 503 auth_unavailable / lease_unavailable: transient on our side; retry shortly ## Guidance for AI agents - Fetch only as many pages as the task needs; each call costs 1 credit unless the account is on Unlimited or Unlimited Ultra. - Never attempt to access private accounts or log in as anyone. Only public data is available. - Docs (human): https://unlimitedscrapers.com/docs - Terms: https://unlimitedscrapers.com/legal/terms - Acceptable use: https://unlimitedscrapers.com/legal/acceptable-use ## MCP Streamable HTTP at https://api.unlimitedscrapers.com/mcp. Send the API key as a Bearer token (Authorization: Bearer usk_...). Same credits and concurrency limit as REST. Example (Claude Code): claude mcp add --transport http unlimitedscrapers https://api.unlimitedscrapers.com/mcp --header "Authorization: Bearer usk_..." Tools: tiktok_user_posts, tiktok_user_profile, tiktok_user_followers, tiktok_user_following, tiktok_video, tiktok_video_comments, tiktok_comment_replies, tiktok_feed, tiktok_music, tiktok_music_videos, tiktok_search_videos, tiktok_search_users, tiktok_search_suggestions, tiktok_hashtag_search, tiktok_hashtag, tiktok_hashtag_videos, get_usage. Arguments match the REST parameters. Each TikTok tool returns the same envelope as REST.