Facebook Post API
Get one Facebook post from its link, from a profile, Page or group: text, author, date, group, photos and videos, shared link or post, reactions by type, and comment and share counts.
- Endpoint
- POST /facebook/get-post
- Price
- 1 credit per request
- SDK
- client.facebook.getPost()
- MCP tool
- facebook_get_post
curl -X POST "https://api.bridgly.app/facebook/get-post" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl"}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/facebook/get-post", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl", },)data = response.json()const response = await fetch("https://api.bridgly.app/facebook/get-post", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "url": "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl" }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.facebook.getPost({ url: "https://www.facebook.com/NASA/posts/pfbid0sWEQa1gX7qa3jNrUYfgVy3kYaimwKott95nY6NicQPwxPGzkahpyQ8ABWbpkth2bl"});if (res.type === "success") { console.log(res.data);}What does the Facebook Post API return?
Get a single Facebook post from its link as JSON: text, author, date, photos, videos, shared link, reactions by type, comment and share counts. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.
Request body
urlstringrequired- Link to the post, e.g. "https://www.facebook.com/NASA/posts/pfbid0sWE…", a group post link, a share link such as "https://www.facebook.com/share/p/1DnHdkn7c7/", or a permalink.php or story.php link.
cacheMaxAgeHoursinteger- Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean- Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Example response
{ "timeMs": 1840, "creditsCost": 1, "cachedAt": "2026-01-15T09:30:00.000Z", "data": { "id": "string", "url": "string", "text": "string", "entities": [ { "type": "string", "id": "string", "name": "string", "url": "string" } ], "headline": "string", "tagged": [ { "type": "string", "id": "string", "name": "string", "url": "string" } ], "place": { "type": "string", "id": "string", "name": "string", "url": "string" }, "createdAt": "string", "privacy": "string", "author": { "id": "string", "name": "string", "url": "string", "profilePictureUrl": "string" }, "group": { "id": "string", "name": "string", "url": "string" }, "reactionCount": 0, "reactions": [ { "reaction": "string", "count": 0 } ], "commentCount": 0, "shareCount": 0, "media": [ { "type": "photo", "id": "string", "url": "string", "imageUrl": "string", "width": 0, "height": 0, "altText": "string" } ], "link": { "url": "string", "title": "string", "description": "string", "domain": "string", "imageUrl": "string" }, "sharedPost": { "id": "string", "url": "string", "text": "string", "createdAt": "string", "author": { "id": "string", "name": "string", "url": "string", "profilePictureUrl": "string" } }, "poll": { "id": "string", "question": "string", "responseMethod": "string", "state": "string", "options": [ { "id": "string", "text": "string", "voteCount": 0 } ] }, "music": { "id": "string", "title": "string", "artist": "string" } }}What can you build with the Facebook Post API?
Track a campaign
Check the reactions, comments and shares of the posts you care about.
Save evidence
Store a post’s text, media and author as structured data.
Summarize
Pass a post’s text and media to a model to summarize or classify it.
Facebook Post API questions
Which links are supported?
Post links from profiles, Pages and groups, including share links (facebook.com/share/p/…) and permalink.php and story.php links. Reel, video and photo links are not posts and are not supported here.
How do I use the Facebook Post API?
Send a POST request to https://api.bridgly.app/facebook/get-post with url in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.facebook.getPost(). AI agents connected to Bridgly over MCP can call the facebook_get_post tool.
How much does the Facebook Post API cost?
Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.67 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.
More Facebook endpoints
The same API key works on every endpoint. See all Facebook Scraper API endpoints.
- Facebook Post Search API→Search public Facebook posts by keyword as JSON: text, author, date, photos, videos, links, reactions, comments and shares for every matching post.
- Facebook Comments API→List the comments of a Facebook post as JSON, top or newest first: text, author, date, reaction count and reply count, with a cursor for every next page.
- Facebook Comment Replies API→List the replies to a Facebook comment as JSON, oldest first: text, author, date and reaction count, with a cursor for every next page of replies.
- Facebook Group API→Get a Facebook group’s details as JSON: name, description, privacy, member count, posts per day and month, creation date, admins and group rules.
Try the Facebook Post API
100 free credits on business email, no card. Your first call takes a minute.