Refetcher API
One clean HTTP endpoint for real-time Instagram, TikTok, Facebook, X and YouTube data — normalized, pay-as-you-go, and built for developers.
Send a public link or username to one endpoint and get its numbers and details back as JSON. Posts, profiles, comments and channels work the same way on every platform. Start with the quickstart code below.
To scrape a target you provide a Refetch(er) API key plus a public URL, username, profile URL, channel URL, or batch array. Refetch(er) never asks for social account logins, platform cookies, session tokens, proxy settings, regions, or infrastructure URLs. Successful media results return normalized engagement, post, author, and media fields when public. Profile and channel results return normalized public account metadata plus optional lightweight recent media.
When a platform does not expose a field publicly, the API returns null, false, or an explicit engagementAvailability state instead of guessing.
Quickstart code
Send your first request. Replace the key with yours from the dashboard; the Reel below is a real public post you can try as is.
curl -X POST https://api.refetcher.com/ \
-H "X-API-Key: pc_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.instagram.com/reel/Df7khkFoAZq/"
}'
const apiKey = 'pc_live_your_key_here';
async function main() {
const res = await fetch('https://api.refetcher.com/', {
method: 'POST',
headers: { 'X-API-Key': apiKey, 'Content-Type': 'application/json' },
body: JSON.stringify({ url: 'https://www.instagram.com/reel/Df7khkFoAZq/' })
});
const data = await res.json();
// A wrong key (401), an empty balance (402) or a bad request (400) has no results.
if (!data.results) {
console.error(`Request failed (${res.status}):`, data.error?.category, data.error?.message);
return;
}
const result = data.results[0];
if (result.success) {
console.log(`Plays: ${result.engagement.plays}, Views: ${result.engagement.views}, Likes: ${result.engagement.likes}`);
} else {
// For example private_or_removed, or rate_limited if the link failed in the last 3 minutes.
console.error(`Scrape failed (${res.status}):`, result.error.category, result.error.message);
}
}
main().catch(err => console.error('Network error:', err));
import requests
api_key = "pc_live_your_key_here"
response = requests.post(
"https://api.refetcher.com/",
headers={"X-API-Key": api_key, "Content-Type": "application/json"},
json={"url": "https://www.instagram.com/reel/Df7khkFoAZq/"},
timeout=180,
)
data = response.json()
# A wrong key (401), an empty balance (402) or a bad request (400) has no results.
if "results" not in data:
error = data.get("error", {})
print(f"Request failed ({response.status_code}):", error.get("category"), error.get("message"))
else:
result = data["results"][0]
if result["success"]:
print(f"Plays: {result['engagement']['plays']}, Views: {result['engagement']['views']}, Likes: {result['engagement']['likes']}")
else:
# For example private_or_removed, or rate_limited if the link failed in the last 3 minutes.
print(f"Scrape failed ({response.status_code}):", result["error"]["category"], result["error"]["message"])
When something goes wrong
A problem with the whole request, such as a wrong key, comes back with no results and a top-level error:
{
"success": false,
"requestId": "7111c8aa-62de-4e17-b37e-d2bbac09d01b",
"error": {
"category": "unauthorized",
"message": "Missing or invalid API key."
}
}
A link that fails comes back inside results with success: false and an error.category such as private_or_removed. See Responses & errors.
If your tool retries failed requests on its own (n8n, Zapier, Make), turn that off or set the wait to at least 3 minutes. A link that failed can be requested again by the same API key only after 3 minutes; earlier tries return rate_limited, which is free.
Authentication
All scrape and balance requests require an API key generated from your dashboard. Public status and health routes are readable without a key. Pass your key in either of these HTTP headers:
| Header | Value format | Description |
|---|---|---|
X-API-Key | pc_live_... | The preferred header format for custom requests. |
Authorization | Bearer pc_live_... | Alternative standard authentication header. |
Endpoints
Refetch(er) serves all live scrape requests from a single endpoint, accepting POST JSON payloads that determine which platform and resource to fetch.
The route alias POST https://api.refetcher.com/v1/scrape is fully supported for compatibility, but we recommend calling the root path directly.
OpenAPI file: OpenAPI 3.1 specification includes request and response examples for POST /, POST /v1/instagram/search and GET /v1/account/balance. Import it into Postman or n8n, or give it to an AI tool.
GET / and GET /status return the public API status page. GET /health returns a lightweight JSON health response.
Check account balance
Use your existing API key to read the amount currently available for new API requests. This endpoint is read-only: it does not run a scrape, create a request log, reserve credits, or add a billing transaction.
curl https://api.refetcher.com/v1/account/balance \
-H "Authorization: Bearer pc_live_xxx"
Successful response
{
"success": true,
"requestId": "balance-request-id",
"balance": {
"currency": "USD",
"balanceUsd": 9.9991,
"ledgerBalanceUsd": 10,
"pendingUsageUsd": 0.0009,
"reservedBalanceUsd": 0,
"unitPriceUsd": 0.0009,
"maxBillableUnits": 11110,
"asOf": "2026-08-11T18:00:00.000Z"
}
}
| Field | Meaning |
|---|---|
balanceUsd | The balance currently available to new API requests, after in-flight and queued usage is accounted for. |
ledgerBalanceUsd | The durable balance after completed settlements. It can briefly be higher while a successful request is settling. |
pendingUsageUsd | Credits already unavailable to new requests but not yet reflected in the durable ledger. |
reservedBalanceUsd | Credits held by active durable reservations. |
unitPriceUsd | The current price of one successful billable unit. |
maxBillableUnits | How many successful units the current balance can fund. Your separate per-request target limit still applies. |
asOf | The time at which the snapshot was calculated. |
RateLimit-Limit, RateLimit-Remaining, and RateLimit-Reset. A 429 response also includes Retry-After. Balance responses are never cached.Supported resources
Every resource uses the same endpoint. The API detects a platform from a full url or profileUrl. For a bare Instagram, TikTok, Facebook, or X username, you must include platform; handles alone are ambiguous across networks.
Instagram Post/Reel
Metrics, caption, hashtags, dimensions, duration, thumbnails, and public media source URLs for posts and reels.
Instagram Profile
Public profile details plus its latest posts with available engagement counts and cursor pagination.
Instagram Comments
Public top-level comments on a post or Reel, with likes, reply counts, authors and cursor pagination.
Instagram Search
Popular posts, Reels, hashtag posts, photo posts, profiles or mixed results for a keyword, with cursor pagination for posts.
TikTok Video/Carousel
Exact views, likes, comments, shares and saves for videos and carousels, plus the creator, media links and sound.
TikTok Profile
Public creator details plus its latest posts with available engagement counts, and cursor pagination.
TikTok Comments & Replies
Full public comment text, likes, reply counts and authors, with separate cursors for comments and replies.
Facebook Post/Reel
Plays, views, reactions, comments and shares for Reels and videos, plus photos and carousels.
Facebook Profile
Page or person details, followers and links to their latest posts, with cursor pagination.
X Post
Views, likes, retweets, replies, and tweet media attachments for public X posts.
X Profile
Public profile metadata including followers, following, and tweet counts.
YouTube Video
Views, likes, comments, video metadata, and optional newest public top-level comments for videos or Shorts.
YouTube Channel
Subscribers, total views, video count, thumbnails, and optional links-only recent uploads. Use channelVideos for upload metrics.
YouTube Comments & Replies
Full public comment text, likes, reply counts and authors for videos and Shorts, in Top or Newest order, with separate cursors for comments and replies.
YouTube Search
Videos, Shorts, channels and playlists for a keyword, inside one channel or under a hashtag, plus YouTube's search suggestions, with cursor pagination.
channelVideos resource includes per-video upload metrics. Facebook can still stop a timeline read early; check pageInfo.recentPosts.incomplete and limitations before treating a requested window as complete.Request fields
Every request needs one target field, marked one of: a link, a username with platform, a profile link or a YouTube channel. Comments and YouTube channels need type, and replies also need commentId. Everything else is optional. Send an array instead of a single value for a batch.
Smallest working request
| What you want | Send |
|---|---|
| A post, Reel or video (any platform) | {"url": "https://www.instagram.com/reel/Df7khkFoAZq/"} |
| A profile by username | {"platform": "instagram", "username": "nasa"} |
| A profile by link | {"profileUrl": "https://www.tiktok.com/@nasa"} |
| Instagram comments | {"type": "instagramComments", "url": "…"} |
| TikTok comments / replies | {"type": "tiktokComments", "url": "…"} / add "type": "tiktokCommentReplies" and "commentId" |
| YouTube comments / replies | {"type": "youtubeComments", "url": "…"} / add "type": "youtubeCommentReplies" and "commentId" |
| A YouTube channel / its videos | {"type": "channel", "url": "https://www.youtube.com/@NASA"} / "type": "channelVideos" |
All fields
| Field | Type | Default | Description |
|---|---|---|---|
urlone of | string | null | URL of a single Instagram post/profile, TikTok video/profile, Facebook post/profile, YouTube video, or YouTube channel. Provide one target field. |
urlsone of | string[] | [] | Links to scrape in one request, up to 10. To raise it, contact support. Your account's limit applies to every API key. |
typesometimes | string | null | Use "instagramComments" for Instagram comments, "instagramSearch" for Instagram search (see Search), "youtubeSearch" for YouTube search (see Search), "tiktokComments" for TikTok comments, "tiktokCommentReplies" for replies to one TikTok comment, "youtubeComments" for YouTube comments, "youtubeCommentReplies" for replies to one YouTube comment, "channel" for YouTube channel profile data or "channelVideos" for latest uploads. Video/post metrics are inferred from the URL by default. |
platformwith username | string | null | Required with username or usernames: "instagram", "facebook", "tiktok", "x", or "twitter". A full URL already identifies its platform. |
usernameone of | string | null | Instagram, TikTok, Facebook, or X username for a profile scrape. Requires platform to prevent an ambiguous handle from scraping the wrong network. |
usernamesone of | string[] | [] | Usernames for batch profile scraping. Requires platform; one platform applies to the batch. |
profileUrlone of | string | null | Instagram, TikTok, Facebook, or X profile URL for a single profile scrape. |
profileUrlsone of | string[] | [] | Profile URLs for batch profile scraping. |
channelUrlone of | string | null | YouTube channel URL, @handle, legacy /user/ URL, or /channel/ ID URL. |
channelUrlsone of | string[] | [] | Batch YouTube channel targets. |
channelIdone of | string | null | Raw YouTube channel ID such as UC.... |
handleone of | string | null | YouTube @handle when platform is "youtube" or type is "channel"/"channelVideos". |
includeRecentPostsopt | boolean | Instagram, TikTok and Facebook: true. X: false unless continuing. | Include recent public posts when scraping a profile. Instagram and TikTok include posts by default, including requests with after; send false for profile details only. X also defaults to true when a continuation cursor is provided; explicitly setting false with an X cursor returns HTTP 400. Facebook includes recent post links by default. Send false without a cursor for profile details only. X profile posts can contain exposed per-post fields. |
sortopt | string | X profiles: "latest"; TikTok and YouTube comments: "relevant" | X profile feeds: "latest" for genuinely newest-first posts or "popular" for X's popularity-ranked public selection. TikTok comments and replies: "relevant" keeps TikTok's order; "latest" and "likes" sort only the comments returned in that request. See TikTok comments. YouTube comments: "relevant" for YouTube's Top comments or "latest" for Newest first; replies accept "relevant" only. See YouTube comments. |
recentPostsLimitopt | integer | 12 / 5 for X / 3 for Facebook | Compatibility alias for profile pagination. It maps to the platform page size: ceil(limit / 12) for Instagram and TikTok; ceil(limit / 5) for X; ceil(limit / 3) for Facebook. Use pages for new integrations. |
pagesopt | integer | 1 | Instagram, TikTok, Facebook, and X profiles, and YouTube channel uploads. Number of recent-media pages to request, 1–25. YouTube returns up to 12 uploads per page, up to 300 per request; pages can be combined with a continuation cursor. Instagram and TikTok return up to 12 references per page; X returns up to 5 posts per page for both latest and popular, and pages can be combined with after; Facebook returns up to 3 post links per page, up to 75 links across 25 pages. Each returned page counts as one successful scrape at the standard $0.90 per 1,000; failed pages are free. A successful Facebook profile lookup costs at least one unit, including a verified empty feed. See each platform’s billing rules for empty results. Instagram comments use 14 comments per page; TikTok and YouTube comments and replies use up to 20. See each platform's comments section for its page and empty-result billing rules. A request can ask for up to 50 pages in total, across all its links. |
afteropt | string | null | Facebook, Instagram, TikTok and X profiles, Instagram comments and search, YouTube search, and YouTube channel uploads. Use pageInfo.recentPosts.endCursor for social profiles or pageInfo.endCursor for Instagram comments, Instagram search and YouTube. TikTok and YouTube comments and replies also support after, using pageInfo.endCursor; a YouTube comment's replyCursor can start its reply thread. Send one target with a cursor; cursor and endCursor are accepted aliases. TikTok comment cursors expire after 24 hours and require the same post and, for replies, the same commentId. X cursors expire after 24 hours and require the same profile, sort, and includeRetweets setting. Instagram search cursors expire after 24 hours and require the same API key, searchType, query and mediaType. YouTube search cursors expire after 24 hours and require the same account, searchType, query, handle, filters and includeExtras. You can change limit between pages. |
commentIdfor replies | string | null | Required with type: "tiktokCommentReplies": the parent comment's numeric ID as a string. Replies accept exactly one post. Omit it for type: "tiktokComments". Also required with type: "youtubeCommentReplies": the top-level YouTube comment's id. |
includeRecentCommentsopt | boolean | false | When scraping a YouTube video, include newest public top-level comments. For paging, sorting and replies, use type: "youtubeComments". |
recentCommentsLimitopt | integer | 20 | Max YouTube comments to request. Range 1–100. |
includeRecentVideosopt | boolean | true for type:"channel" | When scraping a YouTube channel profile, include latest uploads as links-only references. Use type:"channelVideos" for per-video metrics. |
recentVideosLimitopt | integer | 12 | Exact YouTube upload count, from 1–300. Takes precedence over pages when both are sent; use pages for page-based requests. |
Normalized profile schema
Instagram, TikTok, Facebook, and X profile results share one normalized profile object. Fields a platform does not expose return null or false. Each platform page lists its own additions on top of this core.
idhandlenamebiographyfollowersfollowingtotalPoststotalVideostotalLikestalkingAboutwereHerehighlightReelCountisPrivateisVerifiedisBusinessAccountisProfessionalAccountcategoryNameexternalUrlprofilePicUrlprofilePicUrlHd
Batch scrape
Query multiple targets concurrently in one call by passing an array under urls, profileUrls, or a compatible URL field.
Across Instagram, TikTok, YouTube, X, and Facebook, an invalid or unsupported link returns its own bad_url error in results. The other links continue. Invalid items cost nothing and do not reserve balance. The account batch limit applies before invalid targets are excluded; a batch over that limit is rejected with 400 before any targets run.
For Instagram, TikTok, Facebook, and X, invalid entries in username or usernames also return their own bad_url results instead of being skipped. This includes blank entries and non-string entries in a username array. Each invalid result identifies its platform and type: "profile"; its url holds the submitted username with surrounding whitespace removed, or null for a non-string entry. Valid entries use canonical profile URLs. Results follow target order after normalization; equivalent valid targets may be combined, while invalid username entries keep separate results.
{
"urls": [
"https://www.instagram.com/reel/C8xExampleAbc/",
"https://www.tiktok.com/@creator/video/7398210000000000000",
"https://www.facebook.com/reel/2781078362247521/",
"https://x.com/SpaceX/status/2064099405758906727",
"https://www.youtube.com/watch?v=8jPQjjsBbIc"
]
}
null and availability set to "not_applicable".Limits
| Limit | Value |
|---|---|
| Links per request | 10. To raise it, contact support. Your account's limit applies to every API key. |
| Pages per request | 1–25 per link, for profiles, YouTube channel uploads and comments, and up to 50 in total across all the links in a request. A request over 50 fails with 400 and costs nothing. |
| Items per page | Instagram and TikTok profiles: 12 posts. X: 5. Facebook: 3 post links. YouTube uploads: 12. Instagram comments: 14. TikTok and YouTube comments: up to 20. |
| Retrying a failed link | The same API key can request a link that failed again after 3 minutes. Earlier tries return rate_limited, which is free. |
| Cursors | Expire after 24 hours. |
| Balance checks | 60 per minute per API key. |
| Timeout | Most requests finish in seconds. Set your HTTP client timeout to 180 seconds so slower ones can finish. |
Scrape public Instagram posts, Reels, and profiles, and search Instagram by keyword, hashtag or username. Post and Reel requests return normalized engagement, post, author, and a media object; profile requests return the account's details and its latest posts, with cursor pagination.
Post & Reel
Send the link to one public Instagram post or Reel as url, or several links as urls. The response returns its counts in engagement, post details in post, the account in author, and media links and video details in media.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | url or urls | Link to one public Instagram post or Reel. |
urls | string[] | url or urls | Several links in one request. See Batches below. |
Batches
Send up to 10 links at once in urls.
- Results come back in the same order as your links. Each link is fetched on its own, so one failed post doesn't affect the others. If you send the same link twice, it comes back once.
- If a link isn't a valid Instagram post link, that item returns
bad_urland costs nothing. The other links continue. A batch over your account limit is rejected with400before any posts are fetched or charged. - You only pay for posts that succeed. Your balance needs to cover the valid links in the batch when you send it.
Need more than 10 links per request? Contact us and we'll raise your limit.
Accepted links
/reel//reels//p//tv//share/instagr.amExample
The API wraps every post in a results array (see Response envelope). The examples below show one item of that array. Post & Reel fields explains every field.
{
"url": "https://www.instagram.com/reel/C8xExampleAbc/"
}
{
"urls": [
"https://www.instagram.com/reel/C8xExampleAbc/",
"https://www.instagram.com/p/C9aExamplePho/",
"https://www.instagram.com/p/C7zExampleCar/"
]
}
{
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"platform": "instagram",
"success": true,
"engagement": {
"plays": 1284203,
"views": 512340,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null
},
"metrics": {
"plays": 1284203,
"views": 1284203,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "available",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "not_applicable",
"saves": "not_applicable"
},
"metricAvailability": {
"plays": "available",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "not_applicable",
"saves": "not_applicable"
},
"post": {
"id": "3412345678901234567_123456789",
"shortcode": "C8xExampleAbc",
"normalizedUrl": "https://www.instagram.com/reel/C8xExampleAbc/",
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher #api",
"type": "video",
"productType": "clips",
"hashtags": ["refetcher", "api"],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": false
},
"author": {
"id": "123456789",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null,
"bio": null,
"isVerified": false,
"profilePicUrl": "https://scontent.cdninstagram.com/..."
},
"media": {
"thumbnailUrl": "https://scontent.cdninstagram.com/...",
"videoUrl": "https://scontent.cdninstagram.com/...",
"audioUrl": null,
"durationSeconds": 21.4,
"width": 1080,
"height": 1920,
"playCount": 1284203,
"viewCount": 512340,
"likeAndViewCountsDisabled": null,
"viewCountUnavailableReason": null,
"altText": null,
"music": {
"id": "987654321",
"title": "Original audio",
"artist": "creators_hub",
"isOriginalAudio": true
},
"children": []
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
{
"url": "https://www.instagram.com/p/C9aExamplePho/",
"platform": "instagram",
"success": true,
"engagement": {
"plays": null,
"views": null,
"likes": 804518,
"comments": 3233,
"shares": null,
"saves": null
},
"metrics": {
"plays": null,
"views": null,
"likes": 804518,
"comments": 3233,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "not_applicable",
"likes": "available",
"comments": "available",
"shares": "unavailable",
"saves": "unavailable"
},
"metricAvailability": {
"plays": "not_applicable",
"views": "not_applicable",
"likes": "available",
"comments": "available",
"shares": "unavailable",
"saves": "unavailable"
},
"post": {
"id": "3410736019820295430_123456789",
"shortcode": "C9aExamplePho",
"normalizedUrl": "https://www.instagram.com/p/C9aExamplePho/",
"publishedAt": "2026-06-02T16:04:24.000Z",
"caption": "Golden hour from the studio roof #sunset",
"type": "image",
"productType": "feed",
"hashtags": ["sunset"],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": false
},
"author": {
"id": "123456789",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null,
"bio": null,
"isVerified": false,
"profilePicUrl": "https://scontent.cdninstagram.com/..."
},
"media": {
"thumbnailUrl": "https://scontent.cdninstagram.com/...",
"videoUrl": null,
"audioUrl": null,
"durationSeconds": null,
"width": 1440,
"height": 1800,
"playCount": null,
"viewCount": null,
"likeAndViewCountsDisabled": null,
"viewCountUnavailableReason": null,
"altText": null,
"music": null,
"children": []
},
"scrapedAt": "2026-06-02T18:11:07.000Z"
}
{
"url": "https://www.instagram.com/p/C7zExampleCar/",
"platform": "instagram",
"success": true,
"engagement": {
"plays": null,
"views": null,
"likes": 23252,
"comments": 355,
"shares": null,
"saves": null
},
"metrics": {
"plays": null,
"views": null,
"likes": 23252,
"comments": 355,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "not_applicable",
"likes": "available",
"comments": "available",
"shares": "unavailable",
"saves": "unavailable"
},
"metricAvailability": {
"plays": "not_applicable",
"views": "not_applicable",
"likes": "available",
"comments": "available",
"shares": "unavailable",
"saves": "unavailable"
},
"post": {
"id": "3398765432109876543_123456789",
"shortcode": "C7zExampleCar",
"normalizedUrl": "https://www.instagram.com/p/C7zExampleCar/",
"publishedAt": "2026-06-08T11:53:04.000Z",
"caption": "Three moments from launch day",
"type": "carousel",
"productType": "carousel_container",
"hashtags": [],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": false
},
"author": {
"id": "123456789",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null,
"bio": null,
"isVerified": false,
"profilePicUrl": "https://scontent.cdninstagram.com/..."
},
"media": {
"thumbnailUrl": "https://scontent.cdninstagram.com/...",
"videoUrl": null,
"audioUrl": null,
"durationSeconds": null,
"width": 1080,
"height": 1350,
"playCount": null,
"viewCount": null,
"likeAndViewCountsDisabled": null,
"viewCountUnavailableReason": null,
"altText": null,
"music": null,
"children": [
{
"id": "3398765301234567890_123456789",
"shortcode": "C7zExampleS1",
"type": "image",
"thumbnailUrl": "https://scontent.cdninstagram.com/...",
"videoUrl": null,
"width": 1080,
"height": 1350
},
{
"id": "3398765301234567891_123456789",
"shortcode": "C7zExampleS2",
"type": "video",
"thumbnailUrl": "https://scontent.cdninstagram.com/...",
"videoUrl": "https://scontent.cdninstagram.com/...",
"width": 1080,
"height": 1350
}
]
},
"scrapedAt": "2026-06-08T12:20:41.000Z"
}
Response time
Every result is fetched live from Instagram the moment you ask for it. A Reel usually comes back in 1–2 seconds, though some harder ones can take up to a minute.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each post or Reel that comes back is one success, and failed posts are never charged.
Post & Reel fields
Pick a post type to see every field it returns. Every successful response contains all of these fields; when Instagram doesn't provide a value, the field is null.
Also covers video posts sent as /p/ or /tv/ links.
Result
urlstringThe link you sent, unchanged.
platformstringAlways "instagram".
successbooleantrue when we read the plays, likes, comments and views. Views can be null if they aren't public. A failed post returns false with an error object.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
Counts engagement
engagement.plays number · nullPlay count.
engagement.views number · nullInstagram's second count for the video, usually lower than plays. null only when Instagram doesn't make it public for this post.
engagement.likes numberLike count.
engagement.comments numberComment count.
engagement.shares engagement.saves nullInstagram doesn't make these public. Always null.
engagementAvailabilityobjectSays whether each count was returned: "available" (returned), "unavailable" (Instagram hides it) or "not_applicable" (this post type doesn't have it). On Reels, shares and saves show "not_applicable".
Post post
post.id stringInstagram's post ID and account ID joined by _, for example 3412345678901234567_123456789.
post.shortcode stringThe code in the post link, for example C8xExampleAbc.
post.normalizedUrl stringClean link to the post. Always uses /reel/.
post.publishedAt string · nullWhen the post was published (UTC, ISO 8601).
post.caption string · nullFull caption text.
post.type stringWhat kind of post it is. Always "video" for Reels and videos.
post.productType stringInstagram's own name for the format, usually "clips" for Reels.
post.hashtags string[]Hashtags in the caption, without #. Empty if there are none.
post.mentions string[]Accounts tagged with @ in the caption, without the @. Empty if there are none.
post.location object · nullTagged place, with id and name.
post.isSponsored boolean · nulltrue when the post is marked as a paid partnership.
post.isPinned boolean · nulltrue when the post is pinned on the profile. Often null.
post.commentsDisabled boolean · nulltrue when comments are turned off. Often null.
post.region post.language nullAlways null on Instagram. Kept so every platform returns the same shape.
Account author
author.id stringInstagram's numeric ID for the account.
author.handle stringUsername, without @.
author.name string · nullThe account's display name.
author.isVerified boolean · nulltrue when the account has the verified badge.
author.profilePicUrl string · nullLink to the profile photo.
author.followers nullNot included in post results. Use a profile request for follower counts.
author.following author.totalLikes author.videoCount nullAlways null on Instagram. Kept so every platform returns the same shape.
Media media
media.viewCountUnavailableReason string · null"not_publicly_available" when views are missing and Instagram explicitly indicates they are not public. Otherwise null.
media.likeAndViewCountsDisabled boolean · nulltrue when Instagram reports that the creator has hidden like and view counts on this post, false when it reports they are not hidden, and null when the setting was not returned.
media.thumbnailUrl string · nullLink to the video's cover image.
media.videoUrl string · nullLink to the video file.
media.durationSeconds number · nullVideo length in seconds.
media.width media.height number · nullSize in pixels. Can be null.
media.music object · nullAudio used, when Instagram shows it: id, title, artist and isOriginalAudio.
media.children arrayEmpty for Reels and videos.
media.audioUrl media.altText string · nullUsually null.
Older names, still sent
metrics metricAvailabilityobjectThe same counts under their older names. metrics.views holds the play count, the same as engagement.plays.
media.playCount media.viewCount number · nullSame as engagement.plays and engagement.views.
A post with a single image.
Result
urlstringThe link you sent, unchanged.
platformstringAlways "instagram".
successbooleantrue when we read the likes and comments. A failed post returns false with an error object instead of these fields.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
Counts engagement
engagement.plays engagement.views number · nullNot applicable. Always null.
engagement.likes numberLike count.
engagement.comments numberComment count.
engagement.shares engagement.saves nullInstagram doesn't make these public. Always null.
engagementAvailabilityobjectSays whether each count above was returned: "available" (returned), "unavailable" (Instagram hides it) or "not_applicable" (this post type doesn't have it). On photos, plays show "not_applicable" and shares and saves show "unavailable".
Post post
post.id stringInstagram's post ID and account ID joined by _, for example 3398765432109876543_123456789.
post.shortcode stringThe code in the post link, for example C8xExampleAbc.
post.normalizedUrl stringClean link to the post, using /p/.
post.publishedAt string · nullWhen the post was published (UTC, ISO 8601).
post.caption string · nullFull caption text.
post.type stringWhat kind of post it is. Always "image" for a single photo.
post.productType stringInstagram's own name for the format, usually "feed" for photos.
post.hashtags string[]Hashtags in the caption, without #. Empty if there are none.
post.mentions string[]Accounts tagged with @ in the caption, without the @. Empty if there are none.
post.location object · nullTagged place, with id and name.
post.isSponsored boolean · nulltrue when the post is marked as a paid partnership.
post.isPinned boolean · nulltrue when the post is pinned on the profile. Often null.
post.commentsDisabled boolean · nulltrue when comments are turned off. Often null.
post.region post.language nullAlways null on Instagram. Kept so every platform returns the same shape.
Account author
author.id stringInstagram's numeric ID for the account.
author.handle stringUsername, without @.
author.name string · nullThe account's display name.
author.isVerified boolean · nulltrue when the account has the verified badge.
author.profilePicUrl string · nullLink to the profile photo.
author.followers nullNot included in post results. Use a profile request for follower counts.
author.following author.totalLikes author.videoCount nullAlways null on Instagram. Kept so every platform returns the same shape.
Media media
media.viewCountUnavailableReason string · nullAlways null for this post type. Only used for Reels and videos.
media.likeAndViewCountsDisabled boolean · nulltrue when Instagram reports that the creator has hidden like and view counts on this post, false when it reports they are not hidden, and null when the setting was not returned.
media.thumbnailUrl string · nullLink to the image.
media.videoUrl string · nullNot applicable. Always null.
media.durationSeconds number · nullNot applicable. Always null.
media.width media.height number · nullSize in pixels.
media.music object · nullAudio used, when Instagram shows it: id, title, artist and isOriginalAudio.
media.children arrayEmpty for photos.
media.audioUrl media.altText string · nullUsually null.
Older names, still sent
metrics metricAvailabilityobjectThe same counts under their older names. metrics.views holds the play count, the same as engagement.plays.
media.playCount media.viewCount number · nullSame as engagement.plays and engagement.views. Always null for this post type.
Several photos or videos in one post.
Result
urlstringThe link you sent, unchanged.
platformstringAlways "instagram".
successbooleantrue when we read the likes and comments. A failed post returns false with an error object instead of these fields.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
Counts engagement
engagement.plays engagement.views number · nullNot applicable. Always null.
engagement.likes numberLike count.
engagement.comments numberComment count.
engagement.shares engagement.saves nullInstagram doesn't make these public. Always null.
engagementAvailabilityobjectSays whether each count above was returned: "available" (returned), "unavailable" (Instagram hides it) or "not_applicable" (this post type doesn't have it). On carousels, plays show "not_applicable" and shares and saves show "unavailable".
Post post
post.id stringInstagram's post ID and account ID joined by _, for example 3398765432109876543_123456789.
post.shortcode stringThe code in the post link, for example C8xExampleAbc.
post.normalizedUrl stringClean link to the post, using /p/.
post.publishedAt string · nullWhen the post was published (UTC, ISO 8601).
post.caption string · nullFull caption text.
post.type stringWhat kind of post it is. Always "carousel" for a post with several photos or videos.
post.productType stringInstagram's own name for the format, "carousel_container" for carousels.
post.hashtags string[]Hashtags in the caption, without #. Empty if there are none.
post.mentions string[]Accounts tagged with @ in the caption, without the @. Empty if there are none.
post.location object · nullTagged place, with id and name.
post.isSponsored boolean · nulltrue when the post is marked as a paid partnership.
post.isPinned boolean · nulltrue when the post is pinned on the profile. Often null.
post.commentsDisabled boolean · nulltrue when comments are turned off. Often null.
post.region post.language nullAlways null on Instagram. Kept so every platform returns the same shape.
Account author
author.id stringInstagram's numeric ID for the account.
author.handle stringUsername, without @.
author.name string · nullThe account's display name.
author.isVerified boolean · nulltrue when the account has the verified badge.
author.profilePicUrl string · nullLink to the profile photo.
author.followers nullNot included in post results. Use a profile request for follower counts.
author.following author.totalLikes author.videoCount nullAlways null on Instagram. Kept so every platform returns the same shape.
Media media
media.viewCountUnavailableReason string · nullAlways null for this post type. Only used for Reels and videos.
media.likeAndViewCountsDisabled boolean · nulltrue when Instagram reports that the creator has hidden like and view counts on this post, false when it reports they are not hidden, and null when the setting was not returned.
media.thumbnailUrl string · nullLink to the carousel's cover image.
media.videoUrl string · nullAlways null here. Video links are on each slide in media.children.
media.durationSeconds number · nullNot applicable. Always null.
media.width media.height number · nullSize of the cover image in pixels.
media.music object · nullAudio used, when Instagram shows it: id, title, artist and isOriginalAudio.
media.children arrayOne entry per slide, each with id, shortcode, type, thumbnailUrl, videoUrl (video slides only), width and height.
media.audioUrl media.altText string · nullUsually null.
Older names, still sent
metrics metricAvailabilityobjectThe same counts under their older names. metrics.views holds the play count, the same as engagement.plays.
media.playCount media.viewCount number · nullSame as engagement.plays and engagement.views. Always null for this post type.
Good to know
- Use
post.typeto tell posts apart, not the link: a/reel/link can point to a photo, and a/p/link can point to a video. - Reels and videos have two counts: plays and views. Views is usually the lower of the two, and both are required for a successful result.
- The one exception: when Instagram doesn't make the view count public for a post, the post still succeeds with
engagement.views: nullandmedia.viewCountUnavailableReason: "not_publicly_available". - Media links (images, videos and profile photos) point to Instagram's servers and expire after a while. If you need to keep a file, download it.
Example: views not public
{
"engagement": { "plays": 1284203, "views": null },
"engagementAvailability": { "plays": "available", "views": "unavailable" },
"media": {
"likeAndViewCountsDisabled": true,
"viewCountUnavailableReason": "not_publicly_available"
}
}
Why counts can differ from the Instagram app
- We read the counts Instagram shows to visitors who aren't logged in. The app can show different numbers to a logged-in account.
- When a Reel is also shared to Facebook, the app can show Instagram and Facebook views added together. We return the Instagram counts only.
- Counts keep changing. Each response is a snapshot taken at
scrapedAt.
Post & Reel errors
A failed post returns success: false with an error object, and it is never charged.
{
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"platform": "instagram",
"success": false,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable."
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
{
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"platform": "instagram",
"success": false,
"error": {
"category": "rate_limited",
"message": "This Instagram URL failed recently. Please wait before retrying it."
},
"scrapedAt": "2026-06-05T10:18:12.000Z",
"statusCode": 429,
"retryAfterSeconds": 142
}
error.category tells you what happened. The HTTP status applies when the request has one link; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The post is private, deleted, or not shown to visitors who aren't logged in. | Don't retry right away. The owner can change their settings and make the post public again, so check back after 6–12 hours. |
minimum_ | 502 | The account limits who can see its posts by age or by country, so Instagram doesn't show them to logged-out visitors. | Don't retry. The result won't change. |
missing_ | 502 | We reached the post, but Instagram didn't return every count a complete result needs: likes and comments, plus plays and views for Reels and videos. A view count confirmed as not public is the only exception. | Retry after 3 minutes. |
rate_ | 429 | This link failed for your API key in the last 3 minutes, or the same link is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the post from Instagram. | Retry after 3 minutes. |
bad_ | 400 | This link is invalid or isn't a supported post link. Story and highlight links aren't supported. The error appears on this item in results; other links continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, or the batch is over your account limit. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
Retrying the same link
Failed posts are free, so to prevent repeated free retries, your API key can request a link that just failed again only after 3 minutes. Earlier requests for that link return rate_limited (also free) with the wait time in retryAfterSeconds. Other links in the same request run normally.
See all error categories and HTTP status codes.
Profile
Send a username or profile link to get the account's details and its latest Posts feed. Posts are included by default, including when you send an after cursor. Set includeRecentPosts: false for profile details only.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
username | string | One of these | Instagram username, without @. Send it with "platform": "instagram". |
profileUrl | string | One of these | Link to the profile. url works too. |
usernames | string[] | One of these | Several usernames in one request, with "platform": "instagram". Invalid entries return individual bad_url results; other profiles continue. profileUrls takes several links. |
pages | integer | No | How many pages of posts to return, from 1 to 25. Each page has up to 12 posts. Default 1. |
after | string | No | The endCursor from a previous response, to get the next page. cursor and endCursor work too. |
includeRecentPosts | boolean | No | Defaults to true. Set false for profile details without posts; do not combine it with after. |
Pages and continuation
- Ask for up to 25 pages in one request with
pages. - To continue later, send
pageInfo.recentPosts.endCursorfrom your last response asafter. A cursor works for one profile per request and expires after 24 hours. - When there is no usable continuation,
hasNextPageisfalseandendCursorisnull; this does not describe the account's full historical post count. - The profile's pinned posts (up to 3) come first. After them, posts are newest first.
Example
The response example is shortened to two posts. Profile fields explains every field.
{
"platform": "instagram",
"username": "creators_hub"
}
{
"profileUrl": "https://www.instagram.com/creators_hub/"
}
{
"platform": "instagram",
"username": "creators_hub",
"pages": 3
}
{
"platform": "instagram",
"username": "creators_hub",
"after": "instagram:profile:v1:eyJ..."
}
{
"url": "https://www.instagram.com/creators_hub/",
"platform": "instagram",
"type": "profile",
"success": true,
"profile": {
"id": "123456789",
"handle": "creators_hub",
"name": "Creators Hub",
"biography": "Tips and tools for creators.",
"followers": 94200,
"following": 310,
"totalPosts": 842,
"totalVideos": null,
"totalLikes": null,
"talkingAbout": null,
"wereHere": null,
"highlightReelCount": null,
"isPrivate": false,
"isVerified": false,
"isBusinessAccount": false,
"isProfessionalAccount": null,
"categoryName": null,
"externalUrl": "https://example.com",
"bioLinks": [
{
"url": "https://example.com",
"title": "Our website",
"linkType": "external",
"isPinned": false,
"id": null
}
],
"profilePicUrl": "https://scontent.cdninstagram.com/...",
"profilePicUrlHd": "https://scontent.cdninstagram.com/..."
},
"recentPosts": [
{
"id": "3412345678901234567",
"shortcode": "C8xExampleAbc",
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"type": "video",
"isVideo": true,
"engagement": {
"plays": 1284203,
"views": null,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null
},
"plays": 1284203,
"views": 1284203,
"playCount": 1284203,
"viewCount": null,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null,
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes #refetcher #api",
"displayUrl": "https://scontent.cdninstagram.com/...",
"dimensions": {
"width": 1080,
"height": 1920
}
},
{
"id": "3398765432109876543",
"shortcode": "C7zExamplePho",
"url": "https://www.instagram.com/p/C7zExamplePho/",
"type": "image",
"isVideo": false,
"engagement": {
"plays": null,
"views": null,
"likes": 23252,
"comments": 355,
"shares": null,
"saves": null
},
"plays": null,
"views": null,
"playCount": null,
"viewCount": null,
"likes": 23252,
"comments": 355,
"shares": null,
"saves": null,
"publishedAt": "2026-06-03T11:53:04.000Z",
"caption": "Studio tour, part two",
"displayUrl": "https://scontent.cdninstagram.com/...",
"dimensions": {
"width": 1080,
"height": 1350
}
}
],
"recentVideos": [
{
"id": "3412345678901234567",
"shortcode": "C8xExampleAbc",
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"type": "video",
"isVideo": true,
"engagement": {
"plays": 1284203,
"views": null,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null
},
"plays": 1284203,
"views": 1284203,
"playCount": 1284203,
"viewCount": null,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null,
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes #refetcher #api",
"displayUrl": "https://scontent.cdninstagram.com/...",
"dimensions": {
"width": 1080,
"height": 1920
}
}
],
"pageInfo": {
"recentPosts": {
"hasNextPage": true,
"endCursor": "instagram:profile:v1:eyJ...",
"requestedLimit": 12,
"returnedCount": 12,
"pagesRequested": 1,
"pagesFetched": 1,
"incomplete": false
},
"recentVideos": {
"hasNextPage": true,
"endCursor": "instagram:profile:v1:eyJ...",
"requestedLimit": 12,
"returnedCount": 4,
"pagesRequested": 1,
"pagesFetched": 1,
"incomplete": false
}
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Cost
$0.90 per 1,000 successes. Each page of posts is one success, and the profile details come free with the first page. Asking for the profile only (includeRecentPosts: false) is one success.
Profile fields
Pick a tab to see every field a profile request returns. When Instagram does not provide a value, the field is null. A null count is unknown, not zero; a null account flag is unknown, not false. totalVideos, highlightReelCount and isProfessionalAccount may be unavailable. Comments and publication times can also be null on returned posts.
The account itself, in profile.
Result
urlstringClean link to the profile.
platformstringAlways "instagram".
typestringAlways "profile".
successbooleantrue when the profile was read. A failed request returns false with an error object instead of these fields.
scrapedAtstringWhen we read the profile (UTC, ISO 8601).
limitationsstring[]Only present when something needs your attention. "Profile has fewer posts than requested." means the account has fewer posts than the pages you asked for.
Account profile
profile.id stringInstagram's numeric ID for the account.
profile.handle stringUsername, without @.
profile.name string · nullThe account's display name.
profile.biography string · nullThe profile bio.
profile.followers numberFollower count.
profile.following numberHow many accounts it follows.
profile.totalPosts number · nullHow many posts the account has, or null when unavailable.
profile.highlightReelCount number · nullHow many story highlights the profile shows, or null when unavailable.
profile.isPrivate booleantrue for private accounts. They return no posts.
profile.isVerified boolean · nulltrue when the account has the verified badge.
profile.isBusinessAccount boolean · nulltrue for business accounts, false when confirmed otherwise, and null when unavailable.
profile.isProfessionalAccount boolean · nulltrue for creator and business accounts, false when confirmed otherwise, and null when unavailable.
profile.externalUrl string · nullThe link in the bio.
profile.bioLinks object[] · nullEvery link in the bio, up to 10, each with url and, when shown, title, linkType, isPinned and id. [] when the bio has no links.
profile.profilePicUrl profile.profilePicUrlHd string · nullProfile photo link, and a larger version when Instagram provides one.
profile.categoryName string · nullThe category shown on the profile. Often null.
profile.totalVideos number · nullUsually null.
profile.totalLikes profile.talkingAbout profile.wereHere nullAlways null on Instagram. Kept so every platform returns the same shape.
Each item in recentPosts. recentVideos holds just the video posts from the same list.
Post recentPosts[]
idstringInstagram's ID for the post.
shortcodestringThe code in the post link.
urlstringLink to the post. Videos use /reel/.
typestring"video", "image" or "carousel".
isVideobooleantrue for Reels and videos.
engagementobjectplays, views, likes, comments, shares and saves. plays is the play count and views Instagram's second, usually lower count, which is often null on profile pages. Both are null for photos and carousels. Likes and comments are kept when present, including zero, even when the creator hides counts. shares and saves are always null.
engagementAvailabilityobjectavailable, unavailable or not_applicable for each count.
publishedAtstring · nullWhen the post was published (UTC, ISO 8601), or null when unavailable.
captionstring · nullCaption text, or null when absent or unavailable.
displayUrlstring · nullLink to the post's image or video cover, or null when unavailable.
dimensionsobject · nullwidth and height in pixels when available; the object or either dimension may be null.
media.likeAndViewCountsDisabled boolean · nullPer-post setting: true when Instagram reports hidden like and view counts, false when it reports otherwise, and null when unknown. Numeric likes and plays, including zero, are kept when present.
commentsStatusstringavailable when a comment count is returned; otherwise unavailable.
Older names, still sent recentPosts[]
plays views playCount viewCount likes comments shares savesnumber · nullThe same counts under their older names. plays, views and playCount hold the play count (engagement.plays); viewCount holds engagement.views.
metricAvailabilityobjectThe availability under the older names.
Paging details in pageInfo.recentPosts. pageInfo.recentVideos has the same fields for the video list.
Paging pageInfo.recentPosts
hasNextPagebooleantrue when the profile has more posts after this page.
endCursorstring · nullSend this as after to get the next page. null on the last page.
requestedLimitnumberPages requested × 12.
returnedCountnumberHow many posts came back.
pagesRequestednumberThe pages value you sent.
pagesFetchednumberHow many pages came back. Can be lower when the profile has fewer posts.
incompletebooleantrue when we stopped before reaching the posts you asked for.
Profile errors
A failed profile request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one profile; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The account doesn't exist, was deleted, or isn't shown to visitors who aren't logged in. | Check the username. If the account exists, try again later. |
minimum_ | 502 | The account limits who can see it by age or by country, so Instagram doesn't show it to logged-out visitors. | Don't retry. The result won't change. |
bad_ | 400 | This profile link or username is invalid or unsupported. The error appears on this item in results; other valid profiles continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, the batch is over your limit, or the cursor has expired, belongs to another profile, or was sent with more than one profile. It comes back as the response's top-level error, with no results. | Fix the request. For an expired cursor, start again from the first page. Nothing is charged. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the profile from Instagram. | Retry in a minute. |
Comments
Send a post or Reel link with type: "instagramComments" to get its public comments, each with its likes, reply count and author. Long comments come back in full.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "instagramComments". |
url | string | url or urls | Link to one public Instagram post or Reel. |
urls | string[] | url or urls | Several posts in one request. Up to 10, like post batches. A cursor works with one post only. |
pages | integer | No | How many pages of comments to return, from 1 to 25. Each page has 14 comments. Default 1. |
after | string | No | The endCursor from a previous response, to get the next comments. cursor and endCursor work too. |
Getting more comments
- Each page has 14 comments; only the last page can have fewer. Ask for up to 25 pages (350 comments) in one request with
pages. - To continue later, send
pageInfo.endCursorfrom your last response asafter. A cursor works for one post per request and expires after 24 hours. - When there are no more comments,
hasNextPageisfalseandendCursorisnull. - Comments come in Instagram's own order.
- Only top-level comments are included. Replies aren't, but each comment has its reply count.
Accepted links
/p//reel//reels//tv//embed//c/instagr.amA link to a single comment (/c/) or an embed link returns the comments of its post.
Example
The response is for the More pages request, shortened to two comments. Comment fields explains every field.
{
"type": "instagramComments",
"url": "https://www.instagram.com/p/C8xExampleA/"
}
{
"type": "instagramComments",
"url": "https://www.instagram.com/p/C8xExampleA/",
"pages": 2
}
{
"type": "instagramComments",
"url": "https://www.instagram.com/p/C8xExampleA/",
"after": "instagram:comments:v2:eyJ2IjoyLCJtZWRpYUlkIjoi..."
}
{
"url": "https://www.instagram.com/p/C8xExampleA/",
"platform": "instagram",
"type": "comments",
"success": true,
"post": {
"id": "3400520181647562624",
"url": "https://www.instagram.com/p/C8xExampleA/"
},
"comments": [
{
"id": "18045612345678901",
"text": "This is exactly what I needed today. Saving it for later!",
"likeCount": 214,
"replyCount": 6,
"publishedAt": "2026-06-01T09:12:44.000Z",
"author": {
"id": "5512345678",
"handle": "maya.makes",
"name": "Maya",
"isVerified": false,
"avatarUrl": "https://scontent.cdninstagram.com/...",
"profileUrl": "https://www.instagram.com/maya.makes/",
"profilePicUrl": "https://scontent.cdninstagram.com/..."
},
"likes": 214,
"replies": 6
},
{
"id": "18045612345678902",
"text": "How long did the whole shoot take?",
"likeCount": 37,
"replyCount": 1,
"publishedAt": "2026-06-01T10:03:19.000Z",
"author": {
"id": "6623456789",
"handle": "studio_north",
"name": "Studio North",
"isVerified": true,
"avatarUrl": "https://scontent.cdninstagram.com/...",
"profileUrl": "https://www.instagram.com/studio_north/",
"profilePicUrl": "https://scontent.cdninstagram.com/..."
},
"likes": 37,
"replies": 1
}
],
"coverage": "public_logged_out",
"limitations": [
"Only public top-level comments are included; nested replies are not included."
],
"pageInfo": {
"hasNextPage": true,
"endCursor": "instagram:comments:v2:eyJ2IjoyLCJtZWRpYUlkIjoi...",
"pageSize": 14,
"pagesFetched": 2,
"pagesRequested": 2,
"returnedCount": 28,
"incomplete": false
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Response time
A page of comments usually comes back in about 2 seconds; 25 pages take about 15 seconds.
Set your HTTP client timeout to 180 seconds so slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each page of comments that comes back is one success, and failed requests are never charged. An accessible post with no comments counts as one successful page.
Comment fields
Every field a comments request returns. When Instagram doesn't provide a value, the field is null.
The result, each item in comments, and paging details in pageInfo.
Result
urlstringThe link you sent.
platformstringAlways "instagram".
typestringAlways "comments".
successbooleantrue when the comments were read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the comments (UTC, ISO 8601).
post.id post.url stringInstagram's numeric ID for the post, and its clean link.
coveragestringAlways "public_logged_out".
limitationsstring[]Anything important we need to tell you about these comments, for example that replies aren't included.
Comment comments[]
idstringInstagram's ID for the comment.
textstringThe full comment text, never cut short.
likeCountnumber · nullLike count.
replyCountnumber · nullHow many replies the comment has. The replies themselves aren't included.
publishedAtstring · nullWhen the comment was posted (UTC, ISO 8601).
mediaobjectOnly present when the comment is a GIF: type is "gif" and url links to it.
author.id author.handle author.name string · nullWho wrote it: their account ID, username without @, and display name.
author.isVerified boolean · nulltrue when the author has a verified badge.
author.avatarUrl author.profileUrl string · nullTheir profile photo and profile link.
Paging pageInfo
hasNextPagebooleantrue when the post has more comments after these.
endCursorstring · nullSend this as after to get the next comments. Expires after 24 hours. null on the last page.
pagesRequestednumberThe pages value you sent.
pagesFetchednumberHow many pages came back. Can be lower when the post has fewer comments.
returnedCountnumberHow many comments came back.
pageSizenumberAlways 14.
incompletebooleanAlways false on a successful result.
Older names, still sent comments[]
likesnumber · nullSame as likeCount.
repliesnumber · nullSame as replyCount.
author.profilePicUrl string · nullSame as author.avatarUrl.
Comment errors
A failed comments request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one post; a batch with at least one success returns 200.
{
"url": "https://www.instagram.com/p/C8xExampleA/",
"platform": "instagram",
"type": "comments",
"success": false,
"error": {
"category": "minimum_age_required",
"message": "This Instagram post has an audience restriction and cannot be accessed publicly."
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The post was deleted, is private, or never existed. | Check back after 6–12 hours. The creator can make it public again. Some posts stay blocked. |
age_ | 403 | The account limits its posts to adults, so Instagram doesn't show them to logged-out visitors. | Don't retry. The result won't change. |
minimum_ | 403 | The account limits who can see its posts by age or by country, so Instagram doesn't show them to logged-out visitors. | Don't retry. The result won't change. |
timeout | 504 | A temporary problem reading the comments from Instagram. | Retry after at least 3 minutes. |
upstream_, blocked_ | 502 | A temporary problem reading the comments from Instagram. | Retry after at least 3 minutes. |
bad_ | 400 | The request body or options are invalid, a link isn't a post or Reel link, the batch is over your limit, or the cursor has expired, belongs to another post, or was sent with more than one post. It comes back as the response's top-level error, with no results. | Fix the request and send it again. For an expired cursor, start again from the first page. Nothing is charged. |
Search
Search Instagram by word, hashtag or @username. Send type: "instagramSearch" with a searchType to choose what comes back: popular posts, Reels, hashtag posts, photo posts, profiles, or a mix. Every result is fetched live from Instagram's public pages the moment you ask, in the order Instagram shows them.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "instagramSearch". |
searchType | string | Yes | What to search for: "popular", "reels", "hashtagPosts", "posts", "profiles" or "mixed". See Search types below. |
query | string | Yes | Up to 150 characters: letters, numbers, spaces, hyphens or underscores. For "hashtagPosts", one hashtag, with or without #. For "profiles", a keyword, or an exact @username to look up one account. |
limit | integer | No | How many results to return, from 1 to 50. Default 20. |
after | string | No | The pageInfo.endCursor from your last response, to get the next page. cursor and endCursor work too. Not available for "profiles" and "mixed". |
mediaType | string | No | Only for "hashtagPosts": "all" (default) or "reels" for Reels only. |
Other fields, such as sort, date filters or a page number, are rejected with 400.
Search types
| searchType | What you get | More pages |
|---|---|---|
"popular" | Instagram's popular posts and Reels for your word, related topics, and on the first page Instagram's description of the topic with source links and its post count. | Yes |
"reels" | Popular Reels for your word whose text contains the word or phrase. | Yes |
"hashtagPosts" | Posts and Reels that show the exact hashtag. Send "mediaType": "reels" for Reels only. | Yes |
"posts" | Photo and carousel posts whose caption contains your word or phrase, from creators popular for that word. | Yes |
"profiles" | Accounts popular for your word whose username contains it, with followers, bio and links for up to the first 10. Send @username instead to look up one exact account. | No, one page |
"mixed" | Matching profiles, hashtags, related searches and places together. | No, one page |
How results are found
- Results keep Instagram's own order. There's no sorting and no date filter.
- For
"reels"and"hashtagPosts", a post only counts when your word or hashtag appears in its own text on the page. We check up to 300 posts per request.matchshows the text that matched. - Each post comes back in the same shape as a post request, with fewer details, so some fields are often
null. See What search leaves empty.
Getting more results
- Send
pageInfo.endCursorfrom your last response asafter, with the samesearchType,queryandmediaType. You can changelimitbetween pages. - A cursor works for the API key that received it, for 24 hours.
- When
endCursorisnull, there's no next page. - One search can return up to 300 results across all its pages.
- If Instagram's page has changed and the next page can't continue, you get a free
409. Start again from the first page.
Example
All requests use POST https://api.refetcher.com/ with your normal API key. Each response has one item in results. The responses below are shortened; the cursor is a placeholder, so copy the full cursor from your own response. Search fields explains every field.
{
"type": "instagramSearch",
"searchType": "popular",
"query": "eiffel tower",
"limit": 2
}
{
"type": "instagramSearch",
"searchType": "reels",
"query": "coffee",
"limit": 10
}
{
"type": "instagramSearch",
"searchType": "hashtagPosts",
"query": "#coffee",
"mediaType": "reels"
}
{
"type": "instagramSearch",
"searchType": "posts",
"query": "crochet"
}
{
"type": "instagramSearch",
"searchType": "profiles",
"query": "crochet"
}
{
"type": "instagramSearch",
"searchType": "profiles",
"query": "@nasa"
}
{
"type": "instagramSearch",
"searchType": "mixed",
"query": "coffee"
}
{
"type": "instagramSearch",
"searchType": "popular",
"query": "eiffel tower",
"limit": 2,
"after": "instagram:search:v1:z3hV6O9IWlzynlWW..."
}
{
"platform": "instagram",
"type": "search",
"query": "eiffel tower",
"searchType": "popular",
"success": true,
"topic": {
"title": "Eiffel Tower",
"url": "https://www.instagram.com/popular/eiffel-tower/",
"descriptionPreview": null,
"description": {
"text": "The Eiffel Tower is a wrought-iron lattice tower on the Champ de Mars in Paris, France...",
"sources": [
"https://en.wikipedia.org/wiki/Eiffel_Tower",
"https://www.toureiffel.paris/en"
],
"linkedTerms": [
{
"text": "Champ de Mars",
"url": "https://www.instagram.com/popular/champ-de-mars/"
}
]
},
"totalMediaCount": null,
"mediaCountDisplay": "39M",
"approximateMediaCount": 39000000,
"relatedTopics": [
{
"title": "Eiffel Tower at night",
"url": "https://www.instagram.com/popular/eiffel-tower-at-night/"
}
],
"posts": [
{
"type": "reel",
"shortcode": "DQx0Example1",
"url": "https://www.instagram.com/reel/DQx0Example1/",
"sectionTitle": "Eiffel Tower",
"sectionUrl": "https://www.instagram.com/popular/eiffel-tower/",
"post": {
"id": "3759329587339814426",
"shortcode": "DQx0Example1",
"normalizedUrl": "https://www.instagram.com/reel/DQx0Example1/",
"type": "video",
"publishedAt": null,
"caption": "Sunset from the Trocadéro 🗼 #eiffeltower #paris",
"hashtags": ["eiffeltower", "paris"],
"mentions": [],
"productType": null,
"location": null,
"isSponsored": null,
"isPinned": null,
"commentsDisabled": null,
"region": null,
"language": null
},
"author": {
"handle": "parisframes",
"id": "6799563409",
"scopedId": "17841406822279945",
"isVerified": true,
"profilePicUrl": "https://scontent.cdninstagram.com/v/...",
"name": null,
"bio": null,
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null
},
"media": {
"thumbnailUrl": "https://scontent.cdninstagram.com/v/...",
"altText": "Sunset from the Trocadéro 🗼 #eiffeltower #paris",
"videoUrl": "https://instagram.fbom3-1.fna.fbcdn.net/o1/v/...",
"playCount": 1231881,
"viewCount": null,
"viewCountUnavailableReason": null,
"likeAndViewCountsDisabled": null,
"durationSeconds": null,
"width": null,
"height": null,
"music": null,
"audioUrl": null,
"children": []
},
"engagement": {
"plays": 1231881,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"metrics": {
"plays": 1231881,
"views": 1231881,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"scrapedAt": "2026-11-27T10:15:30.000Z",
"engagementAvailability": {
"plays": "available",
"views": "unavailable",
"likes": "unavailable",
"comments": "unavailable",
"shares": "not_applicable",
"saves": "not_applicable"
},
"metricAvailability": {
"plays": "available",
"views": "available",
"likes": "unavailable",
"comments": "unavailable",
"shares": "not_applicable",
"saves": "not_applicable"
}
},
{
"type": "reel",
"shortcode": "DQx0Example2",
"url": "https://www.instagram.com/reel/DQx0Example2/",
"sectionTitle": "Eiffel Tower",
"sectionUrl": "https://www.instagram.com/popular/eiffel-tower/",
"post": {
"id": "3941158625052357859",
"shortcode": "DQx0Example2",
"normalizedUrl": "https://www.instagram.com/reel/DQx0Example2/",
"type": "video",
"publishedAt": null,
"caption": "The light show at 11pm ✨",
"hashtags": [],
"mentions": [],
"productType": null,
"location": null,
"isSponsored": null,
"isPinned": null,
"commentsDisabled": null,
"region": null,
"language": null
},
"author": {
"handle": "weekendinparis",
"id": "2290914417",
"scopedId": "17841401995887232",
"isVerified": false,
"profilePicUrl": "https://scontent.cdninstagram.com/v/...",
"name": null,
"bio": null,
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null
},
"media": {
"thumbnailUrl": "https://scontent.cdninstagram.com/v/...",
"altText": "The light show at 11pm ✨",
"videoUrl": "https://instagram.fbom3-1.fna.fbcdn.net/o1/v/...",
"playCount": 663528,
"viewCount": null,
"viewCountUnavailableReason": null,
"likeAndViewCountsDisabled": null,
"durationSeconds": null,
"width": null,
"height": null,
"music": null,
"audioUrl": null,
"children": []
},
"engagement": {
"plays": 663528,
"views": null,
"likes": 41210,
"comments": 389,
"shares": null,
"saves": null
},
"metrics": {
"plays": 663528,
"views": 663528,
"likes": 41210,
"comments": 389,
"shares": null,
"saves": null
},
"scrapedAt": "2026-11-27T10:15:30.000Z",
"engagementAvailability": {
"plays": "available",
"views": "unavailable",
"likes": "available",
"comments": "available",
"shares": "not_applicable",
"saves": "not_applicable"
},
"metricAvailability": {
"plays": "available",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "not_applicable",
"saves": "not_applicable"
}
}
],
"pagination": {
"supported": true,
"nextCursor": "instagram:search:v1:z3hV6O9IWlzynlWW...",
"hasMore": true,
"truncated": true
}
},
"pageInfo": {
"hasNextPage": true,
"endCursor": "instagram:search:v1:z3hV6O9IWlzynlWW...",
"returnedCount": 2
},
"scrapedAt": "2026-11-27T10:15:30.000Z"
}
{
"platform": "instagram",
"type": "search",
"query": "coffee",
"searchType": "reels",
"success": true,
"topic": {
"title": "Coffee",
"url": "https://www.instagram.com/popular/coffee/",
"descriptionPreview": null,
"relatedTopics": [],
"posts": [
{
"type": "reel",
"shortcode": "DQx0Example3",
"url": "https://www.instagram.com/reel/DQx0Example3/",
"sectionTitle": "Coffee",
"sectionUrl": "https://www.instagram.com/popular/coffee/",
"post": {
"id": "4012139001317872939",
"shortcode": "DQx0Example3",
"normalizedUrl": "https://www.instagram.com/reel/DQx0Example3/",
"type": "video",
"publishedAt": null,
"caption": "Iced maple latte at home ☕ #coffee",
"hashtags": ["coffee"],
"mentions": [],
"productType": null,
"location": null,
"isSponsored": null,
"isPinned": null,
"commentsDisabled": null,
"region": null,
"language": null
},
"author": {
"handle": "sipsathome",
"id": "5520194837",
"scopedId": "17841459629894155",
"isVerified": true,
"profilePicUrl": "https://scontent.cdninstagram.com/v/...",
"name": null,
"bio": null,
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null
},
"media": {
"thumbnailUrl": "https://scontent.cdninstagram.com/v/...",
"altText": "Iced maple latte at home ☕ #coffee",
"videoUrl": "https://instagram.fbom3-1.fna.fbcdn.net/o1/v/...",
"playCount": 1555866,
"viewCount": null,
"viewCountUnavailableReason": null,
"likeAndViewCountsDisabled": null,
"durationSeconds": null,
"width": null,
"height": null,
"music": null,
"audioUrl": null,
"children": []
},
"engagement": {
"plays": 1555866,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"metrics": {
"plays": 1555866,
"views": 1555866,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"scrapedAt": "2026-11-27T10:15:30.000Z",
"engagementAvailability": {
"plays": "available",
"views": "unavailable",
"likes": "unavailable",
"comments": "unavailable",
"shares": "not_applicable",
"saves": "not_applicable"
},
"metricAvailability": {
"plays": "available",
"views": "available",
"likes": "unavailable",
"comments": "unavailable",
"shares": "not_applicable",
"saves": "not_applicable"
},
"match": {
"source": "visibleTopicCardText",
"text": "Iced maple latte at home ☕ #coffee"
}
}
],
"pagination": {
"supported": true,
"nextCursor": "instagram:search:v1:z3hV6O9IWlzynlWW...",
"hasMore": true,
"truncated": true
},
"coverage": {
"scope": "visibleCardsOnSinglePublicTopicPage",
"matchSource": "visibleTopicCardText",
"maxCandidateCards": 300,
"candidateCardsExamined": 4,
"cardsWithVerifiedText": 4,
"scanLimitReached": false
}
},
"pageInfo": {
"hasNextPage": true,
"endCursor": "instagram:search:v1:z3hV6O9IWlzynlWW...",
"returnedCount": 1
},
"scrapedAt": "2026-11-27T10:15:30.000Z"
}
{
"platform": "instagram",
"type": "search",
"query": "crochet",
"searchType": "profiles",
"success": true,
"discovery": {
"title": "Crochet",
"url": "https://www.instagram.com/popular/crochet/",
"scope": "publicTopicGallery",
"ranking": "galleryOrder",
"entities": [
{
"kind": "profile",
"label": "luna_crochet",
"url": "https://www.instagram.com/luna_crochet/",
"evidenceUrl": "https://www.instagram.com/reel/DQx0Example4/",
"evidenceText": "luna_crochet",
"profile": {
"id": "49754447164",
"handle": "luna_crochet",
"name": "Luna | Crochet patterns",
"biography": "Easy patterns every week 🧶",
"followers": 121424,
"following": 330,
"totalPosts": null,
"totalVideos": null,
"totalLikes": null,
"talkingAbout": null,
"wereHere": null,
"highlightReelCount": null,
"isPrivate": false,
"isVerified": false,
"isBusinessAccount": null,
"isProfessionalAccount": null,
"categoryName": null,
"externalUrl": "https://linktr.ee/lunacrochet",
"profilePicUrl": "https://scontent.cdninstagram.com/v/...",
"profilePicUrlHd": null,
"externalUrlSource": "bioLink",
"bioLinks": [
{
"url": "https://linktr.ee/lunacrochet",
"title": "All my patterns",
"linkType": "external",
"isPinned": true,
"id": "18186776017208706"
}
]
},
"scrapedAt": "2026-11-27T10:15:30.000Z"
}
],
"pagination": {
"supported": false,
"nextCursor": null,
"hasMore": null
}
},
"pageInfo": {
"hasNextPage": false,
"endCursor": null,
"returnedCount": 1
},
"scrapedAt": "2026-11-27T10:15:30.000Z"
}
{
"platform": "instagram",
"type": "search",
"query": "coffee",
"searchType": "mixed",
"success": true,
"discovery": {
"title": "Coffee",
"url": "https://www.instagram.com/popular/coffee/",
"scope": "publicTopicGallery",
"ranking": "galleryOrder",
"entities": [
{
"kind": "hashtag",
"label": "#coffee",
"url": null,
"evidenceUrl": "https://www.instagram.com/reel/DQx0Example3/",
"evidenceText": "Iced maple latte at home ☕ #coffee",
"scrapedAt": "2026-11-27T10:15:30.000Z"
},
{
"kind": "profile",
"label": "coffeewithmia",
"url": "https://www.instagram.com/coffeewithmia/",
"evidenceUrl": "https://www.instagram.com/reel/DQx0Example5/",
"evidenceText": "coffeewithmia",
"scrapedAt": "2026-11-27T10:15:30.000Z"
}
],
"pagination": {
"supported": false,
"nextCursor": null,
"hasMore": null
}
},
"pageInfo": {
"hasNextPage": false,
"endCursor": null,
"returnedCount": 2
},
"scrapedAt": "2026-11-27T10:15:30.000Z"
}
Response time
A search usually comes back in 5–10 seconds, though profile searches can take up to 15 seconds.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each page that comes back is one success, however many results it has. Failed searches, including ones that find no match, are never charged.
Search fields
Popular, Reels, hashtag and photo searches return a topic with its posts. Profile and mixed searches return discovery with a list of matches. Both put paging details in pageInfo. When Instagram doesn't provide a value, the field is null.
"popular", "reels", "hashtagPosts" and "posts".
Result
platformstringAlways "instagram".
typestringAlways "search".
query searchTypestringWhat you searched for. A leading # is removed from hashtags.
mediaTypestringOnly on "hashtagPosts": "all" or "reels".
successbooleantrue when the page was read successfully, otherwise false with an error object.
scrapedAtstring · nullWhen we read the page (UTC, ISO 8601). Every post on the page has the same time. null on a failed search.
Paging pageInfo
pageInfo.hasNextPage boolean · nulltrue when there are more results after this page. null when we couldn't confirm more.
pageInfo.endCursor string · nullSend this as after to get the next page. Expires after 24 hours. null on the last page.
pageInfo.returnedCount numberHow many results came back.
Topic topic
topic.title topic.url stringThe topic Instagram matched to your word, and its link on Instagram.
topic.description object · nullFirst page of "popular" only: Instagram's description of the topic in text, its source links in sources, and linked topics in linkedTerms. null when Instagram shows none.
topic.totalMediaCount topic.mediaCountDisplay topic.approximateMediaCount number · string · nullFirst page of "popular" only. mediaCountDisplay is the count as Instagram shows it, for example "39M". totalMediaCount is the exact count when Instagram shows the full number; otherwise approximateMediaCount turns the rounded label into a number, such as 39000000. All null when Instagram shows no count.
topic.relatedTopics object[]Other topics Instagram links from the page, each with title and url.
topic.coverage objectNot on "popular". How much of the page we checked: candidateCardsExamined, cardsWithVerifiedText, and scanLimitReached when the check limit was hit.
topic.pagination objectThe same cursor again. Use pageInfo instead.
Post topic.posts[]
post author media engagement engagementAvailabilityobjectThe same fields as an Instagram post or Reel result. On Reels, engagement.plays is the play count. engagement.views is the separate view count when available. The older metrics.views still holds the play count. See What search leaves empty below.
typestring"reel" or "post".
shortcode urlstringThe code in the post link, and the full link.
author.id author.scopedId string · nullauthor.id is the account ID, the same as in a profile request. author.scopedId is a second ID Instagram uses for the owner in search results.
sectionTitle sectionUrlstring · nullThe group of results the post appeared in, such as a related topic, and its link.
match.text match.source objectNot on "popular". The text that contained your word or hashtag, and where it was found.
mediaType authorUrlstringOnly on "posts": "image" or "carousel", and the link to the creator's profile the post came from.
scrapedAtstringSame as the result's scrapedAt.
"profiles" and "mixed".
Result
platform type query searchType success scrapedAtmixedThe same as for posts and Reels.
pageInfoobjectAlways one page: hasNextPage is false and endCursor is null. returnedCount is how many matches came back.
Results discovery
discovery.title discovery.url stringThe topic Instagram matched to your word, or the profile for an @username lookup, with its link.
discovery.scope discovery.ranking string"publicTopicGallery" in "galleryOrder"; with places, "publicTopicGalleryAndLocations" in "galleryThenLocations"; for @username, "publicProfile" with "exactHandle".
discovery.pagination objectThe same paging details again. Use pageInfo instead.
Result item discovery.entities[]
kindstring"profile", "hashtag", "keyword" (a related search) or "place". "profiles" returns only profiles.
label urlstring · nullThe username, hashtag, search or place name, and its Instagram link. Hashtags found only in a caption have url: null.
evidenceUrl evidenceTextstringThe page and text where the match was found.
scrapedAtstringSame as the result's scrapedAt.
Profile details entities[].profile
profileobjectThe same fields as an Instagram profile result: id, handle, name, biography, followers, following, totalPosts, flags and photo links. Fields Instagram doesn't show are null.
profile.bioLinks object[]Every link in the bio, each with url and, when shown, title, linkType, isPinned and id.
profile.externalUrlSource string"bioLink" when externalUrl was taken from the first bio link.
What search leaves empty
- Search results carry fewer details than a post request. On posts,
post.publishedAt,media.viewCount, the author's followers and bio, and the video's length and size are usuallynull. Likes and comments are filled in only when Instagram shows them. - For a post's full counts, send its link as a post request. For an account's full details, send its username as a profile request.
Search errors
A failed search returns success: false with an error object, and it is never charged. error.retryable tells you whether trying again can help. Problems with the request itself come back as a top-level error with no results.
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000001",
"summary": {
"total": 1,
"succeeded": 0,
"failed": 1,
"errors": {
"not_found": 1
}
},
"results": [
{
"platform": "instagram",
"type": "search",
"query": "@no.such.account",
"searchType": "profiles",
"success": false,
"error": {
"category": "not_found",
"message": "Instagram could not find the requested topic or profile.",
"retryable": false
},
"scrapedAt": null
}
],
"totalMs": 4416
}
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000002",
"error": {
"category": "invalid_cursor",
"message": "Use a current cursor from the same account, search type and query."
}
}
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000003",
"error": {
"category": "rate_limited",
"code": "INSTAGRAM_SEARCH_FAILURE_COOLDOWN",
"message": "This search recently failed for this API key. Try again after the indicated delay."
},
"retryAfterSeconds": 142
}
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
bad_ | 400 | The request is invalid: a missing or unknown searchType, an empty or too long query, limit outside 1–50, a cursor on "profiles" or "mixed", or an unsupported field such as sort. | Fix the request and send it again. Nothing is charged. |
invalid_ | 400 | The cursor expired, came from another API key, or was sent with a different searchType, query or mediaType. | Start again from the first page. Nothing is charged. |
not_ | 404 | Instagram has no topic for this word, or no account with this @username. | Check the spelling. Don't retry. The result won't change. |
cursor_ | 409 | Instagram's page changed, so the next page can't continue from where the last one ended. | Start again from the first page. |
no_ | 422 | Instagram has this topic, but nothing in it matched your search. | Try another word or search type. |
rate_ | 429 | This search failed for your API key in the last 3 minutes, or the same search is still running for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
source_ | 502 | Instagram didn't let us read this search. | Retrying the same search usually gives the same result. Try another word or search type. |
incomplete_, upstream_ | 502 | A temporary problem reading the search results from Instagram. | Retry after at least 3 minutes. |
service_ | 503 | Search is busy right now. | Retry after at least 3 minutes. |
service_ | 503 | Search is temporarily switched off. | Retry later. Contact us if it continues. |
timeout | 504 | The search couldn't finish in time. | Retry after at least 3 minutes. A smaller limit helps it finish. |
Retrying the same search
- A search that failed can be repeated by the same API key after 3 minutes.
- Repeating it sooner, or while it's still running, returns a free
rate_limitedwith the wait inretryAfterSeconds. - A search that succeeded can be repeated right away.
See all error categories and HTTP status codes.
TikTok
Scrape public TikTok videos, carousels, profiles and comments. Video and carousel requests return exact engagement, post details in post, the creator in author, media links in media and the sound in music; profile requests return the account's details and its latest posts. Choose type: "tiktokComments" or "tiktokCommentReplies" for full comment text, likes, authors and pagination.
Video & carousel
Send the link to one public TikTok video or carousel as url, or several links as urls. The response returns its counts in engagement, post details in post, the creator in author, media links in media and the sound in music.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | url or urls | Link to one public TikTok video or carousel. |
urls | string[] | url or urls | Several links in one request. See Batches below. |
Batches
Send up to 10 links at once in urls.
- Results come back in the same order as your links. Each link is fetched on its own, so one failed post doesn't affect the others. If you send the same link twice, it comes back once.
- If a link isn't a valid TikTok post link, that item returns
bad_urland costs nothing. The other links continue. A batch over your account limit is rejected with400before any posts are fetched or charged. - You only pay for posts that succeed. Your balance needs to cover the valid links in the batch when you send it.
Need more than 10 links per request? Contact us and we'll raise your limit.
Accepted links
/@user/video//@user/photo/vm.tiktok.comvt.tiktok.comtiktok.com/t/m.tiktok.comShort share links are opened for you and come back with the full post link in post.normalizedUrl.
Example
The API wraps every post in a results array (see Response envelope). The examples below show one item of that array. Video & carousel fields explains every field.
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000"
}
{
"urls": [
"https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"https://www.tiktok.com/@creators_hub/photo/7401234500000000000",
"https://vm.tiktok.com/ZMExample1/"
]
}
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"platform": "tiktok",
"success": true,
"engagement": {
"plays": null,
"views": 2418337,
"likes": 98412,
"comments": 3207,
"shares": 12194,
"saves": 18433,
"downloads": 412,
"forwards": 0,
"reposts": 0,
"whatsappShares": 96
},
"metrics": {
"views": 2418337,
"likes": 98412,
"comments": 3207,
"shares": 12194,
"saves": 18433,
"downloads": 412,
"forwards": 0,
"reposts": 0,
"whatsappShares": 96
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"downloads": "available",
"forwards": "unavailable",
"reposts": "unavailable",
"whatsappShares": "available"
},
"metricAvailability": {
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"downloads": "available",
"forwards": "unavailable",
"reposts": "unavailable",
"whatsappShares": "available"
},
"post": {
"id": "7398210000000000000",
"shortcode": null,
"normalizedUrl": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher #api",
"type": "video",
"productType": "video",
"hashtags": ["refetcher", "api"],
"mentions": [],
"region": "US",
"language": null,
"location": null,
"commentsDisabled": false,
"isPinned": null,
"isSponsored": false,
"allowShare": true,
"allowDownload": true
},
"author": {
"id": "6800000000000000000",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": 312000,
"following": 128,
"totalLikes": 9800000,
"videoCount": 420,
"bio": "Tips and tools for creators.",
"isVerified": false,
"profilePicUrl": "https://p16-common-sign.tiktokcdn-us.com/..."
},
"media": {
"type": "video",
"thumbnailUrl": "https://p19-common-sign.tiktokcdn-us.com/...",
"videoUrl": "https://v16m-default.tiktokcdn-eu.com/...",
"durationSeconds": 18.4,
"width": 720,
"height": 1280,
"ratio": "720p",
"format": null,
"bitrate": 953318,
"children": []
},
"music": {
"id": "7398210000000000001",
"title": "original sound",
"authorName": "Creators Hub",
"durationSeconds": 18,
"original": null,
"playUrl": "https://v16m.tiktokcdn-us.com/...",
"coverUrl": "https://p16-common-sign.tiktokcdn-us.com/..."
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
{
"url": "https://www.tiktok.com/@creators_hub/photo/7401234500000000000",
"platform": "tiktok",
"success": true,
"engagement": {
"plays": null,
"views": 43271,
"likes": 2914,
"comments": 61,
"shares": 37,
"saves": 412,
"downloads": 0,
"forwards": 0,
"reposts": 0,
"whatsappShares": 3
},
"metrics": {
"views": 43271,
"likes": 2914,
"comments": 61,
"shares": 37,
"saves": 412,
"downloads": 0,
"forwards": 0,
"reposts": 0,
"whatsappShares": 3
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"downloads": "available",
"forwards": "unavailable",
"reposts": "unavailable",
"whatsappShares": "available"
},
"metricAvailability": {
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"downloads": "available",
"forwards": "unavailable",
"reposts": "unavailable",
"whatsappShares": "available"
},
"post": {
"id": "7401234500000000000",
"shortcode": null,
"normalizedUrl": "https://www.tiktok.com/@creators_hub/photo/7401234500000000000",
"publishedAt": "2026-06-08T11:53:04.000Z",
"caption": "Three moments from launch day #launch",
"type": "carousel",
"productType": null,
"hashtags": ["launch"],
"mentions": [],
"region": "US",
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": null
},
"author": {
"id": "6800000000000000000",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": 312000,
"following": 128,
"totalLikes": 9800000,
"videoCount": 420,
"bio": "Tips and tools for creators.",
"isVerified": false,
"profilePicUrl": "https://p16-common-sign.tiktokcdn-us.com/..."
},
"media": {
"type": "carousel",
"thumbnailUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"videoUrl": null,
"durationSeconds": null,
"width": 1080,
"height": 1350,
"ratio": null,
"format": null,
"bitrate": null,
"children": [
{
"url": "https://p16-common-sign.tiktokcdn-us.com/...",
"width": 1080,
"height": 1350
},
{
"url": "https://p19-common-sign.tiktokcdn-us.com/...",
"width": 1080,
"height": 1920
}
]
},
"music": {
"id": "7401234500000000001",
"title": "original sound",
"authorName": "Creators Hub",
"durationSeconds": 32,
"original": null,
"playUrl": "https://v16m.tiktokcdn-us.com/...",
"coverUrl": "https://p16-common-sign.tiktokcdn-us.com/..."
},
"scrapedAt": "2026-06-08T12:20:41.000Z"
}
Response time
Every result is fetched live from TikTok the moment you ask for it. A video or carousel usually comes back in 3–5 seconds, though some harder ones can take longer.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each video or carousel that comes back is one success, and failed posts are never charged.
Video & carousel fields
Pick a post type to see every field it returns. When TikTok doesn't provide a value, the field is null.
A video post, sent as a /video/ link or a short share link.
Result
urlstringThe link you sent, with tracking parameters removed.
platformstringAlways "tiktok".
successbooleantrue when the post was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
limitationsstring[]Anything important we need to tell you about this post. Only present when there is something.
Counts engagement
engagement.plays nullAlways null. TikTok has one count, views.
engagement.views numberView count, exact.
engagement.likes numberLike count, exact.
engagement.comments numberComment count, exact.
engagement.shares number · nullShare count, exact.
engagement.saves number · nullHow many people saved the post to their favorites, exact.
engagement.downloads engagement.whatsappShares numberDownload and WhatsApp share counts, exact.
engagement.forwards engagement.reposts numberTikTok doesn't make these public for now. They come back as 0.
engagementAvailabilityobjectSays whether each count above was returned: "available" (returned) or "unavailable" (TikTok didn't send it).
Post post
post.id stringTikTok's ID for the post, the number in the link, for example 7398210000000000000.
post.normalizedUrl stringClean link to the post, with the creator's username. Short links and links without a username come back in full here.
post.publishedAt string · nullWhen the post was published (UTC, ISO 8601).
post.caption string · nullFull caption text. null when there is none.
post.type stringThe kind of post: "video" or "carousel".
post.productType string · nullTikTok's own name for the format, when it gives one.
post.hashtags string[]Hashtags in the caption, without #. Empty if there are none.
post.mentions string[]Accounts tagged with @ in the caption, without the @. Empty if there are none.
post.region string · nullTwo-letter code of the country the post was made in, for example "US".
post.isSponsored boolean · nulltrue when the post is an ad. Often null.
post.commentsDisabled boolean · nulltrue when comments are turned off. Often null.
post.allowShare post.allowDownload booleanWhether the creator lets people share and download the video. Only included when TikTok sends them.
post.isPaidPartnership post.isAiGenerated booleantrue when the post is labelled as a paid partnership, or as made with AI. Only included when TikTok sends them.
post.isPinned post.language post.location nullUsually null on TikTok.
post.shortcode nullAlways null on TikTok. Kept so every platform returns the same shape.
Creator author
author.id stringTikTok's numeric ID for the account.
author.handle stringUsername, without @.
author.name string · nullThe account's display name.
author.followers number · nullFollower count. Rounded by TikTok for large accounts, for example 96400000 for 96.4M.
author.following number · nullHow many accounts it follows.
author.totalLikes number · nullLikes across all the account's posts. Rounded by TikTok for large accounts.
author.videoCount number · nullHow many posts the account has.
author.bio string · nullThe profile bio.
author.isVerified boolean · nulltrue when the account has the verified badge.
author.profilePicUrl string · nullLink to the profile photo.
Media media
media.type stringThe kind of media: "video" or "carousel".
media.thumbnailUrl string · nullLink to the video's cover image.
media.videoUrl string · nullLink to the video file.
media.durationSeconds number · nullVideo length in seconds.
media.width media.height number · nullSize of the video file in pixels.
media.ratio string · nullQuality of the video file, for example "720p".
media.bitrate number · nullBitrate of the video file, in bits per second.
media.format string · nullUsually null.
media.children arrayEmpty for videos.
Sound music
music.id music.title music.authorName string · nullThe sound's ID, title and the name of who made it.
music.durationSeconds number · nullLength of the whole sound in seconds.
music.playUrl music.coverUrl string · nullLink to the audio file and to the sound's cover image.
music.original boolean · nulltrue when the sound was uploaded with the video. Often null.
music.owner music.usedSegment music.isCommercial music.isOriginalComposition mixedOnly included when TikTok sends them: the sound owner's id and handle, the part of the sound the video uses (startSeconds, endSeconds), whether it's a licensed commercial track, and whether the creator wrote it.
Older names, still sent
metrics metricAvailabilityobjectThe same counts under their older names.
Several photos in one post, with a sound. Carousel links use /photo/.
Result
urlstringThe link you sent, with tracking parameters removed.
platformstringAlways "tiktok".
successbooleantrue when the post was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
limitationsstring[]Anything important we need to tell you about this post. Only present when there is something.
Counts engagement
engagement.plays nullAlways null. TikTok has one count, views.
engagement.views numberView count, exact.
engagement.likes numberLike count, exact.
engagement.comments numberComment count, exact.
engagement.shares number · nullShare count, exact.
engagement.saves number · nullHow many people saved the post to their favorites, exact.
engagement.downloads engagement.whatsappShares numberDownload and WhatsApp share counts, exact.
engagement.forwards engagement.reposts numberTikTok doesn't make these public for now. They come back as 0.
engagementAvailabilityobjectSays whether each count above was returned: "available" (returned) or "unavailable" (TikTok didn't send it).
Post post
post.id stringTikTok's ID for the post, the number in the link, for example 7401234500000000000.
post.normalizedUrl stringClean link to the post, using /photo/.
post.publishedAt string · nullWhen the post was published (UTC, ISO 8601).
post.caption string · nullFull caption text. null when there is none.
post.type stringThe kind of post: "video" or "carousel".
post.productType string · nullTikTok's own name for the format, when it gives one.
post.hashtags string[]Hashtags in the caption, without #. Empty if there are none.
post.mentions string[]Accounts tagged with @ in the caption, without the @. Empty if there are none.
post.region string · nullTwo-letter code of the country the post was made in, for example "US".
post.isSponsored boolean · nulltrue when the post is an ad. Often null.
post.commentsDisabled boolean · nulltrue when comments are turned off. Often null.
post.allowShare post.allowDownload booleanWhether the creator lets people share and download the post. Only included when TikTok sends them.
post.isPaidPartnership post.isAiGenerated booleantrue when the post is labelled as a paid partnership, or as made with AI. Only included when TikTok sends them.
post.isPinned post.language post.location nullUsually null on TikTok.
post.shortcode nullAlways null on TikTok. Kept so every platform returns the same shape.
Creator author
author.id stringTikTok's numeric ID for the account.
author.handle stringUsername, without @.
author.name string · nullThe account's display name.
author.followers number · nullFollower count. Rounded by TikTok for large accounts, for example 96400000 for 96.4M.
author.following number · nullHow many accounts it follows.
author.totalLikes number · nullLikes across all the account's posts. Rounded by TikTok for large accounts.
author.videoCount number · nullHow many posts the account has.
author.bio string · nullThe profile bio.
author.isVerified boolean · nulltrue when the account has the verified badge.
author.profilePicUrl string · nullLink to the profile photo.
Media media
media.type stringThe kind of media: "video" or "carousel".
media.thumbnailUrl string · nullLink to the carousel's cover image.
media.width media.height number · nullSize of the cover image in pixels.
media.children arrayEvery photo in the carousel, in order, each with url, width and height. When TikTok sends them, a photo also has thumbnailUrl, ownerWatermarkUrl, userWatermarkUrl and language.
media.videoUrl media.durationSeconds media.ratio media.bitrate media.format nullNot applicable. Always null.
Sound music
music.id music.title music.authorName string · nullThe carousel's sound: its ID, title and the name of who made it.
music.durationSeconds number · nullLength of the whole sound in seconds.
music.playUrl music.coverUrl string · nullLink to the audio file and to the sound's cover image.
music.original boolean · nulltrue when the sound was uploaded with the post. Often null.
music.owner music.usedSegment music.isCommercial music.isOriginalComposition mixedOnly included when TikTok sends them: the sound owner's id and handle, the part of the sound the post uses (startSeconds, endSeconds), whether it's a licensed commercial track, and whether the creator wrote it.
Older names, still sent
metrics metricAvailabilityobjectThe same counts under their older names.
Media links (videos, photos, sounds and profile photos) point to TikTok's servers and expire after a while. If you need to keep a file, download it.
Video & carousel errors
A failed post returns success: false with an error object, and it is never charged.
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"platform": "tiktok",
"success": false,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable.",
"upstream": {
"statusCode": 10204,
"statusMessage": "item doesn't exist"
}
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"platform": "tiktok",
"success": false,
"error": {
"category": "rate_limited",
"message": "This TikTok URL failed recently. Please wait before retrying it."
},
"scrapedAt": "2026-06-05T10:18:12.000Z",
"statusCode": 429,
"retryAfterSeconds": 142
}
| Category | HTTP status | TikTok reason (error.) | What it means | What to do |
|---|---|---|---|---|
private_ | 404 | 10204status_deleteditem doesn't exist | The post was deleted, or never existed. | Check back after 6–12 hours. The creator can make it public again. Some posts stay blocked. |
10204status_self_seeauthor_secretstatus_friend_see | The post or account is private, or only the creator's friends can see it. | Check back after 6–12 hours. The creator can make it public again. Some posts stay blocked. | ||
10204status_reviewingstatus_audit_not_pass | TikTok is reviewing the post, or it failed TikTok's review. | Check back after 6–12 hours. A post under review can come back. Some posts stay blocked. | ||
10204copyright_geo_filter | TikTok blocked the post for copyright. | Don't retry. The result won't change. | ||
missing_ | 502 | 10231cross_border_violation | TikTok doesn't show the post in most regions. | Retry after a few hours. Some posts stay blocked. |
| — | We reached the post, but TikTok didn't give us the exact views, likes and comments. | Retry after at least 3 minutes. | ||
rate_ | 429 | — | This link failed for your API key in the last 3 minutes, or the same link is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
timeout, upstream_, blocked_ | 502 | — | A temporary problem reading the post from TikTok, including a carousel where TikTok didn't send every photo. | Retry after at least 3 minutes. |
bad_ | 400 | — | This link is invalid or isn't a supported TikTok post link. Live, sound, hashtag and embed links aren't supported. The error appears on this item in results; other links continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | — | The request body or options are invalid, or the batch is over your account limit. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
TikTok uses the same code for different reasons, so go by statusMessage. It can list several reasons, separated by commas.
Retrying the same link
Failed posts are free, so to prevent repeated free retries, your API key can request a link that just failed again only after 3 minutes. Earlier requests for that link return rate_limited (also free) with the wait time in retryAfterSeconds. Other links in the same request run normally.
See all error categories and HTTP status codes.
Profile
Send a username or profile link to get the account's details and its latest posts.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
username | string | One of these | TikTok username, without @. Send it with "platform": "tiktok". |
profileUrl | string | One of these | Link to the profile, for example https://www.tiktok.com/@creators_hub. url works too. |
usernames | string[] | One of these | Several usernames in one request, with "platform": "tiktok". profileUrls takes several links. |
pages | integer | No | How many pages of posts to return, from 1 to 25. Each page has up to 12 posts. Default 1. |
after | string | No | The endCursor from a previous response, to get the next page. cursor and endCursor work too. |
Pages and continuation
- Ask for up to 25 pages in one request with
pages. - When
hasNextPageistrue, sendpageInfo.recentPosts.endCursorasafterto retrieve the next window for the same profile,sort, andincludeRetweetssetting. A cursor works for one profile per request. - When there is no usable continuation,
hasNextPageisfalseandendCursorisnull; this does not describe the account's full historical post count. - Posts are newest first.
Counts
TikTok rounds larger counts on profiles for logged-out users, for example 2400000 views. engagementPrecision shows which counts are rounded on each post. For exact counts, request the post itself as a video or carousel.
Example
The response is for the More pages request, shortened to one post. Profile fields explains every field.
{
"platform": "tiktok",
"username": "creators_hub"
}
{
"profileUrl": "https://www.tiktok.com/@creators_hub"
}
{
"platform": "tiktok",
"username": "creators_hub",
"pages": 3
}
{
"platform": "tiktok",
"username": "creators_hub",
"after": "tiktok:creator:v1:eyJ0YXJnZXQiOi..."
}
{
"url": "https://www.tiktok.com/@creators_hub",
"platform": "tiktok",
"type": "profile",
"success": true,
"profile": {
"id": "6800000000000000000",
"handle": "creators_hub",
"name": "Creators Hub",
"biography": "Tips and tools for creators.",
"followers": 312418,
"following": 128,
"totalPosts": null,
"totalVideos": 420,
"totalLikes": 9812305,
"talkingAbout": null,
"wereHere": null,
"highlightReelCount": null,
"isPrivate": false,
"isVerified": false,
"isBusinessAccount": null,
"isProfessionalAccount": null,
"metricPrecision": {
"followers": "source_integer",
"following": "source_integer",
"totalVideos": "source_integer",
"totalPosts": "unavailable",
"totalLikes": "source_integer"
},
"categoryName": null,
"externalUrl": null,
"profilePicUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"profilePicUrlHd": "https://p19-common-sign.tiktokcdn-us.com/..."
},
"recentPosts": [
{
"id": "7398210000000000000",
"shortcode": "7398210000000000000",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"type": "video",
"isVideo": true,
"engagement": {
"plays": null,
"views": 2400000,
"likes": 98400,
"comments": 3207,
"shares": 12194,
"saves": 18433,
"reposts": null
},
"views": 2400000,
"playCount": 2400000,
"viewCount": 2400000,
"likes": 98400,
"comments": 3207,
"shares": 12194,
"saves": 18433,
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher #api",
"displayUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"reposts": null,
"engagementPrecision": {
"plays": null,
"views": "rounded",
"likes": "rounded",
"comments": "source_integer",
"shares": "source_integer",
"saves": "source_integer",
"reposts": "unavailable"
},
"metricPrecision": {
"views": "rounded",
"likes": "rounded",
"comments": "source_integer",
"shares": "source_integer",
"saves": "source_integer",
"reposts": "unavailable"
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"reposts": "unavailable"
},
"metricAvailability": {
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"reposts": "unavailable"
},
"createTime": 1780302600,
"description": "Behind the scenes of our new release #refetcher #api",
"hashtags": ["refetcher", "api"],
"mentions": [],
"productType": null,
"region": null,
"language": null,
"commentsDisabled": null,
"isSponsored": false,
"isAiGenerated": null,
"isPaidPartnership": null,
"allowShare": true,
"allowDownload": null,
"isAd": false,
"isPinned": null,
"slideshow": {
"isImagePost": false,
"slideCount": 0
},
"durationSeconds": 18,
"aspectRatio": "9:16",
"author": {
"id": "6800000000000000000",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": 312000,
"following": 128,
"totalLikes": 9800000,
"videoCount": 420,
"bio": "Tips and tools for creators.",
"isVerified": false,
"profilePicUrl": "https://p16-common-sign.tiktokcdn-us.com/..."
},
"media": {
"type": "video",
"thumbnailUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"videoUrl": "https://www.tiktok.com/...",
"durationSeconds": 18,
"width": 1080,
"height": 1920,
"aspectRatio": "9:16",
"images": []
},
"music": {
"id": "7398210000000000001",
"title": "original sound",
"authorName": "Creators Hub",
"durationSeconds": 18,
"original": true,
"isCopyrighted": false,
"isCommercial": false,
"playUrl": "https://v16-webapp-prime.us.tiktok.com/...",
"coverUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"isCommerce": false
},
"dimensions": {
"width": 1080,
"height": 1920
}
}
],
"recentVideos": [
{
"id": "7398210000000000000",
"shortcode": "7398210000000000000",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"type": "video",
"isVideo": true,
"engagement": {
"plays": null,
"views": 2400000,
"likes": 98400,
"comments": 3207,
"shares": 12194,
"saves": 18433,
"reposts": null
},
"views": 2400000,
"playCount": 2400000,
"viewCount": 2400000,
"likes": 98400,
"comments": 3207,
"shares": 12194,
"saves": 18433,
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher #api",
"displayUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"reposts": null,
"engagementPrecision": {
"plays": null,
"views": "rounded",
"likes": "rounded",
"comments": "source_integer",
"shares": "source_integer",
"saves": "source_integer",
"reposts": "unavailable"
},
"metricPrecision": {
"views": "rounded",
"likes": "rounded",
"comments": "source_integer",
"shares": "source_integer",
"saves": "source_integer",
"reposts": "unavailable"
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"reposts": "unavailable"
},
"metricAvailability": {
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"reposts": "unavailable"
},
"createTime": 1780302600,
"description": "Behind the scenes of our new release #refetcher #api",
"hashtags": ["refetcher", "api"],
"mentions": [],
"productType": null,
"region": null,
"language": null,
"commentsDisabled": null,
"isSponsored": false,
"isAiGenerated": null,
"isPaidPartnership": null,
"allowShare": true,
"allowDownload": null,
"isAd": false,
"isPinned": null,
"slideshow": {
"isImagePost": false,
"slideCount": 0
},
"durationSeconds": 18,
"aspectRatio": "9:16",
"author": {
"id": "6800000000000000000",
"handle": "creators_hub",
"name": "Creators Hub",
"followers": 312000,
"following": 128,
"totalLikes": 9800000,
"videoCount": 420,
"bio": "Tips and tools for creators.",
"isVerified": false,
"profilePicUrl": "https://p16-common-sign.tiktokcdn-us.com/..."
},
"media": {
"type": "video",
"thumbnailUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"videoUrl": "https://www.tiktok.com/...",
"durationSeconds": 18,
"width": 1080,
"height": 1920,
"aspectRatio": "9:16",
"images": []
},
"music": {
"id": "7398210000000000001",
"title": "original sound",
"authorName": "Creators Hub",
"durationSeconds": 18,
"original": true,
"isCopyrighted": false,
"isCommercial": false,
"playUrl": "https://v16-webapp-prime.us.tiktok.com/...",
"coverUrl": "https://p16-common-sign.tiktokcdn-us.com/...",
"isCommerce": false
},
"dimensions": {
"width": 1080,
"height": 1920
}
}
],
"postLinks": [
"https://www.tiktok.com/@creators_hub/video/7398210000000000000"
],
"pageInfo": {
"recentPosts": {
"hasNextPage": true,
"endCursor": "tiktok:creator:v1:eyJ0YXJnZXQiOi...",
"requestedLimit": 36,
"returnedCount": 36,
"pagesRequested": 3,
"pagesFetched": 3,
"incomplete": false
},
"recentVideos": null
},
"limitations": [
"Some engagement counts are rounded by TikTok."
],
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Cost
$0.90 per 1,000 successes. Each page of posts is one success, and the profile details come free with the first page. Asking for the profile only (includeRecentPosts: false) is one success.
Profile fields
Pick a tab to see every field a profile request returns. When TikTok doesn't provide a value, the field is null.
The account itself, in profile.
Result
urlstringClean link to the profile.
platformstringAlways "tiktok".
typestringAlways "profile".
successbooleantrue when the profile was read. A failed request returns false with an error object instead of these fields.
scrapedAtstringWhen we read the profile (UTC, ISO 8601).
limitationsstring[]Anything important we need to tell you about this profile. "Some engagement counts are rounded by TikTok." means some views or likes are rounded. "Profile has fewer posts than requested." means the account has fewer posts than the pages you asked for.
Account profile
profile.id stringTikTok's numeric ID for the account.
profile.handle stringUsername, without @.
profile.name string · nullThe account's display name.
profile.biography string · nullThe profile bio.
profile.followers numberFollower count, exact.
profile.following numberHow many accounts it follows.
profile.totalVideos number · nullHow many posts the account has.
profile.totalLikes number · nullLikes across all the account's posts, exact.
profile.isPrivate booleantrue for private accounts. Asking for a private account's posts fails with private_or_removed; send includeRecentPosts: false to get its details only.
profile.isVerified boolean · nulltrue when the account has the verified badge.
profile.metricPrecision objectHow exact each account count is: "source_integer" (exact), "rounded" (rounded by TikTok) or "unavailable".
profile.profilePicUrl profile.profilePicUrlHd string · nullProfile photo link, and a larger version when TikTok provides one.
profile.isBusinessAccount profile.isProfessionalAccount boolean · nullUsually false or null on TikTok.
profile.externalUrl string · nullThe link in the bio. Usually null on TikTok.
profile.totalPosts profile.categoryName profile.highlightReelCount profile.talkingAbout profile.wereHere nullAlways null on TikTok. Kept so every platform returns the same shape. Use profile.totalVideos for the post count.
Each item in recentPosts. recentVideos holds just the videos from the same list, and postLinks just their links.
Post recentPosts[]
id shortcodestringTikTok's ID for the post. Both fields hold the same value.
urlstringLink to the post.
typestring"video" or "carousel".
isVideobooleantrue for videos.
engagementobjectplays, views, likes, comments, shares, saves and reposts. plays is always null; TikTok has one count, views. TikTok rounds larger counts, for example 2400000. reposts is always null for now.
engagementPrecisionobjectHow exact each count is: "rounded" (rounded by TikTok), "source_integer" (exact) or "unavailable".
engagementAvailabilityobjectSays whether each count above was returned: "available" or "unavailable".
publishedAt createTimestring · numberWhen the post was published: as UTC ISO 8601 in publishedAt, and in Unix seconds in createTime.
caption descriptionstring · nullCaption text. Both fields hold the same value. null when there is none.
hashtagsstring[]Hashtags in the caption, without #.
mentions productType region language commentsDisabled isSponsored isPaidPartnership isAiGenerated allowShare allowDownloadmixedThe same post details as video results, when TikTok sends them.
displayUrl media.thumbnailUrl stringLink to the post's cover image.
dimensions aspectRatioobject · nullSize in pixels and its shape, for example "9:16", when TikTok gives them.
durationSecondsnumber · nullVideo length in seconds. null for carousels.
isPinned isAdboolean · nullisPinned is true for posts pinned on the profile, otherwise null. Pinned posts appear in date order. isAd is true when the post is an ad.
slideshowobject · nullisImagePost is true for carousels, and slideCount is how many photos it has.
mediaobject · nulltype, thumbnailUrl, videoUrl, durationSeconds, width, height, aspectRatio, and images (each carousel photo's url, width and height).
musicobject · nullid, title, authorName, durationSeconds, playUrl, coverUrl, and whether it's an original (original), copyrighted (isCopyrighted) or licensed commercial (isCommercial) sound.
Older names, still sent recentPosts[]
music.isCommerce boolean · nullSame as music.isCommercial.
views playCount viewCount likes comments shares saves repostsnumber · nullThe same counts under their older names. playCount and viewCount are the same as views.
metricPrecision metricAvailabilityobjectThe same, under the older names.
Paging details in pageInfo.recentPosts.
Paging pageInfo.recentPosts
hasNextPagebooleantrue when the profile has more posts after this page.
endCursorstring · nullSend this as after to get the next page. null on the last page.
requestedLimitnumberPages requested × 12.
returnedCountnumberHow many posts came back.
pagesRequestednumberThe pages value you sent.
pagesFetchednumberHow many pages came back. Can be lower when the profile has fewer posts.
incompletebooleantrue when we stopped before reaching the posts you asked for.
Profile errors
A failed profile request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one profile; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | TikTok says the account is unavailable: it doesn't exist, was deleted or banned, is private, or is hidden from visitors who aren't logged in. The message is "This TikTok profile is unavailable." | Check the username. If the account exists, try again later. For a private account, send include to get its details only. |
age_ | 403 | TikTok shows this account only to signed-in adults. The message is "This TikTok profile is age-restricted and cannot be accessed publicly." | Don't retry. The result won't change. |
bad_ | 400 | This username or profile link is invalid or unsupported. The error appears on this item in results; the others continue. | Fix or remove this username or link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, the batch is over your limit, or the cursor belongs to another profile or was sent with more than one profile. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the profile from TikTok. | Retry after a few minutes. |
Comments
Send a video or photo/carousel link to POST https://api.refetcher.com/ with type: "tiktokComments". Each comment includes its full text, likes, reply count and author. To read a comment's replies, use Replies.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "tiktokComments". |
url | string | url or urls | Link to one public TikTok video or photo/carousel post. Profiles aren't accepted. |
urls | string[] | url or urls | Several valid post links, within your account's batch limit: normally 10. Every link must be valid; a malformed link rejects the whole comments request with a free 400. A cursor accepts one post only. |
pages | integer | No | From 1 to 25; default 1. Each page contains up to 20 comments. pageCount and paginationPages are accepted aliases. |
after | string | No | The previous response's pageInfo.endCursor. cursor and endCursor are accepted aliases. Use the same post; cursors expire after 24 hours. |
sort | string | No | "relevant" keeps TikTok's order and is the default. "latest" and "likes" sort only the comments returned in this request. commentsSort is an accepted alias. |
Use pages rather than limit or commentsLimit. When sending aliases for the same option, give them the same value.
Getting more comments
- Ask for up to 25 pages in one request. A page has up to 20 comments; short pages and duplicate removal can reduce the number returned. Two pages can return 39 comments, for example.
- To continue, send
pageInfo.endCursorasafterwith one post.pagescan also request several pages after that cursor. - Full and supported short links to the same post work with the same cursor. A cursor for another post, an expired cursor, or a reply cursor used for top-level comments returns
400. hasNextPage: truemeans TikTok supplied a continuation. When it isfalse,endCursorisnull. TikTok can expose only a subset of public comments, so this doesn't prove every comment was returned.- Long text is preserved in full. If a response reaches its size or time limit after collecting comments, it can stop between pages with
incomplete: true; continue with the returned cursor. "latest"sorts the fetched comments bycreatedAt;"likes"sorts them bylikeCount, descending, with unknown values last. Neither option finds the newest or most-liked comments across the whole post. The response reportssortScope: "returned_comments"; native order reports"tiktok_order".
Accepted links
/@user/video//@user/photo/vm.tiktok.comvt.tiktok.comtiktok.com/t/m.tiktok.comA supported share link is resolved for you. The result's url keeps the submitted share link; post.url contains the full canonical post link. A share that resolves to an unavailable post can still return 404.
Example
All requests below use POST https://api.refetcher.com/ with your normal API key. The response shows one item from results, shortened to two comments from a two-page result. The cursor is a placeholder; copy the full cursor from your actual response.
{
"type": "tiktokComments",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000"
}
{
"type": "tiktokComments",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"pages": 2,
"sort": "relevant"
}
{
"type": "tiktokComments",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"after": "PASTE_PAGEINFO_ENDCURSOR_HERE"
}
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"platform": "tiktok",
"type": "comments",
"success": true,
"post": {
"id": "7398210000000000000",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000"
},
"parentCommentId": null,
"comments": [
{
"id": "7420000000000000001",
"text": "That transition was so smooth! How many takes did it need?",
"publishedAt": "2026-10-28T08:12:44.000Z",
"likeCount": 214,
"replyCount": 6,
"parentCommentId": null,
"replyToCommentId": null,
"isAuthor": false,
"likedByAuthor": null,
"pinned": null,
"author": {
"id": "7100000000000000001",
"handle": "maya.makes",
"name": "Maya",
"avatarUrl": "https://p16-sign.tiktokcdn.com/example-avatar.jpeg",
"profileUrl": "https://www.tiktok.com/@maya.makes"
},
"createdAt": "2026-10-28T08:12:44.000Z"
},
{
"id": "7420000000000000002",
"text": "The timing on the final shot is perfect.",
"publishedAt": "2026-10-28T08:30:00.000Z",
"likeCount": 0,
"replyCount": 0,
"parentCommentId": null,
"replyToCommentId": null,
"isAuthor": false,
"likedByAuthor": false,
"pinned": false,
"author": {
"id": "7100000000000000002",
"handle": "studio_north",
"name": "Studio North",
"avatarUrl": null,
"profileUrl": "https://www.tiktok.com/@studio_north"
},
"createdAt": "2026-10-28T08:30:00.000Z"
}
],
"totalCount": 3591,
"sort": "relevant",
"sortScope": "tiktok_order",
"pageInfo": {
"hasNextPage": true,
"endCursor": "PASTE_PAGEINFO_ENDCURSOR_HERE",
"pagesRequested": 2,
"pagesFetched": 2,
"returnedCount": 39,
"incomplete": false
},
"limitations": [
"TikTok may expose only a subset of public comments. Comment order and availability can change."
],
"scrapedAt": "2026-10-28T10:15:30.000Z"
}
Cost
$0.90 per 1,000 successful pages. Each populated page delivered is one successful scrape: a two-page result with 39 comments costs two units, not 39. Successful empty results, failed requests and resolving a share link are free. Your balance must cover the requested pages up front; unused reservations are returned. A request can ask for up to 50 pages in total across all its posts, so two posts with pages: 25 reach the limit.
Set your HTTP client timeout to 180 seconds so deeper requests have time to finish. Check pageInfo and limitations when deciding whether to continue.
Replies
Use the same POST https://api.refetcher.com/ endpoint with type: "tiktokCommentReplies" and the parent comment's id as commentId. Each result contains replies to that one parent; replies aren't automatically included in a top-level comments request.
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "tiktokCommentReplies". |
url | string | Yes | The video or photo/carousel post containing the parent comment. Supported share links work too. Exactly one post is accepted. |
commentId | string | Yes | The parent comment's numeric ID as a string, for example "7420000000000000001". comment_id is an accepted alias. |
pages | integer | No | From 1 to 25; default 1. Each page contains up to 20 replies. Page aliases and billing work as for top-level comments. |
after | string | No | The cursor from this parent's previous reply response. Keep the same post and commentId. cursor and endCursor are accepted aliases; the cursor expires after 24 hours. |
sort | string | No | "relevant", "latest", or "likes", with the same returned-window limitation as comments. |
Reply cursors are separate from top-level comment cursors and from other parents' reply cursors. A cursor used with the wrong post or parent returns 400. An empty reply result is successful and free.
Example
The response is one item from results, shortened to one reply. To continue a reply thread, add its returned pageInfo.endCursor as after while keeping the same commentId.
{
"type": "tiktokCommentReplies",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"commentId": "7420000000000000001",
"pages": 1
}
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"platform": "tiktok",
"type": "comments",
"success": true,
"post": {
"id": "7398210000000000000",
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000"
},
"parentCommentId": "7420000000000000001",
"comments": [
{
"id": "7420000000000000010",
"text": "Three takes! The last one finally lined up.",
"publishedAt": "2026-10-28T09:00:00.000Z",
"likeCount": 12,
"replyCount": 0,
"parentCommentId": "7420000000000000001",
"replyToCommentId": null,
"isAuthor": true,
"likedByAuthor": null,
"pinned": null,
"author": {
"id": "7100000000000000010",
"handle": "creators_hub",
"name": "Creators Hub",
"avatarUrl": null,
"profileUrl": "https://www.tiktok.com/@creators_hub"
},
"createdAt": "2026-10-28T09:00:00.000Z"
}
],
"totalCount": 7,
"sort": "relevant",
"sortScope": "tiktok_order",
"pageInfo": {
"hasNextPage": false,
"endCursor": null,
"pagesRequested": 1,
"pagesFetched": 1,
"returnedCount": 7,
"incomplete": false
},
"limitations": [
"TikTok may expose only a subset of public comments. Comment order and availability can change."
],
"scrapedAt": "2026-10-28T10:16:00.000Z"
}
Comment fields
Comments and replies use the same result shape. IDs are strings; don't convert them to JavaScript numbers. An unknown count or flag is null, while a measured zero or false stays zero or false.
One result from results, its comments items, and paging details in pageInfo.
Result
urlstringThe submitted link, normalized when it is a full post link. A share link stays a share link.
platformstringAlways "tiktok".
typestringAlways "comments", including replies.
successbooleantrue for a successful read, including an empty result. A failure returns false with an error object.
post.id post.url stringThe post's numeric ID as a string and its canonical full video or photo link.
parentCommentIdstring · nullThe requested parent ID for replies; null for top-level comments.
commentsobject[]The returned comments or replies. A successful empty read returns [].
totalCountnumber · nullTikTok's reported total for this comment list or reply thread, when supplied. It isn't a promise that every item can be retrieved.
sortstringThe selected "relevant", "latest" or "likes" order.
sortScopestring"tiktok_order" for relevant order; "returned_comments" when sorting only the fetched request window. Sorting doesn't change the continuation cursor.
limitationsstring[]Coverage, empty-page, incomplete-result or sorting limitations.
scrapedAtstringWhen the result was read, in UTC ISO 8601 format.
Comment comments[]
idstringTikTok's numeric comment ID, preserved as a string.
textstringThe full comment text, including line breaks and emoji. It isn't cut short.
publishedAtstring · nullThe publication time in UTC ISO 8601 format, or null when unavailable.
likeCountnumber · nullThe comment's like count, when supplied.
replyCountnumber · nullHow many replies the comment has, when supplied. Fetch their text with "tiktokCommentReplies".
parentCommentIdstring · nullThe requested top-level parent for a reply; null on a top-level comment.
replyToCommentIdstring · nullThe specific comment this reply addresses, when TikTok supplies it.
isAuthorboolean · nullWhether the comment was written by the post's author, when known.
likedByAuthorboolean · nullWhether the post's author liked this comment, when known.
pinnedboolean · nullWhether the comment is pinned, when known.
author.id author.handle author.name string · nullThe comment author's ID as a string, username without @, and display name. Each can be null.
author.avatarUrl author.profileUrl string · nullThe comment author's profile photo and profile link, when supplied.
Paging pageInfo
hasNextPagebooleanWhether TikTok supplied another page for this comment list or reply thread.
endCursorstring · nullSend as after to continue. Bound to the post and reply parent, and valid for 24 hours. null when no continuation is supplied.
pagesRequestednumberThe pages value requested, from 1 to 25.
pagesFetchednumberPopulated pages delivered and charged. Can be lower than requested; zero for a successful empty result.
returnedCountnumberThe length of the returned comments list after duplicate removal.
incompletebooleantrue when collection stopped at a response limit before finishing the requested window. Use the returned cursor to continue.
Older names, still sent comments[]
createdAtstring · nullSame as publishedAt.
Comment errors
Failed comment and reply requests are free. A single-post request returns the HTTP status below. A valid batch with at least one success returns 200 with a result for each post; inspect each result's success and error. A malformed link or invalid shared options reject the whole comments batch with 400 before any work is charged.
{
"url": "https://www.tiktok.com/@creators_hub/video/7398210000000000000",
"platform": "tiktok",
"type": "comments",
"success": false,
"statusCode": 404,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable.",
"retryable": false
},
"scrapedAt": "2026-10-28T10:17:00.000Z"
}
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
bad_, bad_ | 400 | Invalid post link, pages, sort, parent ID, batch size or cursor. A reply or cursor request accepts one post. A top-level validation error can have no results array. | Correct the request. Keep numeric IDs as strings. Start from the first page if the cursor expired; use the same post and parent for continuation. |
age_ | 403 | TikTok explicitly reports an age restriction for this post, preventing public access. | Don't repeat the same public request expecting access to restricted content. |
private_ | 404 | TikTok identifies the post as unavailable, including a removed or private post. A valid share can resolve to an unavailable post. | Check the link and whether the post is public. Retry later only if its availability changes. |
rate_ | 429 | This page failed for your API key in the last 3 minutes, or the same page is still being fetched for you. Full and short links to the same post count as the same post. | Wait for the number of seconds in retryAfterSeconds, then retry. |
upstream_, blocked_ | 502 | TikTok didn't return usable comments or a supported share couldn't be resolved. This isn't proof that the post was deleted or has no comments. | Retry after at least 3 minutes. For an unresolved share, try its full public post link. |
configuration_ | 503 | Comment retrieval is temporarily unavailable. | Retry later; contact support if it persists. |
timeout | 504 | The comments request couldn't finish in time. | Retry after at least 3 minutes, or request fewer pages. |
An accessible post or reply thread can return success: true with comments: [] and pagesFetched: 0, for free. An empty page doesn't prove the post has no comments. Normal authentication and balance and account limits still apply.
Get public Facebook posts, videos, Reels, photos and profiles. Post requests return the counts in engagement, post details in post, the page or person in author and photos and videos in media; profile requests return the page's details and links to its latest posts.
Post & Reel
Send the link to one public Facebook post, video, Reel or photo as url, or several links as urls. The response returns its counts in engagement, post details in post, the page or person in author and photos and videos in media.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | url or urls | Link to one public Facebook post, video, Reel or photo. |
urls | string[] | url or urls | Several links in one request. See Batches below. |
Batches
The default limit is 10 links per request in urls.
- Results come back in the same order as your links. Each link is fetched on its own, so one failed post doesn't affect the others. If you send the same link twice, it comes back once.
- If a link isn't a valid Facebook post link, that item returns
bad_urland costs nothing. The other links continue. A batch over your account limit is rejected with400before any posts are fetched or charged. - You only pay for posts that succeed. Your balance needs to cover the valid links in the batch when you send it.
Contact us to check your account limit.
Accepted links
/reel//…/videos//watch/?v=/…/posts//…/photos//photo/?fbid=permalink.phpstory.phpvideo.php?v=/share/fb.watchm.facebook.comShare links (/share/…, fb.watch and fb.me) are opened for you and come back with the full post link. Posts in groups and Stories aren't supported.
Example
The API wraps every post in a results array (see Response envelope). The examples below show one item of that array. Post & Reel fields explains every field.
{
"url": "https://www.facebook.com/reel/1700000000000001/"
}
{
"urls": [
"https://www.facebook.com/reel/1700000000000001/",
"https://www.facebook.com/creatorshub/posts/1200000000000002/"
]
}
{
"url": "https://www.facebook.com/reel/1700000000000001/",
"platform": "facebook",
"success": true,
"engagement": {
"plays": 3634180,
"views": 1843012,
"likes": 80512,
"comments": 2341,
"shares": 12000,
"saves": null,
"reactions": 93044,
"topLevelComments": 1987
},
"metrics": {
"views": 1843012,
"plays": 3634180,
"likes": 80512,
"reactions": 93044,
"comments": 2341,
"topLevelComments": 1987,
"shares": 12000,
"saves": null
},
"engagementAvailability": {
"plays": "available",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "unavailable",
"reactions": "available",
"topLevelComments": "available"
},
"metricAvailability": {
"views": "available",
"plays": "available",
"likes": "available",
"reactions": "available",
"comments": "available",
"topLevelComments": "available",
"shares": "available",
"saves": "unavailable"
},
"engagementPrecision": {
"plays": "exact",
"views": "exact",
"likes": "exact",
"comments": "exact",
"shares": "rounded",
"saves": null,
"reactions": "exact",
"topLevelComments": "exact"
},
"metricPrecision": {
"views": "exact",
"plays": "exact",
"likes": "exact",
"reactions": "exact",
"comments": "exact",
"topLevelComments": "exact",
"shares": "rounded",
"saves": null
},
"displayMetrics": {
"shares": "12K"
},
"reactionBreakdown": {
"like": 80512,
"love": 10411,
"care": 1612,
"haha": 342,
"wow": 121,
"sad": 38,
"angry": 8
},
"post": {
"id": "1700000000000001",
"shortcode": null,
"normalizedUrl": "https://www.facebook.com/reel/1700000000000001/",
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher",
"type": "reel",
"productType": "reel",
"hashtags": ["refetcher"],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": null,
"identifiers": {
"contentId": "1700000000000001",
"storyId": "1200000000000001",
"videoId": "1700000000000001",
"feedbackId": "ZmVlZGJhY2s6MTIwMDAwMDAwMDAwMDAwMQ==",
"inputToken": null
}
},
"author": {
"id": "100000000000001",
"handle": "creatorshub",
"name": "Creators Hub",
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null,
"bio": null,
"isVerified": true,
"profilePicUrl": "https://scontent.xx.fbcdn.net/..."
},
"media": {
"type": "video",
"thumbnailUrl": "https://scontent.xx.fbcdn.net/...",
"videoUrl": "https://video.xx.fbcdn.net/...",
"hdVideoUrl": "https://video.xx.fbcdn.net/...",
"sdVideoUrl": "https://video.xx.fbcdn.net/...",
"captionsUrl": null,
"durationSeconds": 50.1,
"width": 1080,
"height": 1920,
"altText": null,
"dashManifestAvailable": false,
"audioAvailability": "available",
"isLooping": false,
"urlsExpire": true,
"thumbnailExpiresAt": "2026-06-09T21:59:06.000Z",
"variants": [
{
"quality": "hd",
"contentType": "video/mp4",
"url": "https://video.xx.fbcdn.net/...",
"expiresAt": "2026-06-09T21:39:19.000Z"
},
{
"quality": "sd",
"contentType": "video/mp4",
"url": "https://video.xx.fbcdn.net/...",
"expiresAt": "2026-06-09T22:02:47.000Z"
}
],
"children": []
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
{
"url": "https://www.facebook.com/creatorshub/posts/1200000000000002/",
"platform": "facebook",
"success": true,
"engagement": {
"plays": null,
"views": null,
"likes": 1204,
"comments": 118,
"shares": 96,
"saves": null,
"reactions": 1505,
"topLevelComments": 71
},
"metrics": {
"views": null,
"plays": null,
"likes": 1204,
"reactions": 1505,
"comments": 118,
"topLevelComments": 71,
"shares": 96,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "not_applicable",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "unavailable",
"reactions": "available",
"topLevelComments": "available"
},
"metricAvailability": {
"views": "not_applicable",
"plays": "not_applicable",
"likes": "available",
"reactions": "available",
"comments": "available",
"topLevelComments": "available",
"shares": "available",
"saves": "unavailable"
},
"engagementPrecision": {
"plays": null,
"views": null,
"likes": "exact",
"comments": "exact",
"shares": "exact",
"saves": null,
"reactions": "exact",
"topLevelComments": "exact"
},
"metricPrecision": {
"views": null,
"plays": null,
"likes": "exact",
"reactions": "exact",
"comments": "exact",
"topLevelComments": "exact",
"shares": "exact",
"saves": null
},
"displayMetrics": {},
"reactionBreakdown": {
"like": 1204,
"love": 241,
"care": 33,
"haha": 18,
"wow": 7,
"sad": 2
},
"post": {
"id": "1200000000000002",
"shortcode": null,
"normalizedUrl": "https://www.facebook.com/creatorshub/posts/1200000000000002/",
"publishedAt": "2026-06-08T11:53:04.000Z",
"caption": "Launch day with the whole team",
"type": "image",
"productType": "photo",
"hashtags": [],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": null,
"identifiers": {
"contentId": "1200000000000002",
"storyId": "1200000000000002",
"videoId": null,
"feedbackId": "ZmVlZGJhY2s6MTIwMDAwMDAwMDAwMDAwMg==",
"inputToken": null
}
},
"author": {
"id": "100000000000001",
"handle": "creatorshub",
"name": "Creators Hub",
"followers": null,
"following": null,
"totalLikes": null,
"videoCount": null,
"bio": null,
"isVerified": true,
"profilePicUrl": "https://scontent.xx.fbcdn.net/..."
},
"media": {
"type": "image",
"thumbnailUrl": "https://scontent.xx.fbcdn.net/...",
"videoUrl": null,
"hdVideoUrl": null,
"sdVideoUrl": null,
"captionsUrl": null,
"durationSeconds": null,
"width": 1080,
"height": 720,
"altText": null,
"dashManifestAvailable": false,
"audioAvailability": null,
"isLooping": null,
"urlsExpire": true,
"thumbnailExpiresAt": "2026-06-12T19:03:58.000Z",
"variants": [],
"children": [
{
"id": "1200000000000003",
"type": "image",
"url": null,
"thumbnailUrl": "https://scontent.xx.fbcdn.net/...",
"displayUrl": "https://scontent.xx.fbcdn.net/...",
"videoUrl": null,
"durationSeconds": null,
"width": 1080,
"height": 720,
"altText": null
}
]
},
"scrapedAt": "2026-06-08T12:10:00.000Z"
}
Response time
Post results report the public data available when the request is processed. A post usually comes back in 4–5 seconds, though some harder ones can take 15 seconds or longer.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each post that comes back is one success, and failed posts are never charged.
Post & Reel fields
Reels, videos, photos and text posts return the same fields. When Facebook doesn't provide a value, the field is null.
Any public post, sent as one of the accepted links.
Result
urlstringLink to the post. Share links come back as the full post link.
platformstringAlways "facebook".
successbooleantrue when the post was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
Counts engagement
engagement.plays number · nullPlay count. null for photo and text posts.
engagement.views number · nullFacebook's second count for the video, usually lower than plays. null for photo and text posts.
engagement.likes number · nullLike reactions when counted separately. If only one reaction count is available, both likes and reactions can contain that number.
engagement.reactions number · nullTotal reactions when counted separately. Some results repeat the single available reaction count here.
engagement.comments number · nullTotal comments, including replies, when counted separately.
engagement.topLevelComments number · nullTop-level comments when counted separately. If only one comment count is available, both comment fields can contain that number.
engagement.shares number · nullShare count, which Facebook can round (for example 12K). See engagementPrecision. null when Facebook doesn't show it.
engagement.saves nullAlways null. Facebook doesn't show saves.
engagementAvailabilityobjectSays whether each count above was returned: "available", "unavailable", or "not_applicable" for views and plays on photo and text posts.
engagementPrecisionobject"exact" or "rounded" for each count; null when the count is missing. Precision describes the reported number. An exact value can still be the same aggregate in two fields.
displayMetricsobjectEach rounded count as Facebook shows it, for example {"shares": "12K"}. Empty when every count is exact.
reactionBreakdownobjectCount for each reaction type: like, love, care, haha, wow, sad, angry. Only reported types are included. An empty object means a breakdown was unavailable.
Post post
post.id stringFacebook's ID for the post or video.
post.normalizedUrl stringClean link to the post. Some videos and Reels come back as their page's /videos/ link.
post.publishedAt string · nullWhen the post was published (UTC, ISO 8601).
post.caption string · nullThe full post text.
post.type string"reel", "video", "image", "carousel" (more than one photo or video) or "post" (text only). A video sent as a /reel/ link comes back as "reel".
post.productType string · null"reel", "video", "photo" or "carousel". null for text posts.
post.hashtags string[]Hashtags in the text, without #. Empty if there are none.
post.mentions string[]Names tagged with @ in the text, without the @. Empty if there are none.
post.identifiers objectFacebook's other IDs for the same post: contentId, storyId, videoId and feedbackId. inputToken repeats the pfbid… code from your link, when it had one.
post.shortcode nullAlways null. Facebook has no shortcodes; use post.id.
post.region post.language post.location post.commentsDisabled post.isPinned post.isSponsored nullAlways null on Facebook. Kept so every platform returns the same shape.
Page or person author
author.id string · nullFacebook's numeric ID for the page or person.
author.handle string · nullThe username in their Facebook link, when available.
author.name string · nullTheir display name.
author.isVerified boolean · nulltrue when they have a verified badge.
author.profilePicUrl string · nullLink to the profile photo.
author.followers author.following author.totalLikes author.videoCount author.bio nullAlways null in post results. Use a profile request for followers and the bio.
Media media
media.type string"video" or "image".
media.thumbnailUrl string · nullLink to the first photo, or the video's cover image.
media.videoUrl string · nullLink to the video file, in the best quality available. null for posts without a video.
media.hdVideoUrl media.sdVideoUrl string · nullLinks to the high- and standard-quality video files.
media.variants arrayEvery video file, each with quality ("hd" or "sd"), contentType, url and expiresAt. Empty for photos.
media.urlsExpire media.thumbnailExpiresAt boolean · stringurlsExpire is true when the media links stop working after a while; thumbnailExpiresAt says when the cover image link expires.
media.captionsUrl string · nullLink to the subtitles file, when the video has one.
media.durationSeconds number · nullVideo length in seconds.
media.width media.height number · nullSize of the first photo or video in pixels.
media.altText string · nullThe description of the first photo or video, as Facebook gives it.
media.audioAvailability string · nullWhether the video has sound, for example "available". null for photos.
media.isLooping boolean · nulltrue when Facebook plays the video on a loop.
media.dashManifestAvailable booleantrue when Facebook also has a streaming version of the video.
media.children arrayAvailable media items in their returned order. Some results have no media items. See the Media items tab.
Older names, still sent
metrics metricAvailability metricPrecisionobjectThe same counts under their older names.
Each photo or video in media.children.
Media item media.children[]
idstringFacebook's ID for the photo or video.
typestring"image", "video" or "reel".
thumbnailUrl displayUrlstring · nullLink to the photo, or the video's cover image.
urlstring · nullLink to the photo or video on Facebook, when it has its own page.
videoUrlstring · nullLink to the video file. null for photos.
durationSecondsnumber · nullVideo length in seconds. null for photos.
width heightnumber · nullSize in pixels.
altTextstring · nullThe description of the photo, when there is one.
Good to know
- Use
post.typeto tell posts apart. The same video can come back as"reel"from a/reel/link and as"video"from a/watch/?v=link. - Reels and videos have two counts: plays and views. Views is usually the lower of the two.
- When Facebook explicitly shows no view or play count for an otherwise verified Reel, the Reel can still succeed with
viewsandplaysset tonull, marked"unavailable"inengagementAvailability. - Media links point to Facebook's servers and expire, usually within a few days. If you need to keep a file, download it.
Why counts can differ from the Facebook app
- We read the counts Facebook shows to visitors who aren't logged in. The app can show different numbers to a logged-in account.
- Facebook can round larger share counts and counts on some photo posts. We return them as numbers, for example
12000for 12K, and mark them as"rounded"inengagementPrecision. - Counts keep changing. Each response is a snapshot taken at
scrapedAt.
Post errors
A failed post returns success: false with an error object, and it is never charged.
{
"url": "https://www.facebook.com/reel/1700000000000009/",
"platform": "facebook",
"success": false,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable."
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
error.category tells you what happened. The HTTP status applies when the request has one link; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The post was deleted, is private, or never existed. | Check back after 6–12 hours. The creator can make it public again. Some posts stay blocked. |
missing_ | 502 | We reached the post, but Facebook didn't give us its counts. Some older videos expose only a subset of the required counts. | Retry after at least 3 minutes. |
age_ | 404 | The post is age-restricted, so Facebook only shows it to logged-in adults. | Don't retry. The result won't change. |
rate_ | 429 | This link failed for your API key in the last 3 minutes, or the same link is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the post from Facebook, or a share link we couldn't open. | Retry after at least 3 minutes. For a share link, you can also send the full post link. |
bad_ | 400 | This link is invalid or isn't a supported Facebook link, for example a group post or a Story. The error appears on this item in results; other links continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, or the batch is over your account limit. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
Retrying the same link
Failed posts are free, so to prevent repeated free retries, your API key can request a link that just failed again only after 3 minutes. Earlier requests for that link return rate_limited (also free) with the wait time in retryAfterSeconds. Successful links can be requested again right away, and other links in the same request run normally. The same applies to profiles.
See all error categories and HTTP status codes.
Profile
Send a username or profile link to get a page's or person's details and links to their latest posts. The list usually contains links with little other information. Some entries also include counts, text or a thumbnail. Send a link as a post request to get its counts.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
username | string | One of these | The username in the Facebook link, for example creatorshub. Send it with "platform": "facebook". |
profileUrl | string | One of these | Link to the profile or page, for example https://www.facebook.com/creatorshub. url works too. |
usernames | string[] | One of these | Several usernames in one request, with "platform": "facebook". profileUrls takes several links. |
includeRecentPosts | boolean | No | Default true: links to the latest posts come back too. Send false for the profile details only. includeRecentMedia works too. |
pages | integer | No | How many pages of posts to return, from 1 to 25. Each page has up to 3 post links. Default 1. |
after | string | No | The endCursor from a previous response, to get the next page. cursor and endCursor work too. |
Accepted links
facebook.com/usernameprofile.php?id=/people/…/m.facebook.com/share/Getting more posts
- Ask for up to 25 pages (75 post links) in one request with
pages. The newest posts come first. - To continue later, send
pageInfo.recentPosts.endCursorfrom your last response asafter. A cursor works for one profile, for 24 hours. Send it with a single profile and keep recent posts enabled. An expired cursor, or one from another profile, is rejected with400. - When there are no more posts,
hasNextPageisfalseandendCursorisnull. - If Facebook stops partway, you get the links collected so far with
incomplete: true, and any available continuation cursor. Continue only whenendCursoris present. - A profile with a verified empty public feed comes back with
success: trueand an emptyrecentPostslist.
Example
The response is for the More pages request, shortened to three posts. Profile fields explains every field.
{
"platform": "facebook",
"username": "creatorshub"
}
{
"profileUrl": "https://www.facebook.com/creatorshub"
}
{
"platform": "facebook",
"username": "creatorshub",
"pages": 2
}
{
"platform": "facebook",
"username": "creatorshub",
"after": "facebook:profile:v2:..."
}
{
"platform": "facebook",
"username": "creatorshub",
"includeRecentPosts": false
}
{
"url": "https://www.facebook.com/creatorshub/",
"platform": "facebook",
"type": "profile",
"success": true,
"profile": {
"id": "100000000000001",
"handle": "creatorshub",
"name": "Creators Hub",
"biography": "Tips and tools for creators.",
"followers": 312418,
"following": null,
"totalPosts": null,
"totalVideos": null,
"totalLikes": null,
"talkingAbout": 7051,
"wereHere": null,
"highlightReelCount": null,
"isPrivate": false,
"isVerified": true,
"isBusinessAccount": false,
"isProfessionalAccount": false,
"categoryName": null,
"externalUrl": null,
"profilePicUrl": "https://scontent.xx.fbcdn.net/...",
"profilePicUrlHd": "https://scontent.xx.fbcdn.net/..."
},
"recentPosts": [
{
"id": "1700000000000001",
"shortcode": "1700000000000001",
"url": "https://www.facebook.com/reel/1700000000000001/",
"type": "reel",
"isVideo": true,
"engagement": {
"plays": null,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"views": null,
"playCount": null,
"viewCount": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"publishedAt": "2026-06-04T16:45:31Z",
"caption": null,
"displayUrl": null,
"dimensions": null
},
{
"id": "1200000000000002",
"shortcode": "1200000000000002",
"url": "https://www.facebook.com/creatorshub/posts/1200000000000002/",
"type": "post",
"isVideo": false,
"engagement": {
"plays": null,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"views": null,
"playCount": null,
"viewCount": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"publishedAt": "2026-06-03T17:12:06Z",
"caption": null,
"displayUrl": null,
"dimensions": null
},
{
"id": "1200000000000004",
"shortcode": "1200000000000004",
"url": "https://www.facebook.com/creatorshub/posts/1200000000000004/",
"type": "video",
"isVideo": true,
"engagement": {
"plays": null,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"views": null,
"playCount": null,
"viewCount": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"publishedAt": "2026-06-02T19:29:07Z",
"caption": null,
"displayUrl": null,
"dimensions": null
}
],
"recentVideos": [
{
"id": "1700000000000001",
"shortcode": "1700000000000001",
"url": "https://www.facebook.com/reel/1700000000000001/",
"type": "reel",
"isVideo": true,
"engagement": {
"plays": null,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"views": null,
"playCount": null,
"viewCount": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"publishedAt": "2026-06-04T16:45:31Z",
"caption": null,
"displayUrl": null,
"dimensions": null
},
{
"id": "1200000000000004",
"shortcode": "1200000000000004",
"url": "https://www.facebook.com/creatorshub/posts/1200000000000004/",
"type": "video",
"isVideo": true,
"engagement": {
"plays": null,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"views": null,
"playCount": null,
"viewCount": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null,
"publishedAt": "2026-06-02T19:29:07Z",
"caption": null,
"displayUrl": null,
"dimensions": null
}
],
"postLinks": [
"https://www.facebook.com/reel/1700000000000001/",
"https://www.facebook.com/creatorshub/posts/1200000000000002/",
"https://www.facebook.com/creatorshub/posts/1200000000000004/"
],
"pageInfo": {
"recentPosts": {
"hasNextPage": true,
"endCursor": "facebook:profile:v2:...",
"requestedLimit": 6,
"returnedCount": 6,
"pagesRequested": 2,
"pagesFetched": 2,
"incomplete": false
},
"recentVideos": null
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Response time
A profile usually comes back in 5–10 seconds. Some take up to 45 seconds.
Cost
$0.90 per 1,000 successes. Each page of up to 3 post links is one success, and the profile details come free with the first page. Asking for the profile only (includeRecentPosts: false) is one success, and so is a profile with a verified empty public feed. Pages that don't come back aren't charged.
Profile fields
Pick a tab to see every field a profile request returns. When Facebook doesn't provide a value, the field is null.
The page or person, in profile.
Result
urlstringClean link to the profile.
platformstringAlways "facebook".
typestringAlways "profile".
successbooleantrue when the profile was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the profile (UTC, ISO 8601).
limitationsstring[]Anything important we need to tell you about this profile, for example that some posts couldn't be read. Only present when there is something.
Page or person profile
profile.id stringFacebook's numeric ID for the page or person.
profile.handle string · nullThe username in their Facebook link, when available.
profile.name string · nullTheir display name.
profile.biography string · nullThe intro or description on the profile.
profile.followers number · nullFollower count when available.
profile.talkingAbout number · nullHow many people Facebook says are talking about the page.
profile.wereHere number · nullCheck-ins, for pages of places.
profile.isVerified boolean · nulltrue when they have a verified badge.
profile.profilePicUrl profile.profilePicUrlHd string · nullLink to the profile photo, and a larger version.
profile.isPrivate booleanIndicates whether the source identifies this profile as private. Inaccessible profiles return an error.
profile.following profile.totalPosts profile.totalVideos profile.totalLikes profile.highlightReelCount profile.categoryName profile.externalUrl profile.isBusinessAccount profile.isProfessionalAccount number · string · boolean · nullWhen available, page details can include total likes, a category, a website and a business-account flag. Other counts can be null, and account flags can be false.
Each item in recentPosts.
Post recentPosts[]
id shortcodestringFacebook's ID for the post. Both fields hold the same value.
urlstringLink to the post. Send it as a post request to get its counts.
typestring"reel", "video" or "post".
isVideobooleantrue for Reels and videos.
publishedAtstring · nullWhen the post was published (UTC, ISO 8601).
engagementobjectplays, views, likes, comments, shares and saves. Usually null; some entries include views, reactions in likes, or comments. Use a post request for full counts.
caption displayUrl dimensionsstring · object · nullUsually null. Some entries include a caption or a thumbnail. Use a post request for the media.
Videos recentVideos[]
recentVideosarrayThe Reels and videos from recentPosts, with the same fields.
Links postLinks
postLinksstring[]The links from recentPosts on their own, ready to send as a batch of post requests.
Older names, still sent recentPosts[]
views playCount viewCount likes comments shares savesnumber · nullThe same counts under their older names.
Paging details, in pageInfo.
Paging pageInfo.recentPosts
requestedbooleanOnly present as false, when you sent includeRecentPosts: false. The post lists are then empty and the page counts are 0.
hasNextPageboolean · nulltrue when there are more posts after this page. null for a profile-only request.
endCursorstring · nullSend this as after to get the next page. null on the last page.
requestedLimitnumberPages requested × 3.
returnedCountnumberHow many post links came back.
pagesRequestednumberThe pages value you sent.
pagesFetchednumberHow many pages came back.
incompletebooleantrue when Facebook stopped before we reached the posts you asked for.
pageInfo.recentVideos nullAlways null. Use pageInfo.recentPosts.
Profile errors
A failed profile request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one profile; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The profile doesn't exist, was removed, or isn't public. | Check the username. If the profile exists, check back after 6–12 hours. Some profiles stay blocked. |
age_ | 404 | The profile is age-restricted, so Facebook only shows it to logged-in adults. | Don't retry. The result won't change. |
rate_ | 429 | This link failed for your API key in the last 3 minutes, or the same link is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the profile from Facebook. | Retry after at least 3 minutes. |
bad_ | 400 | This username or link is invalid, or links to something other than a profile or page, such as a group. The error appears on this item in results; the others continue. | Fix or remove this username or link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, the cursor expired or belongs to another profile, or the batch is over your account limit. The error can be returned at request level or on the affected profile. | Fix the request and send it again. For an expired cursor, start again from the first page. Nothing is charged. |
X
Get public X posts and profiles. Post requests return exact engagement, post details in post, the account in author and photos and videos in media; profile requests return the account's details and, if you ask, its latest posts.
Post
Send the link to one public X post as url, or several links as urls. The response returns its counts in engagement, post details in post, the account in author and photos and videos in media.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | url or urls | Link to one public X post. |
urls | string[] | url or urls | Several links in one request. See Batches below. |
Batches
Send up to 10 links at once in urls.
- Results come back in the same order as your links. Each link is fetched on its own, so one failed post doesn't affect the others. If you send the same link twice, it comes back once.
- If a link isn't a valid X link, that item returns
bad_urland costs nothing. The other links continue. A batch over your account limit is rejected with400before any posts are fetched or charged. - You only pay for posts that succeed. Your balance needs to cover the valid links in the batch when you send it.
Need more than 10 links per request? Contact us and we'll raise your limit.
Accepted links
x.com/…/status/twitter.commobile.twitter.comx.com/i/status/Links copied from the app, with extra parts such as ?s=20, work too.
Example
The API wraps every post in a results array (see Response envelope). The examples below show one item of that array. Post fields explains every field.
{
"url": "https://x.com/creatorshub/status/1890000000000000001"
}
{
"urls": [
"https://x.com/creatorshub/status/1890000000000000001",
"https://twitter.com/creatorshub/status/1890000000000000002"
]
}
{
"url": "https://x.com/creatorshub/status/1890000000000000001",
"platform": "x",
"success": true,
"engagement": {
"plays": null,
"views": 1337911,
"likes": 7801,
"comments": 379,
"shares": 1035,
"saves": 365,
"quoteTweets": 89
},
"metrics": {
"views": 1337911,
"likes": 7801,
"comments": 379,
"shares": 1035,
"saves": 365,
"quoteTweets": 89
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"quoteTweets": "available"
},
"metricAvailability": {
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"quoteTweets": "available"
},
"post": {
"id": "1890000000000000001",
"shortcode": "1890000000000000001",
"normalizedUrl": "https://x.com/creatorshub/status/1890000000000000001",
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher https://t.co/AbCd123",
"type": "video",
"productType": "tweet",
"hashtags": ["refetcher"],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": null
},
"author": {
"id": "1234567890",
"handle": "creatorshub",
"name": "Creators Hub",
"followers": 312418,
"following": 128,
"totalLikes": null,
"videoCount": null,
"bio": "Tips and tools for creators.",
"isVerified": false,
"profilePicUrl": "https://pbs.twimg.com/profile_images/..."
},
"media": {
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": "https://video.twimg.com/...",
"durationSeconds": 59.9,
"width": 1920,
"height": 1080,
"altText": null,
"children": [
{
"id": "1890000000000000101",
"type": "video",
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": "https://video.twimg.com/...",
"durationSeconds": 59.9,
"width": 1920,
"height": 1080,
"altText": null
}
]
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
{
"url": "https://x.com/creatorshub/status/1890000000000000002",
"platform": "x",
"success": true,
"engagement": {
"plays": null,
"views": 697699,
"likes": 3669,
"comments": 207,
"shares": 428,
"saves": 70,
"quoteTweets": 54
},
"metrics": {
"views": 697699,
"likes": 3669,
"comments": 207,
"shares": 428,
"saves": 70,
"quoteTweets": 54
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"quoteTweets": "available"
},
"metricAvailability": {
"views": "available",
"likes": "available",
"comments": "available",
"shares": "available",
"saves": "available",
"quoteTweets": "available"
},
"post": {
"id": "1890000000000000002",
"shortcode": "1890000000000000002",
"normalizedUrl": "https://x.com/creatorshub/status/1890000000000000002",
"publishedAt": "2026-06-08T11:53:04.000Z",
"caption": "Two photos from launch day #refetcher https://t.co/EfGh456",
"type": "carousel",
"productType": "tweet",
"hashtags": ["refetcher"],
"mentions": [],
"region": null,
"language": null,
"location": null,
"commentsDisabled": null,
"isPinned": null,
"isSponsored": null
},
"author": {
"id": "1234567890",
"handle": "creatorshub",
"name": "Creators Hub",
"followers": 312418,
"following": 128,
"totalLikes": null,
"videoCount": null,
"bio": "Tips and tools for creators.",
"isVerified": false,
"profilePicUrl": "https://pbs.twimg.com/profile_images/..."
},
"media": {
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": null,
"durationSeconds": null,
"width": 3189,
"height": 2160,
"altText": null,
"children": [
{
"id": "1890000000000000201",
"type": "photo",
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": null,
"durationSeconds": null,
"width": 3189,
"height": 2160,
"altText": null
},
{
"id": "1890000000000000202",
"type": "photo",
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": null,
"durationSeconds": null,
"width": 2160,
"height": 2160,
"altText": "Launch day crowd"
}
]
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Response time
Every result is fetched live from X the moment you ask for it. A post usually comes back in about 1 second, though some harder ones can take longer.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each post that comes back is one success, and failed posts are never charged.
Post fields
Text, photo and video posts return the same fields. When X doesn't provide a value, the field is null.
Any public post, sent as one of the accepted links.
Result
urlstringLink to the post on x.com.
platformstringAlways "x".
successbooleantrue when the post was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.
Counts engagement
engagement.plays nullAlways null. X has one count, views.
engagement.views number · nullView count, exact. null for posts from before X showed view counts (late 2022).
engagement.likes numberLike count, exact.
engagement.comments numberReply count, exact.
engagement.shares numberRepost count, exact.
engagement.saves numberBookmark count, exact.
engagement.quoteTweets number · nullHow many posts quote this one, exact.
engagementAvailabilityobjectSays whether each count above was returned: "available" or "unavailable". Older posts can have unavailable views.
Post post
post.id post.shortcode stringX's ID for the post, the number in the link. Both fields hold the same value.
post.normalizedUrl stringClean link to the post.
post.publishedAt stringWhen the post was published (UTC, ISO 8601).
post.caption string · nullNative full text when available. Verified retweets retain their exact prefix plus the original post's full native body; quote and reply text never replace the requested caption. Links use X's t.co short links.
post.type string"text", "image", "video" or "carousel" (more than one photo or video).
post.hashtags string[]Hashtags in the text, without #. Empty if there are none.
post.mentions string[]Accounts tagged with @ in the text, without the @. Empty if there are none.
post.productType stringAlways "tweet".
post.region post.language post.location post.commentsDisabled post.isPinned post.isSponsored nullAlways null on X. Kept so every platform returns the same shape.
Account author
author.id stringX's numeric ID for the account.
author.handle stringUsername, without @.
author.name string · nullThe account's display name.
author.followers number · nullFollower count, exact.
author.following number · nullHow many accounts it follows.
author.bio string · nullThe profile bio.
author.isVerified boolean · nulltrue when the account has a verified badge.
author.profilePicUrl string · nullLink to the profile photo.
author.totalLikes author.videoCount nullAlways null in post results. Use a profile request for these.
Media media
media.thumbnailUrl string · nullLink to the first photo, or the video's cover image.
media.videoUrl string · nullLink to the video file. null for posts without a video.
media.durationSeconds number · nullVideo length in seconds.
media.width media.height number · nullSize of the first photo or video in pixels.
media.altText string · nullThe description the author added for the first photo or video.
media.children arrayEvery photo and video in the post, in order. Empty for text posts. See the Media items tab.
Older names, still sent
metrics metricAvailabilityobjectThe same counts under their older names.
Each photo or video in media.children.
Media item media.children[]
idstringX's ID for the photo or video.
typestring"photo" or "video".
thumbnailUrlstringLink to the photo, or the video's cover image.
videoUrlstring · nullLink to the video file. null for photos.
durationSecondsnumber · nullVideo length in seconds. null for photos.
width heightnumberSize in pixels.
altTextstring · nullThe description the author added, when there is one.
Good to know
- The counts use X's names in the docs, but shared keys in the response: replies are
comments, reposts areshares, bookmarks aresaves. - Counts are exact: we return the full number, not X's rounded display such as 1.3M.
- A quoted post's own text and counts aren't included. Request its link separately if you need them.
Post errors
A failed post returns success: false with an error object, and it is never charged.
{
"url": "https://x.com/creatorshub/status/1890000000000000009",
"platform": "x",
"success": false,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable."
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
{
"url": "https://x.com/creatorshub/status/1890000000000000009",
"platform": "x",
"success": false,
"error": {
"category": "rate_limited",
"message": "This X URL failed recently. Please wait before retrying it."
},
"scrapedAt": "2026-06-05T10:18:12.000Z",
"statusCode": 429,
"retryAfterSeconds": 142
}
error.category tells you what happened. The HTTP status applies when the request has one link; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The post was deleted, or its account is protected or suspended. | Stop automatic retries. Check the link, and request it again only if its availability changes. |
missing_ | 502 | We reached the post, but X didn't give us the exact counts. | Retry after 3 minutes. |
rate_ | 429 | This link failed for your API key in the last 3 minutes, or the same link is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the post from X. | Retry after 3 minutes. |
bad_ | 400 | This link is invalid or isn't a supported X link. The error appears on this item in results; other links continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, or the batch is over your account limit. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
Retrying the same link
Failed posts are free, so to prevent repeated free retries, your API key can request a link that just failed again only after 3 minutes. Earlier requests for that link return rate_limited (also free) with the wait time in retryAfterSeconds. Other links in the same request run normally. The same API key must wait 3 minutes after a failed X post URL; this cooldown does not block profile cursor requests. Successful post URLs can be fetched again immediately.
Not returned for normal X post responses: optional diagnostics or internal traces. Optional fields such as limitations are omitted when empty.
See all error categories and HTTP status codes.
Profile
Send a username or profile link to get the account's details. Add includeRecentPosts: true to get posts from its post feed, with their counts, too.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
username | string | One of these | X username, without @. Send it with "platform": "x". |
profileUrl | string | One of these | Link to the profile, for example https://x.com/creatorshub. url works too. |
usernames | string[] | One of these | Several usernames in one request, with "platform": "x". profileUrls takes several links. |
includeRecentPosts | boolean | No | Send true to get the latest posts. Default false: the profile details only. |
pages | integer | No | How many pages of posts to return, from 1 to 25. Each page has up to 5 posts. Default 1. |
sort | string | No | "latest" (default) or "popular". See Sort order below. feedSort works too. |
after | string | No | The endCursor from a previous response, to get the next page. cursor and endCursor work too. |
Pages and continuation
- Ask for up to 25 pages (125 posts) in one request with
pages. - When
hasNextPageistrue, sendpageInfo.recentPosts.endCursorasafterto retrieve the next window for the same profile,sort, andincludeRetweetssetting. A cursor works for one profile per request. - When there is no usable continuation,
hasNextPageisfalseandendCursorisnull; this does not describe the account's full historical post count.
Cursor rules: use exactly one X profile per continuation request. after, cursor, and endCursor are equivalent input names; send the returned value unchanged. X cursors expire after 24 hours. includeRecentPosts defaults to true on continuation; explicitly setting it to false returns HTTP 400. Invalid, expired, conflicting, or mismatched cursors also return 400 without a charge. A cursor can become invalid if the posts at its saved boundary change; start a fresh request without a cursor in that case.
Available coverage: continuation follows the public feed X exposes and does not guarantee all historical posts. If a feed exposes no usable continuation, the response has hasNextPage: false and endCursor: null. incomplete: true means the requested coverage could not be completed, including a short latest-feed window or interrupted retrieval. A terminal popular feed can contain fewer posts with incomplete: false. hasMorePosts is a hint that extra posts were observed or X reported another upstream page; only a non-null endCursor enables continuation.
A cursor chain supports up to 1,000 posts across its requests.
Sort order
Choose the order with sort. Both orders return up to 5 posts per page and work with pages.
| Value | What you get |
|---|---|
"latest" (default) | The newest posts first. A pinned post sits in date order, with isPinned: true. |
"popular" | The account's most popular posts, as X ranks them. The pinned post comes first. |
- Authored replies are excluded. X may return reposts in the public post feed; there is no separate reply, repost or media-feed selector.
- Any other
sortvalue, such as"oldest", is rejected with a400error. The response'sfeed.sortrepeats the order you got.
Example
The response is for the More pages request, shortened to one post. Profile fields explains every field.
{
"platform": "x",
"username": "creatorshub",
"includeRecentPosts": true,
"sort": "latest",
"pages": 1
}
{
"profileUrl": "https://x.com/creatorshub",
"includeRecentPosts": true
}
{
"platform": "x",
"username": "creatorshub",
"includeRecentPosts": true,
"pages": 2
}
{
"platform": "x",
"username": "creatorshub",
"includeRecentPosts": true,
"sort": "popular"
}
{
"platform": "x",
"username": "creatorshub",
"includeRecentPosts": true,
"after": "x:profile:v1:eyJ0YXJnZXQiOiJleGFtcGxlIn0"
}
{
"url": "https://x.com/creatorshub",
"platform": "x",
"type": "profile",
"success": true,
"profile": {
"id": "1234567890",
"handle": "creatorshub",
"name": "Creators Hub",
"biography": "Tips and tools for creators.",
"followers": 312418,
"following": 128,
"totalPosts": 4210,
"totalVideos": 860,
"totalLikes": 1532,
"talkingAbout": null,
"wereHere": null,
"highlightReelCount": null,
"isPrivate": false,
"isVerified": false,
"isBusinessAccount": false,
"isProfessionalAccount": false,
"categoryName": null,
"externalUrl": "https://example.com",
"profilePicUrl": "https://pbs.twimg.com/profile_images/...",
"profilePicUrlHd": "https://pbs.twimg.com/profile_images/...",
"pinnedPostId": "1880000000000000003"
},
"recentPosts": [
{
"id": "1890000000000000001",
"shortcode": "1890000000000000001",
"url": "https://x.com/creatorshub/status/1890000000000000001",
"type": "video",
"isVideo": true,
"engagement": {
"plays": null,
"views": 1337911,
"likes": 7801,
"comments": 379,
"shares": 1035,
"saves": 365
},
"views": 1337911,
"playCount": null,
"viewCount": null,
"likes": 7801,
"comments": 379,
"shares": 1035,
"saves": 365,
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher https://t.co/AbCd123",
"displayUrl": "https://pbs.twimg.com/media/...",
"quoteTweets": 89,
"author": {
"id": "1234567890",
"handle": "creatorshub",
"name": "Creators Hub",
"followers": 312418,
"isVerified": false,
"profilePicUrl": "https://pbs.twimg.com/profile_images/..."
},
"conversationId": "1890000000000000001",
"isPinned": false,
"isReply": false,
"isQuote": false,
"replyTo": null,
"quoteOf": null,
"media": {
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": "https://video.twimg.com/...",
"durationSeconds": 59.9,
"width": 1920,
"height": 1080,
"altText": null,
"children": [
{
"id": "1890000000000000101",
"type": "video",
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": "https://video.twimg.com/...",
"durationSeconds": 59.9,
"width": 1920,
"height": 1080,
"altText": null
}
]
},
"dimensions": {
"width": 1920,
"height": 1080
}
}
],
"recentVideos": [
{
"id": "1890000000000000001",
"shortcode": "1890000000000000001",
"url": "https://x.com/creatorshub/status/1890000000000000001",
"type": "video",
"isVideo": true,
"engagement": {
"plays": null,
"views": 1337911,
"likes": 7801,
"comments": 379,
"shares": 1035,
"saves": 365
},
"views": 1337911,
"playCount": null,
"viewCount": null,
"likes": 7801,
"comments": 379,
"shares": 1035,
"saves": 365,
"publishedAt": "2026-06-01T08:30:00.000Z",
"caption": "Behind the scenes of our new release #refetcher https://t.co/AbCd123",
"displayUrl": "https://pbs.twimg.com/media/...",
"quoteTweets": 89,
"author": {
"id": "1234567890",
"handle": "creatorshub",
"name": "Creators Hub",
"followers": 312418,
"isVerified": false,
"profilePicUrl": "https://pbs.twimg.com/profile_images/..."
},
"conversationId": "1890000000000000001",
"isPinned": false,
"isReply": false,
"isQuote": false,
"replyTo": null,
"quoteOf": null,
"media": {
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": "https://video.twimg.com/...",
"durationSeconds": 59.9,
"width": 1920,
"height": 1080,
"altText": null,
"children": [
{
"id": "1890000000000000101",
"type": "video",
"thumbnailUrl": "https://pbs.twimg.com/media/...",
"videoUrl": "https://video.twimg.com/...",
"durationSeconds": 59.9,
"width": 1920,
"height": 1080,
"altText": null
}
]
},
"dimensions": {
"width": 1920,
"height": 1080
}
}
],
"feed": {
"sort": "latest",
"chronological": true,
"postsPerPage": 5,
"complete": true
},
"pageInfo": {
"recentPosts": {
"hasNextPage": true,
"endCursor": "x:profile:v1:eyJ0YXJnZXQiOiJleGFtcGxlIn0",
"requestedLimit": 10,
"returnedCount": 10,
"pagesRequested": 2,
"pagesFetched": 2,
"incomplete": false,
"paginationSupported": true,
"hasMorePosts": true
},
"recentVideos": {
"hasNextPage": true,
"endCursor": "x:profile:v1:eyJ0YXJnZXQiOiJleGFtcGxlIn0",
"requestedLimit": 10,
"returnedCount": 2,
"pagesRequested": 2,
"pagesFetched": 1,
"incomplete": false,
"paginationSupported": true,
"hasMorePosts": true
}
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Response time
Response time depends on the requested depth and the public feed X exposes. Additional pages and recovery requests can take longer.
Cost
$0.90 per 1,000 successes. Each page of up to 5 posts is one success, and the profile details come free with the first page. Asking for the profile only (without includeRecentPosts) is one success.
Profile fields
Pick a tab to see every field a profile request returns. When X doesn't provide a value, the field is null.
The account itself, in profile.
Result
urlstringClean link to the profile.
platformstringAlways "x".
typestringAlways "profile".
successbooleantrue when the profile was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the profile (UTC, ISO 8601).
limitationsstring[]Anything important we need to tell you about this profile, for example that it's protected, or that only X's popular selection was available. Only present when there is something.
Account profile
profile.id stringX's numeric ID for the account.
profile.handle stringUsername, without @.
profile.name string · nullThe account's display name.
profile.biography string · nullThe profile bio.
profile.followers numberFollower count, exact.
profile.following numberHow many accounts it follows.
profile.totalPosts number · nullHow many posts the account has made, including reposts and replies.
profile.totalVideos number · nullHow many photo and video posts the account has made.
profile.totalLikes number · nullHow many posts the account has liked.
profile.isPrivate booleantrue for protected accounts. Their posts aren't public.
profile.isVerified boolean · nulltrue when the account has a verified badge.
profile.externalUrl string · nullThe link in the profile.
profile.profilePicUrl profile.profilePicUrlHd string · nullLink to the profile photo, and a larger version.
profile.pinnedPostId string · nullID of the pinned post. null when nothing is pinned.
profile.isBusinessAccount profile.isProfessionalAccount profile.categoryName profile.talkingAbout profile.wereHere profile.highlightReelCount null · booleanAlways false or null on X. Kept so every platform returns the same shape.
Each item in recentPosts. Only with includeRecentPosts: true.
Post recentPosts[]
id shortcodestringX's ID for the post. Both fields hold the same value.
urlstringLink to the post.
typestring"text", "image", "video" or "carousel".
isVideobooleantrue for videos.
engagementobjectplays, views, likes, comments (replies), shares (reposts) and saves (bookmarks), exact. plays is always null; X has one count, views. Views are null on posts from before X showed view counts (late 2022).
quoteTweetsnumber · nullHow many posts quote this one, exact.
publishedAtstringWhen the post was published (UTC, ISO 8601).
captionstring · nullNative full text when available, including a verified retweet's literal RT @handle: prefix plus the original full body.
displayUrlstring · nullLink to the first photo or the video's cover image.
authorobjectWho posted it: id, handle, name, followers, isVerified and profilePicUrl.
isPinnedbooleantrue for the pinned post.
isQuote quoteOfboolean · objectisQuote is true when the post quotes another; quoteOf then has that post's id and url.
conversationIdstringID of the conversation the post belongs to.
media dimensionsobjectThe same photos and videos as post results, and the size of the first one.
isReply replyToboolean · nullAlways false and null: replies aren't included.
Videos recentVideos[]
recentVideosarrayThe video posts from recentPosts, with the same fields.
Older names, still sent recentPosts[]
views likes comments shares savesnumber · nullThe same counts under their older names.
playCount viewCountnullAlways null on X.
How the posts were chosen, in feed, and paging details in pageInfo.
Feed feed
feed.sort stringThe sort used: "latest" or "popular".
feed.chronological booleantrue for "latest".
feed.postsPerPage numberAlways 5.
feed.complete booleanfalse when we stopped before reading every page you asked for.
Paging pageInfo.recentPosts
hasNextPagebooleantrue only when a usable endCursor allows continuation. This flag does not describe the account's full historical post count.
endCursorstring · nullSend this as after to retrieve the next window. null when there is no usable continuation; expires after 24 hours.
requestedLimitnumberPages requested × 5.
returnedCountnumberHow many posts came back.
pagesRequestednumberThe pages value you sent.
pagesFetchednumberHow many pages came back.
incompletebooleantrue when we stopped before reaching the posts you asked for.
pageInfo.recentVideos objectThe same paging fields for recentVideos.
Profile errors
A failed profile request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one profile; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The account doesn't exist, was suspended, or is otherwise unavailable. | Check the username and stop automatic retries for confirmed unavailable profiles. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the profile from X. | Retry after a few minutes. |
bad_ | 400 | This username or profile link is invalid. X usernames are up to 15 letters, numbers and underscores. The error appears on this item in results; the others continue. | Fix or remove this username or link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, the sort value isn't "latest" or "popular", the cursor belongs to another profile or was sent with more than one profile, or the batch is over your account limit. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
YouTube
Get public YouTube videos, Shorts and channels, and search YouTube by keyword, channel or hashtag. Video requests return exact engagement, video details in post, the channel in author, links in media and, if you ask, comments; channel requests return the channel's details and its latest videos. Choose type: "youtubeComments" or "youtubeCommentReplies" for full comment and reply threads with paging.
Video & Short
Send the link to one public YouTube video or Short as url, or several links as urls. The response returns its counts in engagement, video details in post, the channel in author and links in media.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | url or urls | Link to one public YouTube video or Short. |
urls | string[] | url or urls | Several links in one request. See Batches below. |
includeRecentComments | boolean | No | Set to true to also get the video's comments. Default false. For more than 100 comments, another order or replies, use a comments request. |
recentCommentsLimit | integer | No | How many comments to return, from 1 to 100. Default 20. |
Batches
Send up to 10 links at once in urls.
- Results come back in the same order as your links. Each link is fetched on its own, so one failed video doesn't affect the others. If you send the same link twice, it comes back once.
- If a link isn't a valid YouTube link, that item returns
bad_urland costs nothing. The other links continue. A batch over your account limit is rejected with400before any videos are fetched or charged. - You only pay for videos that succeed. Your balance needs to cover the valid links in the batch when you send it.
Need more than 10 links per request? Contact us and we'll raise your limit.
Accepted links
/watch?v=/shorts/youtu.be/embed//live/m.youtube.comExample
The API wraps every video in a results array (see Response envelope). The examples below show one item of that array. Video & Short fields explains every field.
{
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0"
}
{
"urls": [
"https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"https://www.youtube.com/shorts/Qw9eRt2yUi5",
"https://youtu.be/Zx7cVb1nMk4"
]
}
{
"url": "https://www.youtube.com/shorts/Qw9eRt2yUi5",
"includeRecentComments": true,
"recentCommentsLimit": 2
}
{
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"platform": "youtube",
"success": true,
"engagement": {
"plays": null,
"views": 2418337,
"likes": 98412,
"comments": 3207,
"shares": null,
"saves": null
},
"metrics": {
"views": 2418337,
"likes": 98412,
"comments": 3207,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "unavailable",
"saves": "unavailable"
},
"post": {
"id": "Ab3dEf6hIj0",
"normalizedUrl": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"publishedAt": "2026-06-01T08:30:00Z",
"caption": "Behind the scenes of our new release",
"description": "How we built it, start to finish."
},
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"followers": null
},
"media": {
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/hqdefault.jpg",
"embedUrl": "https://www.youtube.com/embed/Ab3dEf6hIj0",
"durationSeconds": 741
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
{
"url": "https://www.youtube.com/watch?v=Qw9eRt2yUi5",
"platform": "youtube",
"success": true,
"engagement": {
"plays": null,
"views": 1834710,
"likes": 58836,
"comments": 1355,
"shares": null,
"saves": null
},
"metrics": {
"views": 1834710,
"likes": 58836,
"comments": 1355,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "unavailable",
"saves": "unavailable"
},
"post": {
"id": "Qw9eRt2yUi5",
"normalizedUrl": "https://www.youtube.com/watch?v=Qw9eRt2yUi5",
"publishedAt": "2026-06-08T11:53:04Z",
"caption": "Three tips in 30 seconds",
"description": "Quick tips for new creators."
},
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"followers": null
},
"media": {
"thumbnailUrl": "https://i.ytimg.com/vi/Qw9eRt2yUi5/hqdefault.jpg",
"embedUrl": "https://www.youtube.com/embed/Qw9eRt2yUi5",
"durationSeconds": 30
},
"scrapedAt": "2026-06-08T12:20:41.000Z",
"recentComments": [
{
"id": "UgxPinnedExample0001",
"text": "Which tip was your favorite?",
"likeCount": 1200,
"replyCount": 86,
"publishedAt": null,
"updatedAt": null,
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"name": "@creatorshub",
"avatarUrl": "https://yt3.ggpht.com/...",
"profileUrl": "https://www.youtube.com/@creatorshub"
},
"authorName": "@creatorshub",
"authorChannelId": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"authorChannelUrl": "https://www.youtube.com/@creatorshub",
"likes": 1200
},
{
"id": "UgxCommentExample0002",
"text": "The second one helped a lot.",
"likeCount": null,
"replyCount": null,
"publishedAt": null,
"updatedAt": null,
"author": {
"id": "UCv1ewer0000000000000000",
"handle": "viewer",
"name": "@viewer",
"avatarUrl": "https://yt3.ggpht.com/...",
"profileUrl": "https://www.youtube.com/@viewer"
},
"authorName": "@viewer",
"authorChannelId": "UCv1ewer0000000000000000",
"authorChannelUrl": "https://www.youtube.com/@viewer",
"likes": null
}
]
}
Response time
Every result is fetched live from YouTube the moment you ask for it. A video or Short usually comes back in 2–4 seconds, though some harder ones can take longer.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each video or Short that comes back is one success, comments included, and failed videos are never charged.
Video & Short fields
Videos and Shorts return the same fields. When YouTube doesn't provide a value, the field is null.
A video or Short, sent as any of the accepted links.
Result
urlstringLink to the video. Shorts and short links come back as the full watch link.
platformstringAlways "youtube".
successbooleantrue when the video was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the video (UTC, ISO 8601). Counts are a snapshot from this moment.
Counts engagement
engagement.plays nullAlways null. YouTube has one count, views.
engagement.views numberView count, exact.
engagement.likes number · nullLike count, exact. null when the creator hides likes.
engagement.comments number · nullComment count, exact. null when comments are turned off.
engagement.shares engagement.saves nullYouTube doesn't make these public. Always null.
engagementAvailabilityobject"available" or "unavailable" for each count. plays is "not_applicable".
Video post
post.id stringYouTube's ID for the video, for example Ab3dEf6hIj0.
post.normalizedUrl stringClean watch link to the video.
post.publishedAt stringWhen the video was published (UTC, ISO 8601).
post.caption stringThe video title.
post.description string · nullThe full description. null when there is none.
Channel author
author.id stringYouTube's ID for the channel, starting with UC.
author.channelHandle string · nullThe channel's handle, without @.
author.name stringThe channel's display name.
author.handle stringHolds the channel ID, kept for older integrations. Use author.channelHandle for the handle.
author.followers nullNot included in video results. Use a channel request for subscriber counts.
Media media
media.thumbnailUrl stringLink to the video's thumbnail image.
media.embedUrl stringLink for embedding the video on a web page.
media.durationSeconds number · nullVideo length in seconds. null for live streams and upcoming premieres.
Older names, still sent
metricsobjectThe same counts under their older names.
Each item in recentComments. Only present when you send includeRecentComments: true.
Comments recentComments[]
idstringYouTube's ID for the comment.
textstringThe comment text.
likeCountnumber · nullLike count. On Shorts it can be rounded, or null when it is 0.
replyCountnumber · nullHow many replies the comment has.
publishedAt updatedAtstring · nullWhen the comment was posted and last edited (UTC, ISO 8601). Often null on Shorts.
author.id author.handle author.name string · nullWho wrote it: their channel ID, handle without @, and the name YouTube shows, usually the @handle.
author.avatarUrl author.profileUrl string · nullTheir profile photo and channel link.
Result
recentCommentsErrorstringOnly present when we couldn't read the comments. The video still succeeds, with an empty recentComments list.
Older names, still sent recentComments[]
authorName authorChannelId authorChannelUrlstringSame as author.name, author.id and author.profileUrl.
likesnumber · nullSame as likeCount.
Good to know
- On a video, comments come newest first. On a Short, the pinned comment comes first.
- Comments are optional. If we can't read them, the video still succeeds with an empty
recentCommentslist and arecentCommentsErrornote. - Thumbnail and embed links don't expire. We don't return video download links.
Video & Short errors
A failed video returns success: false with an error object, and it is never charged.
{
"url": "https://www.youtube.com/watch?v=Zx7cVb1nMk4",
"platform": "youtube",
"success": false,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable."
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
{
"url": "https://www.youtube.com/watch?v=Zx7cVb1nMk4",
"platform": "youtube",
"success": false,
"error": {
"category": "rate_limited",
"message": "This YouTube URL failed recently. Please wait before retrying it."
},
"scrapedAt": "2026-06-05T10:18:12.000Z",
"statusCode": 429,
"retryAfterSeconds": 142
}
error.category tells you what happened. The HTTP status applies when the request has one link; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The video is private, deleted, or its channel was closed. | Check back after 6–12 hours. The creator can make it public again. Some videos stay blocked. |
missing_ | 502 | We reached the video, but YouTube didn't give us the exact views, likes and comments. | Retry after 3 minutes. |
rate_ | 429 | This link failed for your API key in the last 3 minutes, or the same link is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the video from YouTube. | Retry after 3 minutes. |
bad_ | 400 | This link is invalid or isn't a supported YouTube link. The error appears on this item in results; other links continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | The request body or options are invalid, or the batch is over your account limit. It comes back as the response's top-level error, with no results. | Fix the request and send it again. Nothing is charged. |
Retrying the same link
Failed videos are free, so to prevent repeated free retries, your API key can request a link that just failed again only after 3 minutes. Earlier requests for that link return rate_limited (also free) with the wait time in retryAfterSeconds. Other links in the same request run normally.
See all error categories and HTTP status codes.
Channel
Send a channel link, @handle or channel ID to get the channel's details and its latest videos. Use type: "channelVideos" to get each video's views, likes and comments too.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
url | string | One of these | Link to the channel, for example https://www.youtube.com/@creatorshub. /channel/ and /user/ links work too. channelUrl works too. |
handle | string | One of these | The channel's handle, for example @creatorshub. Send it with type or "platform": "youtube". |
channelId | string | One of these | The channel ID, starting with UC. Send it with type or "platform": "youtube". |
urls | string[] | One of these | Several channels in one request. channelUrls works too. |
type | string | No | "channel" for the channel's details and latest video links, or "channelVideos" for the latest videos with their counts. Without type, a channel link returns the channel's details only. |
includeRecentVideos | boolean | No | With "channel", send false to get the channel's details only. Default true. |
pages | integer | No | How many pages of videos to return, from 1 to 25. Each page has 12 videos. Default 1. |
recentVideosLimit | integer | No | An exact number of videos instead of pages, from 1 to 300. Wins if you send both. |
after | string | No | The endCursor from a previous response, to get the next videos. cursor and endCursor work too. |
Getting more videos
- Ask for up to 25 pages (300 videos) in one request with
pages. Combinepagesandafterto choose how many pages to load after the previous response; changing the page count between requests is supported. - To continue later, send
pageInfo.endCursorfrom your last response asafter. A cursor works for one channel per request and expires after 24 hours. - When there are no more videos,
hasNextPageisfalseandendCursorisnull. - Videos are newest first. The cursor continues from the last returned upload even if Refetcher changes its data source.
"channel"returns each video's link, title, length and publish date."channelVideos"adds its views, likes and comments.
Example
The responses are shortened to one video. Channel fields explains every field.
{
"type": "channel",
"url": "https://www.youtube.com/@creatorshub"
}
{
"type": "channelVideos",
"url": "https://www.youtube.com/@creatorshub",
"pages": 2
}
{
"type": "channelVideos",
"url": "https://www.youtube.com/@creatorshub",
"pages": 2,
"after": "refetcher:youtube:v1:eyJ2IjoxLCJmZWVkIjoi..."
}
{
"url": "https://www.youtube.com/@creatorshub",
"platform": "youtube",
"type": "channel",
"success": true,
"channel": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"description": "Tips and tools for creators.",
"country": "US",
"publishedAt": "2014-03-12T00:00:00Z",
"subscribers": 312000,
"hiddenSubscriberCount": false,
"totalViews": 48213907,
"totalVideos": 420,
"uploadsPlaylistId": "UUx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"thumbnailUrl": "https://yt3.ggpht.com/...",
"url": "https://www.youtube.com/@creatorshub"
},
"scrapedAt": "2026-06-05T10:15:30.000Z",
"recentVideos": [
{
"id": "Ab3dEf6hIj0",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"title": "Behind the scenes of our new release",
"handle": "Creators Hub",
"channelId": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"channelHandle": "creatorshub",
"durationSeconds": 741,
"publishedAt": "2026-06-01T08:30:00Z",
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/maxresdefault.jpg",
"engagement": {
"plays": null,
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
}
}
],
"pageInfo": {
"endCursor": "refetcher:youtube:v1:eyJ2IjoxLCJmZWVkIjoi...",
"hasNextPage": true,
"requestedLimit": 12,
"returnedCount": 12,
"pagesRequested": 1,
"pagesFetched": 1,
"incomplete": false
}
}
{
"url": "https://www.youtube.com/@creatorshub",
"platform": "youtube",
"type": "channelVideos",
"success": true,
"channel": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"name": "Creators Hub",
"subscribers": 312000,
"hiddenSubscriberCount": false,
"totalViews": 48213907,
"totalVideos": 420
},
"results": [
{
"id": "Ab3dEf6hIj0",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"title": "Behind the scenes of our new release",
"handle": "Creators Hub",
"channelId": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"channelHandle": "creatorshub",
"durationSeconds": 741,
"engagement": {
"plays": null,
"views": 2418337,
"likes": 98412,
"comments": 3207,
"shares": null,
"saves": null
},
"views": 2418337,
"likes": 98412,
"comments": 3207,
"publishedAt": "2026-06-01T08:30:00Z",
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/maxresdefault.jpg"
}
],
"videos": [
{
"id": "Ab3dEf6hIj0",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"title": "Behind the scenes of our new release",
"handle": "Creators Hub",
"channelId": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"channelHandle": "creatorshub",
"durationSeconds": 741,
"engagement": {
"plays": null,
"views": 2418337,
"likes": 98412,
"comments": 3207,
"shares": null,
"saves": null
},
"views": 2418337,
"likes": 98412,
"comments": 3207,
"publishedAt": "2026-06-01T08:30:00Z",
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/maxresdefault.jpg"
}
],
"pageInfo": {
"endCursor": "refetcher:youtube:v1:eyJ2IjoxLCJmZWVkIjoi...",
"hasNextPage": true,
"requestedLimit": 24,
"returnedCount": 24,
"pagesRequested": 2,
"pagesFetched": 2,
"incomplete": false
},
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
Response time
A channel usually comes back in about 2 seconds, and channel videos in 5–12 seconds, even with 300 videos.
Cost
$0.90 per 1,000 successes. Each page of 12 videos is one success, and the channel details come free with the first page. Asking for the channel only (includeRecentVideos: false, or no type) is one success. A successful confirmed empty channel or terminal zero-video response is also one success. Failed continuations are free.
Channel fields
Pick a tab to see every field a channel request returns. When YouTube doesn't provide a value, the field is null.
The channel itself, in channel. "channelVideos" returns the counts only, without the description, country, created date and links.
Result
urlstringClean link to the channel.
platformstringAlways "youtube".
typestring"channel" or "channelVideos", matching your request.
successbooleantrue when the channel was read successfully, otherwise false with an error object.
scrapedAtstringWhen we read the channel (UTC, ISO 8601).
Channel channel
channel.id stringYouTube's ID for the channel, starting with UC.
channel.handle channel.channelHandle string · nullThe channel's handle, without @. Both fields hold the same value.
channel.name stringThe channel's display name.
channel.subscribers number · nullSubscriber count, rounded by YouTube, for example 312000 for 312K. null when the channel hides it.
channel.hiddenSubscriberCount booleantrue when the channel hides its subscriber count.
channel.totalViews number · nullViews across all the channel's videos, exact.
channel.totalVideos number · nullHow many public videos the channel has.
channel.description string · nullThe channel description. Only with "channel".
channel.country string · nullTwo-letter country code the channel set, for example "US". Only with "channel".
channel.publishedAt string · nullThe day the channel was created. The date is reliable; the time can be off. Only with "channel".
channel.url channel.thumbnailUrl channel.uploadsPlaylistId string · nullThe channel link, its picture, and the ID of its uploads playlist. Only with "channel".
Each video in recentVideos (with "channel") or videos (with "channelVideos").
Video recentVideos[] / videos[]
idstringYouTube's ID for the video.
urlstringLink to the video.
titlestringThe video title.
publishedAtstringWhen the video was published (UTC, ISO 8601).
durationSecondsnumber · nullVideo length in seconds. null for live streams and upcoming premieres.
thumbnailUrlstringLink to the video's thumbnail image.
channelId channelHandlestringThe channel's ID and handle, without @.
engagementobjectplays, views, likes, comments, shares and saves, exact. Filled only with "channelVideos"; with "channel" all six are null. plays, shares and saves are always null. Likes or comments are null when the creator hides them.
handlestringHolds the channel name, kept for older integrations. Use channelHandle for the handle.
resultsarrayWith "channelVideos", the same videos as videos, kept for older integrations.
Older names, still sent videos[]
views likes commentsnumber · nullThe same counts under their older names.
Paging details in pageInfo, on every request that returns videos.
Paging pageInfo
hasNextPagebooleantrue when the channel has more videos after these.
endCursorstring · nullSend this as after to get the next videos. Expires after 24 hours. null on the last page.
requestedLimitnumberPages requested × 12, or your recentVideosLimit.
returnedCountnumberHow many videos came back.
pagesRequestednumberceil(requestedLimit / 12), normally the pages value you sent. An explicit video-count limit takes precedence over pages.
pagesFetchednumberHow many pages came back. Can be lower when the channel has fewer videos.
incompletebooleanAlways false on success. If the continuation cannot be verified, the request fails instead of returning an incomplete page.
Thumbnail and channel picture links don't expire.
Channel errors
A failed channel request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one channel; a batch with at least one success returns 200.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The channel doesn't exist or was closed. | Check the link or handle. |
timeout, upstream_, blocked_ | 502 | A temporary problem reading the channel from YouTube, or its cursor position could not be verified. | Retry after a few minutes. If the cursor position can no longer be resolved, start again without after. |
bad_ | 400 | The channel link or handle is invalid or unsupported, or its cursor belongs to a different channel once the handle is resolved. The error appears on this item in results; the others continue. | Fix or remove this link or handle. This item is never charged. |
bad_ | 400 | The request body or options are invalid, the batch is over your account limit, or the cursor is invalid, expired, was sent with more than one channel, or does not match a channel-ID URL. It comes back as the response's top-level error, with no results. | Fix the request and send it again. For an expired cursor, start again from the first page. Nothing is charged. |
Comments
Send a video or Short link with type: "youtubeComments" to get its public comments, each with its full text, likes, reply count and author. To read a comment's replies, use Replies.
Video requests can still include up to 100 newest comments with includeRecentComments. Use this request when you need more comments, paging, a different order or replies.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "youtubeComments". |
url | string | url or urls | Link to one public YouTube video or Short. Channels aren't accepted. |
urls | string[] | url or urls | Several video links in one request, up to your batch limit (normally 10). A cursor works with one video only. |
pages | integer | No | How many pages to return, from 1 to 25. Each page has up to 20 comments. Default 1. |
sort | string | No | "relevant" (default) for YouTube's Top comments order, or "latest" for Newest first. commentsSort works too. |
after | string | No | The pageInfo.endCursor from your last response, to get the next page. cursor and endCursor work too. |
limit, commentsLimit and recentCommentsLimit aren't accepted here; use pages.
Getting more comments
- Ask for up to 25 pages (500 comments) in one request. Each page has up to 20 comments; only the last page can have fewer.
- To continue, send
pageInfo.endCursorasafter, with the same video andsort. A cursor works for 24 hours.pagescan ask for several pages after a cursor too. Comment and reply cursors are opaque and encrypted; copy them unchanged. - When there are no more comments available in YouTube's feed,
hasNextPageisfalseandendCursorisnull. YouTube controls coverage; a total count does not guarantee that every comment can be retrieved. Pinned comments may appear before newest comments. - Long comments come back in full. If a response gets too large or slow, it stops between comments with
incomplete: true. Continue whenhasNextPageistrueand a cursor is returned; an incomplete response without a usable cursor cannot resume. - If a link isn't a valid YouTube video link, that item returns
bad_urland costs nothing. The other links continue.
Accepted links
watch?v=/shorts//live//embed/youtu.bem.youtube.commusic.youtube.comThe result's url and post.url come back as the watch?v= link, also for Shorts.
Example
The API wraps every video in a results array (see Response envelope). The response below is for the More pages request, shortened to two comments. The cursors are placeholders; copy the full cursor from your own response. Comment fields explains every field.
{
"type": "youtubeComments",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0"
}
{
"type": "youtubeComments",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"pages": 2
}
{
"type": "youtubeComments",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"sort": "latest"
}
{
"type": "youtubeComments",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"after": "youtube:comments:v2:ENCRYPTED_CURSOR_FROM_RESPONSE"
}
{
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"platform": "youtube",
"type": "comments",
"success": true,
"post": {
"id": "Ab3dEf6hIj0",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0"
},
"parentCommentId": null,
"comments": [
{
"id": "UgwExamplePinned00001AaABAg",
"text": "Which tip was your favorite?\nTell us below!",
"publishedTimeText": "2 weeks ago",
"likeCount": null,
"likeCountText": "1.2K",
"replyCount": 86,
"parentCommentId": null,
"isAuthor": true,
"likedByAuthor": false,
"pinned": true,
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"name": "@creatorshub",
"avatarUrl": "https://yt3.ggpht.com/...",
"profileUrl": "https://www.youtube.com/@creatorshub"
},
"replyCursor": "youtube:comments:v2:ENCRYPTED_CURSOR_FROM_RESPONSE"
},
{
"id": "UgxExampleComment0002AaABAg",
"text": "The part about lighting saved my whole setup.",
"publishedTimeText": "5 days ago (edited)",
"likeCount": 214,
"likeCountText": "214",
"replyCount": 0,
"parentCommentId": null,
"isAuthor": false,
"likedByAuthor": true,
"pinned": null,
"author": {
"id": "UCv1ewer0000000000000000",
"handle": "mayamakes",
"name": "@mayamakes",
"avatarUrl": "https://yt3.ggpht.com/...",
"profileUrl": "https://www.youtube.com/@mayamakes"
}
}
],
"totalCount": null,
"totalCountText": "3.2K",
"sort": "relevant",
"sortScope": "youtube_order",
"pageInfo": {
"hasNextPage": true,
"endCursor": "youtube:comments:v2:ENCRYPTED_CURSOR_FROM_RESPONSE",
"pagesRequested": 2,
"pagesFetched": 2,
"returnedCount": 40,
"incomplete": false
},
"limitations": [
"YouTube exposes some like counts in rounded form; likeCount is null when an exact value is unavailable."
],
"scrapedAt": "2026-10-28T10:15:30.000Z"
}
Response time
A page usually comes back in 2–3 seconds. Set your HTTP client timeout to 180 seconds so requests for many pages have time to finish.
Cost
$0.90 per 1,000 successes. Each page of up to 20 comments is one success: a two-page result with 40 comments costs two, not 40. Empty results and failed requests are free. Your balance needs to cover the pages you ask for when you send the request; pages that don't come back aren't charged. A request can ask for up to 50 pages in total across all its videos.
Replies
Send the video link with type: "youtubeCommentReplies" and a top-level comment's id as commentId to get the replies to that comment. Replies aren't included in a comments request.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "youtubeCommentReplies". |
url | string | Yes | The video or Short the comment is on. One video per request. |
commentId | string | Yes | The top-level comment's id, for example "UgwExamplePinned00001AaABAg". A reply can't be used. comment_id works too. |
pages | integer | No | How many pages to return, from 1 to 25. Each page has up to 20 replies. Default 1. |
after | string | No | The comment's replyCursor from a comments response, or the pageInfo.endCursor from your last replies response. Keep the same commentId. |
- You can start with
commentIdon its own, or add the comment'sreplyCursorasafter. WithcommentIdon its own,totalCountcan show the comment's exact reply count when YouTube supplies it; otherwise it isnull. - Replies come in YouTube's order.
sortonly accepts"relevant". - Reply cursors only work for the same video and comment, for 24 hours. A comments cursor can't be used for replies, or the other way round.
- A comment with no replies returns
success: truewith an emptycommentslist, for free.
Example
The response is shortened to one reply. Cost and response time are the same as for comments.
{
"type": "youtubeCommentReplies",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"commentId": "UgwExamplePinned00001AaABAg"
}
{
"type": "youtubeCommentReplies",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"commentId": "UgwExamplePinned00001AaABAg",
"after": "youtube:comments:v2:ENCRYPTED_CURSOR_FROM_RESPONSE"
}
{
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"platform": "youtube",
"type": "comments",
"success": true,
"post": {
"id": "Ab3dEf6hIj0",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0"
},
"parentCommentId": "UgwExamplePinned00001AaABAg",
"comments": [
{
"id": "UgwExamplePinned00001AaABAg.A2KzExampleReply01",
"text": "The lighting one, easily.",
"publishedTimeText": "2 weeks ago",
"likeCount": 482,
"likeCountText": "482",
"replyCount": null,
"parentCommentId": "UgwExamplePinned00001AaABAg",
"isAuthor": false,
"likedByAuthor": false,
"pinned": null,
"author": {
"id": "UCr3plyAuthor00000000000",
"handle": "studionorth",
"name": "@studionorth",
"avatarUrl": "https://yt3.ggpht.com/...",
"profileUrl": "https://www.youtube.com/@studionorth"
}
}
],
"totalCount": 86,
"totalCountText": null,
"sort": "relevant",
"sortScope": "youtube_replies",
"pageInfo": {
"hasNextPage": true,
"endCursor": "youtube:comments:v2:ENCRYPTED_CURSOR_FROM_RESPONSE",
"pagesRequested": 1,
"pagesFetched": 1,
"returnedCount": 20,
"incomplete": false
},
"scrapedAt": "2026-10-28T10:16:02.000Z"
}
Comment fields
Comments and replies return the same fields. When YouTube doesn't provide a value, the field is null.
One item of results, each item in comments, and paging details in pageInfo.
Result
urlstringThe video's watch?v= link, also for Shorts.
platformstringAlways "youtube".
typestringAlways "comments", also for replies.
successbooleantrue when the comments were read successfully, including an empty result. Otherwise false with an error object.
post.id post.url stringYouTube's video ID and the video's watch?v= link.
parentCommentIdstring · nullThe commentId you sent, for replies. null for top-level comments.
commentsobject[]The comments or replies. An empty result returns [].
totalCountnumber · nullThe video's total comment count, exact, when YouTube supplies the full number. null when only a rounded count or no count is available. For replies requested with commentId on its own, it can be the parent's exact reply count. Resumed replies may have no total.
totalCountTextstring · nullThe video's comment count as YouTube shows it, for example "3.2K" or "12". null for replies.
sortstringThe order you asked for: "relevant" or "latest".
sortScopestring"youtube_order" for comments and "youtube_replies" for replies. Both mean the order is YouTube's own.
limitationsstring[]Anything important we need to tell you about this result, for example that some like counts are rounded. Only present when there is something.
scrapedAtstringWhen we read the comments (UTC, ISO 8601).
Comment comments[]
idstringYouTube's ID for the comment. A reply's ID is its parent's ID, a dot, then the reply's own ID.
textstringThe full comment text, including line breaks and emoji. It isn't cut short.
publishedTimeTextstring · nullWhen it was posted, as YouTube shows it, for example "2 weeks ago" or "5 days ago (edited)". YouTube doesn't give an exact date here.
likeCountnumber · nullLike count, exact when YouTube supplies an exact value. null when only a rounded value such as "1.2K" is available. Rounded text is never expanded into an exact count.
likeCountTextstring · nullThe like count as YouTube shows it, for example "214" or "1.2K".
replyCountnumber · nullHow many replies a top-level comment has. Read them with "youtubeCommentReplies". Always null on replies.
replyCursorstringOnly on top-level comments that have replies. Send it as after in a replies request to start that thread.
parentCommentIdstring · nullThe top-level comment a reply belongs to. null on a top-level comment.
isAuthorboolean · nulltrue when the video's own channel wrote the comment.
pinnedboolean · nulltrue for the pinned comment; otherwise null.
likedByAuthorboolean · nulltrue when the video's channel gave the comment a heart, false when it didn't. null when YouTube doesn't say.
author.id author.handle author.name string · nullThe author's channel ID, handle without @, and the name YouTube shows, usually the @handle.
author.avatarUrl author.profileUrl string · nullThe author's profile photo and channel link.
Paging pageInfo
hasNextPagebooleantrue when there are more comments or replies after this page.
endCursorstring · nullSend this as after to continue. It works for the same video, sort and reply parent, for 24 hours. null on the last page.
pagesRequestednumberThe pages value you sent.
pagesFetchednumberPages that came back and were charged. 0 for an empty result.
returnedCountnumberHow many comments or replies came back.
incompletebooleantrue when we stopped before reaching the pages you asked for. Continue only when hasNextPage is true with a non-null endCursor.
Comment errors
A failed comments or replies request returns success: false with an error object, and it is never charged. The HTTP status applies when the request has one video; a batch with at least one success returns 200.
{
"url": "https://www.youtube.com/watch?v=Zz9yXw8vUt7",
"platform": "youtube",
"type": "comments",
"success": false,
"error": {
"category": "private_or_removed",
"message": "This YouTube video is unavailable.",
"retryable": false
},
"scrapedAt": "2026-10-28T10:17:00.000Z"
}
{
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"platform": "youtube",
"type": "comments",
"success": false,
"error": {
"category": "comments_disabled",
"message": "Comments are disabled for this YouTube video.",
"retryable": false
},
"scrapedAt": "2026-10-28T10:17:30.000Z"
}
error.category tells you what happened.
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
private_ | 404 | The video was deleted, is private, or never existed. | Check back after 6–12 hours. The creator can make it public again. Some videos stay blocked. |
comment_ | 404 | The comment you asked replies for is no longer on the video. | Check the commentId. Don't retry the same request. |
comments_ | 403 | The channel turned comments off for this video. | Don't retry. The result won't change unless the channel turns comments back on. |
age_ | 403 | The video is age-restricted, so YouTube only shows it to signed-in adults. | Don't retry. The result won't change. |
geo_, copyright_, login_ | 403 | YouTube blocks this video in our region, because of a copyright claim, or for anyone who isn't signed in. | Don't retry. The result won't change. |
rate_ | 429 | This page failed for your API key in the last 3 minutes, or the same page is still being fetched for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
upstream_, blocked_ | 502 | A temporary problem reading the comments from YouTube. It doesn't mean the video has no comments. | Retry after at least 3 minutes. |
timeout | 504 | The request couldn't finish in time. | Retry after at least 3 minutes, or ask for fewer pages. |
configuration_ | 503 | Comments are temporarily unavailable. | Retry later. Contact us if it continues. |
bad_ | 400 | This link isn't a valid YouTube video or Short link. The error appears on this item in results; other links continue. | Fix or remove this link. This item is never charged. |
bad_ | 400 | The request is invalid: pages outside 1–25, an unsupported sort, a missing or invalid commentId, more than one video with a cursor or with replies, a limit option, or a cursor that expired or belongs to another video, comment or order. It comes back as the response's top-level error, with no results. | Fix the request and send it again. For an expired cursor, start again from the first page. Nothing is charged. |
A video can return success: true with an empty comments list and pagesFetched: 0, for free. An empty page doesn't prove the video has no comments.
See all error categories and HTTP status codes.
Search
Search YouTube by keyword, inside one channel or by hashtag, or get the suggestions YouTube shows as you type. Send type: "youtubeSearch" with a searchType. Every result is fetched live from YouTube's public pages the moment you ask, in the order YouTube shows them.
Request fields
| Field | Type | Required | Description |
|---|---|---|---|
type | string | Yes | Always "youtubeSearch". |
searchType | string | Yes | What to search: "keyword", "channel", "hashtag" or "typeahead". See Search types below. |
query | string | Yes | Up to 150 characters. For "hashtag", one hashtag, with or without #. |
handle | string | For "channel" | The channel's handle, with or without @, for example "@creatorshub". Only for "channel". |
limit | integer | No | How many results to return, from 1 to 50. Default 20. |
filters | object | No | Narrow a "keyword" or "hashtag" search. See Filters below. |
includeExtras | boolean | No | Only for "keyword". true also reads each video's own page, for up to 10 videos per page, to add its full description, exact publish time, likes and comments when YouTube shows them. |
after | string | No | The pageInfo.endCursor from your last response, to get the next page. cursor and endCursor are aliases. If you send more than one, use the same value. Typeahead has one page. |
Other fields, such as a region, are rejected with 400.
Search types
| searchType | What you get | More pages |
|---|---|---|
"keyword" | Videos, Shorts, live streams, channels and playlists for your words. Narrow it with filters. | Yes |
"channel" | Videos and playlists from one channel that match your words, from the channel's own search. Send the channel in handle. | Yes |
"hashtag" | Videos and Shorts YouTube lists under the hashtag. YouTube decides what belongs there, so a result's title or description may not show the hashtag. | Yes |
"typeahead" | The suggestions YouTube shows while someone types your words: search phrases, and sometimes a channel. | No, one page |
Filters
| Field | Values | For |
|---|---|---|
type | "all" (default), "videos", "shorts", "channels" or "playlists". | "keyword". "hashtag" takes "all" or "shorts". |
uploadDate | "today", "this_week", "this_month" or "this_year". | "keyword" |
duration | "under_3_min", "between_3_and_20_min" or "over_20_min". | "keyword" |
sortBy | "relevance" (default) or "popular". | "keyword" |
isPaidPromotion | true: only videos whose YouTube page says "Includes paid promotion". | "keyword" |
"channel" and "typeahead" take no filters. A combination YouTube doesn't offer returns a free 400.
How results are found
- Results keep YouTube's own order.
"sortBy": "popular"uses YouTube's popularity order instead. - For an exact phrase, put the whole query in double quotes, for example
"query": "\"lunar rover\"". Each result's title, description or channel must contain that phrase. Capital letters don't matter. - Start the query with
intitle:to match titles only, for example"query": "intitle:\"space shuttle\"". - A code made of letters and digits, at least 8 long, such as
ABCD1234, has to appear whole.ABCD-1234also counts. - If YouTube shows results for different words than yours, we use your exact words when YouTube offers that. If YouTube only has results for its own words, you get a free
422. - A
"channel"search only returns that channel's own videos and playlists. - Search pages don't show likes, comments or exact publish times, so those are
nullunless you send"includeExtras": trueon a keyword search.
Getting more results
- Send
pageInfo.endCursorfrom your last response asafter, with the samesearchType,query,handle,filtersandincludeExtras. You can changelimitbetween pages. - A cursor works for the account that received it, for 24 hours.
- When
endCursorisnull, there's no next page. - One search can return up to 200 results across all its pages.
- If YouTube's results have changed and the next page can't continue, you get a free
409. Start again from the first page.
Example
All requests use POST https://api.refetcher.com/ with your normal API key. Each response has one item in results, with the matches in items. The responses below are shortened; the cursor is a placeholder, so copy the full cursor from your own response. Search fields explains every field.
{
"type": "youtubeSearch",
"searchType": "keyword",
"query": "lunar eclipse",
"filters": {
"type": "videos"
},
"limit": 2
}
{
"type": "youtubeSearch",
"searchType": "channel",
"query": "moon",
"handle": "@creatorshub",
"limit": 2
}
{
"type": "youtubeSearch",
"searchType": "hashtag",
"query": "#coffee",
"filters": {
"type": "shorts"
},
"limit": 10
}
{
"type": "youtubeSearch",
"searchType": "typeahead",
"query": "creators hub"
}
{
"type": "youtubeSearch",
"searchType": "keyword",
"query": "lunar eclipse",
"filters": {
"type": "videos"
},
"limit": 2,
"after": "youtube:search:v2:PASTE_PAGEINFO_ENDCURSOR_HERE"
}
{
"success": true,
"requestId": "5b1c2d3e-0000-4000-8000-000000000301",
"summary": {
"total": 1,
"succeeded": 1,
"failed": 0,
"errors": {}
},
"results": [
{
"platform": "youtube",
"type": "search",
"searchType": "keyword",
"query": "lunar eclipse",
"filters": {
"type": "videos"
},
"success": true,
"scrapedAt": "2026-11-30T12:00:00.000Z",
"items": [
{
"type": "video",
"id": "Ab3dEf6hIj0",
"url": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"title": "Total lunar eclipse, live from the observatory",
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/hq720.jpg",
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"followers": null,
"badges": ["Verified"]
},
"engagement": {
"plays": null,
"views": 2418337,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"metrics": {
"views": 2418337,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "unavailable",
"comments": "unavailable",
"shares": "unavailable",
"saves": "unavailable"
},
"badges": ["CC"],
"descriptionSnippet": "Watch the full eclipse with our astronomers, from first contact to the end of totality.",
"viewCountText": "2,418,337 views",
"publishedAt": null,
"publishedTimeText": "3 weeks ago",
"durationSeconds": 741,
"post": {
"id": "Ab3dEf6hIj0",
"normalizedUrl": "https://www.youtube.com/watch?v=Ab3dEf6hIj0",
"publishedAt": null,
"caption": "Total lunar eclipse, live from the observatory",
"description": null
},
"media": {
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/hq720.jpg",
"embedUrl": "https://www.youtube.com/embed/Ab3dEf6hIj0",
"durationSeconds": 741
},
"scrapedAt": "2026-11-30T12:00:00.000Z"
},
{
"type": "video",
"id": "Qw9eRt2yUi5",
"url": "https://www.youtube.com/watch?v=Qw9eRt2yUi5",
"title": "Why the Moon turns red during an eclipse",
"thumbnailUrl": "https://i.ytimg.com/vi/Qw9eRt2yUi5/hq720.jpg",
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"followers": null,
"badges": ["Verified"]
},
"engagement": {
"plays": null,
"views": 1834710,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"metrics": {
"views": 1834710,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "unavailable",
"comments": "unavailable",
"shares": "unavailable",
"saves": "unavailable"
},
"badges": [],
"descriptionSnippet": null,
"viewCountText": "1,834,710 views",
"publishedAt": null,
"publishedTimeText": "2 months ago",
"durationSeconds": 30,
"post": {
"id": "Qw9eRt2yUi5",
"normalizedUrl": "https://www.youtube.com/watch?v=Qw9eRt2yUi5",
"publishedAt": null,
"caption": "Why the Moon turns red during an eclipse",
"description": null
},
"media": {
"thumbnailUrl": "https://i.ytimg.com/vi/Qw9eRt2yUi5/hq720.jpg",
"embedUrl": "https://www.youtube.com/embed/Qw9eRt2yUi5",
"durationSeconds": 30
},
"scrapedAt": "2026-11-30T12:00:00.000Z"
}
],
"pageInfo": {
"returnedCount": 2,
"hasNextPage": true,
"endCursor": "youtube:search:v2:PASTE_PAGEINFO_ENDCURSOR_HERE"
}
}
],
"totalMs": 4210
}
{
"success": true,
"requestId": "5b1c2d3e-0000-4000-8000-000000000302",
"summary": {
"total": 1,
"succeeded": 1,
"failed": 0,
"errors": {}
},
"results": [
{
"platform": "youtube",
"type": "search",
"searchType": "channel",
"query": "moon",
"handle": "creatorshub",
"filters": {},
"success": true,
"scrapedAt": "2026-11-30T12:00:00.000Z",
"items": [
{
"type": "video",
"id": "Zx1cVb2nMl3",
"url": "https://www.youtube.com/watch?v=Zx1cVb2nMl3",
"title": "Moon mission complete!",
"thumbnailUrl": "https://i.ytimg.com/vi/Zx1cVb2nMl3/hq720.jpg",
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"followers": null,
"badges": ["Verified"]
},
"engagement": {
"plays": null,
"views": 993190,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"metrics": {
"views": 993190,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "not_applicable",
"views": "available",
"likes": "unavailable",
"comments": "unavailable",
"shares": "unavailable",
"saves": "unavailable"
},
"badges": ["CC"],
"descriptionSnippet": null,
"viewCountText": "993,190 views",
"publishedAt": null,
"publishedTimeText": "1 week ago",
"durationSeconds": 213,
"post": {
"id": "Zx1cVb2nMl3",
"normalizedUrl": "https://www.youtube.com/watch?v=Zx1cVb2nMl3",
"publishedAt": null,
"caption": "Moon mission complete!",
"description": null
},
"media": {
"thumbnailUrl": "https://i.ytimg.com/vi/Zx1cVb2nMl3/hq720.jpg",
"embedUrl": "https://www.youtube.com/embed/Zx1cVb2nMl3",
"durationSeconds": 213
},
"scrapedAt": "2026-11-30T12:00:00.000Z"
},
{
"type": "playlist",
"id": "PLx8Xy3Ab4Cd5Ef6Gh7Ij8KlMn0pQr",
"url": "https://www.youtube.com/playlist?list=PLx8Xy3Ab4Cd5Ef6Gh7Ij8KlMn0pQr",
"title": "Moon mission coverage",
"thumbnailUrl": "https://i.ytimg.com/vi/Ab3dEf6hIj0/hqdefault.jpg",
"author": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"followers": null,
"badges": ["Verified"]
},
"metrics": {
"views": null,
"likes": null,
"comments": null,
"shares": null,
"saves": null
},
"badges": [],
"descriptionSnippet": null,
"viewCountText": null,
"publishedAt": null,
"publishedTimeText": null,
"durationSeconds": null,
"videoCount": 23,
"videoCountText": "23 videos",
"scrapedAt": "2026-11-30T12:00:00.000Z"
}
],
"pageInfo": {
"returnedCount": 2,
"hasNextPage": true,
"endCursor": "youtube:search:v2:PASTE_PAGEINFO_ENDCURSOR_HERE"
}
}
],
"totalMs": 3870
}
{
"success": true,
"requestId": "5b1c2d3e-0000-4000-8000-000000000303",
"summary": {
"total": 1,
"succeeded": 1,
"failed": 0,
"errors": {}
},
"results": [
{
"platform": "youtube",
"type": "search",
"searchType": "typeahead",
"query": "creators hub",
"filters": {},
"success": true,
"scrapedAt": "2026-11-30T12:00:00.000Z",
"items": [
{
"type": "suggestion",
"text": "creators hub",
"suggestionType": "channel",
"channel": {
"id": "UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl",
"handle": "creatorshub",
"channelHandle": "creatorshub",
"name": "Creators Hub",
"description": null,
"country": null,
"publishedAt": null,
"subscribers": null,
"hiddenSubscriberCount": null,
"totalViews": null,
"totalVideos": null,
"uploadsPlaylistId": null,
"thumbnailUrl": "https://yt3.ggpht.com/...",
"url": "https://www.youtube.com/channel/UCx8Xy3Ab4Cd5Ef6Gh7Ij8Kl"
},
"scrapedAt": "2026-11-30T12:00:00.000Z"
},
{
"type": "suggestion",
"text": "creators hub editing tips",
"suggestionType": "query",
"channel": null,
"scrapedAt": "2026-11-30T12:00:00.000Z"
},
{
"type": "suggestion",
"text": "creators hub lighting setup",
"suggestionType": "query",
"channel": null,
"scrapedAt": "2026-11-30T12:00:00.000Z"
}
],
"pageInfo": {
"returnedCount": 3,
"hasNextPage": false,
"endCursor": null
}
}
],
"totalMs": 1290
}
Response time
A search page can take up to about a minute when YouTube is slow, and a larger limit takes longer.
Set your HTTP client timeout to 180 seconds so those slower requests have time to finish.
Cost
$0.90 per 1,000 successes. Each page of results is one success, including a page of suggestions. A search with no results and failed requests are never charged.
Search fields
Every field a search returns. When YouTube doesn't show a value, the field is null.
Every search result, and paging details in pageInfo.
Result
platformstringAlways "youtube".
typestringAlways "search".
searchType querystringWhat you searched for. A hashtag comes back without #.
handlestringOnly on "channel": the handle you sent, without @.
filtersobjectThe filters used. Default values are left out, so it can be {}.
includeExtrasbooleanOnly present when you sent true.
successbooleantrue when the page was read successfully. A failed search returns false with an error object.
scrapedAtstring · nullWhen we read the page (UTC, ISO 8601). Each item repeats it.
itemsobject[]The matches, in YouTube's order. See the other tabs for each kind of item.
Paging pageInfo
pageInfo.returnedCount numberHow many items came back on this page.
pageInfo.hasNextPage booleantrue when there's another page.
pageInfo.endCursor string · nullSend this as after to get the next page. Expires after 24 hours. null on the last page.
Each video, Short or live stream in items.
Item items[]
typestring"video", "short" or "live".
id urlstringYouTube's ID for the video and its link.
titlestringThe video title.
thumbnailUrlstring · nullLink to the thumbnail image.
engagement.views number · nullView count, exact. 0 when YouTube shows no views.
engagement.plays nullYouTube reports views and has no separate play count.
engagementAvailabilityobjectEach count is marked available, unavailable or not_applicable.
viewCountTextstring · nullThe view count as YouTube shows it, for example "2.4M views".
engagement.likes engagement.comments number · nullOnly with includeExtras, when YouTube shows them. Otherwise null.
engagement.shares engagement.saves nullYouTube doesn't make these public. Always null.
publishedAtstring · nullExact publish time (UTC, ISO 8601). Usually only with includeExtras.
publishedTimeTextstring · nullWhen it was posted, as YouTube shows it, for example "3 weeks ago".
durationSecondsnumber · nullVideo length in seconds.
descriptionSnippetstring · nullThe part of the description shown on the search page, up to 1,000 characters.
badgesstring[]Labels YouTube shows on the video, for example "CC" or "4K". Empty if there are none.
isPaidPromotionbooleanOnly with the isPaidPromotion filter: always true.
Channel author
author.id string · nullYouTube's ID for the channel, starting with UC.
author.handle author.channelHandle string · nullThe channel's handle, without @. Both fields are null when unavailable.
author.name string · nullThe channel's display name.
author.badges string[]Labels on the channel, for example "Verified".
author.followers nullAlways null on videos.
Video fields post · media
post.id post.normalizedUrl post.caption stringThe same as on video results: the video ID, its watch?v= link, and the title.
post.publishedAt post.description string · nullExact publish time and full description. The description only comes with includeExtras.
media.thumbnailUrl media.embedUrl media.durationSeconds string · number · nullThumbnail, embed link and length.
Older names, still sent
metricsobjectThe same views, likes, comments, shares and saves as engagement.
Channel and playlist items from "keyword" and "channel" searches.
Channel item items[]
typestring"channel".
id urlstringYouTube's ID for the channel and its link.
titlestringThe channel's display name.
channelobjectThe same fields as a channel result. channel.subscribers and channel.totalVideos when the search page shows them; the rest is null.
subscriberCountText videoCountTextstring · nullSubscriber and video counts as YouTube shows them, for example "312K subscribers".
Playlist item items[]
typestring"playlist".
id urlstringYouTube's ID for the playlist and its link.
titlestringThe playlist title.
videoCount videoCountTextnumber · string · nullHow many videos it has, and the count as YouTube shows it, for example "23 videos".
metricsobjectAlways null counts on playlists.
Each item from a "typeahead" search.
Suggestion items[]
typestring"suggestion".
textstringThe suggested search, as YouTube shows it.
suggestionTypestring"query" for a search phrase, "channel" for a channel.
channelobject · nullOnly for "channel": the channel's ID, handle, name, link and thumbnail. null for a search phrase.
Search errors
A failed search returns success: false with an error object, and it is never charged. error.retryable tells you whether trying again can help. Problems with the request itself come back as a top-level error with no results.
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000311",
"summary": {
"total": 1,
"succeeded": 0,
"failed": 1,
"errors": {
"not_found": 1
}
},
"results": [
{
"platform": "youtube",
"type": "search",
"searchType": "channel",
"query": "moon",
"handle": "no.such.channel",
"filters": {},
"success": false,
"scrapedAt": null,
"error": {
"category": "not_found",
"message": "YouTube could not find the requested resource.",
"retryable": false
}
}
],
"totalMs": 2140
}
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000312",
"summary": {
"total": 1,
"succeeded": 0,
"failed": 1,
"errors": {
"no_verified_matches": 1
}
},
"results": [
{
"platform": "youtube",
"type": "search",
"searchType": "keyword",
"query": "\"qzxv lunar wobble\"",
"filters": {},
"success": false,
"scrapedAt": null,
"error": {
"category": "no_verified_matches",
"message": "YouTube returned no verified matches for this page.",
"retryable": false
}
}
],
"totalMs": 3020
}
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000313",
"error": {
"category": "rate_limited",
"code": "YOUTUBE_SEARCH_FAILURE_COOLDOWN",
"message": "This search recently failed. Try again after the indicated delay."
},
"retryAfterSeconds": 152
}
| Category | HTTP status | What it means | What to do |
|---|---|---|---|
bad_ | 400 | The request is invalid: a missing or unknown searchType, an empty or too long query, a missing handle on "channel", limit outside 1–50, a filter this search type doesn't take, or a combination of filters YouTube doesn't offer. | Fix the request and send it again. Nothing is charged. |
invalid_ | 400 | The cursor expired, came from another account, or was sent with a different searchType, query, handle, filters and includeExtras. | Start again from the first page. Nothing is charged. |
not_ | 404 | YouTube has no channel with this handle, or no page for this hashtag. | Check the spelling. Don't retry. The result won't change. |
cursor_ | 409 | YouTube's results changed, so the next page can't continue from where the last one ended. | Start again from the first page. |
no_ | 422 | Nothing on YouTube matched your search on this page. | Try other words or filters. |
rate_ | 429 | This search failed for your API key in the last 3 minutes, or the same search is still running for you. | Wait for the number of seconds in retryAfterSeconds, then retry. |
source_ | 502 | YouTube asked for a sign-in or a check before showing this search. | Retry after at least 3 minutes. If it keeps happening, try other words or filters. |
incomplete_, upstream_ | 502 | A temporary problem reading the search results from YouTube. | Retry after at least 3 minutes. |
service_ | 503 | Search is busy right now. | Retry after at least 3 minutes. |
service_ | 503 | Search is temporarily switched off. | Retry later. Contact us if it continues. |
timeout | 504 | The search couldn't finish in time. | Retry after at least 3 minutes. A smaller limit helps it finish. |
Retrying the same search
- A search that failed can be repeated by the same API key after 3 minutes.
- Repeating it sooner, or while it's still running, returns a free
rate_limitedwith the wait inretryAfterSeconds. - A search that succeeded can be repeated right away.
See all error categories and HTTP status codes.
People Search
Resolve a name, phone number, or address into a structured US contact record — current and prior addresses, phone numbers, emails, and known relatives — returned as normalized JSON. There are two endpoints: /people-search finds matching records, and /people-detail returns the full contact record for a match. Each request batches up to 30 independent person queries. Need access? Contact sales.
Search endpoint
POST a queries array (1–30 items) to /people-search to find matching records. Each query searches by name, phone, or address — provide at least one. Add city, state, postalCode, and age to disambiguate common names. A bare name string ("queries": ["Jordan Avery"]) is also accepted. Use depth: "contact" for full contact data, matchMode: "best" for the top match, and fields/filters to return only useful records and fields.
curl -X POST https://api.refetcher.com/people-search \
-H "X-API-Key: pc_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"queries": [
{ "id": "lead-91", "name": "Jordan Avery", "city": "Plano", "state": "TX" },
{ "phone": "(972) 555-0148" }
]
}'
{
"success": true,
"requestId": "a1b2c3d4",
"summary": { "total": 2, "succeeded": 2, "failed": 0 },
"results": [
{
"success": true,
"platform": "people_search",
"type": "person_search",
"provider": "truepeoplesearch",
"query": { "id": "lead-91", "name": "Jordan Avery", "city": "Plano", "state": "TX" },
"totalMatches": 1,
"matchCount": 1,
"matches": [
{
"name": "Jordan M Avery",
"age": 38,
"currentCity": "Plano",
"currentState": "TX",
"summary": "Jordan M Avery is 38 and lives in Plano, TX. Previously in Frisco, TX.",
"detailUrl": "https://www.truepeoplesearch.com/find/person/…"
}
],
"searchedAt": "2026-06-25T17:42:08.110Z",
"workerMs": 4180
},
{
"success": true,
"platform": "people_search",
"type": "person_search",
"provider": "truepeoplesearch",
"query": { "id": "q_2", "phone": "9725550148" },
"totalMatches": 1,
"matchCount": 1,
"matches": [
{
"name": "Jordan M Avery",
"age": 38,
"currentCity": "Plano",
"currentState": "TX",
"summary": "Reverse-phone match for (972) 555-0148.",
"detailUrl": "https://www.truepeoplesearch.com/find/person/…"
}
],
"searchedAt": "2026-06-25T17:42:08.420Z",
"workerMs": 3920
}
],
"totalMs": 4620
}
Request parameters
| Parameter | Type | Description |
|---|---|---|
queries (required) | object[] · string[] | 1–30 person queries. Each item is a query object (below) or a plain name string. |
maxResultsPerQuery | number | Maximum matches returned per query. Default and maximum 10. |
depth | string | basic (default) returns search cards; contact visits detail pages for phones, emails, addresses, and relatives. |
matchMode | string | all (default) or best to keep only the top match. |
fields | string[] | Optional response projection: name, age, currentCity, currentState, locations, phoneNumbers, emails, relatives, detailUrl, and summary. |
filters | object | Filter matches by age, city/state/ZIP, or the presence of phones, emails, addresses, and relatives (below). |
maxDetailPagesPerQuery | number | Caps detail-page visits when contact depth is active. Maximum 10. |
timeoutMs | number | How long to wait for each lookup, in milliseconds. Default and maximum 295000 (295 seconds). |
Search query — provide at least one of name, phone, or address
| Field | Type | Description |
|---|---|---|
name | string | Full name to search. Accepts fullName as an alias. |
firstName / lastName | string | Used to build the search name when name is not supplied. |
phone | string | Reverse-phone lookup. Any format; normalized to a 10-digit US number (a leading 1 is stripped). |
address | string · object | Reverse-address lookup. Accepts a free-form street address or an object with street, city, state, and postalCode. |
city | string | Narrows a name search to a city. |
state | string | Two-letter US state code, e.g. TX. Case-insensitive on input. |
postalCode | string | Five-digit ZIP or ZIP+4. zip is accepted as an alias. |
age | number | Approximate age (1–124) to disambiguate common names. |
id | string | Your own correlation id. Echoed back on query.id; defaults to q_1, q_2, … when omitted. |
Match filters
| Filter | Type | Description |
|---|---|---|
age.min / age.max | number | Inclusive age range. Flat minAge/maxAge aliases are accepted. |
states / cities | string[] | Allowed states and cities. Singular state/city aliases accept one value. |
postalCodes | string[] | Keep matches with an address containing one of these ZIP codes. |
hasPhone | boolean | Require or exclude matches with phone numbers. |
hasEmail | boolean | Require or exclude matches with email addresses. |
hasAddress | boolean | Require or exclude matches with addresses. |
hasRelatives | boolean | Require or exclude matches with relatives or associates. |
Search response
The top-level success is true only when every query in the batch succeeded — always check each result's own success flag for partial batches. The envelope carries requestId, a summary (total, succeeded, failed), the results array (one entry per query, in request order), and totalMs. The detail endpoint returns this same envelope.
results[] — per query
| Field | Type | Description |
|---|---|---|
success | boolean | Whether this individual query resolved. |
platform | string | Always people_search. |
type | string | Always person_search. |
provider | string | Which data source the record came from. |
query | object | The normalized query that was executed, including your id. |
totalMatches | number | Number of matches before filters and matchMode. |
matchCount | number | Number of matches returned after filters and matchMode. |
matches | object[] | The matched person records (fields below). |
searchedAt | ISO 8601 | When the lookup ran. |
workerMs | number · null | Processing time for this query, in milliseconds. |
error | object | Present on failure, with category and message (see Errors). |
matches[] — search fields
| Field | Type | Description |
|---|---|---|
name | string | Full name on the record. |
age | number · null | Approximate age when available. |
currentCity | string | Most recent known city. |
currentState | string | Most recent known state. |
summary | string | Short text summary of the match. |
detailUrl | string | Pass this URL to the /people-detail endpoint for the full record. |
Detail endpoint
POST a detailUrl — taken from any /people-search match — to /people-detail to pull the full contact record: every known address, phone number, email, and relative. It takes the same queries array (1–30 items), where each query carries a detailUrl instead of search terms. The response envelope is identical to /people-search; only the matches[] fields are richer.
curl -X POST https://api.refetcher.com/people-detail \
-H "X-API-Key: pc_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{
"queries": [
{ "detailUrl": "https://www.truepeoplesearch.com/find/person/…" }
]
}'
{
"success": true,
"requestId": "e5f6g7h8",
"summary": { "total": 1, "succeeded": 1, "failed": 0 },
"results": [
{
"success": true,
"platform": "people_search",
"type": "person_search",
"provider": "truepeoplesearch",
"query": { "id": "q_1", "detailUrl": "https://www.truepeoplesearch.com/find/person/…" },
"totalMatches": 1,
"matchCount": 1,
"matches": [
{
"name": "Jordan M Avery",
"age": 38,
"currentCity": "Plano",
"currentState": "TX",
"locations": [
"4120 Maple Ave, Plano, TX 75074",
"88 Birch Ln, Frisco, TX 75035"
],
"phoneNumbers": ["(972) 555-0148", "(214) 555-0102"],
"emails": ["j.avery@example.com"],
"relatives": ["Morgan Avery", "Taylor Avery"],
"detailUrl": "https://www.truepeoplesearch.com/find/person/…"
}
],
"searchedAt": "2026-06-25T17:42:10.300Z",
"workerMs": 5210
}
],
"totalMs": 5320
}
Detail query
| Field | Type | Description |
|---|---|---|
detailUrl (required) | string | The detailUrl returned on a /people-search match. Pass one per query to /people-detail. |
id | string | Your own correlation id, echoed back on query.id. Defaults to q_1, q_2, … when omitted. |
Detail response
The envelope and results[] fields are identical to the search endpoint — only the matches[] records are richer. Empty fields are omitted rather than returned as empty strings or arrays, so check for presence before reading nested values.
matches[] — detail fields
| Field | Type | Description |
|---|---|---|
name | string | Full name on the record. |
age | number · null | Approximate age when available. |
currentCity | string | Most recent known city. |
currentState | string | Most recent known state. |
locations | string[] | Current and prior addresses (up to 8). |
phoneNumbers | string[] | Associated phone numbers (up to 8). |
emails | string[] | Associated email addresses (up to 8). |
relatives | string[] | Known relatives and associates (up to 12). |
detailUrl | string | Link to the full record. |
Errors & status
A failed query never breaks the batch — it returns with success: false and an error.category. Temporary failures are retried for you before the answer comes back. The HTTP status is 200 when at least one query succeeds, and 502 only when every query in the batch fails.
Query error categories
| Category | Description |
|---|---|
bad_query | The query was invalid or unsearchable (e.g. no name, phone, or address). |
timeout | The lookup took too long. |
rate_limited | Too many lookups for a moment. Retry after a short wait. |
blocked_or_challenge | The lookup was blocked for a moment. Retry later. |
challenge_timeout | The lookup couldn't start in time. Retry. |
navigation_timeout | The record didn't load in time. Retry. |
parse_error | We couldn't read the result. Retry. |
network_error | A temporary connection problem. Retry. |
upstream_error | A temporary problem getting the record. Retry later. |
worker_error | The lookup failed before it returned a result. Retry. |
unknown_error | The lookup failed for an unclassified reason. |
HTTP status codes
| Status | Meaning |
|---|---|
200 | At least one query in the batch succeeded. Check the top-level success flag and each result. |
400 | bad_request — malformed body, no valid queries, or more than 30 queries. |
401 | unauthorized — the API key is missing or invalid. |
402 | insufficient_balance — the account cannot cover the requested lookups. |
405 | method_not_allowed — use POST. |
502 | Every query in the batch failed. Inspect each result's error category. |
503 | Authentication or billing was temporarily unavailable. |
Permissible use. Refetcher is not a consumer reporting agency and this data is not a consumer report. It may not be used for credit, employment, insurance, housing, tenant screening, or any other purpose regulated by the FCRA.
Responses & errors
How every response is wrapped, the HTTP statuses you'll see, and the stable error categories returned per target.
Response envelope
A successful request returns 200 OK with per-target records under the results array. Media targets return engagement, post, and author; Instagram, TikTok, Facebook, and X media targets also return media. Profile/channel targets return a type and profile/channel object.
{
"success": true,
"requestId": "5b1c2d3e-0000-4000-8000-000000000101",
"summary": {
"total": 1,
"succeeded": 1,
"failed": 0,
"errors": {}
},
"results": [
{
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"platform": "instagram",
"success": true,
"engagement": {
"plays": 1284203,
"views": 512340,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null
},
"metrics": {
"plays": 1284203,
"views": 1284203,
"likes": 48211,
"comments": 1903,
"shares": null,
"saves": null
},
"engagementAvailability": {
"plays": "available",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "not_applicable",
"saves": "not_applicable"
},
"metricAvailability": {
"plays": "available",
"views": "available",
"likes": "available",
"comments": "available",
"shares": "not_applicable",
"saves": "not_applicable"
},
"post": { "id": "3412345678901234567_123456789", "type": "video", "caption": "Check out our new release!" },
"author": { "handle": "creators_hub", "followers": null },
"media": { "playCount": 1284203, "viewCount": 512340, "durationSeconds": 21.4 },
"scrapedAt": "2026-06-05T10:15:30.000Z"
}
],
"totalMs": 1150
}
{
"success": true,
"requestId": "5b1c2d3e-0000-4000-8000-000000000102",
"summary": {
"total": 2,
"succeeded": 1,
"failed": 1,
"errors": {
"private_or_removed": 1
}
},
"results": [
{
"url": "https://www.instagram.com/reel/C8xExampleAbc/",
"platform": "instagram",
"success": true,
"engagement": { "plays": 4900, "views": null, "likes": 210, "comments": 15, "shares": null, "saves": null },
"metrics": { "plays": 4900, "views": 4900, "likes": 210, "comments": 15, "shares": null, "saves": null },
"engagementAvailability": { "plays": "available", "views": "unavailable", "likes": "available", "comments": "available", "shares": "not_applicable", "saves": "not_applicable" },
"metricAvailability": { "plays": "available", "views": "available", "likes": "available", "comments": "available", "shares": "not_applicable", "saves": "not_applicable" },
"post": { "id": "3412345678901234567_123456789", "type": "video", "publishedAt": null, "caption": null },
"author": { "handle": "creator_name", "name": null, "followers": null },
"media": { "playCount": 4900, "viewCount": null },
"scrapedAt": "2026-06-05T10:16:00.000Z"
},
{
"url": "https://www.instagram.com/reel/C7zExampleGone/",
"platform": "instagram",
"success": false,
"error": {
"category": "private_or_removed",
"message": "The post could not be accessed. It may be private, removed, or unavailable."
},
"scrapedAt": "2026-06-05T10:16:01.000Z"
}
],
"totalMs": 1420
}
{
"success": false,
"requestId": "5b1c2d3e-0000-4000-8000-000000000103",
"summary": {
"total": 1,
"succeeded": 0,
"failed": 1,
"errors": {
"missing_metrics": 1
}
},
"results": [
{
"url": "https://www.instagram.com/reel/C9bExampleXyz/",
"platform": "instagram",
"success": false,
"error": {
"category": "missing_metrics",
"message": "The scraper could not read the required public metrics for this post."
},
"scrapedAt": "2026-06-05T10:17:00.000Z"
}
],
"totalMs": 1380
}
Batch & billing: the HTTP status is still 200 OK if at least one target succeeds; the top-level success flag is also true for a partial batch, while failed targets are marked inside results[]. Billing is per successful target, or per successful returned page for profile/channel pagination. A request can ask for up to 50 pages in total, across all its links. If every target is still private, deleted, or unavailable after retries, the API returns 404 Not Found with private_or_removed per-target errors. If every target is invalid or unsupported, the API returns 400 with ordered bad_url results and no charge. Other every-target scrape failures return 502 Bad Gateway; unexpected gateway exceptions return 500 with a top-level error object.
Counts: Post, Reel and video results put their counts in engagement: plays, views, likes, comments, shares and saves. views is the view count on every platform. plays is a separate play count on Instagram and Facebook, and null on TikTok, X and YouTube, which have one count. Facebook adds reactions and topLevelComments; TikTok can add downloads, forwards, reposts and whatsappShares. A count that isn't available is null.
Count availability: Every post, Reel and video result includes engagementAvailability; each value is "available", "unavailable" or "not_applicable". TikTok forwards and reposts keep their compatibility value of 0 with availability "unavailable"; these zeros are not measured counts.
Older names: the same counts are still sent in metrics, metricAvailability and metricPrecision, so existing integrations keep working. On Instagram, metrics.views holds the play count, the same as engagement.plays.
HTTP status codes
Request-level failures use a top-level error object. Scrape-level failures appear inside results.
Read the reason, not just the status. A 404 or 429 tells you something failed; error.category in the body says why, for example private_or_removed or age_restricted. Some tools stop at the status code and hide the body. In n8n's HTTP Request node, turn on Options → Response → Never Error so the body comes through.
| Status | Category | Meaning |
|---|---|---|
200 | Success / partial | At least one target succeeded. Check summary.failed and each item in results for partial failures. |
400 | bad_request / bad_url | Request-level bad_request: malformed JSON, no target, too many targets, or invalid shared options or cursor. Per-target bad_url: every target is invalid or unsupported; results and summary are still returned. |
401 | unauthorized | The API key is missing or invalid. |
402 | insufficient_balance | The account cannot reserve enough balance for the valid targets and requested pages. Invalid targets do not reserve balance. |
403 | age_restricted and other restrictions | Every requested target is restricted in a way that won't change on retry, for example an age-restricted YouTube video or one with comments turned off. Facebook uses 404 for verified age restrictions. Check each result's error category. |
404 | private_or_removed / Facebook age_restricted | Every requested target is private, deleted, age-restricted on Facebook, or otherwise unavailable publicly. |
405 | method_not_allowed | The scrape endpoint was called with a method other than POST. |
409 | cursor_stale | Instagram and YouTube search: the next page can no longer continue from the cursor. Start the search again without a cursor. |
422 | no_verified_matches | Instagram search: the topic exists but nothing in it matched. YouTube search: nothing matched on this page. |
429 | rate_limited | Every link or search in the request is blocked by our 3-minute rule: it failed for your API key in the last 3 minutes, or we are still fetching it for you. Wait for the number of seconds in retryAfterSeconds, then retry. The same wait is in the Retry-After header. |
500 | Gateway error | An unexpected error on our side. Retry, and contact us with the requestId if it continues. |
502 | Full scrape failure | No target succeeded, and the errors do not all qualify for 400, 404, or 429. Inspect each result's error category. |
503 | billing_unavailable | The service could not reserve account balance before scraping. |
504 | timeout | A comments request couldn't finish in time. Retry later or ask for fewer pages. |
Error categories
Per-target scraper failures are normalized into stable category keys:
| Category | Description |
|---|---|
bad_url | The link or profile username is invalid or unsupported for this endpoint. Only this item fails; other valid targets continue in normalized target order. Invalid items cost nothing and do not reserve balance. |
unsupported_platform | The target platform is not supported by Refetch(er). |
private_or_removed | The target is private, was deleted, or restricted public visibility. |
minimum_age_required | Instagram shows the account only to people above a minimum age, or limits who can see it, without a more specific reason. This result won't change on retry and is not billed. |
age_restricted | The platform shows this profile or post only to signed-in adults, so it can't be read publicly. This result won't change on retry and is not billed. |
not_found | Instagram search: Instagram has no topic for the word, or no account with the exact @username. YouTube search: no channel with this handle, or no page for this hashtag. Not billed. |
invalid_cursor | Instagram and YouTube search: the cursor expired, came from another API key or account, or belongs to a different search. |
cursor_stale | Instagram and YouTube search: the results changed, so the next page can't continue. Not billed. |
no_verified_matches | Instagram search: nothing in the topic matched. YouTube search: nothing matched on this page. Not billed. |
source_access_required | Instagram search: Instagram didn't let us read this search. Retrying the same search usually gives the same result. YouTube search: YouTube asked for a sign-in or a check before showing the search. Not billed. |
incomplete_response | Instagram and YouTube search: a temporary problem reading the search results. Not billed. |
service_capacity, service_unavailable | Instagram or YouTube search is busy or temporarily switched off. |
comments_disabled | YouTube comments: the channel turned comments off for this video. This result won't change on retry and is not billed. |
comment_not_found | YouTube replies: the comment you asked replies for is no longer on the video. Not billed. |
geo_restricted, copyright_restricted, login_required | YouTube comments: YouTube blocks the video in our region, because of a copyright claim, or for anyone who isn't signed in. This result won't change on retry and is not billed. |
missing_metrics | The scraper accessed the target but could not extract the required public metrics. |
timeout | The request couldn't finish in time. |
rate_limited | We send this ourselves; it never means Instagram, TikTok, YouTube, X or Facebook limited you. Your API key asked again for a link, page or search that failed in the last 3 minutes, or one we are still fetching for you. Wait for the number of seconds in retryAfterSeconds. Not billed. |
blocked_or_challenge | A temporary problem reading the link from the platform. |
upstream_error | A temporary problem reading the link from the platform. |
configuration_error | A system configuration issue prevented the scrape. |
unknown_error | An unclassified system exception occurred. |
Changelog
Changes to the API that can affect your integration, and to how the status page measures reliability, newest first.
November 30, 2026
- New: YouTube search. Search by keyword, inside one channel or by hashtag, or get YouTube's search suggestions, with
type: "youtubeSearch". Each page of results is one success; searches with no results are free. See Search. - New:
engagement, the counts with one meaning on every platform.viewsis the view count everywhere, andplaysa separate play count where the platform has one (Instagram, Facebook). On Instagram,engagement.viewsis the second, usually lower count, the one inmedia.viewCount.engagementAvailabilityandengagementPrecisioncome with it, and profile post lists and channel video lists includeengagementtoo.metricsand the other older counts are still sent unchanged. - Comments: matching field names on Instagram, TikTok and YouTube. Instagram comments add
likeCount,replyCount,author.avatarUrlandauthor.profileUrl. TikTok comments and replies addpublishedAt. YouTuberecentCommentsaddlikeCountand anauthorobject. The older names are still sent with the same values; each field table lists them under "Older names, still sent". - TikTok profiles: every post's sound includes
music.isCommercial, the same name single posts use.music.isCommerceis still sent. - Instagram:
metrics.playson posts andplaysin profile post lists. In this version they hold the same number asviews. - Instagram profiles:
profile.bioLinkslists every link in the bio, not just the first. - YouTube
recentComments:author.avatarUrl, the commenter's profile photo.
November 24, 2026
- Instagram posts:
sharesandsavesare always in the response. They arenull, withmetricAvailabilityset to"not_applicable"for Reels and videos and"unavailable"for photos and carousels. Before, they could be missing.
November 11, 2026
- Facebook: age-restricted posts and Reels return
404instead of502. The category is stillage_restricted, and they're still free.
November 7, 2026
- Facebook: the 3-minute rule for failed links. A Facebook link that failed can be requested again by the same API key after 3 minutes; earlier tries return
rate_limited. - Facebook profiles: new cursor format. Cursors issued before still work until they expire.
includeRecentPosts: falsereturns profile details only and costs one unit.
October 31, 2026
- Facebook Reels with hidden counts are normal successes.
viewsandplaysarenulland marked"unavailable". They used to come back as partial results. - Status page: measured history only. Latency uses recorded API request durations for eligible results, weighted by the number of timing samples. The chart plots each measured daily average without a preset curve. Missing observations remain blank, and today's values are partial. Post/Profile history appears only when its totals reconcile with the platform history; older combined totals remain available in day details. A reachable gateway does not establish scraper health or continuous uptime. The previous validation calibration described below is retired.
October 28, 2026
- New: comments. Instagram comments (
type: "instagramComments"), TikTok comments and replies ("tiktokComments","tiktokCommentReplies") and YouTube comments and replies ("youtubeComments","youtubeCommentReplies"). - X. Profiles return a cursor for more posts. Posts and profiles that don't exist return
404private_or_removed. Long posts come back with their full text. A failed X post link can be requested again after 3 minutes. - YouTube channel uploads. Return a cursor and accept
pagesfrom 1 to 25.
October 25, 2026
- TikTok profiles include recent posts by default. Send
includeRecentPosts: falsefor profile details only. - TikTok: the 3-minute rule for failed links. A TikTok post, photo or short link that failed can be requested again by the same API key after 3 minutes.
October 24, 2026
- Instagram Reels and videos: a view count that isn't public no longer fails the post. Previously, a missing view count (
media.viewCount) could cause a Reel or video to fail. When Instagram explicitly indicates that views are not public, the post can now succeed withmedia.viewCount: nullandmedia.viewCountUnavailableReason: "not_publicly_available". Plays, likes and comments are still required; missing views without this confirmation still fail the post.media.likeAndViewCountsDisabledistruewhen the creator has hidden like and view counts. See Post & Reel fields.
July 23, 2026
- Status page: known non-public and misclassified failures corrected. The public success-rate history now excludes failures from a June 4 internal Instagram validation run, Instagram failures during the June 28-July 7 document-ID incident, TikTok false-private classification windows on June 4, June 11, June 19, July 7, July 8 and July 11, and the July 13 TikTok/YouTube upstream outage. Raw operational and billing history is retained; these corrections affect only public status-rate reporting.
- Status page: success rates now use request totals. The overall and platform 90-day success rates are now calculated as total successful eligible requests divided by total eligible requests across the reporting window. This replaces equal weighting of each daily percentage, so high-volume and low-volume days contribute in proportion to actual request count. Definitive
private_or_removedoutcomes continue to count as completed outcomes;bad_urlandunsupported_platformremain excluded.
July 6, 2026
- Status page: validation traffic now counts toward the overall success rate. Our scheduled validation traffic runs against the same production API as customer traffic, but its results were incorrectly excluded from the overall (90-day) success rate. This has been fixed and validation results now count toward the overall rate. Daily success rates, component status and incident detection are intentionally unaffected — those are calculated from customer traffic only, so a validation run can neither mask nor trigger a daily incident.
- Status page: daily status thresholds changed. A component shows Degraded when its measured daily success rate falls below 95% and Outage below 85%. These are Refetcher’s reporting thresholds. Historical classifications were not restated.
July 3, 2026
- Status page: private and removed posts count as completed outcomes. Requests that end in a definitive
private_or_removedresult — the post is private, deleted or otherwise inaccessible — are no longer counted as scraper failures, since the outcome is outside scraper control. Success rates from this date onward read slightly higher than under the previous definition. Historical data was not restated.
June 2, 2026
- Status page: metrics calibrated. Status metrics now report scraper-only success and per-post latency from the latest validation run.