Captapi

Structured social media data from 32 platforms (YouTube, TikTok, Instagram, Facebook, X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Truth Social, Kick, Kwai, Komi, Pillar, Linkbio, Linkme, Amazon Shop) — transcripts, AI summaries, comments, stats, search and downloads.

Actions171

TikTok → TikTok Music Posts

AI-generated

Summary

Fetches posts that use a specified TikTok music or sound URL, with optional pagination and response caching.

Inputs

  • URL (required) — TikTok music or sound URL for the posts to retrieve.
  • Limit — Maximum number of items to return; the UI description says the default is 20 and the maximum is 200.
  • Cursor — Pagination cursor. Leave empty for the first page, then pass the response's nextCursor to fetch another page.
  • Cache — When true, serves a response from the 24-hour cache if available; the UI description says cache hits cost 0 credits and include cached and cachedAt in the envelope.

Output shape

A paginated response containing TikTok posts associated with the music URL and a nextCursor for retrieving another page.

The UI description specifies 2 credits per call and a default limit of 20, with a maximum of 200. Cached and cachedAt are included on cache hits. Source implementation details are not present in the supplied source pack, so the response envelope shape beyond the declared pagination and cache fields is not confirmed.

Examples

Example 1: Fetch the first page of posts using a TikTok sound URL

Provide the required TikTok music/sound URL, optionally set Limit, and leave Cursor empty.

Example 2: Fetch another page of posts

Pass the previous response's nextCursor as Cursor.

Example 3: Use cached data when available

Set Cache to true; the UI description indicates that cache hits use the 24-hour response cache and cost 0 credits.

Links

Discussion