Pricing
from $4.99 / 1,000 results
Go to Apify Store
Facebook Page Posts Scraper
Extract posts from any public Facebook page using its page ID, with optional date filtering and automatic pagination up to your specified maxResults.
Pricing
from $4.99 / 1,000 results
Rating
4.0
(1)
Developer
Actor stats
6
Bookmarked
517
Total users
39
Monthly active users
2 months ago
Last modified
Categories
Share
π Facebook Page Posts Scraper
Extract posts from any public Facebook page using its page ID. This actor leverages the latest Facebook page posts API and supports automatic pagination to collect up to your specified maxResults.
Features
- Scrape posts from any public Facebook page using its page ID.
- Optional date range filtering with start_date and end_date.
- Automatic pagination to fetch large result sets.
- Returns structured post data including content, reactions, comments, and media.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| page_id | string | Yes | The Facebook page ID to scrape posts from. |
| start_date | string | No | Optional start date (yyyy-mm-dd) to filter posts. |
| end_date | string | No | Optional end date (yyyy-mm-dd) to filter posts. |
| maxResults | integer | No | Maximum number of posts to fetch |
Output
Each output item is a Facebook post object:
[{"post_id":"1296377462490362","type":"post","url":"https://www.facebook.com/LombardOlkusz/posts/pfbid0xHDQtfzbGjH3dMqUZHkNr6VTGgsuUYSz6Joq6kyAwVaVVpWBM2P7VsUWkUHHwhvZl","message":"PamiΔtaj tylko u nas najlepsze ceny skupu zΕota ππprzyjdΕΊ sprawdΕΊ...zapraszamy od godziny 8 do godziny 19πkontakt telefoniczny 512 777 884 π","timestamp":1747506554,"comments_count":0,"reactions_count":0,"reshare_count":5,"reactions":{"angry":0,"care":0,"haha":0,"like":0,"love":0,"sad":0,"wow":0},"author":{"id":"100063543614476","name":"Komis Skup sprzedaΕΌ ZΕota","url":"https://www.facebook.com/LombardOlkusz","profile_picture_url":"https://scontent.fjoi2-1.fna.fbcdn.net/v/t39.30808-1/407757874_870519151742864_2776592356750657064_n.jpg?stp=c5.0.296.296a_cp0_dst-jpg_s40x40_tt6&_nc_cat=100&ccb=1-7&_nc_sid=2d3e12&_nc_ohc=s9jkZhdtE8UQ7kNvwEd3zfi&_nc_oc=AdlWbNIsuhWxitgvbCaoYFcFm1t-tYv8XvDB2xqg3KB9JAFF3pYgdPOgW9n867wIbHE&_nc_zt=24&_nc_ht=scontent.fjoi2-1.fna&_nc_gid=WulJOcwYpO0fAOZLcpiL5A&oh=00_AfInXs15Z7HBNtnrBTGZZNADP4a-92sEcf9p2Tv7X_eXng&oe=683DD47F"},"image":{"uri":"https://scontent.fjoi2-1.fna.fbcdn.net/v/t39.30808-6/497953614_1296377415823700_2526818784636674285_n.jpg?_nc_cat=111&ccb=1-7&_nc_sid=833d8c&_nc_ohc=LuYd41ewU-YQ7kNvwG6ewx8&_nc_oc=Adk-2n8IoI88YeY3H4HzF7-10Fl4DV6fS8KRHST0eH6Toru7J-1XzVqPOR_sMzm_aCg&_nc_zt=23&_nc_ht=scontent.fjoi2-1.fna&_nc_gid=WulJOcwYpO0fAOZLcpiL5A&oh=00_AfIMc9cL70rneQBXZYS12qsX9GBJ8wS2WsM2bA-kpPGnyg&oe=683DD55C","height":296,"width":307},"video":null,"album_preview":null,"video_files":null,"video_thumbnail":null,"external_url":null,"attached_event":null,"attached_post":null,"attached_post_url":null,"scrapedAt":"2025-05-29T08:18:48.641Z"},...]
Example Usage
{"page_id":"100063543614476","maxResults":3}
Notes
- The actor will automatically paginate through results until
maxResultsis reached or no more data is available. - Make sure the page ID is correct and the page is public.
- Posts are returned in chronological order.
- Date filtering is optional but recommended for better performance.
