Facebook Profile Posts API
Get a public Facebook page's timeline posts, 3 per page, newest first, as a signed-out visitor sees them: id, text, url, author, reactionCount, commentCount, shareCount, publishTime, and SD/HD video URLs with a thumbnail for videos and reels. Provide url or pageId (the id from /v1/facebook/profile). topComments is always empty and videoViewCount is null: the signed-out feed does not carry them. Pass cursor from a response for the next page; it remembers the page, so url and pageId can be left out.
Quick start
cURL
curl --request GET 'https://api.fetchproof.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fpacemorby' \
--header 'x-api-key: YOUR_API_KEY' JavaScript
const response = await fetch("https://api.fetchproof.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fpacemorby", {
method: 'GET',
headers: {
'x-api-key': process.env.FETCHPROOF_API_KEY,
},
});
const data = await response.json();
console.log(data); Python
import os
import requests
response = requests.get(
"https://api.fetchproof.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fpacemorby",
headers={"x-api-key": os.environ["FETCHPROOF_API_KEY"]},
)
print(response.json()) Go
package main
import (
"fmt"
"io"
"net/http"
"os"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.fetchproof.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fpacemorby", nil)
req.Header.Set("x-api-key", os.Getenv("FETCHPROOF_API_KEY"))
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
} PHP
<?php
$ch = curl_init("https://api.fetchproof.com/v1/facebook/profile/posts?url=https%3A%2F%2Fwww.facebook.com%2Fpacemorby");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
'x-api-key: ' . getenv('FETCHPROOF_API_KEY'),
],
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response; {
"success": true,
"credits_remaining": 100,
"credits_charged": 1,
"posts": [
{
"id": "1593991512733150",
"is_paid_partnership": null,
"text": "After meeting 40,000+ people across 100 cities…\n\nI noticed something.\n\nMost people don’t have a lead problem.\n\nThey have a conversation problem.\n\nEveryone is watching:\n\nYouTube\nChatGPT\nPodcasts\nCourses\n\nBut almost nobody is talking to:\n\n...",
"url": "https://www.facebook.com/reel/1634870324219177/",
"permalink": "https://www.facebook.com/reel/1634870324219177/",
"author": {
"__typename": "User",
"name": "Pace Morby",
"short_name": "Pace Morby",
"id": "100063669491743"
},
"videoDetails": {
"sdUrl": "https://video-atl3-1.xx.fbcdn.net/o1/v/t2/f2/m412/AQNfvrmvWK1_8m9wYQbGE8x83nheuNcyg8PRylHKiagvQJAR30dCWbigqQtCU1lRak5MZPQ_drA_fHPKk0E3PYhdOeXEachqDUNSDSXN-g.mp4",
"hdUrl": "https://video-atl3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNjVfABeMdY6_CB2IV5L-pdvriV6PTsFjJBr1VWsPGw8TCSafFWuQKgDP1m2mjqHQQnoBWwvvAfoUtubsUpKNAr4lKZv4eTy_lnrTQ71ZJjsg.mp4",
"thumbnailUrl": "https://scontent-atl3-2.xx.fbcdn.net/v/t15.5256-10/649485223_1634870974219112_2297344106941848618_n.jpg?stp=dst-jpg_s960x960_tt6&ccb=1-7"
},
"reactionCount": 335,
"commentCount": 98,
"videoViewCount": null,
"publishTime": 1772985406,
"topComments": [],
"shareCount": 20
},
{
"id": "1593164486149186",
"is_paid_partnership": null,
"text": "Yuma showed up big.\n\nI love seeing what happens when you get a room full of people who are serious about changing their life through real estate.\n\nSome people in the room are doing their first deal.\nSome are already scaling.\n\nBut the one...",
"url": "https://www.facebook.com/pacemorby/posts/pfbid0n6ad9x5nqkFia69AvXpJouVbBS5MWTfsPk1Dw9FtuEMfLWWTf8WKZai1zshk63H4l",
"permalink": "https://www.facebook.com/pacemorby/posts/pfbid0n6ad9x5nqkFia69AvXpJouVbBS5MWTfsPk1Dw9FtuEMfLWWTf8WKZai1zshk63H4l",
"author": {
"__typename": "User",
"name": "Pace Morby",
"short_name": "Pace Morby",
"id": "100063669491743"
},
"videoDetails": null,
"reactionCount": 71,
"commentCount": 12,
"videoViewCount": null,
"publishTime": 1772895790,
"topComments": [],
"shareCount": 2
},
{
"id": "1527619366037032",
"is_paid_partnership": null,
"text": "This $3.7M house didn’t sell for $1 because of luck.\nIt sold for $1 because someone was in real pain.\n\nCreative deals happen at the intersection of two things:\nSomeone’s problem.\nAnd your ability to solve it.\n\nIf you only look for cheap ...",
"url": "https://www.facebook.com/reel/1322964789582466/",
"permalink": "https://www.facebook.com/reel/1322964789582466/",
"author": {
"__typename": "User",
"name": "Pace Morby",
"short_name": "Pace Morby",
"id": "100063669491743"
},
"videoDetails": {
"sdUrl": "https://video-atl3-2.xx.fbcdn.net/o1/v/t2/f2/m412/AQOojF70jimVS5yHMreoXEkVXIKqu-ZUdDtH0cSFKC9Di-rxW7yHahSzpwspS72FRXuU2jPbuR6yn0E857yiYmLKUL9pi2AyNnwC3MmMvA.mp4",
"hdUrl": "https://video-atl3-2.xx.fbcdn.net/o1/v/t2/f2/m366/AQNxkXhhVwQP9sjlQbQ4ygEqSRfCVIOxDtM8NhcsGCM9Cu495wJP1aLeuBCUiLggDp9gKKlWfZhmRZPBsIL4XN_mriwM8cfaFGYxvcC_IRuqwg.mp4",
"thumbnailUrl": "https://scontent-atl3-2.xx.fbcdn.net/v/t15.5256-10/605627098_1322965569582388_1501186289302043237_n.jpg?stp=dst-jpg_s960x960_tt6&ccb=1-7"
},
"reactionCount": 413,
"commentCount": 23,
"videoViewCount": null,
"publishTime": 1766454950,
"topComments": [],
"shareCount": 24
}
],
"cursor": "eyJjIjoiQ2c4T2IzSm5ZVzVwWTE5amRYSnpiM0lKQUFBQ1JFRlJTRlJCUmtoZlVraFFhalpXYXkxV1oyODFlbkZWZUVOaFVWTTNkbTB4T1Zwd1NHUnlRVWxqZWxwb01WZEJaMWQxVVVneVEzcFdSMjFhTURsT1NFc3hha1IwUWxKdFNFNW1XbmRXZVU5dE0wZEJjVmREYVZwVGJVNHRlVVZrVG5GZlREQmlhak5vUlRoZ..."
} What it returns
- success boolean
- credits_remaining integer
- credits_charged integer
- posts array
- cursor stringnull
Parameters
The URL of the public Facebook page
The page's numeric id (id from /v1/facebook/profile). Saves reading the page first.
The cursor from the previous response, to get the next 3 posts
Use cases
- Track what a page posts and how it performs
- Collect reels with their video URLs
- Compare engagement across competitors' pages
- Watch a creator's newest posts for new launches
Billing
Errors cost zero credits. Empty results follow this operation’s rules.
Default: 1 credit
An empty result costs 0 credits.
How charges are determined
Cost is decided per call, not per endpoint: the same operation can cost different amounts depending on what it returns.
A call that fails costs 0 credits. A result served from cache costs 0 credits.
`default` is the cost when no rule matches. Rules are evaluated in order and the first whose conditions all hold wins.
A `when` condition is one of: `param` (the request parameter is true), `outcome` (the classifier's outcome), `empty` / `nonEmpty` (a response field is empty and absent, or a non-empty array or string), `flag` (a response field is exactly true).
A cost of `{ perStartedMinute: n, of: [fields] }` is n x max(1, ceil(seconds / 60)), so even a short result bills at least one minute.
Related Facebook endpoints
FAQ
How much does the Facebook Profile Posts API cost?
A call costs 1 credit by default. Errors cost 0 credits. New accounts get 100 free credits with no card. After that, credits come in one-time packs that never expire: 25,000 for $27 and 500,000 for $297 (plus any tax). There is no subscription.
What do I need to call it?
An API key in the x-api-key header. You don't need a Facebook account or developer app.
What does it return?
Typed JSON. Top-level fields include posts and cursor. The full schema and a real sample response are on this page and in the API reference.
Is this an official Facebook API?
No. Fetchproof is an unofficial API that returns public Facebook data only.