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 post
POST /api/v1/scrape/facebook-postsParameters
| Name | Type | Required | Description |
|---|---|---|---|
pages | string[] | Optional | Facebook page links or page names (up to 200)Example: ["https://www.facebook.com/TwoMaidsFranchise", "nike"] |
maxResults | number | Optional | The 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.csvUse 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.