TikTok User Liked
Structured TikTok data: send usernames. Cursor-paginated, 1 credit per successful call.
Overview
Section titled “Overview”Call GET /api/v2/tiktok-user-liked/ with usernames. The results are in data.items; send data.next_cursor back as cursor to get the next page. 4 optional parameters refine the call (see Parameters).
Request
Section titled “Request”curl -G "https://api.scrapier.io/api/v2/tiktok-user-liked/" \ -H "X-API-Key: YOUR_API_KEY" \ --data-urlencode "usernames=chipotle" \ --max-time 210const params = new URLSearchParams({ usernames: "chipotle" });
const res = await fetch(`https://api.scrapier.io/api/v2/tiktok-user-liked/?${params}`, { headers: { "X-API-Key": "YOUR_API_KEY" }, signal: AbortSignal.timeout(210_000),});const body = await res.json();if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
console.log(body.data.items);import requests
resp = requests.get( "https://api.scrapier.io/api/v2/tiktok-user-liked/", headers={"X-API-Key": "YOUR_API_KEY"}, params={"usernames": "chipotle"}, timeout=210,)body = resp.json()if not resp.ok: raise RuntimeError(body.get("error") or body.get("detail"))
print(body["data"]["items"])curl -X POST "https://api.scrapier.io/api/v2/tiktok-user-liked/" \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"usernames":"chipotle"}' \ --max-time 210Parameters
Section titled “Parameters”| Name | Type | Required | Default | Description |
|---|---|---|---|---|
X-API-Key header | string | yes | — | Your API key from the dashboard. |
usernames | string | yes | e.g. chipotle | TikTok username (chipotle / @chipotle), profile URL or numeric user id -> the videos this account has LIKED, newest like first: ONE native /api/favorite/item_list/ page (30 liked videos, under items) per call, paged through TikTok's own like-time cursor (+ the boundary ids it repeats, so pages never overlap). Required on the first call; ignored when cursor is supplied. Hidden / private liked list -> 404 "likes are private"; unknown handle -> 404; TikTok refusing every attempt -> 502. |
user_ids | string | no | — | Numeric TikTok user id (6646487634225135622), resolved via /share/user/{id}. |
cursor | string | no | — | Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page. |
enrich_pages | string | no | false | false (default) = liked-list values only (fastest); true = one video page load per liked video (precise duration, region, TikTok labels, pinned flag; best effort inside the call deadline, ~10-20 s slower); N = only the first N rows of each page. locked in cursor |
region | string | no | — | ISO-2 market for the signed API calls (default: the page's region, else US); pins the proxy exit country. locked in cursor |
Advanced
| Name | Type | Default | Description |
|---|---|---|---|
use_proxy | boolean | true | Route the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise. |
raw_data | boolean | false | When true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes. |
Response
Section titled “Response”{ "success": true, "data": { "usernames": "chipotle", "username": "chipotle", "user_id": "6646487634225135622", "status": "ok", "page": 1, "page_size": 30, "cursor": 0, "cursor_us": "0", "next_cursor_us": "1789417651030000", "has_more": true, "total": 6828, "repeats_removed": 0, "dropped": 0, "attempts": 1, "elapsed_sec": 3.7, "account": { "id": "6646487634225135622", "username": "chipotle", "display_name": "Chipotle", "sec_uid": "MS4wLjABAAAAb-3Za1s2IerpSYNhYHyGARc7tptWc3wrDBk6DAmGR1T5T1iWvZK9RL_p9pyF0hZp", "url": "https://www.tiktok.com/@chipotle", "avatar_url": "https://p16-common-sign.tiktokcdn.com/tos-maliva-avt-0068/...", "verified": true, "private_account": false, "liked_videos_public": true, "liked_count": 6828, "followers": 2917754, "following": 304, "video_count": 775, "total_likes": 66151514 }, "media_access": { "cookies": { "ttwid": "1%7C...", "tt_csrf_token": "...", "tt_chain_token": "..." }, "headers": { "referer": "https://www.tiktok.com/", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) ... Chrome/131.0.0.0 Safari/537.36" }, "note": "content.media_urls / media_url_list / download_url of video rows need these cookies + Referer; photo image URLs, thumbnails, avatars and music play URLs are open." }, "warnings": [], "items": [ { "input_username": "chipotle", "input_user_id": null, "username": "chipotle", "user_id": "6646487634225135622", "status": "ok", "error": null, "position": 1, "page_position": 1, "video_id": "7685839095632891166", "url": "https://www.tiktok.com/@eatswithemmiee/video/7685839095632891166", "description": "@Chipotle tacos🌮🔥✨ Chipotle never misses but with their TACOS? ... #mukbang #chipotle #foodie", "content_type": "video", "created_at": "2026-09-15T19:01:31.000Z", "create_time": 1789498891, "author_username": "eatswithemmiee", "author_id": "7456588491607360554", "author_display_name": "eatswithemmie", "play_count": 365400, "like_count": 57200, "comment_count": 158, "share_count": 1742, "save_count": 6296, "repost_count": 0, "duration_seconds": 110.393, "thumbnail_url": "https://p16-common-sign.tiktokcdn.com/...", "play_url": "https://v16-webapp-prime.tiktok.com/video/tos/...&tk=tt_chain_token&...", "download_url": "https://v16-webapp-prime.tiktok.com/video/tos/...", "image_urls": [], "hashtags": [ "mukbang", "mukbangeatingshow", "chipotle" ], "mentions": [ "chipotle" ], "music_title": "original sound", "music_author": "eatswithemmie", "region": "US", "text_language": "en", "pinned": false, "enriched": false, "author": { "username": "eatswithemmiee", "display_name": "eatswithemmie", "id": "7456588491607360554", "verified": false, "followers": 23300, "video_count": 330, "total_likes": 1800000, "...": "(sec_uid, url, signature, avatar_url)" }, "post": { "id": "7685839095632891166", "url": "https://www.tiktok.com/@eatswithemmiee/video/7685839095632891166", "content": { "text": "...", "media_urls": "https://v16-webapp-prime.tiktok.com/...", "duration_seconds": 110.393, "type": "video", "width": 720, "height": 1280, "format": "mp4", "codec": "h264", "...": "(covers, bitrate, size, hashtags, mentions)" }, "author": { "...": "(author card)" }, "engagement": { "views": 365400, "likes": 57200, "comments": 158, "shares": 1742, "saves": 6296, "reposts": 0 }, "flags": { "pinned": false, "ad": false, "aigc": false, "duet_enabled": true, "...": "(stitch/share/comments flags)" }, "published_at": "2026-09-15T19:01:31.000Z", "ext": { "music_id": "7685839201543277343", "region": "US", "text_language": "en", "diversification_labels": [ "Mukbangs & Tasting", "Food & Drink", "Lifestyle" ], "on_screen_texts": [ "Chili lime lol…😭" ], "...": "(music, category, effect stickers)" } }, "computed": { "engagement_rate": 0.161741, "language": "en", "content_category": "food", "estimated_reach": 438480 }, "account": { "...": "(same account card as the envelope)" }, "media_access": { "...": "(same as the envelope)" }, "pagination": { "cursor": 0, "cursor_us": "0", "next_cursor": "sc.eyJ2IjoyLCJjIjoiMTc4OTQxNzY1MTAzMDAwMCIsImUiOiJ0aWt0b2svdXNlci9saWtlZCIsInAiOiJjdXJzb3IiLCJzIjpbIjc2ODQ3NTk1NDY0NTUxMzM0NTMiXX0", "next_cursor_us": "1789417651030000", "next_cursor_ms": 1789417651030, "has_more": true, "page": 1, "page_size": 30 }, "total": 6828, "warnings": [], "scraped_at": "2026-09-21T08:33:12.418Z" }, "... 29 more rows (positions 2-30, newest like first) ..." ], "next_cursor": "eyJoIjoiY2hpcG90bGUiLCJpIjoiY2hpcG90bGUiLCJpZCI6eyJhY2MiOnsuLi59LCJtc1Rva2VuIjoiLi4uIiwib2RpbklkIjoiNzY1NzU4MzcwMDU4MjcxMzM1MCIsInR0d2lkIjoiMSU3Qy4uLiIsIndpZCI6Ijc2ODc4MzUwMjk0NTIxNzI2ODYifSwiayI6ImhhbmRsZSIsImxrIjp7fSwicCI6MSwicG9zIjozMCwidCI6InNjLmV5SjJJam95TENKaklqb2lNVGM0T1RReE56WTFNVEF6TURBd01DSXNJbVVpT2lKMGFXdDBiMnN2ZFhObGNpOXNhV3RsWkNJc0luQWlPaUpqZFhKemIzSWlMQ0p6SWpwYklqYzJPRFEzTlRrMU5EWTBOVFV4TXpNME5UTWlYWDAifQ" }}Bad input. The exact message varies by endpoint.
{ "success": false, "error": "…"}Balance below the endpoint’s price.
{ "error": "Insufficient credits. Buy more to scrape more.", "balance": 1, "required": 2}Invalid or unknown API key.
{ "detail": "Authentication service unavailable or invalid API key."}Throttled — wait for Retry-After.
{ "detail": "Request was throttled. Expected available in N seconds."}Sample from the live catalog; arrays trimmed to 3 items. Results are in data.items.
Response fields
Section titled “Response fields”| Field | Type | Example | Description |
|---|---|---|---|
usernames | string | chipotle | — |
username | string | chipotle | — |
user_id | string | 6646487634225135622 | — |
status | string | ok | — |
page | integer | 1 | — |
page_size | integer | 30 | — |
cursor | integer | 0 | — |
cursor_us | string | 0 | — |
next_cursor_us | string | 1789417651030000 | — |
has_more | boolean | true | — |
total | integer | 6828 | — |
repeats_removed | integer | 0 | — |
dropped | integer | 0 | — |
attempts | integer | 1 | — |
elapsed_sec | number | 3.7 | — |
account | object | {…} | — |
media_access | object | {…} | — |
warnings | array | [] | — |
items | array | [2 items] | The results. |
next_cursor | string | eyJoIjoiY2hpcG90bGUiLCJpIjoiY2hpcG90bGUiLCJpZ… | Pass back as cursor for the next page. null on the last page. |
items[].input_username | string | chipotle | — |
items[].input_user_id | null | null | — |
items[].username | string | chipotle | — |
items[].user_id | string | 6646487634225135622 | — |
items[].status | string | ok | — |
items[].error | null | null | — |
items[].position | integer | 1 | — |
items[].page_position | integer | 1 | — |
items[].video_id | string | 7685839095632891166 | — |
items[].url | string | https://www.tiktok.com/@eatswithemmiee/video/… | — |
items[].description | string | @Chipotle tacos🌮🔥✨ Chipotle never misses bu… | — |
items[].content_type | string | video | — |
items[].created_at | string | 2026-09-15T19:01:31.000Z | — |
items[].create_time | integer | 1789498891 | — |
items[].author_username | string | eatswithemmiee | — |
items[].author_id | string | 7456588491607360554 | — |
items[].author_display_name | string | eatswithemmie | — |
items[].play_count | integer | 365400 | — |
items[].like_count | integer | 57200 | — |
items[].comment_count | integer | 158 | — |
items[].share_count | integer | 1742 | — |
items[].save_count | integer | 6296 | — |
items[].repost_count | integer | 0 | — |
items[].duration_seconds | number | 110.393 | — |
items[].thumbnail_url | string | https://p16-common-sign.tiktokcdn.com/... | — |
items[].play_url | string | https://v16-webapp-prime.tiktok.com/video/tos… | — |
items[].download_url | string | https://v16-webapp-prime.tiktok.com/video/tos… | — |
items[].image_urls | array | [] | — |
items[].hashtags | array | [6 items] | — |
items[].mentions | array | [1 item] | — |
items[].music_title | string | original sound | — |
items[].music_author | string | eatswithemmie | — |
items[].region | string | US | — |
items[].text_language | string | en | — |
items[].pinned | boolean | false | — |
items[].enriched | boolean | false | — |
items[].author | object | {…} | — |
items[].post | object | {…} | — |
items[].computed | object | {…} | — |
items[].account | object | {…} | — |
items[].media_access | object | {…} | — |
items[].pagination | object | {…} | — |
items[].total | integer | 6828 | — |
items[].warnings | array | [] | — |
items[].scraped_at | string | 2026-09-21T08:33:12.418Z | — |
Pagination
Section titled “Pagination”Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.
const url = "https://api.scrapier.io/api/v2/tiktok-user-liked/";let params = { usernames: "chipotle" };const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call const res = await fetch(`${url}?${new URLSearchParams(params)}`, { headers: { "X-API-Key": "YOUR_API_KEY" }, signal: AbortSignal.timeout(210_000), }); const body = await res.json(); if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`); const data = body.data; items.push(...(data.items ?? [])); if (!data.next_cursor) break; // null = last page params = { cursor: data.next_cursor };}import requests
URL = "https://api.scrapier.io/api/v2/tiktok-user-liked/"HEADERS = {"X-API-Key": "YOUR_API_KEY"}params = {"usernames": "chipotle"}items = []
for _ in range(10): # each page is one billed call resp = requests.get(URL, headers=HEADERS, params=params, timeout=210) resp.raise_for_status() data = resp.json()["data"] items.extend(data.get("items") or []) if not data.get("next_cursor"): # None = last page break params = {"cursor": data["next_cursor"]}Errors
Section titled “Errors”Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.
| Status | Meaning | Retry? | Charged? |
|---|---|---|---|
400 | Bad or missing input. | No — fix the params | No |
401 / 403 | Missing, invalid or revoked API key. | No — fix the key | No |
402 | Out of credits (body has balance). | No — top up | No |
404 | Unknown endpoint slug. | No — check the slug | No |
429 / 503 | Busy or throttled. | Yes — after Retry-After | No |
5xx | Target site or upstream failure, or timeout. | Yes — with backoff | No |
- Locked into the cursor:
enrich_pages,region. Set them on the first call; later pages reuse them.
Related
Section titled “Related”- TikTok Ad Library Leads — Structured TikTok data: every input is optional. Single lookup, 3 credits per successful call.
- TikTok Ad Library — Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call. - TikTok Ads Top — Structured TikTok data: every input is optional. Cursor-paginated, 1 credit per successful call.
- TikTok Collection Videos — Structured TikTok data: send
urls. Cursor-paginated, 1 credit per successful call.