How to get Facebook profile posts
GET request to /v1/facebook/profile-posts with your input. You get clean JSON back in seconds for 2 credits per call — no OAuth, scraping or platform SDKs. List Facebook profile posts with full metadata for each item.How to get Facebook profile posts (step by step)
- 1
Get a free API key
Create a free Captapi account (100 credits, no card) and generate an API key from the dashboard.
- 2
Call the Facebook Profile Posts API
Send an authenticated GET request to /v1/facebook/profile-posts with your input. No OAuth, no scraping setup.
- 3
Read the JSON response
Parse the clean JSON response. Pass cache=true for a free 24h cache hit; default is always fresh.
Code example
curl "https://api.captapi.com/v1/facebook/profile-posts?url=https%3A%2F%2Fwww.facebook.com%2FNASA" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."What the response looks like
{
"success": true,
"data": {
"url": "https://www.facebook.com/NASA",
"totalReturned": 5,
"posts": [
{
"platform": "facebook",
"url": "https://www.facebook.com/NASA/posts/pfbid0TBwRTPkxfaLhYBjfsK1xApVksSVHddNrpqUqcqNsKxVvKjqT6dAG8HnxWGA3odp5l",
"id": "1587644189397618",
"caption": "This is messy 😬\n \nA galaxy cluster is exactly what you'd think: a bunch of galaxies grouped together. This galaxy cluster is made of two sub-clusters with similar mass, locked in a messy process of interacting and separating. Eventually, they'll merge. Though their relationship is… complicated, it helps us study the region.\n \nThe cluster's extreme and concentrated mass curves light with its gravity. This is called gravitational lensing, and it works like a glass lens bending and focusing light. Objects are magnified and their brightness is enhanced, so if they lie in exactly the right place, background galaxies and even individual stars that would have been far too faint and distant to spot will be made visible.",
"description": "This is messy 😬\n \nA galaxy cluster is exactly what you'd think: a bunch of galaxies grouped together. This galaxy cluster is made of two sub-clusters with similar mass, locked in a messy process of interacting and separating. Eventually, they'll merge. Though their relationship is… complicated, it helps us study the region.\n \nThe cluster's extreme and concentrated mass curves light with its gravity. This is called gravitational lensing, and it works like a glass lens bending and focusing light. Objects are magnified and their brightness is enhanced, so if they lie in exactly the right place, background galaxies and even individual stars that would have been far too faint and distant to spot will be made visible.",
"publishedAt": "2026-07-27T15:33:07.000Z",
"thumbnailUrl": "https://scontent-dfw5-2.xx.fbcdn.net/v/t39.99422-6/758964186_1384158170473704_9008748322111971488_n.png?stp=dst-jpg_tt6&cstp=mx2047x1012&ctp=s1080x2048&_nc_cat=1&ccb=1-7&_nc_sid=12...",
"author": {
"username": "nasa",
"displayName": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA"
},
"engagement": {
"likes": 1861,
"comments": 84,
"shares": 0
},
"isVideo": false
},
{
"platform": "facebook",
"url": "https://www.facebook.com/reel/1380134307388381",
"id": "1584419709720066",
"caption": "During his eight months aboard the International Space Station, NASA astronaut Chris Williams conducted numerous experiments to improve life on Earth and prepare us for missions to the Moon and Mars.\n\nFrom cancer research to advancing technology, read about Williams’ work during his first time in space: https://go.nasa.gov/3RavGXj",
"description": "During his eight months aboard the International Space Station, NASA astronaut Chris Williams conducted numerous experiments to improve life on Earth and prepare us for missions to the Moon and Mars.\n\nFrom cancer research to advancing technology, read about Williams’ work during his first time in space: https://go.nasa.gov/3RavGXj",
"publishedAt": "2026-07-23T16:31:54.000Z",
"durationSeconds": 112.946,
"thumbnailUrl": "https://scontent-sea5-1.xx.fbcdn.net/v/t15.5256-10/754970839_803020196231197_5928609298551288000_n.jpg?stp=dst-jpg_tt6&cstp=mx720x405&ctp=s720x405&_nc_cat=102&ccb=1-7&_nc_sid=be830...",
"videoUrl": "https://video-sea1-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNNFuni8clCeMB5VeV07ZDIzXWkhBI5ozM_78otCALjoD72HsRW7yvnWXM_b0WGcKAjPk-KGDhCqRkGsaoZ57noEirZQ7LpYHZZbTVu3jMMQg.mp4?_nc_cat=106&_nc...",
"author": {
"username": "NASA",
"displayName": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA",
"profileImage": "https://scontent-sea5-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=cp0_dst-png&cstp=mx800x800&ctp=s80x80&_nc_cat=108&ccb=1-7&_nc_sid=2d3e12&...",
"verified": true
},
"engagement": {
"views": 411000,
"likes": 5594,
"comments": 170,
"shares": 240
},
"isVideo": true,
"link": "https://go.nasa.gov/3RavGXj"
},
{
"platform": "facebook",
"url": "https://www.facebook.com/reel/1376651124309650",
"id": "1567272851434752",
"caption": "There will be more than just fireworks to see in the night sky this month!\n\nYou can look forward to these celestial sights in July:\n- A lunar-planetary alignment\n- A visiting comet\n- A good look at Saturn and the Milky Way\n\nHappy skywatching! https://go.nasa.gov/3QvQc4k",
"description": "There will be more than just fireworks to see in the night sky this month!\n\nYou can look forward to these celestial sights in July:\n- A lunar-planetary alignment\n- A visiting comet\n- A good look at Saturn and the Milky Way\n\nHappy skywatching! https://go.nasa.gov/3QvQc4k",
"publishedAt": "2026-07-02T15:03:11.000Z",
"durationSeconds": 200.016,
"thumbnailUrl": "https://scontent-iad3-2.xx.fbcdn.net/v/t15.5256-10/735149954_4435586749988646_521208314578416779_n.jpg?stp=dst-jpg_tt6&cstp=mx720x405&ctp=s720x405&_nc_cat=111&ccb=1-7&_nc_sid=be830...",
"videoUrl": "https://video-iad3-2.xx.fbcdn.net/o1/v/t2/f2/m366/AQOh7ZLRZfB5SIGETu_uz2jbsqvY3dW7G3sGdKsNsX627DpYoTuCxs26FyYE4T4rDzRdvIV2tOCYJi5hs8Gs1EaQEL7_LhQnAXKuILiY508JFg.mp4?_nc_cat=103&_nc...",
"author": {
"username": "NASA",
"displayName": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA",
"profileImage": "https://scontent-iad3-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=cp0_dst-png&cstp=mx800x800&ctp=s40x40&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_n...",
"verified": true
},
"engagement": {
"views": 598000,
"likes": 6582,
"comments": 89,
"shares": 531
},
"isVideo": true,
"link": "https://go.nasa.gov/3QvQc4k"
},
{
"platform": "facebook",
"url": "https://www.facebook.com/reel/1023344310547434",
"id": "1565523918276312",
"caption": "Come watch a spacewalk with us!\n\nNASA astronauts Chris Williams and Jessica Meir are stepping outside the International Space Station for about six and a half hours to make repairs to the station's Canadarm2 robotic arm. Tune in: https://youtu.be/D0dd8X4g3Eg",
"description": "Come watch a spacewalk with us!\n\nNASA astronauts Chris Williams and Jessica Meir are stepping outside the International Space Station for about six and a half hours to make repairs to the station's Canadarm2 robotic arm. Tune in: https://youtu.be/D0dd8X4g3Eg",
"publishedAt": "2026-06-30T14:00:41.000Z",
"durationSeconds": 16.362,
"thumbnailUrl": "https://scontent-sjc6-1.xx.fbcdn.net/v/t15.5256-10/736384680_1034463129116372_1847611548688510946_n.jpg?stp=dst-jpg_tt6&cstp=mx3840x2160&ctp=s960x960&_nc_cat=100&ccb=1-7&_nc_sid=be...",
"videoUrl": "https://video-sjc3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNuYSZM6m65K0Fk1iuF6LfY4iw2glvoNgX93Y-dmgWocy6hgsX_5hBee2XwT2P17RKnX8kug-hdZWZOgsxFOs6KpmZMXw8ZoqZxkouUJIzbRQ.mp4?_nc_cat=106&_nc...",
"author": {
"username": "NASA",
"displayName": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA",
"profileImage": "https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=cp0_dst-png&cstp=mx800x800&ctp=s40x40&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_n...",
"verified": true
},
"engagement": {
"views": 5000000,
"likes": 75366,
"comments": 1960,
"shares": 1900
},
"isVideo": true,
"link": "https://youtu.be/D0dd8X4g3Eg"
},
{
"platform": "facebook",
"url": "https://www.facebook.com/reel/1736519150699488",
"id": "1561248945370476",
"caption": "We are at the Great American State Fair in Washington, D.C.!\n \nDiscover the technology and science driving our most exciting missions by visiting the NASA Pavilion—today through July 10: https://www.nasa.gov/freedom250/#american-state-fair",
"description": "We are at the Great American State Fair in Washington, D.C.!\n \nDiscover the technology and science driving our most exciting missions by visiting the NASA Pavilion—today through July 10: https://www.nasa.gov/freedom250/#american-state-fair",
"publishedAt": "2026-06-25T16:14:35.000Z",
"durationSeconds": 120,
"thumbnailUrl": "https://scontent-sjc3-1.xx.fbcdn.net/v/t15.5256-10/730182605_1314642917513572_6743020664352329210_n.jpg?stp=dst-jpg_tt6&cstp=mx720x405&ctp=s720x405&_nc_cat=103&ccb=1-7&_nc_sid=be83...",
"videoUrl": "https://video-sjc3-1.xx.fbcdn.net/o1/v/t2/f2/m366/AQNw1vJID4pcVr5SpV62MejQDC3RWwcnlksqsPLAyq80dayfLcF2ZrUq_2WUXkvRjeDWpROR6cNqkK_ViG-PJvhZRxdrheFypJ1tHPUXtaqYMg.mp4?_nc_cat=110&_nc...",
"author": {
"username": "NASA",
"displayName": "NASA - National Aeronautics and Space Administration",
"url": "https://www.facebook.com/NASA",
"profileImage": "https://scontent-sjc3-1.xx.fbcdn.net/v/t39.30808-1/243095782_416661036495945_3843362260429099279_n.png?stp=cp0_dst-png&cstp=mx800x800&ctp=s40x40&_nc_cat=1&ccb=1-7&_nc_sid=2d3e12&_n...",
"verified": true
},
"engagement": {
"views": 426000,
"likes": 3601,
"comments": 124,
"shares": 199
},
"isVideo": true,
"link": "https://www.nasa.gov/freedom250/#american-state-fair"
}
]
}
}Billing metadata (credits charged, cache hit/miss) is returned in the X-Captapi-Credits and X-Captapi-Cache response headers.
Request parameters
| Name | Type | Required | Description |
|---|---|---|---|
| url | string | Yes | Facebook profile/page URL, @handle, or page name. The URL platform must match this endpoint's platform. Do not pass cross-platform URLs, e.g. YouTube to TikTok, Instagram to Facebook, LinkedIn to X/Twitter, or Pinterest to Rumble. |
| limit | integer | No | Max items to return (default 20, max 200). Billed per result. |
| cache | boolean | No | Set true to serve from the 24h response cache. Default false — always fetch fresh data. |
Frequently asked questions
What does the Facebook Profile Posts API do?
The Facebook Profile Posts API lets you list items in bulk with metadata from a public Facebook post using one GET request to /v1/facebook/profile-posts. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the Facebook Profile Posts API cost?
Each successful call costs 2 credits. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Failed or empty results are never charged.
Do I need a Facebook API key or OAuth?
No. A single Captapi key works across every platform Captapi supports — YouTube, TikTok, Instagram, Facebook, Twitter/X, Reddit, Threads, Bluesky, Pinterest, LinkedIn, Rumble, Spotify, Kwai, and more. We handle proxies, rate limits, retries, and authentication for you.
Is the Facebook Profile Posts API suitable for production use?
Yes. It is a stable REST endpoint with predictable JSON and automatic retries. Pass cache=true to serve from the 24h shared cache (0 credits on hit); default is always fresh. Use it for analytics, monitoring, and content automation.
Ready to get Facebook profile posts?
Start free with 100 credits — no credit card required.
Get your free API key