Getting Started

Introduction

Captapi gives you structured data from social media video through one consistent REST API. Send a public URL from YouTube, TikTok, Instagram, or Facebook and get back clean JSON — transcripts, AI summaries, video details, comments, search results, and downloads. No OAuth, no per-platform SDKs, no scraping infrastructure to maintain.

  • • One API key works across all 29 platforms.
  • • Repeat calls are served from a shared cache for free (up to 24h; time-sensitive metrics refresh within ~1h).
  • • You are only charged for successful requests.

Quickstart

After signing up and copying your API key from the dashboard, make your first request:

curl "https://api.captapi.com/v1/youtube/transcript?url=https%3A%2F%2Fyoutube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \
  -H "Authorization: Bearer capt_live_..."

Authentication

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.

Authorization: Bearer capt_live_xxxxxxxxxxxxxxxxxxxx

Making Requests

Most endpoints take a single url query parameter (search endpoints use q). When building the request as a query string, you must URL-encode the target URL so it isn't misinterpreted as multiple parameters.

# URL-encode the target URL before passing it
urlencode "https://youtube.com/watch?v=dQw4w9WgXcQ"

Response Format

Every response is JSON with a top-level success boolean. Successful responses include cached, creditsUsed, and a data object.

Success

{
  "success": true,
  "cached": false,
  "creditsUsed": 2,
  "data": {
    "language": "en",
    "segments": [
      { "start": 0.0, "end": 4.12, "text": "Hey everyone, welcome back." }
    ],
    "text": "Hey everyone, welcome back."
  }
}

Error

{
  "success": false,
  "error": {
    "code": "no_captions",
    "message": "This video has no captions and audio transcription failed."
  }
}

Credits & Caching

Credits are the unit of billing. Each endpoint costs 1–4 credits per successful call (video details: 1, transcript/comments: 2, summarize: 4, downloads: 3). Failed and empty results are never charged.

Responses are cached and shared across all accounts for up to 24 hours — time-sensitive data (engagement metrics, follower lists) refreshes within ~1 hour so it stays current. If a result is served from cache, cached is true and creditsUsed is 0.

Errors

Errors return a non-2xx status and an error object with a stable code and a human-readable message.

StatusCodeMeaning
401invalid_api_keyMissing or malformed Authorization header.
402insufficient_creditsYour balance is too low for this request.
404not_foundThe target URL or resource could not be found.
422no_captionsNo captions and audio transcription failed (not charged).
429rate_limitedToo many requests — slow down or upgrade your plan.
502upstream_errorTemporary scraping failure. Safe to retry (not charged).

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

183 endpoints across 32 groups. Click any endpoint for full parameters, examples, and FAQs.

YouTube & Shorts

MethodEndpointCreditsDescription
GET/v1/youtube/transcript2Transcript
GET/v1/youtube/summarize4Summarizer
GET/v1/youtube/video-details1Video Details
GET/v1/youtube/comments~20Comments
GET/v1/youtube/channel-details1Channel Details
GET/v1/youtube/search~20Search
GET/v1/youtube/channel-videos~20Channel Videos
GET/v1/youtube/playlist-videos~50Playlist Videos
GET/v1/youtube/playlist~50Playlist
GET/v1/youtube/video-download3Video Download
GET/v1/youtube/shorts/transcript2Shorts Transcript
GET/v1/youtube/shorts/summarize4Shorts Summarizer
GET/v1/youtube/shorts/video-details1Shorts Stats
GET/v1/youtube/shorts/comments~20Shorts Comments
GET/v1/youtube/channel-shorts~20Channel Shorts
GET/v1/youtube/trending-shorts~28Trending Shorts
GET/v1/youtube/channel-streams~20Channel Streams
GET/v1/youtube/hashtag-search~20Hashtag Search
GET/v1/youtube/comment-replies~20Comment Replies
GET/v1/youtube/channel-playlists~20Channel Playlists
GET/v1/youtube/community-posts~10Community Posts
GET/v1/youtube/community-post-details7Community Post Details
GET/v1/youtube/video-sponsors1Video Sponsors

TikTok

MethodEndpointCreditsDescription
GET/v1/tiktok/transcript2Transcript
GET/v1/tiktok/summarize4Summarizer
GET/v1/tiktok/video-details1Video Details
GET/v1/tiktok/comments~10Comments
GET/v1/tiktok/channel-details1Channel Details
GET/v1/tiktok/profile-region7Profile Region
GET/v1/tiktok/audience-demographics7Audience Demographics
GET/v1/tiktok/search~14Search
GET/v1/tiktok/search-suggestions~28Search Suggestions
GET/v1/tiktok/video-download3Video Download
GET/v1/tiktok/channel-posts~14Channel Posts
GET/v1/tiktok/comment-replies50Comment Replies
GET/v1/tiktok/user-followers~20User Followers
GET/v1/tiktok/user-followings~20User Followings
GET/v1/tiktok/music-posts~32Music Posts
GET/v1/tiktok/hashtag-search~14Hashtag Search
GET/v1/tiktok/top-search~14Top Search
GET/v1/tiktok/user-search~8User Search
GET/v1/tiktok/song-details2Song Details
GET/v1/tiktok/trending-feed~14Trending Feed
GET/v1/tiktok/popular-hashtags~14Popular Hashtags
GET/v1/tiktok/live1Live
GET/v1/tiktok/live-info7Live Info
GET/v1/tiktok/popular-creators~28Popular Creators

Instagram Reels

MethodEndpointCreditsDescription
GET/v1/instagram/transcript2Transcript
GET/v1/instagram/summarize4Summarizer
GET/v1/instagram/details1Details
GET/v1/instagram/comments~45Comments
GET/v1/instagram/channel-details1Channel Details
GET/v1/instagram/channel-posts~6Channel Posts
GET/v1/instagram/channel-reels~6Channel Reels
GET/v1/instagram/reels-search~12Reels Search
GET/v1/instagram/trending-reels~28Trending Reels
GET/v1/instagram/video-download3Video Download
GET/v1/instagram/tagged-posts~18Tagged Posts
GET/v1/instagram/music-posts~18Music Posts
GET/v1/instagram/reels-by-audio-id~28Reels By Audio ID
GET/v1/instagram/hashtag-search~12Hashtag Search
GET/v1/instagram/profile-search~12Profile Search
GET/v1/instagram/story-highlights5Story Highlights
GET/v1/instagram/highlights-details~9Highlights Details
GET/v1/instagram/embed1Embed
GET/v1/instagram/basic-profile1Basic Profile

Facebook

MethodEndpointCreditsDescription
GET/v1/facebook/details1Details
GET/v1/facebook/transcript2Transcript
GET/v1/facebook/summarize4Summarizer
GET/v1/facebook/comments~30Comments
GET/v1/facebook/page-details1Page Details
GET/v1/facebook/profile-posts~12Profile Posts
GET/v1/facebook/profile-reels~36Profile Reels
GET/v1/facebook/group-posts~12Group Posts
GET/v1/facebook/comment-replies~30Comment Replies
GET/v1/facebook/marketplace-search~28Marketplace Search
GET/v1/facebook/marketplace-location-search17Marketplace Locations
GET/v1/facebook/event-search~40Event Search
GET/v1/facebook/event-details2Event Details
GET/v1/facebook/profile-photos~12Profile Photos
GET/v1/facebook/profile-events~40Profile Events
GET/v1/facebook/marketplace-item17Marketplace Item

Twitter / X

MethodEndpointCreditsDescription
GET/v1/twitter/tweet-details1Tweet Details
GET/v1/twitter/transcript7Transcript
GET/v1/twitter/profile1Profile
GET/v1/twitter/user-tweets~14User Tweets
GET/v1/twitter/search~14Search
GET/v1/twitter/community1Community
GET/v1/twitter/community-tweets~18Community Tweets

Reddit

MethodEndpointCreditsDescription
GET/v1/reddit/subreddit-posts~10Subreddit Posts
GET/v1/reddit/post-details1Post Details
GET/v1/reddit/post-comments~20Post Comments
GET/v1/reddit/post-transcript~20Post Transcript
GET/v1/reddit/search~10Search
GET/v1/reddit/subreddit-details1Subreddit Details
GET/v1/reddit/subreddit-search~10Subreddit Search

Threads

MethodEndpointCreditsDescription
GET/v1/threads/profile1Profile
GET/v1/threads/user-posts~14User Posts
GET/v1/threads/post-details1Post Details
GET/v1/threads/search~18Search
GET/v1/threads/search-users~14Search Users

Bluesky

MethodEndpointCreditsDescription
GET/v1/bluesky/profile1Profile
GET/v1/bluesky/user-posts~3User Posts
GET/v1/bluesky/post-details1Post Details

Pinterest

MethodEndpointCreditsDescription
GET/v1/pinterest/pin-details1Pin Details
GET/v1/pinterest/user-pins~13User Pins
GET/v1/pinterest/search~13Search
GET/v1/pinterest/board~13Board
GET/v1/pinterest/user-boards~13User Boards

LinkedIn

MethodEndpointCreditsDescription
GET/v1/linkedin/profile2Profile
GET/v1/linkedin/company2Company
GET/v1/linkedin/post-details1Post Details
GET/v1/linkedin/post-transcript7Post Transcript
GET/v1/linkedin/company-posts~16Company Posts
GET/v1/linkedin/search-posts~16Search Posts

Rumble

MethodEndpointCreditsDescription
GET/v1/rumble/video-details1Video Details
GET/v1/rumble/channel-videos~12Channel Videos
GET/v1/rumble/search~12Search
GET/v1/rumble/comments~30Comments

TikTok Shop

MethodEndpointCreditsDescription
GET/v1/tiktok-shop/shop-search~56Shop Search
GET/v1/tiktok-shop/shop-products~56Shop Products
GET/v1/tiktok-shop/product-details14Product Details
GET/v1/tiktok-shop/product-reviews~45Product Reviews
GET/v1/tiktok-shop/user-showcase~45User Showcase

GitHub

MethodEndpointCreditsDescription
GET/v1/github/user3User
GET/v1/github/repositories~12Repositories
GET/v1/github/pull-requests~12Pull Requests
GET/v1/github/activity~12Activity
GET/v1/github/followers~12Followers
GET/v1/github/following~12Following
GET/v1/github/contributions3Contributions
GET/v1/github/repository3Repository
GET/v1/github/trending-repositories~12Trending Repositories
GET/v1/github/trending-developers~12Trending Developers

Google Search

MethodEndpointCreditsDescription
GET/v1/google/search~42Search

Twitch

MethodEndpointCreditsDescription
GET/v1/twitch/profile9Profile
GET/v1/twitch/user-videos~34User Videos
GET/v1/twitch/user-schedule34User Schedule
GET/v1/twitch/clip9Clip

Spotify

MethodEndpointCreditsDescription
GET/v1/spotify/artist6Artist
GET/v1/spotify/track6Track
GET/v1/spotify/album6Album
GET/v1/spotify/search~23Search
GET/v1/spotify/podcast6Podcast
GET/v1/spotify/podcast-episodes~23Podcast Episodes

SoundCloud

MethodEndpointCreditsDescription
GET/v1/soundcloud/artist7Artist
GET/v1/soundcloud/artist-tracks~28Artist Tracks
GET/v1/soundcloud/track7Track

Linktree

MethodEndpointCreditsDescription
GET/v1/linktree/page4Page

Snapchat

MethodEndpointCreditsDescription
GET/v1/snapchat/user-profile11User Profile

Truth Social

MethodEndpointCreditsDescription
GET/v1/truth-social/profile5Profile
GET/v1/truth-social/user-posts~17User Posts
GET/v1/truth-social/post5Post

Kick

MethodEndpointCreditsDescription
GET/v1/kick/clip34Clip

Amazon Shop

MethodEndpointCreditsDescription
GET/v1/amazon-shop/page~89Shop Page

Age and Gender

MethodEndpointCreditsDescription
GET/v1/age-gender4Age and Gender

Account

MethodEndpointCreditsDescription
GET/v1/account/balance0Credit Balance
GET/v1/account/request-history0Request History
GET/v1/account/daily-usage0Daily Usage
GET/v1/account/most-used-routes0Most Used Routes

Kwai

MethodEndpointCreditsDescription
GET/v1/kwai/profile17Profile
GET/v1/kwai/user-posts~45User Posts
GET/v1/kwai/post17Post

Komi

MethodEndpointCreditsDescription
GET/v1/komi/page4Page

Pillar

MethodEndpointCreditsDescription
GET/v1/pillar/page4Page

Linkbio

MethodEndpointCreditsDescription
GET/v1/linkbio/page4Page

Linkme

MethodEndpointCreditsDescription
GET/v1/linkme/profile4Profile

Ad Library

MethodEndpointCreditsDescription
GET/v1/ad-library/facebook/search~70Facebook Search
GET/v1/ad-library/facebook/company-ads~70Facebook Company Ads
GET/v1/ad-library/facebook/search-companies~70Facebook Search Companies
GET/v1/ad-library/facebook/ad-details17Facebook Ad Details
GET/v1/ad-library/facebook/ad-transcript17Facebook Ad Transcript
GET/v1/ad-library/tiktok/search~70TikTok Search
GET/v1/ad-library/tiktok/ad-details17TikTok Ad Details
GET/v1/ad-library/google/company-ads~67Google Company Ads
GET/v1/ad-library/google/ad-details17Google Ad Details
GET/v1/ad-library/google/advertiser-search~45Google Advertiser Search
GET/v1/ad-library/linkedin/search-ads~70LinkedIn Search Ads
GET/v1/ad-library/linkedin/ad-details17LinkedIn Ad Details

Cross-platform Analytics

MethodEndpointCreditsDescription
GET/v1/analytics/post1Unified metrics for one post/video/reel (platform auto-detected)
GET/v1/analytics/compare1/urlCompare 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, and an engagement rate — with the platform auto-detected.

# Platform is auto-detected from the URL
curl "https://api.captapi.com/v1/analytics/post?url=https%3A%2F%2Fwww.tiktok.com%2F%40user%2Fvideo%2F7311234567890123456" \
  -H "Authorization: Bearer capt_live_..."

# Compare several posts across platforms in one call
curl "https://api.captapi.com/v1/analytics/compare?urls=URL1,URL2,URL3" \
  -H "Authorization: Bearer capt_live_..."

Video Files (direct upload)

MethodEndpointCreditsDescription
POST/v1/video/transcript1/minWhisper transcription of an uploaded file
POST/v1/video/summarize1/min +1Transcribe an uploaded file + AI summary

Integrations

Use Captapi from AI agents, workflow tools, cloud actors, or your terminal — the same 181 endpoints, no REST plumbing.

View all integrations

Ready to build?

Grab your free API key and make your first call in 60 seconds.

Get your API key