Call it
curl https://api.peume.com/v1/call/pull-facebook-profile-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"endpoint": "profile_posts_by_url"
}
}'const res = await fetch("https://api.peume.com/v1/call/pull-facebook-profile-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"endpoint": "profile_posts_by_url"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pull-facebook-profile-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"endpoint": "profile_posts_by_url"
}
},
)
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: pull-facebook-profile-posts.
Parameters
endpointRequiredstringChoose what to fetch.
profile_posts_by_url · profile_posts · search_posts_by_keyword · details_by_id · details_by_url · profile_id_by_url
urls_textstringUse for: Profile posts by URL, Profile details by URL, Profile ID by URL. Paste one URL/username per line.
ids_textstringUse for: Profile posts by ID, Profile details by ID. Paste one profile_id per line.
keywords_textstringUse for: Search Posts by Keyword. Paste one search query per line.
max_postsintegerOptional. Limit how many posts to collect per profile or keyword. Set 0 (default) to fetch all available.
start_datestringOptional filter for Profile posts and Search posts.
end_datestringOptional filter for Profile posts and Search posts.
