Facebook scraping tutorials
How to get Facebook data with code: 17 endpoints in Python, JavaScript, TypeScript, Go, PHP and cURL, each with a real sample response, parameters, pagination and pricing.
- Facebook Ad Library search
Search the Meta Ad Library by keyword: 30 ads a page with country, status, media, category, language, placement and date filters.
- Facebook Ad Library company ads
Every ad of one advertiser (Facebook Page) in the Meta Ad Library, 30 a page, filterable.
- Facebook Ad Library advertiser search
Find advertisers (Facebook Pages) in the Meta Ad Library by name.
- Facebook Ad Library advertiser profile
An advertiser’s Meta Ad Library profile: Page and Instagram details, political spend, top ad.
- Facebook Ad Library ad details
One Meta Ad Library ad with its details panel (EU reach by age and gender, payer, beneficiary).
- Facebook Marketplace location search
Find Facebook Marketplace places (cities, neighbourhoods, postcodes) with coordinates.
- Facebook Marketplace search
Search Facebook Marketplace listings near a place, with price, condition, delivery, date and sort filters.
- Facebook Marketplace listing
One Facebook Marketplace listing: price, description, location, attributes, photos.
- Facebook Page
A Facebook Page or public profile: name, category, verified, follower counts, photos, intro (contact, website).
- Facebook event search
Search public Facebook events by keyword.
- Facebook city events
The events a city’s Facebook events page shows (logged out).
- Facebook event
A public Facebook event: when, venue, description, hosts, tickets, responses.
- Facebook Page events
The events on a Facebook Page’s Events tab (first grid, logged out).
- Facebook Page photos
The latest photos on a Facebook Page’s Photos tab (first grid, logged out).
- Facebook post
A public Facebook post: message, author, attachments, reactions, comments, shares, views, top comments.
- Facebook post comments
A Facebook post’s comments, paginated, ranked or all.
- Facebook comment replies
Replies to a Facebook comment, paginated.
Facebook API: every endpoint and its price.