> **For coding agents and LLMs:** This is one Social Fetch marketing page (markdown export). For API orientation start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for auth and crawl rules use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for every operation use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt).

## This page

- **On-site (HTML):** [https://www.socialfetch.dev/answers/can-i-access-facebook-ad-library-via-api](https://www.socialfetch.dev/answers/can-i-access-facebook-ad-library-via-api)
- **Markdown (.mdx) URL:** [https://www.socialfetch.dev/answers/can-i-access-facebook-ad-library-via-api.mdx](https://www.socialfetch.dev/answers/can-i-access-facebook-ad-library-via-api.mdx)

---

# Can I access Facebook Ad Library via API?

Yes — four routes under the Facebook tag. `GET /v1/facebook/ad-library/ads/search` finds ads by keyword with country, status, media-type, and date filters. `GET /v1/facebook/ad-library/ads` fetches one ad by archive id or URL, with an optional video transcript. `GET /v1/facebook/ad-library/companies/search` turns a brand name into a `pageId`, and `GET /v1/facebook/ad-library/companies/ads` lists every ad for that page.

Source: [Facebook data API](https://www.socialfetch.dev/platforms/facebook)

## Related questions

- [Is there a Facebook scraper API that doesn't need Graph API access?](https://www.socialfetch.dev/answers/is-there-a-facebook-scraper-api-that-doesnt-need-graph-api-access)
- [How do I look up a Facebook page or profile by URL?](https://www.socialfetch.dev/answers/how-do-i-look-up-a-facebook-page-or-profile-by-url)
- [How do I list posts, Reels, photos, or events for a Facebook Page?](https://www.socialfetch.dev/answers/how-do-i-list-posts-reels-photos-or-events-for-a-facebook-page)
- [Do you support Facebook groups?](https://www.socialfetch.dev/answers/do-you-support-facebook-groups)
- [Does Facebook Marketplace search work via API?](https://www.socialfetch.dev/answers/does-facebook-marketplace-search-work-via-api)
