Skip to main content

Overview

The ScrapeBadger Facebook API turns facebook.com into a clean JSON feed: Marketplace listings, global search across seven tabs, Page and profile detail, Group metadata and feeds, post and comment threads, and the public Ad Library.
All endpoints are GET, live under https://scrapebadger.com/v1/facebook/*, and authenticate with the X-API-Key header. Credits are charged per request (see the table below) and reported on the X-Credits-Used response header.
Global keyword Search (/search, /search/pages, /search/people, /search/groups, /search/posts, /search/places, /search/events) is temporarily unavailable while we expand capacity and currently returns 503 {"error": "temporarily_unavailable"}. Everything else — Marketplace, Pages, profiles, Groups, posts, comments and the Ad Library — is live.
Facebook’s own Graph API exposes no Marketplace inventory at any price, and reading Pages, Groups or posts through Graph requires an owned asset plus an approved permission. This API needs none of that — no Meta developer app, no App Review, no OAuth tokens.

Features

  • Marketplace search — the headline surface. Keyword search across the largest classifieds inventory in the world, with filters for price range, age of listing, condition, delivery method and sort order. Returns price_amount + currency, geo coordinates, photo galleries, condition subtitles, is_sold / is_pending state and the seller actor.
  • Marketplace category browse — walk a whole vertical (vehicles, propertyrentals, electronics, apparel, …) in one location, with the same price and sort filters.
  • Marketplace item detail — the full listing: description body, complete photos[] gallery, vertical-specific attributes (vehicle make/model/ mileage, property beds/baths) and seller profile.
  • Search across seven tabs — one mixed all tab plus pages, people, groups, posts, places and events. Every result carries a type, an id and a canonical URL you can hand straight to a detail endpoint.
  • Pages & profiles — name, category, verification, cover photo, follower / like counts, and the About tile (website, phone, email, address, rating), plus paginated timelines.
  • Groups — privacy, member count, description, creation date, and the group feed with full post objects.
  • Posts & comments — a single post by numeric id, pfbid string, permalink.php form or reel URL, with attachments, reaction breakdown (top_reactions[]), share and comment counts — and the comment thread with author, reactions and reply counts.
  • Ad Library — competitive-intelligence search over Facebook’s public ad archive: creative copy, snapshot URL, flight dates, publisher_platforms[], images/videos and the CTA.

Markets

Marketplace is location-scoped by slug and the Ad Library is country-scoped by ISO code. Search, Pages, Groups and posts are global and need no market parameter.

Credits

Quickstart

Pagination

Every list endpoint uses Facebook’s Relay cursor pagination — there are no page numbers. Read end_cursor from the response and pass it back as the after query parameter while has_next_page is true.
Python

Timestamps

Every datetime ships in both forms: *_utc (Unix seconds, e.g. creation_time_utc) and *_at (ISO 8601 UTC string, e.g. created_at).
Start from /marketplace/search or /search to discover entities, then take the returned id / url into /marketplace/item/{item_id}, /pages/{identifier} or /groups/{group_id} for full detail — search results are deliberately shallow discovery records.