Facebook Search Scraper avatar

Facebook Search Scraper

Pricing

from $3.00 / 1,000 results found

Go to Apify Store
Facebook Search Scraper

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

Khadin Akbar

Maintained by Community

Actor stats

0

Bookmarked

8

Total users

2

Monthly active users

15 days ago

Last modified

Features

Limited permissions

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 getWhere it comes from
Ads: text, call to action, landing URL, format, start date, active or not, pageFacebook Ad Library
Advertisers: page name, category, likes, verification, linked Instagram and followersFacebook Ad Library
Events: title, date, place, online or not, interested / going counts, linkFacebook Events
Marketplace: title, price, city, sold or not, delivery, linkFacebook 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 queries and countries; 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).
  • agentSummary in 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 planPrice per result100 results1,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

FieldTypeDefaultWhat it does
querystring-One keyword, e.g. electric bike.
queriesarray-Up to 10 more keywords, searched at the same time.
searchTypestringadsads, advertisers, events or marketplace.
maxResultsinteger50Total results across all keywords and countries (1-500).
country / countriesstring / arrayallAds only: two-letter country codes (up to 10), searched at the same time.
adStatus, adTypestringACTIVE, ALLAds only: running or ended ads; all or political / issue ads.
adSort, exactPhrase, language, mediaType, startDate, endDatemixedoffAds only filters.
locationstring-Marketplace only, required: city or place such as Austin, TX or London, UK.
radiusKm, minPrice, maxPrice, marketSort, condition, deliveryMethod, dateListedmixedoffMarketplace only filters.
concurrencyinteger5Searches at the same time (1-5).
fallbackProviderstringautoData 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.

FieldTypeMeaning
searchTypestringSurface that produced the result.
resultTypestringRecord kind such as event, marketplaceListing, ad, or advertiser.
querystringKeyword used in the search.
positioninteger1-based rank in the run.
idstring or nullFacebook object ID.
urlstring or nullCanonical Facebook URL.
titlestring or nullDisplay name for the result.
imageUrlstring or nullPrimary image or cover photo.
startTimestring or nullEvent start time in ISO 8601 format.
startTimestampinteger or nullEvent start timestamp in seconds.
dateTextstring or nullHuman-readable event date text.
placeNamestring or nullEvent venue or place.
isOnlineboolean or nullWhether the event is online.
isPastboolean or nullWhether the event has already happened.
interestedCountinteger or nullEvent interest count.
goingCountinteger or nullEvent going count.
priceTextstring or nullMarketplace price or event ticket price text.
pricenumber or nullMarketplace numeric price.
citystring or nullMarketplace city.
statestring or nullMarketplace state or region.
locationNamestring or nullMarketplace display location.
isSoldboolean or nullMarketplace sold status.
deliveryTypesarrayMarketplace delivery or pickup options.
pageNamestring or nullAd or advertiser page name.
pageIdstring or nullAd or advertiser page ID.
adArchiveIdstring or nullAd Library archive ID.
isActiveboolean or nullWhether the ad is currently running.
startDatestring or nullAd start date in ISO 8601 format.
endDatestring or nullAd end date in ISO 8601 format.
ctaTextstring or nullAd call-to-action label.
ctaTypestring or nullAd call-to-action type code.
linkUrlstring or nullAd landing page URL.
adTextstring or nullPrimary ad copy.
displayFormatstring or nullAd creative format.
pageCategoriesarrayAd page categories.
categorystring or nullAdvertiser page category.
likesinteger or nullAdvertiser page like count.
verificationstring or nullAdvertiser verification status.
igUsernamestring or nullLinked Instagram username.
igFollowersinteger or nullLinked Instagram follower count.
pageAliasstring or nullPage vanity handle.
countrystring or nullAdvertiser page country.
searchCountrystring or nullCountry this ad search was scoped to (ads, when you gave countries).
scrapeSourcestringData route that returned the record.
scrapedAtstringISO 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

FAQ

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.