Black Friday: double credits on your first month, any plan · ends Sunday, Nov 29Cyber Monday extension: double credits on your first month, any plan · ends tonightBlack Friday: 2x creditsCyber Monday: 2x creditsSee plans
ScraperCity logo

Facebook Group Posts API Documentation

Facebook Group Posts

Get the posts of public Facebook groups: post link, date, text, author name and id, likes, comments and shares, and the group's name and member count.

$0.0051 per postPOST /api/v1/scrape/facebook-groups

Parameters

NameTypeRequiredDescription
groupsstring[]OptionalPublic Facebook group links (up to 200)Example: ["https://www.facebook.com/groups/smallbusinessowners/"]
maxResultsnumberOptionalThe most posts to return in all (default 100, up to 5,000)Default: 100Example: 100

Examples

Recent posts in a group

curl -X POST https://app.scrapercity.com/api/v1/scrape/facebook-groups \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "groups": [
      "https://www.facebook.com/groups/smallbusinessowners/"
    ],
    "maxResults": 100
  }'

Check status and download

curl -X GET https://app.scrapercity.com/api/v1/scrape/status/{runId} \
  -H "Authorization: Bearer YOUR_API_KEY"

# When status is SUCCEEDED, download the CSV
curl -L https://app.scrapercity.com/api/downloads/{runId} -o facebook-groups.csv

Use Cases

  • •Find people asking for a service in local or niche groups
  • •Community and market research

Best Practices

  • •Charged per post returned; a search is charged at least what it cost to run, shown as a minimum charge
  • •Most searches finish in 1-5 minutes
  • •Private groups return no posts and are not charged
  • •CSV columns: group, group_name, group_members, post_url, posted_at, text, author_name, author_id, likes, comments, shares

Every scrape returns a runId. Poll GET /api/v1/scrape/status/{runId} until it completes, then download via GET /api/downloads/{runId}?format=csv.

Authenticate every request with Authorization: Bearer YOUR_API_KEY. See the full API reference for authentication, rate limits and error codes.