Skip to content
//Facebook Posts Scraper example\\

NASA posts from the last 60 days, 5 posts

Recent posts of a public Facebook page within a date window.

Updated December 3, 2026

What this example returns

This example returns up to 5 posts.

The dataset’s “Overview” view shows 6 columns: Post picture, Post url, Post text, Number of likes, Number of comments, and Number of shares. See every output field.

What each setting does

The input this example runs Facebook Posts Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Facebook URLs startUrls

https://www.facebook.com/NASA/

Public Facebook page URLs, e.g. https://www.facebook.com/humansofnewyork/, or post and reel URLs. Links copied with Facebook's Share button (facebook.com/share/...) work too. Personal profiles can't be scraped.

Results amount resultsLimit

5

How many posts to scrape per page. For example, if set to 5, the scraper extracts up to 5 posts from each page. Ignored for direct post URLs.

Default: 20 → this example uses 5

Posts newer than onlyPostsNewerThan

60 days

Scrape posts from the provided date to the present day (or date set in 'Older than'). The date should be in YYYY-MM-DD absolute format or in relative format, e.g., 1 day, 2 months, 3 years. The JSON input also supports adding time units (UTC timezone): Full or partial ISO timestamp (e.g., `2025-09-23T10:02:01`) as…

.json
{
  "startUrls": [
    {
      "url": "https://www.facebook.com/NASA/"
    }
  ],
  "resultsLimit": 5,
  "onlyPostsNewerThan": "60 days"
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Postfrom $0.001275One Facebook post saved to the dataset
  • Date filter appliedfrom $0.00034One saved post when a date filter (onlyPostsNewerThan or onlyPostsOlderThan) is set
  • Actor start$0.0019Charged once per run.

Full pricing

Other ways to run Facebook Posts Scraper

All examples of Facebook Posts Scraper

About Facebook Posts Scraper

Scrape posts from public Facebook pages and profiles: text, timestamps, reactions, comments and shares counts, media, and links for brand monitoring and research.

Price:
From $1.27 / 1,000 results
Developer:
Echofield
Categories:
Social media, News

Facebook Posts Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.