Facebook GraphQL Scraper
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
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.
- +Lightweight compared with browser automation
- +Recently and actively updated
- +Documentation site with examples
- +Free and open source (MIT)
- −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
- 01Use it when you need posts and comments from public Facebook pages or groups in structured form.
- 02Use it when you want to collect Marketplace listings for a fraud investigation.
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 targetDepends
Quick start
Docs (opens in new tab)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 reviewAlternatives to Facebook GraphQL Scraper
Listed tools that take the same inputs, closest match first.
- Archivarix Tube SearchFreemium · Passive · APIWhat it does
Search engine for deleted YouTube videos that recovers titles, descriptions, thumbnails and subtitles from web archives.
URLUsernameNo ratings yetVerified 2d ago - Arctic ShiftFree · Passive · APIWhat it does
Free Reddit archive with a web search for posts and comments by subreddit, author, date and text, plus an API and dumps.
UsernameURLNo ratings yetVerified 2d ago - Deleted Tweet FinderFree · PassiveWhat it does
Henk van Ess's form that checks a tweet or X profile URL against several web archives and search engine caches in one go.
URLUsernameNo ratings yetVerified yesterday