Facebook Search Scraper
Pricing
from $3.00 / 1,000 results found
Facebook Search Scraper
Search Facebook by keyword across Events, Marketplace and the Ad Library (ads and advertisers) in one Actor. No login or cookies needed.
Pricing
from $3.00 / 1,000 results found
Rating
0.0
(0)
Developer
Khadin Akbar
Maintained by CommunityActor stats
0
Bookmarked
8
Total users
2
Monthly active users
15 days ago
Last modified
Categories
Features
Share
What is Facebook Search Scraper?
Search Facebook by keyword and get clean rows from four places that need no login: Ad Library ads, Ad Library advertisers, Events and Marketplace listings. Give one keyword or up to ten, one country or several, and get one flat record per result: ad copy, landing page, run dates, advertiser page and Instagram link, event date and place, Marketplace price and city. Built for marketers, ad researchers, event sourcers, resellers and AI agents that need "search Facebook for X" as one tool call.
| You get | Where it comes from |
|---|---|
| Ads: text, call to action, landing URL, format, start date, active or not, page | Facebook Ad Library |
| Advertisers: page name, category, likes, verification, linked Instagram and followers | Facebook Ad Library |
| Events: title, date, place, online or not, interested / going counts, link | Facebook Events |
| Marketplace: title, price, city, sold or not, delivery, link | Facebook Marketplace |
Public keyword search of posts, people and groups is not part of this Actor (Facebook keeps it behind login).
What's new (16 Nov 2026)
- Ad search fixed. Earlier versions could return only a handful of ads for a keyword. Ads now return a full result set.
- Many keywords and countries at once. Use
queriesandcountries; up to 5 searches run at the same time and results are merged and de-duplicated. - Ad filters: sort by most seen or newest, language, media type (image, video, text only), date range, exact phrase.
- Marketplace filters: radius, minimum and maximum price, condition, delivery, listed within, sort. "Austin, TX" now finds Austin, Texas (not another Austin).
- Up to 500 events per run (the old limit was lower).
agentSummaryin the run summary: counts per keyword, top advertisers, price range, next event and a next-step hint.- Store discounts: cheaper per result on higher Apify plans.
Pricing
Pay per result. You pay for the results delivered, plus a tiny start fee. Your price per result depends on your Apify plan:
| Apify plan | Price per result | 100 results | 1,000 results |
|---|---|---|---|
| Free | $0.0050 | $0.50 | $5.00 |
| Bronze | $0.0045 | $0.45 | $4.50 |
| Silver | $0.0038 | $0.38 | $3.80 |
| Gold and above | $0.0030 | $0.30 | $3.00 |
Start fee: $0.00005 per run. Free-plan accounts can return up to 100 results per run. Set maxResults to cap what a run can cost: the Actor never charges for more results than maxResults, and stops when your run budget is used up. An empty search costs only the start fee.
Input
| Field | Type | Default | What it does |
|---|---|---|---|
query | string | - | One keyword, e.g. electric bike. |
queries | array | - | Up to 10 more keywords, searched at the same time. |
searchType | string | ads | ads, advertisers, events or marketplace. |
maxResults | integer | 50 | Total results across all keywords and countries (1-500). |
country / countries | string / array | all | Ads only: two-letter country codes (up to 10), searched at the same time. |
adStatus, adType | string | ACTIVE, ALL | Ads only: running or ended ads; all or political / issue ads. |
adSort, exactPhrase, language, mediaType, startDate, endDate | mixed | off | Ads only filters. |
location | string | - | Marketplace only, required: city or place such as Austin, TX or London, UK. |
radiusKm, minPrice, maxPrice, marketSort, condition, deliveryMethod, dateListed | mixed | off | Marketplace only filters. |
concurrency | integer | 5 | Searches at the same time (1-5). |
fallbackProvider | string | auto | Data route choice; leave on auto. |
Example (5 keywords, 3 countries, newest video ads):
{"queries": ["electric bike", "e-scooter", "folding bike", "cargo bike", "bike helmet"],"searchType": "ads","countries": ["US", "GB", "CA"],"adSort": "recent","mediaType": "VIDEO","maxResults": 500}
Output
Each dataset item is one search result; the run summary (OUTPUT) holds agentSummary. Fields are populated according to the surface that produced the record.
| Field | Type | Meaning |
|---|---|---|
searchType | string | Surface that produced the result. |
resultType | string | Record kind such as event, marketplaceListing, ad, or advertiser. |
query | string | Keyword used in the search. |
position | integer | 1-based rank in the run. |
id | string or null | Facebook object ID. |
url | string or null | Canonical Facebook URL. |
title | string or null | Display name for the result. |
imageUrl | string or null | Primary image or cover photo. |
startTime | string or null | Event start time in ISO 8601 format. |
startTimestamp | integer or null | Event start timestamp in seconds. |
dateText | string or null | Human-readable event date text. |
placeName | string or null | Event venue or place. |
isOnline | boolean or null | Whether the event is online. |
isPast | boolean or null | Whether the event has already happened. |
interestedCount | integer or null | Event interest count. |
goingCount | integer or null | Event going count. |
priceText | string or null | Marketplace price or event ticket price text. |
price | number or null | Marketplace numeric price. |
city | string or null | Marketplace city. |
state | string or null | Marketplace state or region. |
locationName | string or null | Marketplace display location. |
isSold | boolean or null | Marketplace sold status. |
deliveryTypes | array | Marketplace delivery or pickup options. |
pageName | string or null | Ad or advertiser page name. |
pageId | string or null | Ad or advertiser page ID. |
adArchiveId | string or null | Ad Library archive ID. |
isActive | boolean or null | Whether the ad is currently running. |
startDate | string or null | Ad start date in ISO 8601 format. |
endDate | string or null | Ad end date in ISO 8601 format. |
ctaText | string or null | Ad call-to-action label. |
ctaType | string or null | Ad call-to-action type code. |
linkUrl | string or null | Ad landing page URL. |
adText | string or null | Primary ad copy. |
displayFormat | string or null | Ad creative format. |
pageCategories | array | Ad page categories. |
category | string or null | Advertiser page category. |
likes | integer or null | Advertiser page like count. |
verification | string or null | Advertiser verification status. |
igUsername | string or null | Linked Instagram username. |
igFollowers | integer or null | Linked Instagram follower count. |
pageAlias | string or null | Page vanity handle. |
country | string or null | Advertiser page country. |
searchCountry | string or null | Country this ad search was scoped to (ads, when you gave countries). |
scrapeSource | string | Data route that returned the record. |
scrapedAt | string | ISO 8601 timestamp when the record was emitted. |
Example record
{"searchType": "ads","resultType": "ad","query": "electric bike","position": 1,"id": "1378176106734781","adArchiveId": "1378176106734781","url": "https://www.facebook.com/ads/library/?id=1378176106734781","title": "Summer Sale - 40% Off E-Bikes","imageUrl": "https://scontent.xx.fbcdn.net/example.jpg","pageName": "VoltRide","pageId": "119749581219299","isActive": true,"startDate": "2026-05-01T00:00:00.000Z","ctaText": "Shop now","ctaType": "SHOP_NOW","linkUrl": "https://voltride.com/summer","adText": "Ride further for less...","displayFormat": "IMAGE","pageCategories": ["Sporting goods"],"scrapedAt": "2026-07-01T12:00:00.000Z"}
Run summary (OUTPUT and RUN_SUMMARY)
{"ok": true,"searchType": "ads","totalResults": 500,"queries": ["electric bike", "e-scooter"],"resultsPerQuery": {"electric bike": 250, "e-scooter": 250},"topAdvertisers": [{"name": "VoltRide", "count": 12}],"activeAds": 500,"limitReached": true,"parallelSearches": 2,"durationSecs": 9.4,"nextStep": "Pass a top advertiser page name or adArchiveId to a detail scraper, or rerun with country, language, mediaType or date filters to narrow."}
How it works
No login, no cookies, no browser. Each keyword (and country) becomes one search; up to five run at once. Paging inside one search follows Facebook's own page order, so a single keyword in a single country is read page by page. Results are normalized into one flat format, de-duplicated and written as they arrive. If the main data route has a temporary problem, the Actor retries once and then tries the backup route (some advanced filters may be ignored on the backup; the run summary says so). If no data route answers at all, the run fails honestly instead of reporting an empty success. Zero matches for a real keyword is reported as an empty result, not an error.
Use with AI agents (MCP)
Tool name: khadinakbar/facebook-search-scraper. One call = keyword in, flat records out, plus agentSummary with counts and a suggested next step.
Search Facebook ads for "electric bike" in the US and UK, newest first, max 100. Which advertisers appear most?
Tips: resultType tells you the record kind; url and id are the safe handoff to a detail Actor; maxResults caps both rows and cost.
import { ApifyClient } from "apify-client";const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor("khadinakbar/facebook-search-scraper").call({queries: ["electric bike", "e-scooter"], searchType: "ads", countries: ["US", "GB"], maxResults: 100,});const { items } = await client.dataset(run.defaultDatasetId).listItems({ clean: true });console.log(items.length);
Continue the workflow
- Facebook Ads Library Scraper: deep ad details for the advertisers you found.
- Facebook Marketplace Scraper: focused Marketplace work.
- Facebook Comments Scraper: read comments on a post URL.
- Facebook Page Scraper: page details for an advertiser or event host.
- Facebook Group Posts Scraper: posts from a public group.
- Meta Ad Library Scraper: another route into Meta ad creatives.
FAQ
Which Facebook surfaces does this search?
Ad Library ads, Ad Library advertisers, Events and Marketplace.
Can it search posts, groups or people?
No. Facebook only lets logged-in users keyword-search those, and this Actor never asks for a login.
How do I search many keywords?
Put them in queries (up to 10). They run up to 5 at a time and share one maxResults limit.
How do I search ads in several countries?
Put the codes in countries, e.g. ["US","GB","CA"]. Each keyword is searched in each country.
What should I put in location for Marketplace?
A city with its state or country, such as Austin, TX or London, UK. The run summary shows which place was used.
Why did I get fewer results than maxResults?
Facebook had fewer matching results, or your filters were narrow. You are charged only for rows delivered.
How is the price calculated?
Results delivered x your plan's price per result, plus the $0.00005 start fee. See the table above.
Will a big run be slow?
One keyword in one country is read page by page (ads about 30 per page, advertisers about 15 once, events about 5 per page, Marketplace about 24). Many keywords or countries run in parallel, so they finish much faster than one after another.
Responsible use
This Actor reads public Facebook search surfaces only, without login. Use results in line with Facebook's terms, Apify's terms and the laws that apply to you, including privacy law for any personal data in event or listing text.