Call it
curl https://api.peume.com/v1/call/facebook-post-details-by-post-url \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"dataset_id": "gd_lyclm1571iy3mv57zw",
"input": [
{
"url": "https://example.com/"
}
]
}
}'const res = await fetch("https://api.peume.com/v1/call/facebook-post-details-by-post-url", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"dataset_id": "gd_lyclm1571iy3mv57zw",
"input": [
{
"url": "https://example.com/"
}
]
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/facebook-post-details-by-post-url",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"dataset_id": "gd_lyclm1571iy3mv57zw",
"input": [
{
"url": "https://example.com/"
}
]
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: facebook-post-details-by-post-url.
Parameters
dataset_idRequiredstringpinned to the documented 'Facebook - Posts by post URL' dataset
gd_lyclm1571iy3mv57zw
Example: gd_lyclm1571iy3mv57zw
formatstringjson (default) | ndjson | csv
inputRequiredarrayone object per target — a single Facebook post URL
Example: [{"url":"https://example.com/"}]
Other ways to do it
Same job, other sources, cheapest first.
One public Facebook postGet one public Facebook post: author, text, time, reactions by type, comments, shares, photos and videos.Facebook post or reel by URLRetrieves a single public Facebook post or reel by URL.Facebook PostFetch a single Facebook post by URL with its text and engagement counts (likes, comments, shares, views).
