# Ad library API. 4 platforms, one schema.

[APIs](https://socialtap.dev/apis/index.md)**Ad libraries**

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.

[Start for free](https://socialtap.dev/signup/)

GET socialtap.dev/v1/tiktok/ad

Live data from 33 platforms.

[TikTok](https://socialtap.dev/apis/tiktok/index.md) · [Instagram](https://socialtap.dev/apis/instagram/index.md) · [Facebook](https://socialtap.dev/apis/facebook/index.md) · [YouTube](https://socialtap.dev/apis/youtube/index.md) · [Reddit](https://socialtap.dev/apis/reddit/index.md) · [Threads](https://socialtap.dev/apis/threads/index.md) · [Spotify](https://socialtap.dev/apis/spotify/index.md) · [Amazon](https://socialtap.dev/apis/amazon/index.md) · [Apple Music](https://socialtap.dev/apis/applemusic/index.md) · [Pinterest](https://socialtap.dev/apis/pinterest/index.md) · [Rumble](https://socialtap.dev/apis/rumble/index.md) · [X](https://socialtap.dev/apis/x/index.md) · [Bluesky](https://socialtap.dev/apis/bluesky/index.md) · [Twitch](https://socialtap.dev/apis/twitch/index.md) · [LinkedIn](https://socialtap.dev/apis/linkedin/index.md) · [Telegram](https://socialtap.dev/apis/telegram/index.md) · [TikTok Shop](https://socialtap.dev/apis/tiktokshop/index.md) · [Kwai](https://socialtap.dev/apis/kwai/index.md) · [Snapchat](https://socialtap.dev/apis/snapchat/index.md) · [SoundCloud](https://socialtap.dev/apis/soundcloud/index.md) · [Truth Social](https://socialtap.dev/apis/truthsocial/index.md) · [Kick](https://socialtap.dev/apis/kick/index.md) · [Komi](https://socialtap.dev/apis/komi/index.md) · [Lnk.Bio](https://socialtap.dev/apis/linkbio/index.md) · [Linkme](https://socialtap.dev/apis/linkme/index.md) · [Linktree](https://socialtap.dev/apis/linktree/index.md) · [Pillar](https://socialtap.dev/apis/pillar/index.md) · [TikTok Ad Library](https://socialtap.dev/apis/tiktok-ad-library/index.md) · [Facebook Ad Library](https://socialtap.dev/apis/facebook-ad-library/index.md) · [Facebook Events](https://socialtap.dev/apis/facebook-events/index.md) · [Facebook Marketplace](https://socialtap.dev/apis/facebook-marketplace/index.md) · [Google Ads Transparency Center](https://socialtap.dev/apis/google-ads-transparency/index.md) · [LinkedIn Ad Library](https://socialtap.dev/apis/linkedin-ad-library/index.md)

## 11 endpoints, one parser.

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

- - [Ad TikTok Ad Library Ad API Targeting, reach by country and takedowns 1 credit`GET /v1/tiktok/ad`](https://socialtap.dev/apis/tiktok/ad/index.md)
- - [Ad TikTok Ad Library Search API Ads by keyword or advertiser, with reach 1 credit / page`GET /v1/tiktok/search_ads`](https://socialtap.dev/apis/tiktok/search_ads/index.md)
- - [Ad TikTok Top Ads API Best-performing ads by country, period and industry 1 credit / page`GET /v1/tiktok/top_ads`](https://socialtap.dev/apis/tiktok/top_ads/index.md)
- - [Ad Facebook Ad Library Ad API Creatives, run dates, placements and EU reach 1 credit`GET /v1/facebook/ad`](https://socialtap.dev/apis/facebook/ad/index.md)
- - [Ad Facebook Ad Library Advertiser Ads API Active and past ads of one Page, with creatives 1 credit / page`GET /v1/facebook/ads`](https://socialtap.dev/apis/facebook/ads/index.md)
- - [Ad Facebook Ad Library Search API Ads by keyword, with creatives and run dates 1 credit / page`GET /v1/facebook/search_ads`](https://socialtap.dev/apis/facebook/search_ads/index.md)
- - [Ad Google Ads Transparency Center Ad API Advertiser, creative and where and when it ran 1 credit`GET /v1/google/ad`](https://socialtap.dev/apis/google/ad/index.md)
- - [Ad Google Ads Transparency Center Advertiser Ads API Advertiser's ads by format, service and date 1 credit / page`GET /v1/google/ads`](https://socialtap.dev/apis/google/ads/index.md)
- - [Ad Google Ads Transparency Center Ads by Website API Ads that lead to a website, from any advertiser 1 credit / page`GET /v1/google/search_ads`](https://socialtap.dev/apis/google/search_ads/index.md)
- - [Ad LinkedIn Ad Library Ad API Creative, payer and EU targeting, in any format 1 credit`GET /v1/linkedin/ad`](https://socialtap.dev/apis/linkedin/ad/index.md)
- - [Ad LinkedIn Ad Library Search API Ads by keyword, advertiser or payer 1 credit / page`GET /v1/linkedin/search_ads`](https://socialtap.dev/apis/linkedin/search_ads/index.md)

## 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/ad`[Docs](https://socialtap.dev/apis/tiktok/ad/index.md)

## Frequently asked questions

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

[Contact us](mailto:support@socialtap.dev)

**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](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

[HTML version](https://socialtap.dev/apis/ad-libraries/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
