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 Page Posts API Documentation

Facebook Page Posts

Get the posts of Facebook pages: post link, date, text, likes, comments, shares, whether it is a video, the link it shares, and the page's name and followers.

$0.0032 per postPOST /api/v1/scrape/facebook-posts

Parameters

NameTypeRequiredDescription
pagesstring[]OptionalFacebook page links or page names (up to 200)Example: ["https://www.facebook.com/TwoMaidsFranchise", "nike"]
maxResultsnumberOptionalThe most posts to return in all (default 100, up to 5,000)Default: 100Example: 100

Examples

Recent posts of two pages

curl -X POST https://app.scrapercity.com/api/v1/scrape/facebook-posts \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "pages": [
      "https://www.facebook.com/TwoMaidsFranchise",
      "nike"
    ],
    "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-posts.csv

Use Cases

  • •Track what competitors post and how it performs
  • •Collect post links to pull their comments with Facebook Comments
  • •Content research in a niche

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
  • •Pages that are gone or hidden return no posts and are not charged
  • •CSV columns: page, page_name, post_url, posted_at, text, likes, comments, shares, is_video, link, page_followers

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.