Skip to content
OSINTtools.io

Facebook GraphQL Scraper

Verified 2d ago

Python library that collects Facebook profiles, posts, comments, reactions, groups and Marketplace data through Facebook's GraphQL.

Python library · Open source · Social media intelligence · github.com

Takes
Username · URL
Pricing
Free, open source
Footprint
Passive · no contact with target
Account
Not needed
API
No public API
Last verified
Nov 26, 2026
Summary

Python library that collects Facebook profiles, posts, comments, reactions, groups and Marketplace data through Facebook's GraphQL. It takes username and URL. Read the cons before you build a workflow on it.

What it does

facebook-gql-scraper is a Python package that requests data from the GraphQL endpoints Facebook's own web app uses, instead of parsing pages or driving a browser. It covers profiles, posts, comments, reactions, groups, Marketplace and search, and when Facebook rotates its internal query IDs it rediscovers them automatically with a small embedded JavaScript engine.

Investigators use it to collect public Facebook content into structured data for analysis. Anonymous mode needs no account but is rate-limited and may miss data; authenticated mode uses session cookies you export from your own browser and gives broader access.

Footprint is passive: it reads its own index or third-party records and does not contact the target. No account is needed. There is no public API.

Pros
  • +Lightweight compared with browser automation
  • +Recently and actively updated
  • +Documentation site with examples
  • +Free and open source (MIT)
Cons
  • −Uses Facebook's internal endpoints, which breaks its terms and can change without notice
  • −Anonymous mode is heavily rate-limited
  • −Cookie mode risks the account you use

When to use it

  1. 01Use it when you need posts and comments from public Facebook pages or groups in structured form.
  2. 02Use it when you want to collect Marketplace listings for a fraud investigation.
Key featuresProfiles, posts and commentsReactions and groupsMarketplace and searchAutomatic query ID rediscoveryAnonymous or cookie-based modeNo headless browser

Next steps from this result

Suggested from the inputs Facebook GraphQL Scraper takes
  • Found a resultConfirm it with a second, independent source before you record it
  • Found a new identifierPivot on it only if your scope covers the new target
    Depends
Install from PyPI
pip install facebook-gql-scraper

Technical details

Listing verified by an editor on Nov 26, 2026
API
No public API
Account
Not needed
Footprint
Passive · no contact with target
Pricing
Free, open source
Platforms
Python library
Repository
XD-MHLOO/facebook-gql-scraper 97 stars
Language
Python
Licence
MIT
Last commit
Nov 2026
Listed
Nov 26

Reviews

No reviews yet

Written by signed-in members. Each review appears here after an editor has read it.

Used Facebook GraphQL Scraper? Sign in to say what you used it for and how it went.

Sign in to review

Alternatives to Facebook GraphQL Scraper

Listed tools that take the same inputs, closest match first.

Facebook GraphQL ScraperOpen source · verified 2d ago
Visit github.com (opens in new tab)