PeumeAPI

Social media data · Facebook

Pull Facebook Group Posts

Scrape posts and comments from public Facebook groups.

$0.0018 per result + $0.0015 per call

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"
  }
}'

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

startUrlsRequiredarray

Insert a URL of a valid Facebook group. Only <strong>public</strong> Facebook groups can be scraped.

Example: [{"url":"https://www.facebook.com/groups/874728723021553"}]

resultsLimitinteger

Select the number of posts you want to scrape. If this limit is not set, as many results as possible will be returned.

Example: 20

viewOptionstring

Select 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

onlyPostsNewerThanstring

Scrapes 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

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.