Does Facebook have an API?

Yes. Meta offers the Graph API, the Marketing API and the Ad Library API for Pages, ad accounts and other assets you manage or that give you permission. For public pages, posts, groups, Marketplace listings and Ad Library research beyond what Meta's APIs allow, you use a public-data API like Social Fetch.

Glossary · Platforms

What the official Meta API actually covers

The Graph and Marketing APIs are built around Facebook Login, app review and access tokens for assets you own or run. They handle publishing, Page insights, Messenger and ads reporting. App review takes real effort, and the access it grants covers your own assets.

The Graph API isn't built for general public lookups. You can't pass it any public Page name and get back a full profile, because it only shows what your app has been authorized to see.

The exception: Ad Library API

The Ad Library API shows running ads: the advertiser, the creative, and spend and reach ranges for political and issue ads. It doesn't need the business verification the Graph API asks for. It covers ads only, so organic posts, profiles and groups aren't included.

What a public-data Facebook API covers instead

Social Fetch covers Facebook as one of 87 platforms and 1112 endpoints: public profiles and pages, posts, reels, groups, Marketplace, transcripts and Ad Library search. You use one API key, and every response has the same shape.

A page lookup returns the name, category, follower count and about text. A post lookup returns the text, reaction and comment counts, and media links. You don't need admin access to either.

Common mistakes when comparing the two

Expecting Graph API access to work for competitor research. Your Page token can't pull another Page's post history.

Treating the Ad Library as general public data. It holds ads only, not organic posts or Marketplace listings.

Retrying when a page comes back as not found. That's a completed, billed answer on an HTTP 200, and retrying gives the same result.

Where a public-data API stops

It covers public data only. Private profiles, closed groups and anything behind a login are out of scope.

Start with the free Facebook Ad Library tool. To manage your own assets, use Meta's official APIs. For research and Ad Library monitoring, use a public-data API like Social Fetch.

Questions. Short answers.

Does Facebook have a public API for posts?

Not a general one from Meta. The Graph API only covers assets your app is authorized for. Public-data APIs such as Social Fetch cover the public page and post lookups the Graph API doesn't.

Can Graph API look up any public Facebook page?

No. The Graph API typically covers Pages you own or administer, so it can't enrich any public page you choose.

How do I get Facebook Ad Library data?

Use Meta's Ad Library API, which covers ads only, or the Social Fetch Ad Library endpoints. You can try them first in the free Facebook Ad Library tool.

Does Social Fetch replace Marketing API?

No. Social Fetch covers public lookups and Ad Library research. Keep using Meta's APIs to manage ad accounts and read insights on your own assets.

Where do I try Facebook Ad Library without code?

Start with the free Facebook Ad Library tool, then look at the Social Fetch Facebook platform page and the API docs.

Do Facebook lookups cost credits?

Yes, on metered endpoints. Ad Library and list endpoints may cost a different amount from a single page lookup, so check each endpoint's price.

Can I scrape a private Facebook group with a public-data API?

No. Closed groups and anything behind a login are out of scope for public-data APIs like Social Fetch.

Do I need Meta app review to use a public-data Facebook API?

No. With Social Fetch you send your API key in the x-api-key header. Public lookups need no Meta app and no app review.

Try it on real data.

100 free credits when you sign up, no card needed. Make your first request in the Playground.

No credit cardSign up in 30 seconds withGoogleGitHub