Introducing the Instagram APIRead more →

Ad library API. 4 platforms, one schema.

Public ad library entries with their advertiser, creatives, run dates, placements and, where disclosed, reach and spend ranges. We handle the proxies, blocks and platform changes.

GET socialtap.dev/v1/tiktok/ad

11 endpoints, one parser.

Ads from all 4 platforms come back in the same fields, null where a platform doesn't show one.

Call the Ad library API from your code.

Copy the request for your language, or hand it to your agent.

TikTok Ad Library Ad Try in
const params = new URLSearchParams({
  url: "https://library.tiktok.com/ads/detail/?ad_id=1874500065342865",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/ad?${params}`, {
  headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);
GET https://socialtap.dev/v1/tiktok/adDocs

Frequently asked questions

What you send, what comes back and how your agent uses it.

Contact us
Does the Facebook Ad Library Ad API return ads that stopped running?
Yes. It returns any ad in Meta's public Ad Library, active or inactive, with is_active and the day it last ran.

Send your first request in a minute.

Get a key, send a link you already have and see what comes back. The same key works on every platform.

100free credits
  • No credit card
  • Failed requests are free
  • Works on all 218 endpoints
Start for free Read the docs