Facebook Page Posts API - Real-Time Page Posts, No Login
Pricing
from $1.20 / 1,000 post scrapeds
Facebook Page Posts API - Real-Time Page Posts, No Login
Get the latest public posts of any Facebook Page in one HTTP request: text, date, reactions by type, comments, shares, views, media, links and Page followers. Date window, post type and engagement filters, cursor paging, comments add-on. Works from code, n8n, Make and AI agents (MCP).
Pricing
from $1.20 / 1,000 post scrapeds
Rating
0.0
(0)
Developer
Top Api
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
6 days ago
Last modified
Categories
Features
Share
๐ Facebook Page Posts API - Real-Time Page Posts, No Login
Facebook Page Posts API returns the latest public posts of any Facebook Page in one HTTP request: no run to start, no dataset to fetch. Send a Page URL, username or numeric id and get its posts back in the response, newest first. It is an Apify Server Actor, so it also works as a tool for AI agents (MCP) and as one HTTP Request step in n8n, Make or Zapier.
Each post carries its text, date, URL, reactions by type, comments, shares, video views, photos, video, link preview, shared post and event, plus the Page's name and follower count. Keep only a date window, one post type, posts above a reactions / comments / shares floor, or posts that mention your keywords. You pay per post returned; a request that returns no post costs nothing.
โจ What you get
- ๐ Post text (plain and with links), hashtags, mentions, the post URL and id
- ๐
Date: Unix timestamp and ISO
published_at - โค๏ธ Engagement: reactions total and by type (like, love, care, haha, wow, sad, angry), comments, shares, video views and plays, engagement rate against the Page's followers
- ๐ผ๏ธ Media: photos and albums (with alt text), video URL / id / thumbnail / duration, link previews, shared posts, events, caption tracks
- ๐ท๏ธ The Page: name, id, URL, followers, "talking about", Ad Library id
- ๐ฌ Top public comments and video files with
includePostDetails; video transcripts withcaptionText(free) - ๐งญ Filters: date window, post type, minimum reactions / comments / shares, keywords
- ๐ Paging:
meta.nextCursorreads the next posts of the same Page - ๐ No Facebook account, no cookies, no API key of yours (only your Apify token)
๐ How to call it
Every request needs your Apify API token in the Authorization header.
GET
curl "https://topapi--facebook-page-posts-api.apify.actor/posts?page=NASA&maxPosts=10" \-H "Authorization: Bearer <YOUR_APIFY_TOKEN>"
POST
curl -X POST "https://topapi--facebook-page-posts-api.apify.actor/posts" \-H "Authorization: Bearer <YOUR_APIFY_TOKEN>" -H "Content-Type: application/json" \-d '{"page": "https://www.facebook.com/Starbucks", "startDate": "7 days", "maxPosts": 20, "minReactions": 100}'
Python
import requestsURL = "https://topapi--facebook-page-posts-api.apify.actor/posts"HEADERS = {"Authorization": "Bearer <YOUR_APIFY_TOKEN>"}params = {"page": "NASA", "maxPosts": 50}posts = []for _ in range(3): # up to 150 posts, 50 per requestr = requests.get(URL, params=params, headers=HEADERS, timeout=180)data = r.json()if r.status_code != 200:print(r.status_code, data["error"]["type"]); breakposts += data["items"]if not data["meta"]["nextCursor"]:breakparams["cursor"] = data["meta"]["nextCursor"]print(len(posts), "posts")
JavaScript
const res = await fetch('https://topapi--facebook-page-posts-api.apify.actor/posts?page=NASA&maxPosts=10',{ headers: { Authorization: `Bearer ${process.env.APIFY_TOKEN}` } },);const { items, meta } = await res.json();console.log(items.length, meta.page.followers, meta.nextCursor);
n8n, Make, Zapier
One HTTP Request step: method GET, URL https://topapi--facebook-page-posts-api.apify.actor/posts, query
parameters page and maxPosts, header Authorization = Bearer <YOUR_APIFY_TOKEN>. The posts are items. To poll a
Page for new posts, add startDate = the time of your last poll (an ISO time like 2026-11-18T08:00:00Z, or 2 hours).
AI agents (MCP)
MCP server URL: https://topapi--facebook-page-posts-api.apify.actor/mcp (Streamable HTTP, header
Authorization: Bearer <YOUR_APIFY_TOKEN>). Tool: get_page_posts, same parameters as the HTTP endpoint. Use
outputFormat: "compact" to give the model only the core fields.
โ๏ธ Parameters
| Parameter | Type | Default | What it does |
|---|---|---|---|
page | string | required | The Page: URL (facebook.com/NASA, /people/<name>/<id>, profile.php?id=), username (NASA, @NASA) or numeric id. Public profiles work too. Also accepted as url, pageUrl, startUrl, page_url, username, handle, pageId, page_id, id. |
maxPosts | integer | 10 | Posts to return, 1-50, newest first. Also maxPostsPerPage, resultsLimit, max_posts, limit. |
startDate | string | Only posts on or after this time: 2026-11-01, 2026-11-01T08:00:00Z, 6 hours, 7 days, 2 months, or a day count (1 = today). Facebook applies the window itself. | |
endDate | string | Only posts on or before this time (a bare day counts whole). | |
postType | all | photo | video | link | text | event | share | all | Only one kind of post (photo includes albums; share = posts sharing another post). |
minReactions | integer | 0 | Only posts with at least this many reactions. |
minComments | integer | 0 | Only posts with at least this many comments. |
minShares | integer | 0 | Only posts shared at least this many times. |
keywordFilter | string | Comma-separated words: keep posts whose text, link title, shared post or event name mention any of them. | |
includePostDetails | boolean | false | Add each post's own top public comments, video SD/HD file URLs and view count. |
commentsLimit | integer | 10 | With details: top comments per post, 1-50. |
commentsSort | most_relevant | newest | all | most_relevant | With details: comment order. |
captionText | boolean | false | Add the transcript of videos that carry a caption track (free). |
outputFormat | default | compact | apify | default | Every field; core fields only (for AI agents); or apify/facebook-posts-scraper's field names. |
cursor | string | The previous response's meta.nextCursor, with the same page and filters, to read further. |
GET / lists the endpoints; the Server tab in Console shows the OpenAPI description.
๐ฆ Response
A real response for page=NASA (2026-11-18), first post shown, long URLs and the cursor shortened:
{"ok": true,"count": 10,"items": [{"post_id": "1690599575768745","type": "photo","url": "https://www.facebook.com/NASA/posts/pfbid0mWQ6eDmdn3nKnMyTx4mstENr2Ah5WkCot74QwCHq4goS3E2xPGTb6kpreDxs2Pxel","message": "Beauty in chaos ๐จ\n\nThis photo from our Chandra X-ray Observatory is the clearest view we have of the remains of an exploded star located in the center of the Milky Way. ...","timestamp": 1794953014,"published_at": "2026-11-17T22:03:34.000Z","source_type": "page","source_id": "100044561550831","source_name": "NASA - National Aeronautics and Space Administration","source_url": "https://www.facebook.com/NASA","page_followers": 28724900,"page_talking_about": 44600,"page_ad_library_id": "54971236771","author": { "id": "100044561550831", "name": "NASA - National Aeronautics and Space Administration", "url": "https://www.facebook.com/NASA", "type": "page", "is_verified": true },"reactions_count": 1744,"comments_count": 44,"reshare_count": 168,"reactions": { "like": 1238, "love": 448, "care": 29, "wow": 25, "haha": 2, "sad": 1, "angry": 1 },"engagement_count": 1956,"engagement_rate": 0.006809,"image": { "uri": "https://scontent-ord5-1.xx.fbcdn.net/v/t39.30808-6/916765074_...jpg", "height": 526, "width": 526, "id": "1690599555768747" },"image_alt": "A supernova remnant looks like colorful paints swirling together set against the darkness of space. ...","mentions": [{ "id": "100064533380525", "name": " Chandra X-ray Observator", "url": "https://www.facebook.com/chandraxrayobservatory", "type": "profile" }],"privacy": "Public","top_level_url": "https://www.facebook.com/100044561550831/posts/1690599575768745","scraped_at": "2026-11-18T17:40:12.311Z"}],"meta": {"page": { "id": "100044561550831", "name": "NASA - National Aeronautics and Space Administration", "url": "https://www.facebook.com/NASA", "username": "NASA", "followers": 28724900, "talking_about": 44600 },"read": 10,"filtered": {},"stopReason": "max_posts","nextCursor": "eyJ2IjoxLCJwIjoiMTAwMDQ0NTYxNTUwODMxIiwiYyI6IkFRSFRkVFY5...","charged": { "post-scraped": 10 },"ms": 4970}}
| Field | Filled (70 posts from 11 Pages, 2026-11-18) |
|---|---|
post_id, type, url, timestamp, published_at, author, reactions_count, comments_count, reshare_count, reactions (by type) | 100% |
page_ad_library_id | 97% |
message | 93% (video-only and some photo posts carry no text) |
image | 86% |
top_comment | 84% (posts with comments) |
external_url | 43% (link posts and links inside the text) |
video, video_id, video_view_count, video_thumbnail, video_duration_ms | 30% of all posts = 100% of the 21 video posts |
mentions, hashtags | 16%, 10% (posts that use them) |
attached_post, event | 6%, 1% (shares and events in this sample) |
top_comments, video_files | with includePostDetails (7 of 8 test posts got their own comments, 3-5 each) |
page_followers, page_talking_about and meta.page come from the Page's own header (100% on the Pages tested).
๐งพ Status codes (and what is charged)
| HTTP | error.type | Meaning | Charged |
|---|---|---|---|
200 | Posts returned (meta.warning says when fewer than maxPosts came back and why) | post-scraped per post, post-details per post with details | |
400 | invalid-input | Bad parameter or date, a group / event / search URL instead of a Page, a cursor this API did not issue | No |
400 | cursor-mismatch | The cursor belongs to another Page | No |
404 | page-not-found | Facebook shows no public Page or profile at this address | No |
404 | page-not-public | Facebook shows the Page only to signed-in users (age- or country-restricted) | No |
404 | no-posts | The Page has no public posts (in your date window, or after your cursor) | No |
404 | no-posts-passed-filters | Posts were read but none passed your filters; error.meta shows what was read and filtered | No |
429 | too-many-requests | More than 4 of your requests in flight at once | No |
503 | blocked, timeout, unexpected-answer | Facebook refused or did not answer; retry | No |
๐ฐ Pricing
| Event | Price |
|---|---|
Post returned (post-scraped) | $0.0012 ($1.20 per 1,000) |
Post details add-on (post-details) | $0.001 per post that receives its own comments or video files |
No start fee. Nothing is charged for 4xx or 503 answers. Video transcripts (captionText) are free.
๐๏ธ Batch runs (input interface)
You can also start the actor as a normal run with a list of Pages: monitor mode (only posts newer than the last run), up to 2,000 posts per Page, one dataset row per post, exactly like a batch scraper. Use the HTTP endpoint for one Page at a time.
โฑ๏ธ Speed (measured on Apify, 2026-11-18)
- 1 post: 1.5-3.8 s; 10 posts: 5-9 s; 50 posts: 26-49 s (Facebook serves a Page's timeline 3 posts per call)
- 5 posts with
includePostDetails: 17-31 s (each post's own page is read for its comments and video files) - These include the first request after a quiet spell, when a server starts (1 post 2.8 s, 10 posts 6.9 s)
- 4 Pages in parallel: all answered, 3.6-4.5 s each (3 posts per Page)
โ ๏ธ Limits
- Public posts only, as Facebook shows them to a signed-out visitor: Pages and profiles that need a login (age- or
country-restricted) answer
404 page-not-public. - Facebook can only filter by date. Post type, the reaction / comment / share floors and keywords are checked on each
post read, and a request whose filters keep almost nothing stops early (fewer than 1 in 5 posts passing) with a
meta.warningor a404; continue withmeta.nextCursoror loosen the filters. - 50 posts per request; page further with the cursor. Facebook serves a Page's timeline 3 posts per call, so long requests take longer (see Speed).
- Pinned posts are not marked (Facebook does not say which post is pinned to signed-out visitors).
โ FAQ
Do I need a Facebook account or cookies?
No. The actor reads Facebook's public Page timeline the way a signed-out visitor does. You only need your Apify token.
What does a request cost?
$0.0012 per post returned, so a 10-post request is $0.012. A request that returns nothing is free.
How do I get more than 50 posts?
Repeat the request with cursor set to the previous response's meta.nextCursor and the same page.
How do I get only new posts since my last call?
Set startDate to the time of your last call (2026-11-18T08:00:00Z) or a relative time (2 hours). Facebook applies
that window itself, so an empty window answers 404 no-posts and costs nothing.
Can I pass a numeric Page id or a profile?
Yes: page=100044561550831, page=@NASA, a profile.php?id= URL or a /people/<name>/<id> URL all work. Group,
event, search and single-post URLs are refused with a 400 that says why (a post URL reads its Page's timeline).
Does it return comments?
Each post carries one top comment Facebook shows on the timeline. The post's own top public comments (up to 50, in the
order you choose) come with includePostDetails=true, charged $0.001 per post that gets them.
Can I get video transcripts?
captionText=true adds the transcript of every video that carries a caption track, free of charge.
Does it work with tools built for apify/facebook-posts-scraper?
outputFormat=apify returns that actor's field names (postId, text, likes, comments, shares, time, ...),
and its input names resultsLimit, onlyPostsNewerThan, onlyPostsOlderThan are accepted.
How do I use it from an AI agent?
Point an MCP client at https://topapi--facebook-page-posts-api.apify.actor/mcp with your Apify token. The tool is
get_page_posts; outputFormat: "compact" keeps answers short.
What if Facebook refuses a request?
You get a 503 and pay nothing. The actor already retries on fresh sessions and exits, so a retry a moment later
usually works.
Your feedback
Open an issue on the actor page with the request you sent and the response you got.