Utilities

Compare Analytics API

Compare unified metrics across up to 10 URLs — each row is the analytics/post object (1 credit/resolved URL).

Pass up to 10 comma-separated post/video/reel URLs (any mix of the same 11 platforms as Post Analytics) and get count/resolved/failedCount plus results[] and failed[]. Each ok row is exactly the /v1/analytics/post object plus status — platform, id, title, url, publishedAt (full ISO), durationSeconds, thumbnailUrl, author{}, metrics{views, likes, comments, shares, saves, interactions, engagementRate, engagementRateBasis, approximate flags}. A URL that cannot be resolved is status error and also appears in failed[] — never status ok with zero metrics. Bills 1 credit per successfully resolved URL that is not served from the 24h cache shared with post analytics; failed URLs are not billed (including an all-failed batch). No bulk discount vs N separate /post calls — the win is one HTTP round-trip. Pass cache=true for free cache hits.

Docs: https://captapi.com/apis/analytics-compare

get/v1/analytics/compare

Request

  • Base URL: https://api.captapi.com
  • URL: https://api.captapi.com/v1/analytics/compare
  • Auth: one of:
    • HTTP bearer
    • API key in header X-API-Key

Query parameters

urlsstring required

Comma-separated post/video/reel URLs (up to 10), any mix of the same 11 platforms as Post Analytics. Example: a TikTok URL and a YouTube URL in one call.

cacheboolean

Set true to serve from the 24h response cache (0 credits on hit). Default false — always fetch fresh.

Response

Success. The data object for this endpoint.

successunknown required

Changes

No recorded changes to this operation across all 3 revisions of this API.