Review a page’s content
Collect recent posts with ordered image, video and GIF attachments to compare formats and audience reactions.
Retrieve public profiles, posts, Reels, photos and group discussions. Read comments and video transcripts alongside ordered media attachments, GIF types and video quality options.
PUT IT TO WORK
Three ways to use Facebook data.
Collect recent posts with ordered image, video and GIF attachments to compare formats and audience reactions.
Bring questions and feedback from a post into your customer research.
Read public group posts for a digest of topics your community is talking about.
YOUR FIRST REQUEST
Collect recent posts with ordered image, video and GIF attachments to compare formats and audience reactions.
Set SCRAPEATLAS_API_KEY in your environment.
Use the sample request as a starting point.
Send the result to your app, sheet or research tool.
# ScrapeAtlas · use your customer API key
export BASE_URL="https://api.scrapeatlas.com"
curl --get "$BASE_URL/v1/facebook/profile/posts" \
-H "x-api-key: $SCRAPEATLAS_API_KEY" \
--data-urlencode "url=https://www.facebook.com/synthetic.page/"const baseUrl = "https://api.scrapeatlas.com";
const url = new URL('/v1/facebook/profile/posts', baseUrl);
url.searchParams.set("url", "https://www.facebook.com/synthetic.page/");
const response = await fetch(url, {
method: 'GET',
headers: {
'x-api-key': process.env.SCRAPEATLAS_API_KEY
}
});
const data = await response.json();
console.log(data);type Result = {
status: "success" | "partial" | "failed" | "challenged";
requestId: string;
[field: string]: unknown;
};
const response = await fetch(
"https://api.scrapeatlas.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fsynthetic.page%2F",
{
headers: {
"x-api-key": process.env.SCRAPEATLAS_API_KEY!
}
}
);
const data = (await response.json()) as Result;
if (data.status === "failed" || data.status === "challenged") {
throw new Error(`Facebook request failed: ${data.requestId}`);
}
console.log(data);import requests
response = requests.get(
"https://api.scrapeatlas.com/v1/facebook/profile/posts",
headers={"x-api-key": "YOUR_API_KEY"},
params={
"url": "https://www.facebook.com/synthetic.page/"
},
timeout=60,
)
data = response.json()
print(data["status"], data)package main
import (
"encoding/json"
"fmt"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.scrapeatlas.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fsynthetic.page%2F", nil)
req.Header.Set("x-api-key", "YOUR_API_KEY")
resp, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
var data map[string]interface{}
json.NewDecoder(resp.Body).Decode(&data)
fmt.Println(data["status"], data)
}import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
var request = HttpRequest.newBuilder()
.uri(URI.create("https://api.scrapeatlas.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fsynthetic.page%2F"))
.GET()
.header("x-api-key", "YOUR_API_KEY")
.build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}/v1/facebook/profile/postsJSON responseUse your ScrapeAtlas API key. Replace the sample input with your own.
API DIRECTORY / 22
/v1/facebook/profile/fullGETList Facebook profile reels with engagement/v1/facebook/profile/reels/fullGETGet a Facebook profile/v1/facebook/profileGETList Facebook profile reels/v1/facebook/profile/reelsGETList Facebook profile photos/v1/facebook/profile/photosGETList Facebook profile posts/v1/facebook/profile/posts/v1/facebook/postGETGet a Facebook post transcript/v1/facebook/post/transcriptGETList Facebook post comments/v1/facebook/post/commentsGETList Facebook comment replies/v1/facebook/post/comment/repliesGETGet a Facebook group/v1/facebook/groupGETList Facebook group posts/v1/facebook/group/postsGETGet a Facebook profile via /profiles/v1/facebook/profilesGETList Facebook profile posts via /profiles/v1/facebook/profiles/postsGETList Facebook profile reels via /profiles/v1/facebook/profiles/reelsGETList Facebook profile photos via /profiles/v1/facebook/profiles/photosGETGet a Facebook post or reel via /posts/v1/facebook/postsGETList Facebook post comments via /posts/v1/facebook/posts/commentsGETList Facebook comment replies via /posts/v1/facebook/posts/comments/repliesGETGet a Facebook post transcript via /posts/v1/facebook/posts/transcriptGETGet a Facebook group via /groups/v1/facebook/groupsGETList Facebook group posts via /groups/v1/facebook/groups/postsCreate a ScrapeAtlas API key, send it in the x-api-key header, and pass the endpoint’s request fields. The example above is ready to adapt to your own input.
Retrieve public profiles, posts, Reels, photos and group discussions. Read comments and video transcripts alongside ordered media attachments, GIF types and video quality options. Each endpoint’s reference shows its response fields and a JSON example.
Yes. Connect ScrapeAtlas through MCP to use Facebook tools from your assistant. You can also call the same API from your own scripts or the CLI.
We use essential storage to keep the site working. With your permission, optional analytics cookies help us understand visits. You can change your choice anytime. Privacy policy
Google Analytics and PostHog measure visits, page engagement, signup-link clicks and website performance. Rejecting optional cookies does not affect access to the site.
Allow Affonso to record your referral visit and store a cookie for 30 days. If you sign up, we share your verified email with Affonso to attribute purchases. Privacy policy