Facebook Posts Scraper V2 avatar

Facebook Posts Scraper V2

Pricing

from $1.00 / 1,000 results

Go to Apify Store
Facebook Posts Scraper V2

Facebook Posts Scraper V2

Scrape real-time posts from public Facebook pages by pageId with automatic pagination and date filtering. Returns text, timestamps, reactions, shares, comments count, and media URLs. Fresh data fetched directly from Facebook on every run - no caching layer in between.

Pricing

from $1.00 / 1,000 results

Rating

0.0

(0)

Developer

AxCrawler

AxCrawler

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

21 hours ago

Last modified

Categories

Share

How does Facebook Posts Scraper V2 work?

The Facebook Posts Scraper V2 works seamlessly to extract detailed, real-time posts directly from Facebook. It is designed for efficiency and ease of use, requiring only a few parameters to deliver precise and comprehensive post data.

Here's how it works:

  1. Input Parameters: Simply provide the Facebook page id along with the time range (startTime and endTime) and / or maximum number of posts to be scraped to extract relevant post data efficiently.

  2. Data Extraction: The scraper retrieves posts from Facebook and extracts relevant details for each post, including text content, images, timestamps, engagement metrics (likes, comments, shares), and other key insights.

  3. Real-Time Output: Unlike preprocessed data, our scraper retrieves up-to-date posts directly from Facebook, ensuring accurate and fresh data every time. There is no caching involved, so every invocation retrieves fresh data.

  4. Download Options: Once the posts are extracted, the data can be downloaded in your preferred format, such as JSON, CSV, Excel, XML, or HTML.

With the Facebook Posts Scraper V2, you get a user-friendly, reliable tool that delivers fast, accurate, and customizable data extraction to meet your specific needs.

What is new in V2?

This Actor is built on the V2 posts data source, which improves on V1 in several ways:

  • Page id instead of URL: V1 requires the full page URL; V2 addresses pages directly by their numeric pageId, which is unambiguous and stable even if a page changes its vanity URL.
  • Improved pagination: V2 pagination is handled fully automatically by the Actor - you only specify how many posts you want via maxPosts.
  • Time filtering: V2 supports a startTime date filter to retrieve posts starting from a specified point in time and including all older posts, enabling precise time-range extraction.

Input data

Input data must be provided in JSON format and must contain one mandatory array field "input". Each item in the array represents one Facebook page to scrape posts from. Every field listed below is supported:

Actor input fields

ParameterRequiredTypeDescription
pageIdYesstringId of the Facebook page, e.g. 100064860875397.
maxPostsNonumberExact number of posts to deliver, counted from the newest post backwards. The Actor paginates automatically and cuts the result at exactly this number (or at the endTime boundary). Defaults to 10.
startTimeNostringEpoch timestamp in seconds, e.g. 1744440142. Date filter to retrieve only posts which are older than the specified value - the Actor fetches posts starting from this time going backwards. If omitted, the Actor starts with the latest posts of the page.
endTimeNostringEpoch timestamp in seconds, e.g. 1741761742. Defines the end of the time range: the Actor stops paginating once posts older than this value are reached. Must be earlier (smaller) than startTime. If omitted, the Actor fetches posts until maxPosts is reached.

Pagination is handled fully automatically: the Actor keeps fetching page by page until maxPosts posts have been collected or the endTime boundary is passed.

The "input" field is an array, allowing you to pass multiple page ids in one run. Each page id can be configured with individual maxPosts, startTime and endTime, enabling the scraping of up to millions of posts from different pages.

Start and end time can be omitted, in this case the Actor will fetch the latest posts from the page. The maximum number of posts to be scraped can also be omitted, in this case the scraper will fetch 10 posts by default. If startTime, endTime and maxPosts are all provided as input, the Actor will fetch posts from startTime to endTime and limit the number of posts to maxPosts. Start and end time need to be epoch time in seconds.

Example input

{
"input": [
{
"pageId": "100064860875397",
"maxPosts": 50,
"startTime": "1744440142",
"endTime": "1741761742"
},
{
"pageId": "100044020664651",
"maxPosts": 50,
"startTime": "1744440142",
"endTime": "1741761742"
}
]
}

Output data

[
{
"statusCode": 200,
"statusMessage": "FOUND",
"text": "2️⃣8️⃣ Happy Birthday, Benny! 🖤❤️💛\n\n#dfbteam | 📸 DFB/Philipp Reinhard",
"pageId": "100044370281791",
"creationDate": "Sunday, February 23, 2025 at 09:21 AM",
"id": "UzpfSTEwMDA0NDM3MDI4MTc5MToxMTc2MDM0MjEzODg1NTc3OjExNzYwMzQyMTM4ODU1Nzc=",
"feedbackId": "ZmVlZGJhY2s6MTE3NjAzNDIxMzg4NTU3Nw==",
"imageUrlList": [
"https://scontent.xx.fbcdn.net/v/t39.30808-6/480489147_1176034190552246_6362498989420048211_n.jpg?stp=dst-jpg_s1080x2048_tt6&_nc_cat=109&ccb=1-7&_nc_sid=127cfc&_nc_ohc=8tNZEltUQjAQ7kNvgEIRh3d&_nc_oc=AdhsyhdM5C-7HYhOBb72h78LO-U1IuaY0H_qUDE9hoQE_hWdUXYOe7FxyAY164iDsLI&_nc_zt=23&_nc_ht=scontent.xx&_nc_gid=APT9nsfQBQhRzDynvboehMN&oh=00_AYAtTKMaBswCu3MJBA9KafqeC_GhZGmBjll9p0rvqZqNMQ&oe=67C2984C"
],
"pageUrl": "https://www.facebook.com/DFBTeam",
"creationTime": 1740302471,
"postUrl": "https://www.facebook.com/DFBTeam/posts/pfbid02Zg6QLAxtJ4NHtuYdBDbvemgvmHJdHGYrDBMCsKX7uZWSVPBELkVqFqVjCh4UpQzbl",
"postId": "1176034213885577",
"reactionCount": 321,
"shareCount": 8,
"commentComment": 32,
"externalUrl": null,
"videoViewCount": 0,
"topReactions": {
"count": 5,
"edges": [
{
"visible_in_bling_bar": true,
"node": {
"id": "1635855486666999",
"localized_name": "Like"
},
"i18n_reaction_count": "1.4K",
"reaction_count": 1487
},
{
"visible_in_bling_bar": true,
"node": {
"id": "1678524932434102",
"localized_name": "Love"
},
"i18n_reaction_count": "787",
"reaction_count": 787
},
{
"visible_in_bling_bar": false,
"node": {
"id": "613557422527858",
"localized_name": "Care"
},
"i18n_reaction_count": "66",
"reaction_count": 66
},
{
"visible_in_bling_bar": false,
"node": {
"id": "478547315650144",
"localized_name": "Wow"
},
"i18n_reaction_count": "10",
"reaction_count": 10
},
{
"visible_in_bling_bar": false,
"node": {
"id": "115940658764963",
"localized_name": "Haha"
},
"i18n_reaction_count": "5",
"reaction_count": 5
}
]
}
}
]

How much does Facebook Posts Scraper V2 cost?

With our Pay-Per-Result pricing model, the cost is completely transparent and predictable, unlike renting actors where expenses can be hard to forecast. The price per result can be easily obtained at the top of this listing page, giving you full visibility into your costs before you start scraping.

What to consider when using this Actor?

We have been performing web crawling activities for over a decade. All our expertise is included in this Actor, this means the user of this Actor is not required to deal with any inconveniences of web scraping.

In detail it means we cover the whole lifecycle including

  1. Proxy Rotation: We use our own proxy pool including several million proxies in all countries worldwide, avoiding that our scraper can be blocked by Facebook.

  2. Geo Targeting: We determine the appropriate proxy location for each request, ensuring reliable data retrieval regardless of where the requested Facebook page is operated.

  3. Captchas and Blocking Handling: Captchas and temporary blocks are completely handled by this Actor under the hood, ensuring the user always gets the required data.

  4. Stability and Reliability: Our Actor is designed to handle large scale requests with error handling and retries for consistent and dependable operation.

More Facebook Actors by Axesso

Looking for a different slice of Facebook data? Axesso offers a full suite of real-time Facebook Actors - each one dedicated to a specific endpoint:

ActorWhat it does
Facebook Comments ScraperScrape real-time comments from public Facebook posts including text, timestamps, author info, and engagement metrics.
Facebook Page Info Scraper V2Scrape real-time information from any public Facebook page, including name, follower and like counts, category, contact details, ...
Facebook Post Details ScraperScrape real-time details for any public Facebook post by URL, including full text content, publish date, image URLs, and engagement ...
Facebook Posts ScraperThe Facebook Posts Scraper retrieves real-time posts from any public Facebook page, including text content, images, timestamps, and ...
Facebook Reels ScraperScrape real-time reels from any public Facebook page, including captions, publish dates, images, video view counts, and engagement ...
Facebook Video Details ScraperScrape real-time details for public Facebook video posts by video ID, including play count, view count, reactions, comments, and media URLs.
Facebook Video Search ScraperSearch Facebook for video posts by keyword, sorting by relevance or most recent.

All Axesso Actors are built and maintained to the same standards: real-time data without caching, high availability and active maintenance, consistent input patterns, and responsive support when you need help. If you are missing a specific endpoint, reach out - the portfolio is continuously growing.

Where else you can find Axesso - Data Service solutions?

Axesso APIs and Actors are available through the Axesso own API Portal and on RapidAPI. Our track record includes thousands of subscribers and stable service for over 5 years.

Use cases for our Axesso Actors

  1. Market Research: Businesses can utilize this Actor to gather social media data, including posts, engagement metrics, and user sentiment. This information helps in understanding market trends, analyzing competitors, and identifying gaps in content strategies.

  2. Brand Monitoring: Companies can track mentions of their brand or products on social media using this Actor. This allows them to respond to customer feedback in real-time, manage their online reputation, and engage with their audience effectively.

  3. Audience Insights: Marketers can analyze social media posts to gain insights into audience preferences, behaviors, and trends. This data can inform content strategies, targeting decisions, and product development.

  4. Content Strategy Development: Brands with active social media presence can use this Actor to monitor trending topics, popular posts, and user-generated content. This helps in crafting relevant and engaging content that resonates with their audience.

  5. Sentiment Analysis: Companies can analyze user comments and reactions on social media to gauge public sentiment about their brand, products, or industry. By identifying common themes, brands can adapt their messaging and improve customer satisfaction.

  6. Lead Generation: Businesses can leverage this Actor to identify potential influencers, partners, or customers by scraping social media for contact information and engagement metrics. This data can be used for targeted outreach and business development efforts.

  7. Content Aggregation and Curation: Content creators, bloggers, and publishers can use this Actor to aggregate social media posts, images, and user feedback to create curated content such as articles, reviews, or social media roundups.

  8. Competitive Analysis: Social media marketers can use this Actor to analyze competitors' posts, engagement strategies, and audience interactions. This data can inform their own social media strategies and help them stay competitive.

  9. Ad Campaign Optimization: Advertisers can gather insights from social media data using this Actor to identify trending topics, popular posts, and effective engagement strategies. This information can be used to optimize ad campaigns and improve overall performance.

Disclaimer

This Actor is not affiliated or partnered with the vendors used in the Actor; only publicly available data is extracted. Users are responsible for ensuring that their use of the Actor and the returned data complies with applicable laws and the requirements of their individual use case.