Call it
curl https://api.peume.com/v1/call/pull-facebook-group-posts \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"startUrls": [
{
"url": "https://www.facebook.com/groups/874728723021553"
}
],
"resultsLimit": 20,
"viewOption": "CHRONOLOGICAL",
"onlyPostsNewerThan": "2024-01-01"
}
}'const res = await fetch("https://api.peume.com/v1/call/pull-facebook-group-posts", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"startUrls": [
{
"url": "https://www.facebook.com/groups/874728723021553"
}
],
"resultsLimit": 20,
"viewOption": "CHRONOLOGICAL",
"onlyPostsNewerThan": "2024-01-01"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/pull-facebook-group-posts",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"startUrls": [
{
"url": "https://www.facebook.com/groups/874728723021553"
}
],
"resultsLimit": 20,
"viewOption": "CHRONOLOGICAL",
"onlyPostsNewerThan": "2024-01-01"
}
},
)
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-group-posts.
Parameters
startUrlsRequiredarrayInsert a URL of a valid Facebook group. Only <strong>public</strong> Facebook groups can be scraped.
Example: [{"url":"https://www.facebook.com/groups/874728723021553"}]
resultsLimitintegerSelect the number of posts you want to scrape. If this limit is not set, as many results as possible will be returned.
Example: 20
viewOptionstringSelect sorting order by which the posts should be scraped. Please note that the <strong>Time frame</strong> field will be applied to New posts only. The BuySell items sorting will return results for BuySell groups only.
CHRONOLOGICAL · RECENT_ACTIVITY · TOP_POSTS · CHRONOLOGICAL_LISTINGS
Example: CHRONOLOGICAL
onlyPostsNewerThanstringScrapes post from the provided date to the present day. The date should be in YYYY-MM-DD or full ISO absolute format or in relative format e.g. 1 days, 2 months, 3 years. The JSON input also supports adding time units (UTC timezone): Full or partial ISO timestamp (e.g., `2025-09-23T10:02:01`) as absolute time and relative time, e.g., `1 hour` or `2 minutes`.
Example: 2024-01-01
