Get API key →

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.

Primary endpoint
POST https://api.refetcher.com/
Batching 10 links per request
Billing Failed targets are never charged

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.

New to Refetch(er)? All new accounts receive 3,000 free scrapes, provided as $2.70 in trial credit at the current rate. Prepay only for what you run — and failed requests are never billed.

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:

HeaderValue formatDescription
X-API-Keypc_live_...The preferred header format for custom requests.
AuthorizationBearer pc_live_...Alternative standard authentication header.
Keep your key secure. Never expose API keys in frontend client code (browsers, client-side scripts). Always proxy requests to Refetch(er) through your own backend server.

Endpoints

Refetch(er) serves all live scrape requests from a single endpoint, accepting POST JSON payloads that determine which platform and resource to fetch.

POST https://api.refetcher.com/
GET https://api.refetcher.com/v1/account/balance

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.

GET https://api.refetcher.com/v1/account/balance
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"
  }
}
FieldMeaning
balanceUsdThe balance currently available to new API requests, after in-flight and queued usage is accounted for.
ledgerBalanceUsdThe durable balance after completed settlements. It can briefly be higher while a successful request is settling.
pendingUsageUsdCredits already unavailable to new requests but not yet reflected in the durable ledger.
reservedBalanceUsdCredits held by active durable reservations.
unitPriceUsdThe current price of one successful billable unit.
maxBillableUnitsHow many successful units the current balance can fund. Your separate per-request target limit still applies.
asOfThe time at which the snapshot was calculated.
Rate limit: 60 balance checks per minute per API key, plus a broader IP abuse limit. Responses include 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.

url

Instagram Profile

Public profile details plus its latest posts with available engagement counts and cursor pagination.

usernameprofileUrl

Instagram Comments

Public top-level comments on a post or Reel, with likes, reply counts, authors and cursor pagination.

typeurl

Instagram Search

Popular posts, Reels, hashtag posts, photo posts, profiles or mixed results for a keyword, with cursor pagination for posts.

typesearchTypequery

TikTok Video/Carousel

Exact views, likes, comments, shares and saves for videos and carousels, plus the creator, media links and sound.

url

TikTok Profile

Public creator details plus its latest posts with available engagement counts, and cursor pagination.

usernameprofileUrl

TikTok Comments & Replies

Full public comment text, likes, reply counts and authors, with separate cursors for comments and replies.

typeurlpages

Facebook Post/Reel

Plays, views, reactions, comments and shares for Reels and videos, plus photos and carousels.

url

Facebook Profile

Page or person details, followers and links to their latest posts, with cursor pagination.

usernameprofileUrl

X Post

Views, likes, retweets, replies, and tweet media attachments for public X posts.

url

X Profile

Public profile metadata including followers, following, and tweet counts.

usernameprofileUrl

YouTube Video

Views, likes, comments, video metadata, and optional newest public top-level comments for videos or Shorts.

urlincludeRecentComments

YouTube Channel

Subscribers, total views, video count, thumbnails, and optional links-only recent uploads. Use channelVideos for upload metrics.

channelUrlhandle

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.

typeurlpages

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.

typesearchTypequery
Availability notes: Instagram profile responses return account details plus the latest posts with likes, comments, and plays and views for videos. Facebook and YouTube channel profile responses return account metadata plus lightweight recent-media references when requested. TikTok profile responses return account details plus the latest posts with views, likes, comments, shares and saves, where TikTok rounds larger engagement counts; YouTube's 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 wantSend
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

FieldTypeDefaultDescription
urlone ofstringnullURL of a single Instagram post/profile, TikTok video/profile, Facebook post/profile, YouTube video, or YouTube channel. Provide one target field.
urlsone ofstring[][]Links to scrape in one request, up to 10. To raise it, contact support. Your account's limit applies to every API key.
typesometimesstringnullUse "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 usernamestringnullRequired with username or usernames: "instagram", "facebook", "tiktok", "x", or "twitter". A full URL already identifies its platform.
usernameone ofstringnullInstagram, TikTok, Facebook, or X username for a profile scrape. Requires platform to prevent an ambiguous handle from scraping the wrong network.
usernamesone ofstring[][]Usernames for batch profile scraping. Requires platform; one platform applies to the batch.
profileUrlone ofstringnullInstagram, TikTok, Facebook, or X profile URL for a single profile scrape.
profileUrlsone ofstring[][]Profile URLs for batch profile scraping.
channelUrlone ofstringnullYouTube channel URL, @handle, legacy /user/ URL, or /channel/ ID URL.
channelUrlsone ofstring[][]Batch YouTube channel targets.
channelIdone ofstringnullRaw YouTube channel ID such as UC....
handleone ofstringnullYouTube @handle when platform is "youtube" or type is "channel"/"channelVideos".
includeRecentPostsoptbooleanInstagram, 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.
sortoptstringX 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.
recentPostsLimitoptinteger12 / 5 for X / 3 for FacebookCompatibility 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.
pagesoptinteger1Instagram, 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.
afteroptstringnullFacebook, 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 repliesstringnullRequired 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.
includeRecentCommentsoptbooleanfalseWhen scraping a YouTube video, include newest public top-level comments. For paging, sorting and replies, use type: "youtubeComments".
recentCommentsLimitoptinteger20Max YouTube comments to request. Range 1–100.
includeRecentVideosoptbooleantrue for type:"channel"When scraping a YouTube channel profile, include latest uploads as links-only references. Use type:"channelVideos" for per-video metrics.
recentVideosLimitoptinteger12Exact 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"
  ]
}
A request can include up to 10 links. To raise it, contact support. Your account's limit applies to every current and future API key. Instagram images/carousels and Facebook image/photo/carousel/text posts have no aggregate views metric; Facebook also has no play metric for those formats. They still succeed with the corresponding values set to null and availability set to "not_applicable".

Limits

LimitValue
Links per request10. To raise it, contact support. Your account's limit applies to every API key.
Pages per request1–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 pageInstagram 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 linkThe same API key can request a link that failed again after 3 minutes. Earlier tries return rate_limited, which is free.
CursorsExpire after 24 hours.
Balance checks60 per minute per API key.
TimeoutMost requests finish in seconds. Set your HTTP client timeout to 180 seconds so slower ones can finish.

Instagram

Post / Reel Profile Search POSTapi.refetcher.com/

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

FieldTypeRequiredDescription
urlstringurl or urlsLink to one public Instagram post or Reel.
urlsstring[]url or urlsSeveral 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_url and costs nothing. The other links continue. A batch over your account limit is rejected with 400 before 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.am

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.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

Link senturlstring

The link you sent, unchanged.

Platformplatformstring

Always "instagram".

Successsuccessboolean

true 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.

Scrape timescrapedAtstring

When we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.

Counts engagement

Playsengagement.playsnumber · null

Play count.

Viewsengagement.viewsnumber · null

Instagram's second count for the video, usually lower than plays. null only when Instagram doesn't make it public for this post.

Likesengagement.likesnumber

Like count.

Commentsengagement.commentsnumber

Comment count.

Shares, savesengagement.shares engagement.savesnull

Instagram doesn't make these public. Always null.

Count availabilityengagementAvailabilityobject

Says 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 IDpost.idstring

Instagram's post ID and account ID joined by _, for example 3412345678901234567_123456789.

Shortcodepost.shortcodestring

The code in the post link, for example C8xExampleAbc.

Linkpost.normalizedUrlstring

Clean link to the post. Always uses /reel/.

Publishedpost.publishedAtstring · null

When the post was published (UTC, ISO 8601).

Captionpost.captionstring · null

Full caption text.

Post typepost.typestring

What kind of post it is. Always "video" for Reels and videos.

Instagram typepost.productTypestring

Instagram's own name for the format, usually "clips" for Reels.

Hashtagspost.hashtagsstring[]

Hashtags in the caption, without #. Empty if there are none.

Mentionspost.mentionsstring[]

Accounts tagged with @ in the caption, without the @. Empty if there are none.

Locationpost.locationobject · null

Tagged place, with id and name.

Paid partnershippost.isSponsoredboolean · null

true when the post is marked as a paid partnership.

Pinnedpost.isPinnedboolean · null

true when the post is pinned on the profile. Often null.

Comments offpost.commentsDisabledboolean · null

true when comments are turned off. Often null.

Region, languagepost.region post.languagenull

Always null on Instagram. Kept so every platform returns the same shape.

Account author

Account IDauthor.idstring

Instagram's numeric ID for the account.

Usernameauthor.handlestring

Username, without @.

Display nameauthor.namestring · null

The account's display name.

Verifiedauthor.isVerifiedboolean · null

true when the account has the verified badge.

Profile photoauthor.profilePicUrlstring · null

Link to the profile photo.

Bioauthor.biostring · null

Often null on post results. Use a profile request for the bio.

Followersauthor.followersnull

Not included in post results. Use a profile request for follower counts.

Following, total likes, video countauthor.following author.totalLikes author.videoCountnull

Always null on Instagram. Kept so every platform returns the same shape.

Media media

Views not publicmedia.viewCountUnavailableReasonstring · null

"not_publicly_available" when views are missing and Instagram explicitly indicates they are not public. Otherwise null.

Counts hiddenmedia.likeAndViewCountsDisabledboolean · null

true 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.

Cover imagemedia.thumbnailUrlstring · null

Link to the video's cover image.

Video filemedia.videoUrlstring · null

Link to the video file.

Lengthmedia.durationSecondsnumber · null

Video length in seconds.

Width, heightmedia.width media.heightnumber · null

Size in pixels. Can be null.

Musicmedia.musicobject · null

Audio used, when Instagram shows it: id, title, artist and isOriginalAudio.

Slidesmedia.childrenarray

Empty for Reels and videos.

Audio file, alt textmedia.audioUrl media.altTextstring · null

Usually null.

Older names, still sent

Countsmetrics metricAvailabilityobject

The same counts under their older names. metrics.views holds the play count, the same as engagement.plays.

Plays, viewsmedia.playCount media.viewCountnumber · null

Same as engagement.plays and engagement.views.

Good to know

  • Use post.type to 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: null and media.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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_age_required502The 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_metrics502We 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_limited429This 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_error, blocked_or_challenge502A temporary problem reading the post from Instagram.Retry after 3 minutes.
bad_url400This 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_request400The 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

FieldTypeRequiredDescription
usernamestringOne of theseInstagram username, without @. Send it with "platform": "instagram".
profileUrlstringOne of theseLink to the profile. url works too.
usernamesstring[]One of theseSeveral usernames in one request, with "platform": "instagram". Invalid entries return individual bad_url results; other profiles continue. profileUrls takes several links.
pagesintegerNoHow many pages of posts to return, from 1 to 25. Each page has up to 12 posts. Default 1.
afterstringNoThe endCursor from a previous response, to get the next page. cursor and endCursor work too.
includeRecentPostsbooleanNoDefaults 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.endCursor from your last response as after. A cursor works for one profile per request and expires after 24 hours.
  • When there is no usable continuation, hasNextPage is false and endCursor is null; 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

Profile linkurlstring

Clean link to the profile.

Platformplatformstring

Always "instagram".

Result typetypestring

Always "profile".

Successsuccessboolean

true when the profile was read. A failed request returns false with an error object instead of these fields.

Scrape timescrapedAtstring

When we read the profile (UTC, ISO 8601).

Noteslimitationsstring[]

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

Account IDprofile.idstring

Instagram's numeric ID for the account.

Usernameprofile.handlestring

Username, without @.

Display nameprofile.namestring · null

The account's display name.

Bioprofile.biographystring · null

The profile bio.

Followersprofile.followersnumber

Follower count.

Followingprofile.followingnumber

How many accounts it follows.

Postsprofile.totalPostsnumber · null

How many posts the account has, or null when unavailable.

Highlightsprofile.highlightReelCountnumber · null

How many story highlights the profile shows, or null when unavailable.

Privateprofile.isPrivateboolean

true for private accounts. They return no posts.

Verifiedprofile.isVerifiedboolean · null

true when the account has the verified badge.

Business accountprofile.isBusinessAccountboolean · null

true for business accounts, false when confirmed otherwise, and null when unavailable.

Professional accountprofile.isProfessionalAccountboolean · null

true for creator and business accounts, false when confirmed otherwise, and null when unavailable.

Websiteprofile.externalUrlstring · null

The link in the bio.

Bio linksprofile.bioLinksobject[] · null

Every 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 photoprofile.profilePicUrl profile.profilePicUrlHdstring · null

Profile photo link, and a larger version when Instagram provides one.

Categoryprofile.categoryNamestring · null

The category shown on the profile. Often null.

Videosprofile.totalVideosnumber · null

Usually null.

Total likes, talking about, were hereprofile.totalLikes profile.talkingAbout profile.wereHerenull

Always null on Instagram. Kept so every platform returns the same shape.

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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_age_required502The 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_url400This 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_request400The 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_error, blocked_or_challenge502A 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

FieldTypeRequiredDescription
typestringYesAlways "instagramComments".
urlstringurl or urlsLink to one public Instagram post or Reel.
urlsstring[]url or urlsSeveral posts in one request. Up to 10, like post batches. A cursor works with one post only.
pagesintegerNoHow many pages of comments to return, from 1 to 25. Each page has 14 comments. Default 1.
afterstringNoThe 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.endCursor from your last response as after. A cursor works for one post per request and expires after 24 hours.
  • When there are no more comments, hasNextPage is false and endCursor is null.
  • 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.am

A 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

Link senturlstring

The link you sent.

Platformplatformstring

Always "instagram".

Result typetypestring

Always "comments".

Successsuccessboolean

true when the comments were read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the comments (UTC, ISO 8601).

Postpost.id post.urlstring

Instagram's numeric ID for the post, and its clean link.

Coveragecoveragestring

Always "public_logged_out".

Noteslimitationsstring[]

Anything important we need to tell you about these comments, for example that replies aren't included.

Comment comments[]

Comment IDidstring

Instagram's ID for the comment.

Texttextstring

The full comment text, never cut short.

LikeslikeCountnumber · null

Like count.

RepliesreplyCountnumber · null

How many replies the comment has. The replies themselves aren't included.

PostedpublishedAtstring · null

When the comment was posted (UTC, ISO 8601).

GIFmediaobject

Only present when the comment is a GIF: type is "gif" and url links to it.

Authorauthor.id author.handle author.namestring · null

Who wrote it: their account ID, username without @, and display name.

Verifiedauthor.isVerifiedboolean · null

true when the author has a verified badge.

Author linksauthor.avatarUrl author.profileUrlstring · null

Their profile photo and profile link.

Paging pageInfo

More commentshasNextPageboolean

true when the post has more comments after these.

Next-page cursorendCursorstring · null

Send this as after to get the next comments. Expires after 24 hours. null on the last page.

Pages asked forpagesRequestednumber

The pages value you sent.

Pages returnedpagesFetchednumber

How many pages came back. Can be lower when the post has fewer comments.

Comments returnedreturnedCountnumber

How many comments came back.

Comments per pagepageSizenumber

Always 14.

Incompleteincompleteboolean

Always false on a successful result.

Older names, still sent comments[]

Likeslikesnumber · null

Same as likeCount.

Repliesrepliesnumber · null

Same as replyCount.

Profile photoauthor.profilePicUrlstring · null

Same 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"
}
CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_restricted403The 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_age_required403The 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.
timeout504A temporary problem reading the comments from Instagram.Retry after at least 3 minutes.
upstream_error, blocked_or_challenge502A temporary problem reading the comments from Instagram.Retry after at least 3 minutes.
bad_request400The 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 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

Platformplatformstring

Always "instagram".

Result typetypestring

Always "search".

Searchquery searchTypestring

What you searched for. A leading # is removed from hashtags.

Media filtermediaTypestring

Only on "hashtagPosts": "all" or "reels".

Successsuccessboolean

true when the page was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring · null

When we read the page (UTC, ISO 8601). Every post on the page has the same time. null on a failed search.

Paging pageInfo

More resultspageInfo.hasNextPageboolean · null

true when there are more results after this page. null when we couldn't confirm more.

Next-page cursorpageInfo.endCursorstring · null

Send this as after to get the next page. Expires after 24 hours. null on the last page.

Results returnedpageInfo.returnedCountnumber

How many results came back.

Topic topic

Topictopic.title topic.urlstring

The topic Instagram matched to your word, and its link on Instagram.

Descriptiontopic.descriptionobject · null

First 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.

Post counttopic.totalMediaCount topic.mediaCountDisplay topic.approximateMediaCountnumber · string · null

First 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.

Related topicstopic.relatedTopicsobject[]

Other topics Instagram links from the page, each with title and url.

Coveragetopic.coverageobject

Not on "popular". How much of the page we checked: candidateCardsExamined, cardsWithVerifiedText, and scanLimitReached when the check limit was hit.

Repeated pagingtopic.paginationobject

The same cursor again. Use pageInfo instead.

Post topic.posts[]

Post fieldspost author media engagement engagementAvailabilityobject

The 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.

Post typetypestring

"reel" or "post".

Shortcode and linkshortcode urlstring

The code in the post link, and the full link.

Post owner IDsauthor.id author.scopedIdstring · null

author.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.

SectionsectionTitle sectionUrlstring · null

The group of results the post appeared in, such as a related topic, and its link.

Matchmatch.text match.sourceobject

Not on "popular". The text that contained your word or hashtag, and where it was found.

Photo detailsmediaType authorUrlstring

Only on "posts": "image" or "carousel", and the link to the creator's profile the post came from.

Scrape timescrapedAtstring

Same as the result's scrapedAt.

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 usually null. 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
}
CategoryHTTP statusWhat it meansWhat to do
bad_request400The 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_cursor400The 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_found404Instagram has no topic for this word, or no account with this @username.Check the spelling. Don't retry. The result won't change.
cursor_stale409Instagram's page changed, so the next page can't continue from where the last one ended.Start again from the first page.
no_verified_matches422Instagram has this topic, but nothing in it matched your search.Try another word or search type.
rate_limited429This 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_access_required502Instagram didn't let us read this search.Retrying the same search usually gives the same result. Try another word or search type.
incomplete_response, upstream_error502A temporary problem reading the search results from Instagram.Retry after at least 3 minutes.
service_capacity503Search is busy right now.Retry after at least 3 minutes.
service_unavailable503Search is temporarily switched off.Retry later. Contact us if it continues.
timeout504The 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_limited with the wait in retryAfterSeconds.
  • A search that succeeded can be repeated right away.

See all error categories and HTTP status codes.

TikTok

Video / Carousel Profile Comments / Replies POSTapi.refetcher.com/

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

FieldTypeRequiredDescription
urlstringurl or urlsLink to one public TikTok video or carousel.
urlsstring[]url or urlsSeveral 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_url and costs nothing. The other links continue. A batch over your account limit is rejected with 400 before 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.com

Short 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

Link senturlstring

The link you sent, with tracking parameters removed.

Platformplatformstring

Always "tiktok".

Successsuccessboolean

true when the post was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.

Noteslimitationsstring[]

Anything important we need to tell you about this post. Only present when there is something.

Counts engagement

Playsengagement.playsnull

Always null. TikTok has one count, views.

Viewsengagement.viewsnumber

View count, exact.

Likesengagement.likesnumber

Like count, exact.

Commentsengagement.commentsnumber

Comment count, exact.

Sharesengagement.sharesnumber · null

Share count, exact.

Savesengagement.savesnumber · null

How many people saved the post to their favorites, exact.

Downloads, WhatsApp sharesengagement.downloads engagement.whatsappSharesnumber

Download and WhatsApp share counts, exact.

Forwards, repostsengagement.forwards engagement.repostsnumber

TikTok doesn't make these public for now. They come back as 0.

Count availabilityengagementAvailabilityobject

Says whether each count above was returned: "available" (returned) or "unavailable" (TikTok didn't send it).

Post post

Post IDpost.idstring

TikTok's ID for the post, the number in the link, for example 7398210000000000000.

Linkpost.normalizedUrlstring

Clean link to the post, with the creator's username. Short links and links without a username come back in full here.

Publishedpost.publishedAtstring · null

When the post was published (UTC, ISO 8601).

Captionpost.captionstring · null

Full caption text. null when there is none.

Post typepost.typestring

The kind of post: "video" or "carousel".

TikTok typepost.productTypestring · null

TikTok's own name for the format, when it gives one.

Hashtagspost.hashtagsstring[]

Hashtags in the caption, without #. Empty if there are none.

Mentionspost.mentionsstring[]

Accounts tagged with @ in the caption, without the @. Empty if there are none.

Countrypost.regionstring · null

Two-letter code of the country the post was made in, for example "US".

Adpost.isSponsoredboolean · null

true when the post is an ad. Often null.

Comments offpost.commentsDisabledboolean · null

true when comments are turned off. Often null.

Sharing and downloads allowedpost.allowShare post.allowDownloadboolean

Whether the creator lets people share and download the video. Only included when TikTok sends them.

Paid partnership, AI-madepost.isPaidPartnership post.isAiGeneratedboolean

true when the post is labelled as a paid partnership, or as made with AI. Only included when TikTok sends them.

Pinned, language, locationpost.isPinned post.language post.locationnull

Usually null on TikTok.

Shortcodepost.shortcodenull

Always null on TikTok. Kept so every platform returns the same shape.

Creator author

Account IDauthor.idstring

TikTok's numeric ID for the account.

Usernameauthor.handlestring

Username, without @.

Display nameauthor.namestring · null

The account's display name.

Followersauthor.followersnumber · null

Follower count. Rounded by TikTok for large accounts, for example 96400000 for 96.4M.

Followingauthor.followingnumber · null

How many accounts it follows.

Total likesauthor.totalLikesnumber · null

Likes across all the account's posts. Rounded by TikTok for large accounts.

Videosauthor.videoCountnumber · null

How many posts the account has.

Bioauthor.biostring · null

The profile bio.

Verifiedauthor.isVerifiedboolean · null

true when the account has the verified badge.

Profile photoauthor.profilePicUrlstring · null

Link to the profile photo.

Media media

Media typemedia.typestring

The kind of media: "video" or "carousel".

Cover imagemedia.thumbnailUrlstring · null

Link to the video's cover image.

Video filemedia.videoUrlstring · null

Link to the video file.

Lengthmedia.durationSecondsnumber · null

Video length in seconds.

Width, heightmedia.width media.heightnumber · null

Size of the video file in pixels.

Qualitymedia.ratiostring · null

Quality of the video file, for example "720p".

Bitratemedia.bitratenumber · null

Bitrate of the video file, in bits per second.

Formatmedia.formatstring · null

Usually null.

Photosmedia.childrenarray

Empty for videos.

Sound music

Soundmusic.id music.title music.authorNamestring · null

The sound's ID, title and the name of who made it.

Sound lengthmusic.durationSecondsnumber · null

Length of the whole sound in seconds.

Sound linksmusic.playUrl music.coverUrlstring · null

Link to the audio file and to the sound's cover image.

Original soundmusic.originalboolean · null

true when the sound was uploaded with the video. Often null.

More sound detailsmusic.owner music.usedSegment music.isCommercial music.isOriginalCompositionmixed

Only 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

Countsmetrics metricAvailabilityobject

The 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
}
CategoryHTTP statusTikTok reason (error.upstream)What it meansWhat to do
private_or_removed40410204
status_deleted
item 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.
10204
status_self_see
author_secret
status_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.
10204
status_reviewing
status_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.
10204
copyright_geo_filter
TikTok blocked the post for copyright.Don't retry. The result won't change.
missing_metrics50210231
cross_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_limited429—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_error, blocked_or_challenge502—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_url400—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_request400—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

FieldTypeRequiredDescription
usernamestringOne of theseTikTok username, without @. Send it with "platform": "tiktok".
profileUrlstringOne of theseLink to the profile, for example https://www.tiktok.com/@creators_hub. url works too.
usernamesstring[]One of theseSeveral usernames in one request, with "platform": "tiktok". profileUrls takes several links.
pagesintegerNoHow many pages of posts to return, from 1 to 25. Each page has up to 12 posts. Default 1.
afterstringNoThe 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 hasNextPage is true, send pageInfo.recentPosts.endCursor as after to retrieve the next window for the same profile, sort, and includeRetweets setting. A cursor works for one profile per request.
  • When there is no usable continuation, hasNextPage is false and endCursor is null; 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

Profile linkurlstring

Clean link to the profile.

Platformplatformstring

Always "tiktok".

Result typetypestring

Always "profile".

Successsuccessboolean

true when the profile was read. A failed request returns false with an error object instead of these fields.

Scrape timescrapedAtstring

When we read the profile (UTC, ISO 8601).

Noteslimitationsstring[]

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

Account IDprofile.idstring

TikTok's numeric ID for the account.

Usernameprofile.handlestring

Username, without @.

Display nameprofile.namestring · null

The account's display name.

Bioprofile.biographystring · null

The profile bio.

Followersprofile.followersnumber

Follower count, exact.

Followingprofile.followingnumber

How many accounts it follows.

Videosprofile.totalVideosnumber · null

How many posts the account has.

Total likesprofile.totalLikesnumber · null

Likes across all the account's posts, exact.

Privateprofile.isPrivateboolean

true for private accounts. Asking for a private account's posts fails with private_or_removed; send includeRecentPosts: false to get its details only.

Verifiedprofile.isVerifiedboolean · null

true when the account has the verified badge.

Count precisionprofile.metricPrecisionobject

How exact each account count is: "source_integer" (exact), "rounded" (rounded by TikTok) or "unavailable".

Profile photoprofile.profilePicUrl profile.profilePicUrlHdstring · null

Profile photo link, and a larger version when TikTok provides one.

Business, professionalprofile.isBusinessAccount profile.isProfessionalAccountboolean · null

Usually false or null on TikTok.

Websiteprofile.externalUrlstring · null

The link in the bio. Usually null on TikTok.

Posts, category, highlights, talking about, were hereprofile.totalPosts profile.categoryName profile.highlightReelCount profile.talkingAbout profile.wereHerenull

Always null on TikTok. Kept so every platform returns the same shape. Use profile.totalVideos for the post count.

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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404TikTok 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 includeRecentPosts: false to get its details only.
age_restricted403TikTok 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_url400This 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_request400The 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_error, blocked_or_challenge502A 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

FieldTypeRequiredDescription
typestringYesAlways "tiktokComments".
urlstringurl or urlsLink to one public TikTok video or photo/carousel post. Profiles aren't accepted.
urlsstring[]url or urlsSeveral 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.
pagesintegerNoFrom 1 to 25; default 1. Each page contains up to 20 comments. pageCount and paginationPages are accepted aliases.
afterstringNoThe previous response's pageInfo.endCursor. cursor and endCursor are accepted aliases. Use the same post; cursors expire after 24 hours.
sortstringNo"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.endCursor as after with one post. pages can 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: true means TikTok supplied a continuation. When it is false, endCursor is null. 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 by createdAt; "likes" sorts them by likeCount, descending, with unknown values last. Neither option finds the newest or most-liked comments across the whole post. The response reports sortScope: "returned_comments"; native order reports "tiktok_order".

Accepted links

/@user/video//@user/photo/vm.tiktok.comvt.tiktok.comtiktok.com/t/m.tiktok.com

A 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.

FieldTypeRequiredDescription
typestringYesAlways "tiktokCommentReplies".
urlstringYesThe video or photo/carousel post containing the parent comment. Supported share links work too. Exactly one post is accepted.
commentIdstringYesThe parent comment's numeric ID as a string, for example "7420000000000000001". comment_id is an accepted alias.
pagesintegerNoFrom 1 to 25; default 1. Each page contains up to 20 replies. Page aliases and billing work as for top-level comments.
afterstringNoThe 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.
sortstringNo"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

Link senturlstring

The submitted link, normalized when it is a full post link. A share link stays a share link.

Platformplatformstring

Always "tiktok".

Result typetypestring

Always "comments", including replies.

Successsuccessboolean

true for a successful read, including an empty result. A failure returns false with an error object.

Postpost.id post.urlstring

The post's numeric ID as a string and its canonical full video or photo link.

Reply parentparentCommentIdstring · null

The requested parent ID for replies; null for top-level comments.

Commentscommentsobject[]

The returned comments or replies. A successful empty read returns [].

Total counttotalCountnumber · null

TikTok's reported total for this comment list or reply thread, when supplied. It isn't a promise that every item can be retrieved.

Ordersortstring

The selected "relevant", "latest" or "likes" order.

Sorting scopesortScopestring

"tiktok_order" for relevant order; "returned_comments" when sorting only the fetched request window. Sorting doesn't change the continuation cursor.

Noteslimitationsstring[]

Coverage, empty-page, incomplete-result or sorting limitations.

Scrape timescrapedAtstring

When the result was read, in UTC ISO 8601 format.

Comment comments[]

Comment IDidstring

TikTok's numeric comment ID, preserved as a string.

Texttextstring

The full comment text, including line breaks and emoji. It isn't cut short.

PostedpublishedAtstring · null

The publication time in UTC ISO 8601 format, or null when unavailable.

LikeslikeCountnumber · null

The comment's like count, when supplied.

RepliesreplyCountnumber · null

How many replies the comment has, when supplied. Fetch their text with "tiktokCommentReplies".

Thread parentparentCommentIdstring · null

The requested top-level parent for a reply; null on a top-level comment.

Reply targetreplyToCommentIdstring · null

The specific comment this reply addresses, when TikTok supplies it.

Post authorisAuthorboolean · null

Whether the comment was written by the post's author, when known.

Liked by authorlikedByAuthorboolean · null

Whether the post's author liked this comment, when known.

Pinnedpinnedboolean · null

Whether the comment is pinned, when known.

Author identityauthor.id author.handle author.namestring · null

The comment author's ID as a string, username without @, and display name. Each can be null.

Author linksauthor.avatarUrl author.profileUrlstring · null

The comment author's profile photo and profile link, when supplied.

Paging pageInfo

More commentshasNextPageboolean

Whether TikTok supplied another page for this comment list or reply thread.

Next-page cursorendCursorstring · null

Send as after to continue. Bound to the post and reply parent, and valid for 24 hours. null when no continuation is supplied.

Pages asked forpagesRequestednumber

The pages value requested, from 1 to 25.

Pages returnedpagesFetchednumber

Populated pages delivered and charged. Can be lower than requested; zero for a successful empty result.

Comments returnedreturnedCountnumber

The length of the returned comments list after duplicate removal.

Incompleteincompleteboolean

true when collection stopped at a response limit before finishing the requested window. Use the returned cursor to continue.

Older names, still sent comments[]

PostedcreatedAtstring · null

Same 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"
}
CategoryHTTP statusWhat it meansWhat to do
bad_request, bad_url400Invalid 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_restricted403TikTok explicitly reports an age restriction for this post, preventing public access.Don't repeat the same public request expecting access to restricted content.
private_or_removed404TikTok 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_limited429This 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_error, blocked_or_challenge502TikTok 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_error503Comment retrieval is temporarily unavailable.Retry later; contact support if it persists.
timeout504The 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.

Facebook

Post / Reel Profile POSTapi.refetcher.com/

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

FieldTypeRequiredDescription
urlstringurl or urlsLink to one public Facebook post, video, Reel or photo.
urlsstring[]url or urlsSeveral 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_url and costs nothing. The other links continue. A batch over your account limit is rejected with 400 before 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.com

Share 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

Linkurlstring

Link to the post. Share links come back as the full post link.

Platformplatformstring

Always "facebook".

Successsuccessboolean

true when the post was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.

Counts engagement

Playsengagement.playsnumber · null

Play count. null for photo and text posts.

Viewsengagement.viewsnumber · null

Facebook's second count for the video, usually lower than plays. null for photo and text posts.

Likesengagement.likesnumber · null

Like reactions when counted separately. If only one reaction count is available, both likes and reactions can contain that number.

Reactionsengagement.reactionsnumber · null

Total reactions when counted separately. Some results repeat the single available reaction count here.

Commentsengagement.commentsnumber · null

Total comments, including replies, when counted separately.

Top-level commentsengagement.topLevelCommentsnumber · null

Top-level comments when counted separately. If only one comment count is available, both comment fields can contain that number.

Sharesengagement.sharesnumber · null

Share count, which Facebook can round (for example 12K). See engagementPrecision. null when Facebook doesn't show it.

Savesengagement.savesnull

Always null. Facebook doesn't show saves.

Count availabilityengagementAvailabilityobject

Says whether each count above was returned: "available", "unavailable", or "not_applicable" for views and plays on photo and text posts.

Exact or roundedengagementPrecisionobject

"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.

Rounded as showndisplayMetricsobject

Each rounded count as Facebook shows it, for example {"shares": "12K"}. Empty when every count is exact.

Reactions by typereactionBreakdownobject

Count 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 IDpost.idstring

Facebook's ID for the post or video.

Linkpost.normalizedUrlstring

Clean link to the post. Some videos and Reels come back as their page's /videos/ link.

Publishedpost.publishedAtstring · null

When the post was published (UTC, ISO 8601).

Textpost.captionstring · null

The full post text.

Post typepost.typestring

"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".

Kindpost.productTypestring · null

"reel", "video", "photo" or "carousel". null for text posts.

Hashtagspost.hashtagsstring[]

Hashtags in the text, without #. Empty if there are none.

Mentionspost.mentionsstring[]

Names tagged with @ in the text, without the @. Empty if there are none.

Other IDspost.identifiersobject

Facebook's other IDs for the same post: contentId, storyId, videoId and feedbackId. inputToken repeats the pfbid… code from your link, when it had one.

Shortcodepost.shortcodenull

Always null. Facebook has no shortcodes; use post.id.

Not on Facebookpost.region post.language post.location post.commentsDisabled post.isPinned post.isSponsorednull

Always null on Facebook. Kept so every platform returns the same shape.

Page or person author

IDauthor.idstring · null

Facebook's numeric ID for the page or person.

Usernameauthor.handlestring · null

The username in their Facebook link, when available.

Nameauthor.namestring · null

Their display name.

Verifiedauthor.isVerifiedboolean · null

true when they have a verified badge.

Profile photoauthor.profilePicUrlstring · null

Link to the profile photo.

Followers and moreauthor.followers author.following author.totalLikes author.videoCount author.bionull

Always null in post results. Use a profile request for followers and the bio.

Media media

Media typemedia.typestring

"video" or "image".

Cover imagemedia.thumbnailUrlstring · null

Link to the first photo, or the video's cover image.

Video filemedia.videoUrlstring · null

Link to the video file, in the best quality available. null for posts without a video.

HD and SD filesmedia.hdVideoUrl media.sdVideoUrlstring · null

Links to the high- and standard-quality video files.

Video filesmedia.variantsarray

Every video file, each with quality ("hd" or "sd"), contentType, url and expiresAt. Empty for photos.

Links expiremedia.urlsExpire media.thumbnailExpiresAtboolean · string

urlsExpire is true when the media links stop working after a while; thumbnailExpiresAt says when the cover image link expires.

Subtitlesmedia.captionsUrlstring · null

Link to the subtitles file, when the video has one.

Lengthmedia.durationSecondsnumber · null

Video length in seconds.

Width, heightmedia.width media.heightnumber · null

Size of the first photo or video in pixels.

Alt textmedia.altTextstring · null

The description of the first photo or video, as Facebook gives it.

Soundmedia.audioAvailabilitystring · null

Whether the video has sound, for example "available". null for photos.

Loopsmedia.isLoopingboolean · null

true when Facebook plays the video on a loop.

Streaming versionmedia.dashManifestAvailableboolean

true when Facebook also has a streaming version of the video.

Photos and videosmedia.childrenarray

Available media items in their returned order. Some results have no media items. See the Media items tab.

Older names, still sent

Countsmetrics metricAvailability metricPrecisionobject

The same counts under their older names.

Good to know

  • Use post.type to 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 views and plays set to null, marked "unavailable" in engagementAvailability.
  • 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 12000 for 12K, and mark them as "rounded" in engagementPrecision.
  • 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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_metrics502We 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_restricted404The post is age-restricted, so Facebook only shows it to logged-in adults.Don't retry. The result won't change.
rate_limited429This 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_error, blocked_or_challenge502A 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_url400This 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_request400The 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

FieldTypeRequiredDescription
usernamestringOne of theseThe username in the Facebook link, for example creatorshub. Send it with "platform": "facebook".
profileUrlstringOne of theseLink to the profile or page, for example https://www.facebook.com/creatorshub. url works too.
usernamesstring[]One of theseSeveral usernames in one request, with "platform": "facebook". profileUrls takes several links.
includeRecentPostsbooleanNoDefault true: links to the latest posts come back too. Send false for the profile details only. includeRecentMedia works too.
pagesintegerNoHow many pages of posts to return, from 1 to 25. Each page has up to 3 post links. Default 1.
afterstringNoThe 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.endCursor from your last response as after. 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 with 400.
  • When there are no more posts, hasNextPage is false and endCursor is null.
  • If Facebook stops partway, you get the links collected so far with incomplete: true, and any available continuation cursor. Continue only when endCursor is present.
  • A profile with a verified empty public feed comes back with success: true and an empty recentPosts list.

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

Profile linkurlstring

Clean link to the profile.

Platformplatformstring

Always "facebook".

Result typetypestring

Always "profile".

Successsuccessboolean

true when the profile was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the profile (UTC, ISO 8601).

Noteslimitationsstring[]

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

IDprofile.idstring

Facebook's numeric ID for the page or person.

Usernameprofile.handlestring · null

The username in their Facebook link, when available.

Nameprofile.namestring · null

Their display name.

Bioprofile.biographystring · null

The intro or description on the profile.

Followersprofile.followersnumber · null

Follower count when available.

Talking about thisprofile.talkingAboutnumber · null

How many people Facebook says are talking about the page.

Were hereprofile.wereHerenumber · null

Check-ins, for pages of places.

Verifiedprofile.isVerifiedboolean · null

true when they have a verified badge.

Profile photoprofile.profilePicUrl profile.profilePicUrlHdstring · null

Link to the profile photo, and a larger version.

Privateprofile.isPrivateboolean

Indicates whether the source identifies this profile as private. Inaccessible profiles return an error.

Additional profile fieldsprofile.following profile.totalPosts profile.totalVideos profile.totalLikes profile.highlightReelCount profile.categoryName profile.externalUrl profile.isBusinessAccount profile.isProfessionalAccountnumber · string · boolean · null

When 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.

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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_restricted404The profile is age-restricted, so Facebook only shows it to logged-in adults.Don't retry. The result won't change.
rate_limited429This 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_error, blocked_or_challenge502A temporary problem reading the profile from Facebook.Retry after at least 3 minutes.
bad_url400This 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_request400The 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

Post Profile POSTapi.refetcher.com/

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

FieldTypeRequiredDescription
urlstringurl or urlsLink to one public X post.
urlsstring[]url or urlsSeveral 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_url and costs nothing. The other links continue. A batch over your account limit is rejected with 400 before 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

Linkurlstring

Link to the post on x.com.

Platformplatformstring

Always "x".

Successsuccessboolean

true when the post was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the post (UTC, ISO 8601). Counts are a snapshot from this moment.

Counts engagement

Playsengagement.playsnull

Always null. X has one count, views.

Viewsengagement.viewsnumber · null

View count, exact. null for posts from before X showed view counts (late 2022).

Likesengagement.likesnumber

Like count, exact.

Repliesengagement.commentsnumber

Reply count, exact.

Repostsengagement.sharesnumber

Repost count, exact.

Bookmarksengagement.savesnumber

Bookmark count, exact.

Quotesengagement.quoteTweetsnumber · null

How many posts quote this one, exact.

Count availabilityengagementAvailabilityobject

Says whether each count above was returned: "available" or "unavailable". Older posts can have unavailable views.

Post post

Post IDpost.id post.shortcodestring

X's ID for the post, the number in the link. Both fields hold the same value.

Linkpost.normalizedUrlstring

Clean link to the post.

Publishedpost.publishedAtstring

When the post was published (UTC, ISO 8601).

Textpost.captionstring · null

Native 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 typepost.typestring

"text", "image", "video" or "carousel" (more than one photo or video).

Hashtagspost.hashtagsstring[]

Hashtags in the text, without #. Empty if there are none.

Mentionspost.mentionsstring[]

Accounts tagged with @ in the text, without the @. Empty if there are none.

Kindpost.productTypestring

Always "tweet".

Not on Xpost.region post.language post.location post.commentsDisabled post.isPinned post.isSponsorednull

Always null on X. Kept so every platform returns the same shape.

Account author

Account IDauthor.idstring

X's numeric ID for the account.

Usernameauthor.handlestring

Username, without @.

Display nameauthor.namestring · null

The account's display name.

Followersauthor.followersnumber · null

Follower count, exact.

Followingauthor.followingnumber · null

How many accounts it follows.

Bioauthor.biostring · null

The profile bio.

Verifiedauthor.isVerifiedboolean · null

true when the account has a verified badge.

Profile photoauthor.profilePicUrlstring · null

Link to the profile photo.

Likes, videosauthor.totalLikes author.videoCountnull

Always null in post results. Use a profile request for these.

Media media

Cover imagemedia.thumbnailUrlstring · null

Link to the first photo, or the video's cover image.

Video filemedia.videoUrlstring · null

Link to the video file. null for posts without a video.

Lengthmedia.durationSecondsnumber · null

Video length in seconds.

Width, heightmedia.width media.heightnumber · null

Size of the first photo or video in pixels.

Alt textmedia.altTextstring · null

The description the author added for the first photo or video.

Photos and videosmedia.childrenarray

Every photo and video in the post, in order. Empty for text posts. See the Media items tab.

Older names, still sent

Countsmetrics metricAvailabilityobject

The same counts under their older names.

Good to know

  • The counts use X's names in the docs, but shared keys in the response: replies are comments, reposts are shares, bookmarks are saves.
  • 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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_metrics502We reached the post, but X didn't give us the exact counts.Retry after 3 minutes.
rate_limited429This 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_error, blocked_or_challenge502A temporary problem reading the post from X.Retry after 3 minutes.
bad_url400This 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_request400The 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

FieldTypeRequiredDescription
usernamestringOne of theseX username, without @. Send it with "platform": "x".
profileUrlstringOne of theseLink to the profile, for example https://x.com/creatorshub. url works too.
usernamesstring[]One of theseSeveral usernames in one request, with "platform": "x". profileUrls takes several links.
includeRecentPostsbooleanNoSend true to get the latest posts. Default false: the profile details only.
pagesintegerNoHow many pages of posts to return, from 1 to 25. Each page has up to 5 posts. Default 1.
sortstringNo"latest" (default) or "popular". See Sort order below. feedSort works too.
afterstringNoThe 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 hasNextPage is true, send pageInfo.recentPosts.endCursor as after to retrieve the next window for the same profile, sort, and includeRetweets setting. A cursor works for one profile per request.
  • When there is no usable continuation, hasNextPage is false and endCursor is null; 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.

ValueWhat 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 sort value, such as "oldest", is rejected with a 400 error. The response's feed.sort repeats 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

Profile linkurlstring

Clean link to the profile.

Platformplatformstring

Always "x".

Result typetypestring

Always "profile".

Successsuccessboolean

true when the profile was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the profile (UTC, ISO 8601).

Noteslimitationsstring[]

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

Account IDprofile.idstring

X's numeric ID for the account.

Usernameprofile.handlestring

Username, without @.

Display nameprofile.namestring · null

The account's display name.

Bioprofile.biographystring · null

The profile bio.

Followersprofile.followersnumber

Follower count, exact.

Followingprofile.followingnumber

How many accounts it follows.

Postsprofile.totalPostsnumber · null

How many posts the account has made, including reposts and replies.

Photos and videosprofile.totalVideosnumber · null

How many photo and video posts the account has made.

Likes givenprofile.totalLikesnumber · null

How many posts the account has liked.

Privateprofile.isPrivateboolean

true for protected accounts. Their posts aren't public.

Verifiedprofile.isVerifiedboolean · null

true when the account has a verified badge.

Websiteprofile.externalUrlstring · null

The link in the profile.

Profile photoprofile.profilePicUrl profile.profilePicUrlHdstring · null

Link to the profile photo, and a larger version.

Pinned postprofile.pinnedPostIdstring · null

ID of the pinned post. null when nothing is pinned.

Not on Xprofile.isBusinessAccount profile.isProfessionalAccount profile.categoryName profile.talkingAbout profile.wereHere profile.highlightReelCountnull · boolean

Always false or null on X. Kept so every platform returns the same shape.

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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The account doesn't exist, was suspended, or is otherwise unavailable.Check the username and stop automatic retries for confirmed unavailable profiles.
timeout, upstream_error, blocked_or_challenge502A temporary problem reading the profile from X.Retry after a few minutes.
bad_url400This 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_request400The 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

Video / Short Channel Comments / Replies POSTapi.refetcher.com/

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

FieldTypeRequiredDescription
urlstringurl or urlsLink to one public YouTube video or Short.
urlsstring[]url or urlsSeveral links in one request. See Batches below.
includeRecentCommentsbooleanNoSet to true to also get the video's comments. Default false. For more than 100 comments, another order or replies, use a comments request.
recentCommentsLimitintegerNoHow 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_url and costs nothing. The other links continue. A batch over your account limit is rejected with 400 before 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.com

Example

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

Linkurlstring

Link to the video. Shorts and short links come back as the full watch link.

Platformplatformstring

Always "youtube".

Successsuccessboolean

true when the video was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the video (UTC, ISO 8601). Counts are a snapshot from this moment.

Counts engagement

Playsengagement.playsnull

Always null. YouTube has one count, views.

Viewsengagement.viewsnumber

View count, exact.

Likesengagement.likesnumber · null

Like count, exact. null when the creator hides likes.

Commentsengagement.commentsnumber · null

Comment count, exact. null when comments are turned off.

Shares, savesengagement.shares engagement.savesnull

YouTube doesn't make these public. Always null.

Count availabilityengagementAvailabilityobject

"available" or "unavailable" for each count. plays is "not_applicable".

Video post

Video IDpost.idstring

YouTube's ID for the video, for example Ab3dEf6hIj0.

Watch linkpost.normalizedUrlstring

Clean watch link to the video.

Publishedpost.publishedAtstring

When the video was published (UTC, ISO 8601).

Titlepost.captionstring

The video title.

Descriptionpost.descriptionstring · null

The full description. null when there is none.

Channel author

Channel IDauthor.idstring

YouTube's ID for the channel, starting with UC.

Handleauthor.channelHandlestring · null

The channel's handle, without @.

Channel nameauthor.namestring

The channel's display name.

Old handle fieldauthor.handlestring

Holds the channel ID, kept for older integrations. Use author.channelHandle for the handle.

Subscribersauthor.followersnull

Not included in video results. Use a channel request for subscriber counts.

Media media

Thumbnailmedia.thumbnailUrlstring

Link to the video's thumbnail image.

Embed linkmedia.embedUrlstring

Link for embedding the video on a web page.

Lengthmedia.durationSecondsnumber · null

Video length in seconds. null for live streams and upcoming premieres.

Older names, still sent

Countsmetricsobject

The same counts under their older names.

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 recentComments list and a recentCommentsError note.
  • 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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_metrics502We reached the video, but YouTube didn't give us the exact views, likes and comments.Retry after 3 minutes.
rate_limited429This 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_error, blocked_or_challenge502A temporary problem reading the video from YouTube.Retry after 3 minutes.
bad_url400This 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_request400The 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

FieldTypeRequiredDescription
urlstringOne of theseLink to the channel, for example https://www.youtube.com/@creatorshub. /channel/ and /user/ links work too. channelUrl works too.
handlestringOne of theseThe channel's handle, for example @creatorshub. Send it with type or "platform": "youtube".
channelIdstringOne of theseThe channel ID, starting with UC. Send it with type or "platform": "youtube".
urlsstring[]One of theseSeveral channels in one request. channelUrls works too.
typestringNo"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.
includeRecentVideosbooleanNoWith "channel", send false to get the channel's details only. Default true.
pagesintegerNoHow many pages of videos to return, from 1 to 25. Each page has 12 videos. Default 1.
recentVideosLimitintegerNoAn exact number of videos instead of pages, from 1 to 300. Wins if you send both.
afterstringNoThe 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. Combine pages and after to choose how many pages to load after the previous response; changing the page count between requests is supported.
  • To continue later, send pageInfo.endCursor from your last response as after. A cursor works for one channel per request and expires after 24 hours.
  • When there are no more videos, hasNextPage is false and endCursor is null.
  • 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

Channel linkurlstring

Clean link to the channel.

Platformplatformstring

Always "youtube".

Result typetypestring

"channel" or "channelVideos", matching your request.

Successsuccessboolean

true when the channel was read successfully, otherwise false with an error object.

Scrape timescrapedAtstring

When we read the channel (UTC, ISO 8601).

Channel channel

Channel IDchannel.idstring

YouTube's ID for the channel, starting with UC.

Handlechannel.handle channel.channelHandlestring · null

The channel's handle, without @. Both fields hold the same value.

Channel namechannel.namestring

The channel's display name.

Subscriberschannel.subscribersnumber · null

Subscriber count, rounded by YouTube, for example 312000 for 312K. null when the channel hides it.

Subscribers hiddenchannel.hiddenSubscriberCountboolean

true when the channel hides its subscriber count.

Total viewschannel.totalViewsnumber · null

Views across all the channel's videos, exact.

Videoschannel.totalVideosnumber · null

How many public videos the channel has.

Descriptionchannel.descriptionstring · null

The channel description. Only with "channel".

Countrychannel.countrystring · null

Two-letter country code the channel set, for example "US". Only with "channel".

Createdchannel.publishedAtstring · null

The day the channel was created. The date is reliable; the time can be off. Only with "channel".

Linkschannel.url channel.thumbnailUrl channel.uploadsPlaylistIdstring · null

The channel link, its picture, and the ID of its uploads playlist. Only with "channel".

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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The channel doesn't exist or was closed.Check the link or handle.
timeout, upstream_error, blocked_or_challenge502A 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_url400The 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_request400The 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

FieldTypeRequiredDescription
typestringYesAlways "youtubeComments".
urlstringurl or urlsLink to one public YouTube video or Short. Channels aren't accepted.
urlsstring[]url or urlsSeveral video links in one request, up to your batch limit (normally 10). A cursor works with one video only.
pagesintegerNoHow many pages to return, from 1 to 25. Each page has up to 20 comments. Default 1.
sortstringNo"relevant" (default) for YouTube's Top comments order, or "latest" for Newest first. commentsSort works too.
afterstringNoThe 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.endCursor as after, with the same video and sort. A cursor works for 24 hours. pages can 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, hasNextPage is false and endCursor is null. 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 when hasNextPage is true and 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_url and costs nothing. The other links continue.

Accepted links

watch?v=/shorts//live//embed/youtu.bem.youtube.commusic.youtube.com

The 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

FieldTypeRequiredDescription
typestringYesAlways "youtubeCommentReplies".
urlstringYesThe video or Short the comment is on. One video per request.
commentIdstringYesThe top-level comment's id, for example "UgwExamplePinned00001AaABAg". A reply can't be used. comment_id works too.
pagesintegerNoHow many pages to return, from 1 to 25. Each page has up to 20 replies. Default 1.
afterstringNoThe comment's replyCursor from a comments response, or the pageInfo.endCursor from your last replies response. Keep the same commentId.
  • You can start with commentId on its own, or add the comment's replyCursor as after. With commentId on its own, totalCount can show the comment's exact reply count when YouTube supplies it; otherwise it is null.
  • Replies come in YouTube's order. sort only 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: true with an empty comments list, 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

Linkurlstring

The video's watch?v= link, also for Shorts.

Platformplatformstring

Always "youtube".

Result typetypestring

Always "comments", also for replies.

Successsuccessboolean

true when the comments were read successfully, including an empty result. Otherwise false with an error object.

Videopost.id post.urlstring

YouTube's video ID and the video's watch?v= link.

Reply parentparentCommentIdstring · null

The commentId you sent, for replies. null for top-level comments.

Commentscommentsobject[]

The comments or replies. An empty result returns [].

Total counttotalCountnumber · null

The 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.

Total as showntotalCountTextstring · null

The video's comment count as YouTube shows it, for example "3.2K" or "12". null for replies.

Ordersortstring

The order you asked for: "relevant" or "latest".

Order sourcesortScopestring

"youtube_order" for comments and "youtube_replies" for replies. Both mean the order is YouTube's own.

Noteslimitationsstring[]

Anything important we need to tell you about this result, for example that some like counts are rounded. Only present when there is something.

Scrape timescrapedAtstring

When we read the comments (UTC, ISO 8601).

Comment comments[]

Comment IDidstring

YouTube's ID for the comment. A reply's ID is its parent's ID, a dot, then the reply's own ID.

Texttextstring

The full comment text, including line breaks and emoji. It isn't cut short.

PostedpublishedTimeTextstring · null

When 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.

LikeslikeCountnumber · null

Like 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.

Likes as shownlikeCountTextstring · null

The like count as YouTube shows it, for example "214" or "1.2K".

RepliesreplyCountnumber · null

How many replies a top-level comment has. Read them with "youtubeCommentReplies". Always null on replies.

Reply cursorreplyCursorstring

Only on top-level comments that have replies. Send it as after in a replies request to start that thread.

Thread parentparentCommentIdstring · null

The top-level comment a reply belongs to. null on a top-level comment.

Channel ownerisAuthorboolean · null

true when the video's own channel wrote the comment.

Pinnedpinnedboolean · null

true for the pinned comment; otherwise null.

HeartedlikedByAuthorboolean · null

true when the video's channel gave the comment a heart, false when it didn't. null when YouTube doesn't say.

Authorauthor.id author.handle author.namestring · null

The author's channel ID, handle without @, and the name YouTube shows, usually the @handle.

Author linksauthor.avatarUrl author.profileUrlstring · null

The author's profile photo and channel link.

Paging pageInfo

More commentshasNextPageboolean

true when there are more comments or replies after this page.

Next-page cursorendCursorstring · null

Send this as after to continue. It works for the same video, sort and reply parent, for 24 hours. null on the last page.

Pages asked forpagesRequestednumber

The pages value you sent.

Pages returnedpagesFetchednumber

Pages that came back and were charged. 0 for an empty result.

Comments returnedreturnedCountnumber

How many comments or replies came back.

Incompleteincompleteboolean

true 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.

CategoryHTTP statusWhat it meansWhat to do
private_or_removed404The 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_not_found404The comment you asked replies for is no longer on the video.Check the commentId. Don't retry the same request.
comments_disabled403The channel turned comments off for this video.Don't retry. The result won't change unless the channel turns comments back on.
age_restricted403The video is age-restricted, so YouTube only shows it to signed-in adults.Don't retry. The result won't change.
geo_restricted, copyright_restricted, login_required403YouTube 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_limited429This 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_error, blocked_or_challenge502A temporary problem reading the comments from YouTube. It doesn't mean the video has no comments.Retry after at least 3 minutes.
timeout504The request couldn't finish in time.Retry after at least 3 minutes, or ask for fewer pages.
configuration_error503Comments are temporarily unavailable.Retry later. Contact us if it continues.
bad_url400This 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_request400The 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 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

Platformplatformstring

Always "youtube".

Result typetypestring

Always "search".

SearchsearchType querystring

What you searched for. A hashtag comes back without #.

Channelhandlestring

Only on "channel": the handle you sent, without @.

Filtersfiltersobject

The filters used. Default values are left out, so it can be {}.

Extra detailsincludeExtrasboolean

Only present when you sent true.

Successsuccessboolean

true when the page was read successfully. A failed search returns false with an error object.

Scrape timescrapedAtstring · null

When we read the page (UTC, ISO 8601). Each item repeats it.

Resultsitemsobject[]

The matches, in YouTube's order. See the other tabs for each kind of item.

Paging pageInfo

Results returnedpageInfo.returnedCountnumber

How many items came back on this page.

More resultspageInfo.hasNextPageboolean

true when there's another page.

Next-page cursorpageInfo.endCursorstring · null

Send this as after to get the next page. Expires after 24 hours. null on the last page.

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
}
CategoryHTTP statusWhat it meansWhat to do
bad_request400The 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_cursor400The 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_found404YouTube has no channel with this handle, or no page for this hashtag.Check the spelling. Don't retry. The result won't change.
cursor_stale409YouTube's results changed, so the next page can't continue from where the last one ended.Start again from the first page.
no_verified_matches422Nothing on YouTube matched your search on this page.Try other words or filters.
rate_limited429This 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_access_required502YouTube 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_response, upstream_error502A temporary problem reading the search results from YouTube.Retry after at least 3 minutes.
service_capacity503Search is busy right now.Retry after at least 3 minutes.
service_unavailable503Search is temporarily switched off.Retry later. Contact us if it continues.
timeout504The 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_limited with the wait in retryAfterSeconds.
  • A search that succeeded can be repeated right away.

See all error categories and HTTP status codes.

People Search

People search US POSTapi.refetcher.com/people-search POSTapi.refetcher.com/people-detail

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

ParameterTypeDescription
queries (required)object[] · string[]1–30 person queries. Each item is a query object (below) or a plain name string.
maxResultsPerQuerynumberMaximum matches returned per query. Default and maximum 10.
depthstringbasic (default) returns search cards; contact visits detail pages for phones, emails, addresses, and relatives.
matchModestringall (default) or best to keep only the top match.
fieldsstring[]Optional response projection: name, age, currentCity, currentState, locations, phoneNumbers, emails, relatives, detailUrl, and summary.
filtersobjectFilter matches by age, city/state/ZIP, or the presence of phones, emails, addresses, and relatives (below).
maxDetailPagesPerQuerynumberCaps detail-page visits when contact depth is active. Maximum 10.
timeoutMsnumberHow 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

FieldTypeDescription
namestringFull name to search. Accepts fullName as an alias.
firstName / lastNamestringUsed to build the search name when name is not supplied.
phonestringReverse-phone lookup. Any format; normalized to a 10-digit US number (a leading 1 is stripped).
addressstring · objectReverse-address lookup. Accepts a free-form street address or an object with street, city, state, and postalCode.
citystringNarrows a name search to a city.
statestringTwo-letter US state code, e.g. TX. Case-insensitive on input.
postalCodestringFive-digit ZIP or ZIP+4. zip is accepted as an alias.
agenumberApproximate age (1–124) to disambiguate common names.
idstringYour own correlation id. Echoed back on query.id; defaults to q_1, q_2, … when omitted.

Match filters

FilterTypeDescription
age.min / age.maxnumberInclusive age range. Flat minAge/maxAge aliases are accepted.
states / citiesstring[]Allowed states and cities. Singular state/city aliases accept one value.
postalCodesstring[]Keep matches with an address containing one of these ZIP codes.
hasPhonebooleanRequire or exclude matches with phone numbers.
hasEmailbooleanRequire or exclude matches with email addresses.
hasAddressbooleanRequire or exclude matches with addresses.
hasRelativesbooleanRequire 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

FieldTypeDescription
successbooleanWhether this individual query resolved.
platformstringAlways people_search.
typestringAlways person_search.
providerstringWhich data source the record came from.
queryobjectThe normalized query that was executed, including your id.
totalMatchesnumberNumber of matches before filters and matchMode.
matchCountnumberNumber of matches returned after filters and matchMode.
matchesobject[]The matched person records (fields below).
searchedAtISO 8601When the lookup ran.
workerMsnumber · nullProcessing time for this query, in milliseconds.
errorobjectPresent on failure, with category and message (see Errors).

matches[] — search fields

FieldTypeDescription
namestringFull name on the record.
agenumber · nullApproximate age when available.
currentCitystringMost recent known city.
currentStatestringMost recent known state.
summarystringShort text summary of the match.
detailUrlstringPass 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

FieldTypeDescription
detailUrl (required)stringThe detailUrl returned on a /people-search match. Pass one per query to /people-detail.
idstringYour 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

FieldTypeDescription
namestringFull name on the record.
agenumber · nullApproximate age when available.
currentCitystringMost recent known city.
currentStatestringMost recent known state.
locationsstring[]Current and prior addresses (up to 8).
phoneNumbersstring[]Associated phone numbers (up to 8).
emailsstring[]Associated email addresses (up to 8).
relativesstring[]Known relatives and associates (up to 12).
detailUrlstringLink 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

CategoryDescription
bad_queryThe query was invalid or unsearchable (e.g. no name, phone, or address).
timeoutThe lookup took too long.
rate_limitedToo many lookups for a moment. Retry after a short wait.
blocked_or_challengeThe lookup was blocked for a moment. Retry later.
challenge_timeoutThe lookup couldn't start in time. Retry.
navigation_timeoutThe record didn't load in time. Retry.
parse_errorWe couldn't read the result. Retry.
network_errorA temporary connection problem. Retry.
upstream_errorA temporary problem getting the record. Retry later.
worker_errorThe lookup failed before it returned a result. Retry.
unknown_errorThe lookup failed for an unclassified reason.

HTTP status codes

StatusMeaning
200At least one query in the batch succeeded. Check the top-level success flag and each result.
400bad_request — malformed body, no valid queries, or more than 30 queries.
401unauthorized — the API key is missing or invalid.
402insufficient_balance — the account cannot cover the requested lookups.
405method_not_allowed — use POST.
502Every query in the batch failed. Inspect each result's error category.
503Authentication 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.

StatusCategoryMeaning
200Success / partialAt least one target succeeded. Check summary.failed and each item in results for partial failures.
400bad_request / bad_urlRequest-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.
401unauthorizedThe API key is missing or invalid.
402insufficient_balanceThe account cannot reserve enough balance for the valid targets and requested pages. Invalid targets do not reserve balance.
403age_restricted and other restrictionsEvery 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.
404private_or_removed / Facebook age_restrictedEvery requested target is private, deleted, age-restricted on Facebook, or otherwise unavailable publicly.
405method_not_allowedThe scrape endpoint was called with a method other than POST.
409cursor_staleInstagram and YouTube search: the next page can no longer continue from the cursor. Start the search again without a cursor.
422no_verified_matchesInstagram search: the topic exists but nothing in it matched. YouTube search: nothing matched on this page.
429rate_limitedEvery 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.
500Gateway errorAn unexpected error on our side. Retry, and contact us with the requestId if it continues.
502Full scrape failureNo target succeeded, and the errors do not all qualify for 400, 404, or 429. Inspect each result's error category.
503billing_unavailableThe service could not reserve account balance before scraping.
504timeoutA 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:

CategoryDescription
bad_urlThe 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_platformThe target platform is not supported by Refetch(er).
private_or_removedThe target is private, was deleted, or restricted public visibility.
minimum_age_requiredInstagram 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_restrictedThe 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_foundInstagram 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_cursorInstagram and YouTube search: the cursor expired, came from another API key or account, or belongs to a different search.
cursor_staleInstagram and YouTube search: the results changed, so the next page can't continue. Not billed.
no_verified_matchesInstagram search: nothing in the topic matched. YouTube search: nothing matched on this page. Not billed.
source_access_requiredInstagram 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_responseInstagram and YouTube search: a temporary problem reading the search results. Not billed.
service_capacity, service_unavailableInstagram or YouTube search is busy or temporarily switched off.
comments_disabledYouTube comments: the channel turned comments off for this video. This result won't change on retry and is not billed.
comment_not_foundYouTube replies: the comment you asked replies for is no longer on the video. Not billed.
geo_restricted, copyright_restricted, login_requiredYouTube 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_metricsThe scraper accessed the target but could not extract the required public metrics.
timeoutThe request couldn't finish in time.
rate_limitedWe 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_challengeA temporary problem reading the link from the platform.
upstream_errorA temporary problem reading the link from the platform.
configuration_errorA system configuration issue prevented the scrape.
unknown_errorAn 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. views is the view count everywhere, and plays a separate play count where the platform has one (Instagram, Facebook). On Instagram, engagement.views is the second, usually lower count, the one in media.viewCount. engagementAvailability and engagementPrecision come with it, and profile post lists and channel video lists include engagement too. metrics and the other older counts are still sent unchanged.
  • Comments: matching field names on Instagram, TikTok and YouTube. Instagram comments add likeCount, replyCount, author.avatarUrl and author.profileUrl. TikTok comments and replies add publishedAt. YouTube recentComments add likeCount and an author object. 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.isCommerce is still sent.
  • Instagram: metrics.plays on posts and plays in profile post lists. In this version they hold the same number as views.
  • Instagram profiles: profile.bioLinks lists every link in the bio, not just the first.
  • YouTube recentComments: author.avatarUrl, the commenter's profile photo.

November 24, 2026

  • Instagram posts: shares and saves are always in the response. They are null, with metricAvailability set 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 404 instead of 502. The category is still age_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: false returns profile details only and costs one unit.

October 31, 2026

  • Facebook Reels with hidden counts are normal successes. views and plays are null and 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 404 private_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 pages from 1 to 25.

October 25, 2026

  • TikTok profiles include recent posts by default. Send includeRecentPosts: false for 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 with media.viewCount: null and media.viewCountUnavailableReason: "not_publicly_available". Plays, likes and comments are still required; missing views without this confirmation still fail the post. media.likeAndViewCountsDisabled is true when 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_removed outcomes continue to count as completed outcomes; bad_url and unsupported_platform remain 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_removed result — 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.