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

Facebook Ad Library → Facebook Company Ads

AI-generated

Summary

Fetches ads from a Facebook company’s Ad Library page, using the native endpoint when available and an extended fallback otherwise.

Inputs

  • URL (required) — Provide a pageId from search-companies (preferred), a libraryUrl, a vanity page URL, or an Ad Library URL containing view_all_page_id. Avoid a profileId that differs from the pageId, and use a Facebook URL for this endpoint.
  • Country — Two-letter ISO country code; defaults to US.
  • Limit — Maximum ads to return; defaults to 20 and is capped at 200. The declared pricing is 2 credits per native-path call; the extended fallback bills per returned ad.
  • Cache — When true, serves a response from the 24-hour cache when available; otherwise fetches fresh data. Cache hits cost 0 credits and include cached and cachedAt in the envelope.

Output shape

An envelope containing returned Facebook company ads.

On cache hits, the envelope includes cached and cachedAt. The source pack provided only signatures, so it does not establish additional response fields or pagination behavior.

Links

Discussion