Sources › Social media › Facebook › Post Detail

Facebook Post Detail API

Facebook public post/reel/video by URL: text, author, media, reaction/comment/share/view counts, createdAt.

FacebookGET /postAll plans2 Zap

Request

GET
https://api.zapi.ink/v1/social-media:facebook-scraper/post

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.

Parameters

NameTypeInRequiredDescription
urlstringqueryYesURL post/reel/video/foto Facebook publik. Example: https://www.facebook.com/KOMPAScom/posts/pfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/social-media:facebook-scraper/post?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/social-media:facebook-scraper/post?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/social-media:facebook-scraper/post",
    params={"url":"https://www.facebook.com/KOMPAScom/posts/pfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Frequently asked questions

How do I call the Facebook Post Detail API?

Send a GET request to https://api.zapi.ink/v1/social-media:facebook-scraper/post?url=https%3A%2F%2Fwww.facebook.com%2FKOMPAScom%2Fposts%2Fpfbid0E8hZTGFLNC2piAGGWkM8GL2KK3ofVWfMVcy1d21hCevwzTbQPRzrgAVt5BmMufyvl with your Zapi key in the x-api-key header. Parameters — required: url. The response is JSON in the { project, data, timestamp } envelope.

What does the Facebook Post Detail API return?

Facebook public post/reel/video by URL: text, author, media, reaction/comment/share/view counts, createdAt.

Is the Facebook Post Detail API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 2 Zap. Paid plans raise the limits.

Can an AI assistant call the Facebook Post Detail API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "facebook-scraper" and endpoint "post".

What other Facebook API endpoints are there?

It has 5 endpoints. Besides Post Detail: Post Comments, Page Profile, Profile Videos, Video Transcript.