Facebook API

Facebook Scraper API for Posts, Comments and Groups

Retrieve public profiles, posts, Reels, photos and group discussions, and discover public posts by hashtag. Read comments and video transcripts alongside ordered media attachments, GIF types and video quality options.

WHAT YOU CAN BUILD / 10 ENDPOINTS

Put Facebook data to work.

Find your use case, then explore the request and response.

Get a Facebook profile

GET/v1/facebook/profile

Build a page directory from Facebook profile identity, descriptions, links and public statistics. Set view=full to add a page of posts and computed engagement to the same response.

List Facebook profile reels

GET/v1/facebook/profile/reels

Build a video discovery feed from the Reels published on a Facebook profile. Set view=full to add per-reel likes, comments and shares for an engagement dashboard.

List Facebook profile photos

GET/v1/facebook/profile/photos

Build a visual research gallery from the photos published on a Facebook profile.

List Facebook profile posts

GET/v1/facebook/profile/posts

Build a page content research feed by retrieving a profile’s posts and their content.

Get a Facebook post or reel

GET/v1/facebook/post

Build a post or Reel preview from its URL, keeping text, media and engagement information together. Set view=transcript to index a video’s timed captions for search.

List Facebook post comments

GET/v1/facebook/post/comments

Build an audience-feedback sheet from the comments posted beneath a Facebook post.

List Facebook comment replies

GET/v1/facebook/post/comment/replies

Build a conversation viewer by retrieving the replies to a specific Facebook comment.

Get a Facebook group

GET/v1/facebook/group

Build a community directory from a Facebook group’s identity, description and public group information.

List Facebook group posts

GET/v1/facebook/group/posts

Build a community research feed from the posts published in a Facebook group.

Search Facebook posts by hashtag

GET/v1/facebook/hashtag

Build a brand-mention monitor from the public posts that use a hashtag, with post text, author, publication time, reaction and comment counts, media and a continuation cursor.

HOW IT WORKS

From API key to Facebook data in four steps.

Run a sample below without a key.

  1. 01

    Get your API key

    Create a free account and copy your key. You start with 100 free credits; no card needed.

  2. 02

    Choose an endpoint

    Pick one of the 10 Facebook endpoints and add its input, such as a public URL.

  3. 03

    Send one request

    Call it with your key in the x-api-key header. ScrapeAtlas reads the public Facebook data and retries when a read fails.

  4. 04

    Use the JSON

    Get structured JSON with a coverage status. Only successful requests use a credit.

TRY IT HERE / LIVE SAMPLE

Try a sample request.

Try the Facebook API right here. This sample uses the List Facebook profile posts endpoint and returns live JSON. No API key needed.

  1. 01
    Choose a sample value

    Start with https://www.facebook.com/pacemorby, or change the url field to your own value.

  2. 02
    Select Run sample

    Execute the sample code and see the response in the JSON response tab.

  3. 03
    Build on the result

    Open the full playground to try more parameters and copy code for your app.

Open this endpoint in the playground Request and response fields
LIVE SAMPLE / List Facebook profile postsNo API key needed

Preparing the sample…

// Run this sample here — no API key needed.
const value = "https://www.facebook.com/pacemorby";
const url = new URL("/website/demo/facebook",
  "https://api.scrapeatlas.com");
url.searchParams.set("value", value);

const response = await fetch(url);
const data = await response.json();
console.log(data);
GET/v1/facebook/profile/posts

A live example from our playground. Change the value above, then select Run sample.

CUSTOMER STORIES

What they are saying
about us.

Nigel Yong — Founder, PostOnce

Pay as you go

Start free.
Build at your pace.

One-time credit packs, priced in US dollars. Credits never expire, and there is no monthly commitment.

Free

Try the API with your next idea.

$0No credit card needed

100 free credits

One starter grant per account

Starter

For a new idea or a one-off project.

$19USD / one-time

10,000 credits

$1.90 per 1,000 successful requests

Growth

Save 6.3%

For regular workflows and bigger builds.

$89USD / one-time

50,000 credits

$1.78 per 1,000 successful requests

Enterprise Plan

Want to scrape larger volumes?

Let’s talk about a plan that fits your scale.

Facebook API

Frequently Asked Questions

Explore the API reference

Facebook API and scraping

What public data can I retrieve with the Facebook API?

Retrieve profiles, posts, Reels, photos, groups, comments and video captions, and discover public posts by hashtag. Profile, group and hashtag feeds include continuation information, while individual post responses bring media and engagement into one record.

How do I scrape Facebook page posts and Reels?

Use Profile Posts for a page’s feed and Profile Reels for its videos. Set view=full on Profile or Profile Reels to combine profile or video records with additional post and engagement details. Continue with each endpoint’s returned token.

Can I scrape public Facebook group information and posts?

Use Group Details for the group summary, rules, activity and administrator previews. Group Posts retrieves its feed in the requested order with continuation, so your application can organize discussions by community.

Facebook: video captions and audience comments

Can I retrieve a Facebook video transcript with caption timing?

Yes. Set view=transcript on Post to retrieve the published caption file for a video post, preserving cue timing, line breaks and text in its caption format. Your application can use these captions to make video research searchable.

How do I scrape Facebook comments and their replies?

Use Post Comments for comment text, author fields, reactions and reply expansion tokens. Pass the comment feedback ID and expansion token to Comment Replies to retrieve the next part of the conversation.

Which Facebook Reels fields can I use for video research?

Profile Reels returns video metadata and public view counts. Setting view=full adds per-reel engagement information, letting your application bring video records and their engagement fields into the same research view.

API access and integration

How do I get a ScrapeAtlas API key and authenticate requests?

Create a ScrapeAtlas account and generate an API key in the dashboard. Send the key in the x-api-key request header when calling https://api.scrapeatlas.com. The API playground lets you enter an endpoint’s parameters and inspect its JSON response.

Can I call the scraping API from Python, JavaScript or the CLI?

Yes. Send authenticated HTTP requests from Python, JavaScript or another language that supports HTTP. The endpoint reference includes request examples and response fields. Use the ScrapeAtlas CLI for terminal workflows and pass the returned pagination values when requesting additional result pages.

Can I connect an AI assistant to the ScrapeAtlas MCP server?

Yes. Connect an MCP-compatible assistant to the ScrapeAtlas MCP server to discover and call the public platform tools with your ScrapeAtlas account. The agent reference also gives coding assistants a readable guide to the endpoints and their request schemas.

Make something with it

Ready to build?

Bring social data into your next project.
Start with 100 free credits and see what you can build.

No credit card needed.Building with an AI agent?