How to get Facebook details
GET request to /v1/facebook/details with your input. You get clean JSON back in seconds for 1 credit per call — no OAuth, scraping or platform SDKs. Get a Facebook post or video — caption, engagement, author, and media fields as structured JSON.How to get Facebook details (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 Details API
Send an authenticated GET request to /v1/facebook/details 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/details?url=https%3A%2F%2Fwww.facebook.com%2Freel%2F1376651124309650" \
-H "Authorization: Bearer capt_live_..."
# or: -H "x-api-key: capt_live_..."What the response looks like
{
"success": true,
"data": {
"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.fmqy1-1.fna.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=be8305&_nc_ohc=qeVI1kkGZgsQ7kNvwGE5tRW&_nc_oc=AdrJDgjeSSaMfkO3TBjEYaAAfOGGTgZx7p2XsPJlqM-v7ElVMna9rbS-nvI4hCBw9dE&_nc_zt=23&_nc_ht=scontent.fmqy1-1.fna&_nc_gid=BfgIO_X6ew_F0ykYIjTOYQ&_nc_ss=7c289&oh=00_AQBeauZvCz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ss=7c289&_nc_zt=28&oh=00_AQB1qI8sgrDvt2UCma_59Ibarne-VozN8lFxZpllDkDZ8A&oe=6A628175&bitrate=733579&tag=dash_h264-basic-gen2_720p",
"author": {
"username": "NASA",
"displayName": "NASA",
"url": "https://www.facebook.com/NASA",
"profileImage": "https://scontent.fmqy1-1.fna.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&_nc_ohc=8JwJCEbIJtcQ7kNvwGXovPK&_nc_oc=AdorHtBdGHbQg9-gtbFZVRJFA8tpQwdeujaSdmzpoM8huoUOnK4SODhSZpaI6JwR0Vk&_nc_zt=24&_nc_ht=scontent.fmqy1-1.fna&_nc_gid=BfgIO_X6ew_F0ykYIjTOYQ&_nc_ss=7c289&oh=00_AQALNekk6ImtlczeRp3J01u1hxBlCi1AJ6PevUm7VKUUBA&oe=6A6285D5",
"verified": true
},
"engagement": {
"views": null,
"likes": 6447,
"comments": 87,
"shares": 523
},
"isVideo": true,
"link": "https://go.nasa.gov/3QvQc4k"
}
}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 | Public Facebook video or post URL. 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. |
| 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 Details API do?
The Facebook Details API lets you fetch full metadata and key stats from a public Facebook video using one GET request to /v1/facebook/details. It returns clean JSON — no OAuth or infrastructure setup required.
How many credits does the Facebook Details API cost?
Each successful call costs 1 credit. 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 Details 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 details?
Start free with 100 credits — no credit card required.
Get your free API key