Captapi gives you structured data from public social media through one consistent REST API. Send a public URL from YouTube, TikTok, Instagram, Facebook, and more and get back clean JSON — profiles, posts, transcripts, AI summaries, comments, search results, and ad-library data. No OAuth, no per-platform SDKs, no data-collection infrastructure to maintain.
• One API key works across all 34 platforms.
• Pass cache=true to serve from the 24h shared cache (0 credits on hit). Default is always fresh.
• You are only charged for successful requests.
• Any data endpoint takes fields=id,url,engagement (keep only these keys on each result row, or on the object for single-item endpoints; pagination keys always stay) and compact=true (drop signed media URLs and their expiry stamps; ids, permalinks, dates, text and metrics stay). On Threads, Facebook, Meta Ad Library and TikTok Shop endpoints compact=true also drops the deprecated timings object and top-level *Ms timing keys; their values move to the Server-Timing header. Neither changes the price. The hosted MCP server sends compact=true unless the tool call passes compact=false.
Quickstart
After signing up and copying your API key from the dashboard, make your first request:
All requests are authenticated with a Bearer token. Generate keys in your dashboard and send them in the Authorization header. Keep keys secret — never expose capt_live_ keys in client-side code.
As an alternative to Authorization: Bearer, send the same key as x-api-key: <key>.
Most endpoints take a url or q query parameter. Some need a different identifier instead — for example userId, username, repo, advertiser, or comment_id. Check each endpoint's docs for the exact params. When building a query string, you must URL-encode URL values so they aren't misinterpreted as multiple parameters.
# URL-encode the target URL before passing iturlencode "https://youtube.com/watch?v=dQw4w9WgXcQ"
Response Format
Every response is JSON with a top-level success boolean and a data object.
HTTP/1.1 502 Bad Gateway
Retry-After: 60
{
"success": false,
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The upstream data source failed for this request. Retry shortly.",
"retryable": true,
"retryAfterMs": 60000
}
}
Response headers.X-Captapi-Credits is the credits charged, X-Captapi-Cache is 1 on a cache hit and 0 otherwise, and X-Captapi-Request-Id identifies the call; include it when contacting support. Server-Timing gives the total time the request took in milliseconds, for example total;dur=4387.
The source field. Endpoints that can serve data more than one way include source in data: native (the platform's own page or API), extended (a slower alternative source; some endpoints price it differently and say so on their page), cache (served from the 24h cache), captions (a transcript from the platform's published captions) or asr (transcript produced by speech recognition).
Deprecated: the timings field. The timings object in data will be removed from response bodies on 2026-12-17. Read the Server-Timing response header instead. When a response leaves the timing values out of the body, they follow total in that header as extra entries (for example fetch;dur=812).
Credits & Caching
Credits are the unit of billing. Cost is per endpoint (see each docs page) — typically 1–4 for simple lookups; many list/search/comment endpoints are a flat 2 credits per call, while some list endpoints still scale with results (often higher). Failed requests are never charged.
Empty results are free. A list or search call that ran but found nothing costs 0 credits, for example a search with no matches, a post with no comments, or a page past the last result. The X-Captapi-Credits response header always shows what a call actually cost.
A few endpoints cost more when the answer comes with source extended, for example when the platform's own page does not load. Their pages state the rule and the range we have observed: TikTok Song Details, LinkedIn Company Posts, and TikTok Shop Products.
By default every data request fetches fresh data (cache=false). Pass cache=true to serve from the shared 24h response cache at 0 credits.
Errors
Errors return a non-2xx status and an error object with a stable code, a human-readable message, and retryable. Retry only when retryable is true, after the Retry-After header (seconds). When that header is sent, the body repeats the same wait as error.retryAfterMs, in milliseconds. Failed requests are never charged. Match on code exactly: casing differs between codes. The table lists the common ones; endpoint pages list their specific codes.
Status
Code
Retryable
Meaning
400
BAD_REQUEST
false
A parameter is missing or invalid, e.g. a URL from the wrong platform. Some endpoints use a more specific code, such as HASHTAG_HAS_SPACES.
400
plaintext_not_allowed
false
API key sent over http://. Rotate the key and retry with https:// — a redirect does not protect the first hop.
401
UNAUTHORIZED
false
Missing, invalid, or revoked API key.
402
insufficient_credits
false
Your balance is too low for this request. Nothing is charged. error.upgradeUrl links to plans (free) or billing (paid); error.creditsRemaining is the live balance. A repeat 402 within 60 s also carries Retry-After.
404
NOT_FOUND
false
The target resource does not exist or is not public. Some endpoints name the case, e.g. no_captions or PROFILE_NOT_FOUND.
422
VALIDATION_ERROR
false
A parameter failed validation. error.issues lists each field.
429
rate_limit_exceeded
true
Over your plan's per-minute limit. Wait for Retry-After.
502
UPSTREAM_UNAVAILABLE
true
The platform failed for this request. Retry shortly.
503
SERVICE_UNAVAILABLE
true
Temporarily unavailable. Some endpoints use a more specific code, e.g. COMMUNITY_UNAVAILABLE.
504
UPSTREAM_TIMEOUT
true
The platform did not answer in time. Retry shortly.
Lower-case codes
Some endpoints send a more specific code in lower case. These codes keep their exact spelling and will not be renamed. Where retryable says varies, follow error.retryable in the response. None of these responses is charged.
Status
Code
Retryable
Endpoints
Meaning
503
upstream_unavailable
varies
Pinterest, Snapchat, Spotify, Twitch, TikTok Ad Library
The platform did not answer this request. When retryable is false, repeated attempts already failed: wait for Retry-After.
Instagram hashtag search and trending reels; TikTok popular hashtags; TikTok Ad Library search
The platform's data could not be read for this request. The code names the case; handle them all the same way.
503
filter_unavailable
false
TikTok Ad Library search
The adFormat filter cannot be served right now. Call again without adFormat.
404
no_captions
false
YouTube and Rumble transcripts
The video has no caption track.
404
language_not_available
false
YouTube and Rumble transcripts
No caption track in the requested language. error.availableLanguages lists the ones that exist.
404
video_unavailable, video_not_found, private, unplayable, login_required, age_restricted, members_only, live
false
YouTube transcript and audio transcript; Rumble transcript
The video cannot be read: it is gone, private, restricted, members-only or a live stream.
502
caption_fetch_failed
true
Rumble transcript
The caption track could not be downloaded.
502
audio_extract_failed
varies
YouTube audio transcript
The audio could not be downloaded.
400
duration_too_long
false
YouTube audio transcript
The video is longer than this endpoint accepts.
400
cost_exceeds_max
false
YouTube audio transcript
The estimated cost is above your maxCredits.
400
audio_too_large
false
YouTube audio transcript
The audio file is larger than this endpoint accepts.
422
not_a_video
false
Instagram transcript
The post is a photo or carousel with no video.
403
profile_restricted
false
Instagram basic profile
The profile exists but is age- or region-restricted, so no profile data is public.
400
unsupported_country
false
Instagram trending reels
That country is not covered. error.supportedCountries lists the ones that are.
400
unknown_endpoint
false
POST /v1/batch, POST /v1/monitors
The path is not a Captapi endpoint.
400
invalid_webhook_url
false
POST /v1/monitors
webhook_url must be an external https:// URL.
400
monitor_limit
false
POST /v1/monitors
Your account already has the maximum number of monitors.
400
untracked_endpoint
false
GET /v1/history
History is not recorded for that endpoint. error.tracked_endpoints lists the ones that have it.
Rate Limits
Rate limits scale with your plan and are returned on every response via X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset headers. When you exceed the limit you'll get a 429 — back off and retry after the reset window.
API Reference
179 endpoints across 37 groups. Click any endpoint for full parameters, examples, and FAQs.
Unified metrics for one post/video/reel (platform auto-detected)
GET
/v1/analytics/compare
1/url
Compare unified metrics across up to 10 URLs in one call
The read-side companion to publishing and scheduling tools: pass any supported post, video, or reel URL (YouTube, TikTok, Instagram, Facebook, X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, or Rumble) and get one normalized metrics object — views, likes, comments, shares, saves, interactions, and engagementRate — with the platform auto-detected. Fields a network does not expose stay null (YouTube has no public share/save counts).
# Platform is auto-detected from the URLcurl"https://api.captapi.com/v1/analytics/post?url=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ"\ -H "Authorization: Bearer capt_live_..."# Compare several posts in one call (same metrics shape per URL)curl"https://api.captapi.com/v1/analytics/compare?urls=https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ,https%3A%2F%2Fround-lake.dustinice.workers.dev%3A443%2Fhttps%2Fwww.youtube.com%2Fwatch%3Fv%3DjNQXAC9IVRw"\ -H "Authorization: Bearer capt_live_..."
Video Files (direct upload)
Method
Endpoint
Credits
Description
POST
/v1/video/transcript
1/min
Speech-to-text transcription of an uploaded file
POST
/v1/video/summarize
1/min +1
Transcribe an uploaded file + AI summary
Integrations
Use Captapi from AI agents, workflow tools, cloud actors, or your terminal — the same 179 endpoints, no REST plumbing.