Facebook API

Facebook API for public profiles, pages and posts, without the Graph API paperwork.

Read public Facebook profiles, pages, posts, comments and reactions over one REST endpoint. No app review, no business verification and no user token to keep alive.

See pricing
  • Public data only
  • One key, every platform
  • Cancel anytime
api.socialmediaapi.lol200 OK
GET /v1/facebook/profile?handle=zuck
Authorization: Bearer sk_live_...

{
  "status": "ok",
  "data": {
    "handle": "zuck",
    "followers": 11983421,
    "verified": true
  },
  "credits_used": 1
}
12.4Brequests served in the last year
38,000+developers building on the API
99.95%rolling 12 month uptime
380msmedian response time
What you can pull

Everything public about a Facebook presence, in JSON.

The Facebook endpoints cover the surface most data teams actually need: a profile by handle, a page by slug or vanity URL, the page feed with reaction and comment counts, keyword search across public posts, and full comment trees with authors and timestamps.

Every response uses the same envelope. A `status` field, a `data` object and a `credits_used` counter, so one parser in your codebase handles Facebook, Instagram, groups and the ads library without special cases.

Latency is typically under 400 milliseconds because responses are fetched at request time rather than served from a shared cache. What you read is what a visitor would see right now.

Popular Facebook endpoints

  • Profile lookup by handle, numeric ID or profile URL
  • Page metadata, follower counts and the latest feed items
  • Keyword and author search across public posts
  • Comment threads with parent and reply structure
  • Reaction breakdowns by type, including reactions over time
Endpoints

Facebook API endpoints

Same auth header, same response envelope, cursor pagination on every list.

Facebook API

Details

Public profiles, pages, posts, comments and reactions, normalized into one envelope.

GET/v1/facebook/profile

Public name, about text, follower count, work history and verification.

  • followers
  • about
  • verified
GET/v1/facebook/page

Page metadata plus the newest feed items, reactions and comment counts.

  • feed
  • likes
  • talking_about
GET/v1/facebook/posts

Search public posts by keyword, page, author or date range.

  • query
  • since
  • until
GET/v1/facebook/comments

Every public comment on a post, with authors and parent replies.

  • post_id
  • replies
  • authors

Facebook Ads Library API

Details

Every ad in the Meta ads library, with creatives, advertisers and spend signals.

GET/v1/facebook/ads/search

Search the ads library by advertiser, keyword, country or date range.

  • query
  • country
  • active
GET/v1/facebook/ads/advertiser

Every ad a page is running, grouped by campaign and creative variant.

  • page_id
  • creatives
GET/v1/facebook/ads/creative

Copy, call to action, landing page, media and first seen date.

  • copy
  • cta
  • landing_page
GET/v1/facebook/ads/insights

Estimated spend bands, reach ranges and platform placement mix.

  • spend
  • reach
  • placements
Playground

Try any endpoint before you write a line of code.

Pick an endpoint, set the parameters and run it. Sign in with Google to unlock the playground, and your subscription decides whether you land here or on pricing.

GET https://api.socialmediaapi.lol/v1/facebook/profile?handle=zuck&fields=about%2CfollowersJSON

Public profile fields for any handle: bio, follower count, work history and verified status.

Sign in with Google to unlock the playground. Accounts without an active plan are sent to pricing, where every plan includes the full sandbox and a live API key.

sandbox response200 OK
Response bodynot sent yet
{
  "status": "idle",
  "message": "Run the request to see the response shape returned by this endpoint.",
  "endpoint": "/v1/facebook/profile"
}
  • Read-only access. We never post, like or follow on your behalf.
  • Credit based pricing, so one page of data costs one credit.
  • Public data only, sourced from the platforms own public surfaces.
Why teams switch

The Graph API was not designed for read only data products.

The official Graph API assumes you own the page or have a user who consented. That model breaks the moment you want to benchmark a competitor, enrich a lead list or monitor a market. App review, business verification and a 60 day token refresh cycle are not a data pipeline, they are a support burden.

socialmediaapi.lol is built the other way around. You get a single long lived key, predictable per request pricing and endpoints shaped for reading public data at volume. No OAuth dance, no token expiry at 2am and no app review queue.

What you stop maintaining

  • App review submissions and business verification
  • Short lived user tokens and refresh jobs
  • Proxy rotation and request throttling logic
  • Per platform response normalization
Why socialmediaapi.lol

Why teams pick our Facebook API

The parts of a social data pipeline you would otherwise build and maintain yourself.

No app review

Skip the Graph API review queue. A key is issued the moment you sign in.

Request time freshness

Data is fetched when you ask for it, so nothing you receive is stale.

Normalized fields

One schema across Facebook, Instagram, groups and ads endpoints.

Credit based pricing

One page of results costs one credit. No seats, no minimums.

Cursor pagination

Page through long feeds deterministically with a stable cursor.

Public data only

Private profiles return an explicit marker instead of an error.

Built for

Teams that turn public Facebook data into product.

Social listening tools track brand and competitor mentions across pages and public posts. Sales teams enrich a handle into a full public profile before an outreach sequence. Market researchers size an audience and export the raw evidence behind the number.

Because pricing is per credit rather than per seat, a two person team and a fifty person team pay the same for the same volume of data. You can start on a single endpoint and add the rest without renegotiating anything.

Code examples

Three lines to your first response.

Send an API key, get JSON back. No OAuth dance, no browser automation and no session to keep warm.

  • Bearer token auth, one header for every endpoint
  • Cursor pagination on every list response
  • Errors carry a machine readable code and a retry hint
  • Sandbox and live modes share the same contract
curl -G "https://api.socialmediaapi.lol/v1/facebook/profile" \
  -H "Authorization: Bearer $SOCIALMEDIAAPI_KEY" \
  -d "handle=zuck" \
  -d "fields=about%2Cfollowers"
FAQ

Facebook API questions

No. You authenticate with a socialmediaapi.lol key, so there is no Meta app, no app review and no user access token to refresh.

Start using the Facebook API today.

Create an account, generate a key and make your first request in the next five minutes.

Compare plans
  • Public data only
  • Cancel anytime
  • Human support

Ship notes, once a month

New endpoints, platform changes and deprecation windows. No marketing filler.

One email a month. Unsubscribe with a single click.

Facebook API