Signup comes with $1 in credit. No subscription needed.Claim your $1

Tools / Facebook / API

Read a Facebook page's posts from Python without a scraping package

A scraping package such as facebook-scraper runs from your own IP and needs fixing when Facebook changes its pages. From Python you can instead POST social.posts with platform facebook and the page URL to the RouterGrowth API and read the posts from the JSON: text, date, likes, comments, shares and views.

Real run: 5 records $0.007 per post social.posts MCP · REST · CLI

Ask your agent

Write a Python script that reads the last ten posts of five brand pages on Facebook each Monday and saves them to a CSV.

Connect RouterGrowth once, then ask in plain words. New workspaces start with $1 of credit. Get a key or read the setup guide.

A real run

What does it return?

One call to social.posts (social posts & content), run through RouterGrowth on October 19, 2026. These are the first rows it returned; fields that name a person are masked.

5records returned
10.8 sto answer
$0.03675charged for the run
textcreated_atlikesrepliesrepostsviews
It's not pink, it's shrimp. Exceptional gear for uncommon pursuits since 1973. https://pat.ag/F/F26/InnovationUnusual2026-10-142621117772
Bears Ears National Monument in Utah was the first national monument in the United States created at the urging of Tribal Nations, and the…2026-10-12150924171

Five recent posts from Patagonia's Facebook page; the reels carry view counts and the photo posts do not.

Step by step

How do you do it?

  1. Keep the key in the environment

    Export ROUTERGROWTH_API_KEY and send it as a Bearer token from requests or httpx.

  2. POST the run

    Send capability social.posts and input platform facebook, the page URL as handle and a limit to /v1/run.

  3. Loop over result.posts

    Each post is a dict with url, text, created_at, is_video and an engagement dict.

  4. Save it

    Write the rows with csv or pandas, keyed on the post id so repeat runs do not duplicate.

Price

What does it cost?

List prices on Facebook, read from the catalog when this page was built. The exact figure is quoted before every run, and a monthly plan lowers it.

$0.007per post
$0.00175per call, on top of the posts
$0when the call finds nothing

In practice

What do you ask it?

You describe the job; the agent picks the calls, shows the price and runs them.

Write a Python script that reads the last ten posts of five brand pages on Facebook each Monday and saves them to a CSV.

From Python, pull Patagonia's recent Facebook posts and flag the ones with more than 1,000 likes.

Search Facebook for 'repair program' and then read the pages that posted, in one script.

Connect

How do you connect it?

One MCP server for Claude, ChatGPT, Claude Code, Codex and Cursor, or the same call over the CLI and REST with the input above.

MCP server
claude mcp add --transport http routergrowth https://api.routergrowth.com/mcp
CLI
npm install -g routergrowth && routergrowth setup
routergrowth run -c social.posts -i '{"platform": "facebook", "handle": "https://www.facebook.com/patagonia", "limit": 5}'
REST
curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -d '{"capability": "social.posts", "input": {"platform": "facebook", "handle": "https://www.facebook.com/patagonia", "limit": 5}}'

Worth knowing

What should you know first?

No package to patch

The script holds no scraping logic, so a Facebook layout change does not break it.

Your IP is never used

Requests to Facebook come from RouterGrowth's providers, not from the machine running the script.

Views on video only

Reels and videos return a view count; photo and text posts leave it empty.

FAQ

Questions about facebook-scraper python

How is this different from the facebook-scraper package?

The package scrapes from your machine. Here your script makes one HTTP call and the scraping runs on RouterGrowth's providers.

What Python libraries do I need?

Only an HTTP client such as requests or httpx, plus csv or pandas if you save files.

Does it need Facebook cookies?

No. Public pages are read without a Facebook login.

What is in each post?

id, url, text, created_at, author, is_video and engagement with likes, comments, shares and views.

More on Facebook

Related pages

Reading this as an agent? This page as markdown: /tools/facebook/scraper-python.md

One key. Every network.

Connect your agent once. The first calls run on the $1 that comes with signup.