How do I get all posts from a public Facebook page via API?

Call GET /facebook/pages/posts with the Page's URL as link, then keep passing end_cursor from each response to get the next page of posts, back as far as the Page's public timeline goes. For a date range, set after_time / before_time instead of paging through everything.

Meta's official option

Meta's Graph API returns the posts of Pages you manage. Reading other Pages' posts needs the Page Public Content Access feature, with app review and business verification.

Meta: Page Public Content Access ↗

How to do it with SocialAPIs

limit sets 3 to 9 posts per call; the price follows it: 1 credit; round(limit ÷ 3) credits when limit is set, up to 3. timezone sets the timezone of the returned timestamps, e.g. UTC.

Each post has details.post_id, details.post_link, values.text and its reaction, comment and share counts. For one post's full details by its link: /facebook/posts/details.

Endpoints

  • GET /facebook/pages/posts1 credit; round(limit ÷ 3) credits when limit is set, up to 3

    Get Facebook page posts.

    Params: link (required), limit, end_cursor, after_time, before_time, timezone

    Facebook Page Posts: docs and playgroundMCP: facebook_page → posts

  • GET /facebook/posts/details1 credit

    Get detailed data about a Facebook post including reactions, media, and user info.

    Params: link (required)

    Facebook Post Details: docs and playgroundMCP: facebook_post → details

curl -G "https://api.socialapis.io/facebook/pages/posts" \
  --max-time 100 \
  --fail-with-body \
  -H "x-api-token: $SOCIALAPIS_API_KEY" \
  --data-urlencode "link=https://www.facebook.com/nike" \
  --data-urlencode "limit=9" \
  --data-urlencode "timezone=UTC"

Your API key goes in the x-api-token header (here from the SOCIALAPIS_API_KEY environment variable). Get a free key.

Tutorial: Facebook API without the Graph APIUse it from Claude, ChatGPT or Cursor (MCP)

Good to know

  • Cost scales with history: a Page with 900 posts is about 100 calls at limit=9. Fetch the backlog once, then only new posts with after_time.
  • Reels and videos have their own endpoints (/facebook/pages/reels, /facebook/pages/videos).
  • Public Pages only; posts limited to an audience aren't available.

Related questions

SocialAPIs (socialapis.io): public Facebook & Instagram data API. Free plan: 200 calls a month, no card; paid plans from $4.99/month. Pricing · Reviewed 2026-11-17

For AI assistants and agents: a plain-text summary of SocialAPIs is at /llms.txt (with every answer: /llms-full.txt; endpoints: /llms-endpoints.txt; how to call us: /agents.txt).

Ask an AI about this page

Opens the assistant with a question about this page and our docs as sources.