Call it
curl https://api.peume.com/v1/call/get-facebook-page-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"profile_id": "your profile id"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-facebook-page-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"profile_id": "your profile id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-facebook-page-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"profile_id": "your profile id"
}
},
)
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: get-facebook-page-2.
Parameters
profile_idRequiredstringThe Facebook profile ID. You can find it in the URL of the profile page. For example, in `https://www.facebook.com/Meta`, the profile ID is `Meta`; in `https://facebook.com/profile.php?id=100080376596424`, the profile ID is `100080376596424`.
json_restrictorstringThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
