POST /v1/data/facebook/posts/run
Pricing: $0.005 per post ($5.00 per 1,000).
Pull recent posts and reels from a public Facebook page/profile URL, or member posts from a public group URL.
Ways to call it
- Page or Profile: set
urls(optional:maxResults,onlyPostsNewerThan,onlyPostsOlderThan) - Group: set
groupUrls(optional:maxResults)
Request
Send the inputs underparams. Only the keys below are accepted; any other key returns 422 invalid_params.
Public Facebook page or profile URL to scrape posts from (e.g. facebook.com/nike or facebook.com/zuck). Private profiles return no results. Use this OR Group URL, not both.Format e.g.
https://www.facebook.com/nike.Public Facebook group URL to scrape member posts from (e.g. facebook.com/groups/<group>). Use this OR Page or Profile URL, not both.Format e.g.
https://www.facebook.com/groups/1082450387678660.Example
Response fields
Each row indata is one post, keyed by these fields.
Example response
Abridged: long text and lists are shortened.Related APIs
To search posts by keyword instead of by page usefacebook/posts-search; for comments on a post use facebook/comments; for reels with play counts use facebook/reels.