All scrapers

Social & video

Facebook

facebook.com

100% Success rate
5.4s Avg response
Bot detection + rate limiting Protection
1,000 calls Measured over

Only publicly visible content is reachable, which in practice means business pages, public posts and marketplace listings. That is usually what commercial monitoring needs anyway.

What you can extract

  • Public page name, category and about text
  • Public post text, reactions and comment counts
  • Business contact details and opening hours
  • Marketplace listing title and price
  • Follower and like counts

How to scrape it

curl -X POST \
  -H "X-ScrapeUnblocker-Key: $SU_API_KEY" \
  "https://api.scrapeunblocker.com/getPageSource?url=https%3A%2F%2Fwww.facebook.com%2F&parsed_data=true"
import requests

resp = requests.post(
    "https://api.scrapeunblocker.com/getPageSource",
    headers={"X-ScrapeUnblocker-Key": SU_API_KEY},
    params={"url": "https://www.facebook.com/", "parsed_data": True},
)
print(resp.text)
import { ScrapeUnblockerClient } from 'scrapeunblocker';

const su = new ScrapeUnblockerClient({ apiKey: process.env.SU_API_KEY });

const results = await su.getPageSource({
  url: 'https://www.facebook.com/',
  parsedData: true,
});
console.log(results);

Requests are POST and take their parameters in the query string. Browser rendering always happens - there is no flag to enable.

Read the API docs

Related scrapers

Start scraping this site today

Free tier included. No credit card required to test it.