# Facebook Search Scraper (`neuro-scraper/facebook-search-scraper`) Actor

Facebook Search Scraper SD - Facebook Search Scraper is a social media data tool that extracts Facebook keyword search results: public posts (text, author, date, reactions by type, comments, shares, media), pages, people, places and videos, with date, recent and category filters, page after page, no

- **URL**: https://apify.com/neuro-scraper/facebook-search-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** Social media, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Facebook Search Scraper

> **Also from neuro-scraper:** the [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - export public Facebook Reels with views, reactions, comments, captions and video links in one click.

**Facebook Search Scraper** extracts Facebook keyword search results the way Facebook's own search box shows them: public posts with text, author, date, reactions by type, comments, shares, photos, videos and the comments Facebook previews, plus pages, people, places and videos for any keyword. For pages, people and places the Facebook Search Scraper also opens each result and adds its public profile: category, followers, likes, intro, address, rating, price range, services, websites, other social accounts and recent posts. The Facebook Search Scraper runs on Apify, needs no Facebook account, no login and no cookies, and it delivers clean rows you can download as JSON, CSV, Excel or HTML, or pull through the Apify API. It serves social media marketers, brand and reputation monitoring teams, agencies, lead researchers who look for businesses by keyword, journalists and academic researchers.

#### What the Facebook Search Scraper does

- Five search types: public **posts**, **pages**, **people** (public profiles), **places** (local businesses) and **videos** - the same tabs as Facebook's search.
- Posts: text, author (name, id, link, picture, type), exact time, reactions in total and by type (like, love, care, haha, wow, sad, angry), comments, shares, views of video posts, photos with size and description, video files with length, shared links, shared original posts, group, audience, hashtags, mentions and up to 10 comments Facebook shows with the post.
- Pages, people and places: name, link, picture, verified badge, Facebook's result line and - with profile details - category, followers, likes, intro, address, rating, price range, services, websites, other social accounts, recent public posts and, for personal profiles, city, hometown, work and education.
- Filters: recent posts, a date range, a tagged location, an exact phrase, text must contain the keyword, minimum reactions, page category, place filters (open now, delivery, takeout) and video upload date.
- Several keywords in one run, a limit per keyword that follows Facebook's own next-page cursor, a total limit and an only-new mode for monitoring.

Every row the Facebook Search Scraper returns has the same columns in the same order (the column names of the most used Facebook search tools are included, so switching is easy), numbers are real numbers and times are ISO 8601 in UTC.

#### Why use the Facebook Search Scraper?

Searching Facebook by hand means scrolling, opening every post and copying numbers. The Facebook Search Scraper does it for you at scale and on a schedule: paste your keywords, press Start, and the Facebook Search Scraper returns structured rows in minutes. Because the Facebook Search Scraper follows Facebook's own "next page" for every keyword, a limit of 200 really gives up to 200 results (or everything Facebook shows, when that is less). The Facebook Search Scraper reports in its log and final status message which keywords failed and why, so nothing is lost silently.

- Brand and campaign monitoring: schedule the Facebook Search Scraper with only-new mode and get every new public post that mentions your brand.
- Market research: see which posts about a topic get the most reactions, comments and shares.
- Local lead lists: search places or pages for "coffee shop" or "dentist" and get categories, addresses, ratings and websites.
- Influencer and creator discovery: search pages and people for a niche and compare followers.
- Research: build datasets of public Facebook posts for a keyword and a date range.

#### How to use the Facebook Search Scraper

1. Open the Facebook Search Scraper in Apify Console and click **Try for free** (an Apify account is free to create).
2. Fill in the input. `searchQueries` is the only required field (one keyword per line). Choose `searchType` (posts by default) and `maxItems` per keyword; everything else is optional.
3. Click **Start**. The log shows one line per result page: `"coffee" (posts): page 2, 15 new results, 30 kept` - how many new results Facebook sent and how many passed your filters. It also says when Facebook reports no further page.
4. Download the results as JSON, CSV, Excel, XML or HTML from the Output tab, or read them through the Apify API (see below).
5. To repeat it, create a Schedule in Apify Console (daily or hourly), turn on `onlyNewResults`, and connect an integration - Google Sheets, Zapier, Make, n8n, Slack or a webhook.

#### Input of the Facebook Search Scraper

| Field | Type | Default | What it does |
|---|---|---|---|
| `searchQueries` | array | \["coffee"] (prefill) | Keywords, one per line. |
| `searchType` | string | "posts" | posts, pages, people, places or videos. |
| `maxItems` | integer | 20 | Results per keyword (1-5000). |
| `sortBy` | string | "top" | top or recent (posts, videos). |
| `startDate` | string | - | Earliest post date (posts). |
| `endDate` | string | - | Latest post date (posts). |
| `locationUid` | string | - | Tagged-location id (posts). |
| `videoDate` | string | "" | today, this week, this month (videos). |
| `pageCategory` | string | "" | Page category (pages). |
| `placeFilters` | array | - | open_now, delivery, takeout ... (places). |
| `exactMatch` | boolean | false | Exact phrase. |
| `mustContainQuery` | boolean | false | Post text must contain the keyword. |
| `minReactions` | integer | 0 | Minimum reactions (posts). |
| `includeProfileDetails` | boolean | true | Open each page / person / place for its profile. |
| `onlyNewResults` | boolean | false | Only results not delivered before. |
| `maxTotalItems` | integer | 0 | Total limit for the run (0 = none). |
| `proxyConfiguration` | object | residential | Proxy settings. |

Example input for the Facebook Search Scraper (20 public posts about coffee):

```json
{
  "searchQueries": ["coffee"],
  "searchType": "posts",
  "maxItems": 20
}
```

More ready-to-copy inputs for the Facebook Search Scraper:

Brand monitoring - the newest posts of 2026 that really contain the brand name and have at least 10 reactions, only new ones on every scheduled run:

```json
{
  "searchQueries": ["electric cars", "#tesla"],
  "searchType": "posts",
  "sortBy": "recent",
  "startDate": "2026-01-01",
  "mustContainQuery": true,
  "minReactions": 10,
  "onlyNewResults": true,
  "maxItems": 100
}
```

Local leads - 50 coffee shop pages per keyword in the "local business or place" category, each with its address, rating, followers and websites:

```json
{
  "searchQueries": ["coffee shop", "roastery"],
  "searchType": "pages",
  "pageCategory": "local business or place",
  "includeProfileDetails": true,
  "maxItems": 50
}
```

Places that deliver and are open now, and the most recent videos of this week about a topic:

```json
{
  "searchQueries": ["pizza"],
  "searchType": "places",
  "placeFilters": ["open_now", "delivery"],
  "maxItems": 30
}
```

```json
{
  "searchQueries": ["street food"],
  "searchType": "videos",
  "sortBy": "recent",
  "videoDate": "this week",
  "maxItems": 40,
  "maxTotalItems": 40
}
```

#### Features and how they work in the Facebook Search Scraper

The Facebook Search Scraper returns one row per search result. Every input option is explained below: what it does, how the Facebook Search Scraper applies it, its values and default, an example, a tip and how it combines with the other options.

##### `searchQueries` - the keywords

**What it does:** the words the Facebook Search Scraper searches for, one per line. **How it works:** every keyword is searched on its own in the chosen `searchType`, with its own limit; duplicates are removed, a hashtag such as #travel is searched as typed. **Values:** array of strings; prefilled with coffee. **Example:** `"searchQueries": ["coffee", "electric cars", "#travel"]`. **Tip:** Facebook also matches comments, authors and links, so a short keyword can bring loosely related posts - use `mustContainQuery` or `exactMatch` to tighten it. **Combinations:** the number of rows is keywords x `maxItems`; `maxTotalItems` caps the run.

##### `searchType` - which search tab

**What it does:** chooses what the Facebook Search Scraper looks for. **How it works:** `posts` returns public posts (about 15 per result page), `pages` returns Facebook pages (about 7 per page), `people` public personal profiles, `places` local businesses and `videos` Facebook videos (about 21 per page); every type follows Facebook's next-page cursor. Groups and events are not offered because Facebook returns no group or event results to visitors who are not logged in (measured). **Values:** `posts`, `pages`, `people`, `places`, `videos`; default `posts`. **Example:** `"searchType": "pages"`. **Tip:** run two searches (posts and pages) for the same keyword to get both conversations and businesses. **Combinations:** several filters work for one type only - each filter below says which.

##### `maxItems` - results per keyword

**What it does:** sets how many results the Facebook Search Scraper returns for each keyword. **How it works:** the limit is per keyword: 2 keywords x 20 = up to 40 rows. Facebook's next-page cursor is followed until the number is reached, Facebook reports no further page, or two pages in a row bring nothing new (measured: pages 22 results over 3 pages, posts 22 over 2 pages). Results removed by filters do not count. **Values:** integer 1-5000; default 20. **Example:** `"maxItems": 200`. **Tip:** you get fewer rows than the limit when Facebook simply has no more results for the keyword - the log says so. **Combinations:** `maxTotalItems` stops the whole run earlier.

##### `sortBy` - top or recent

**What it does:** switches between Facebook's best-match order and the newest results. **How it works:** for posts, `recent` turns on Facebook's own "Recent posts" filter (measured: all 30 posts from the day of the run); for videos it uses Facebook's "Most recent" sort; pages, people and places ignore it. The value used is written to `sort`. **Values:** `top` or `recent`; default `top`. **Example:** `"sortBy": "recent"`. **Tip:** use `recent` with a schedule and `onlyNewResults` for monitoring. **Combinations:** works together with `startDate` / `endDate` on posts.

##### `startDate` - posts from a date

**What it does:** keeps only posts published on or after this date. **How it works:** the Facebook Search Scraper sends the date range to Facebook as its own "Date posted" filter (whole months) and then checks every post's exact time again, so the rows match your exact dates (measured: a 2024 range gave 33 posts, all dated within 2024). **Values:** a date such as 2026-01-01 or a relative age such as "30 days"; empty = no lower bound. **Example:** `"startDate": "30 days"`. **Tip:** a value that is not a date is ignored with a warning in the log. **Combinations:** posts only; combine with `endDate` for a window and `sortBy: "recent"`.

##### `endDate` - posts to a date

**What it does:** keeps only posts published on or before this date. **How it works:** like `startDate`, it goes into Facebook's "Date posted" filter and is checked again on every post's exact time; without `startDate` the window starts at Facebook's first day. **Values:** a date such as 2026-06-30, a relative age or "today"; empty = no upper bound. **Example:** `"endDate": "2025-12-31"`. **Tip:** use both dates to collect one month or one campaign period. **Combinations:** posts only.

##### `locationUid` - tagged location

**What it does:** asks Facebook for posts tagged at a city or place. **How it works:** give the numeric Facebook id of the place (for example 108424279189115 = New York, New York); the Facebook Search Scraper sends it as Facebook's tagged-location filter. Facebook uses it as a preference, not a strict filter: measured 2026-11-21, 4 of 20 "pizza" results were tagged at New York - those rows carry the id in `taggedLocationId`, so you can keep the exact matches. A value that is not a number is ignored with an ERROR in the log. **Values:** text with digits; empty by default. **Example:** `"locationUid": "108424279189115"`. **Tip:** the id is the number in a place's Facebook link. **Combinations:** posts only; works with the date filters.

##### `videoDate` - video upload date

**What it does:** keeps videos uploaded today, this week or this month. **How it works:** the Facebook Search Scraper reads the list of filters Facebook offers for video search on every run and sends Facebook's own value for your choice; when Facebook does not offer it, the log says so and the search runs without it. **Values:** `""`, `today`, `this week`, `this month`; default empty. **Example:** `"videoDate": "this week"`. **Tip:** combine with `sortBy: "recent"` for the freshest videos first. **Combinations:** videos only.

##### `pageCategory` - page category

**What it does:** limits page results to one Facebook page category. **How it works:** the category names are matched against the category filter Facebook sends with the first result page of every run, so the value always fits Facebook's current list; an unknown name is reported in the log with the categories Facebook offered. **Values:** `local business or place`, `company, organization or institution`, `brand or product`, `artist, band or public figure`, `entertainment`, `cause or community`, or empty; default empty. **Example:** `"pageCategory": "brand or product"`. **Tip:** `local business or place` is the best choice for local lead lists. **Combinations:** pages only; profile details are added as usual.

##### `placeFilters` - place filters

**What it does:** applies Facebook's own place filters such as open now, delivery or takeout. **How it works:** each name is matched against the filter list Facebook sends for place search on every run (open_now, delivery, takeout, price ...); names Facebook does not offer are reported in the log and skipped. **Values:** array of filter names; empty by default. **Example:** `"placeFilters": ["open_now", "delivery"]`. **Tip:** open now depends on the time of the run, so schedule it at the hour you care about. **Combinations:** places only.

##### `exactMatch` - exact phrase

**What it does:** asks Facebook for results that match the keyword exactly. **How it works:** the Facebook Search Scraper turns on the exact-match switch of Facebook's search for every keyword, which keeps multi-word keywords together ("electric cars" instead of electric or cars). **Values:** true or false; default false. **Example:** `"exactMatch": true`. **Tip:** it can reduce the number of results strongly for long phrases. **Combinations:** works with every search type; for posts combine with `mustContainQuery` to check the text yourself.

##### `mustContainQuery` - text must contain the keyword

**What it does:** drops posts whose text does not contain the keyword. **How it works:** Facebook also returns posts because of comments, author names or links; with this option the Facebook Search Scraper checks the post text itself (without upper / lower case, # removed) and skips the rest, and `matches_query` shows the check on every row. **Values:** true or false; default false. **Example:** `"mustContainQuery": true`. **Tip:** turn it on for brand monitoring so every row really mentions the brand. **Combinations:** posts only; skipped posts do not count toward `maxItems`.

##### `minReactions` - minimum reactions

**What it does:** skips posts with fewer reactions than this number. **How it works:** the Facebook Search Scraper compares `reactionsCount` of every post with the number and keeps only posts that reach it; 0 keeps all. **Values:** integer 0 or more; default 0. **Example:** `"minReactions": 100`. **Tip:** a high value with a rare keyword can return few rows, because Facebook runs out of results before enough posts reach the threshold. **Combinations:** posts only; works with every other post filter.

##### `includeProfileDetails` - profile details for pages, people and places

**What it does:** adds the public profile of every page, person or place result. **How it works:** the Facebook Search Scraper opens each result once and reads its header and intro card: `categories`, `followers`, `likes`, `bio` / `intro`, `address`, `rating`, `priceRange`, `services`, `website(s)`, `alternativeSocialMedia`, `info` (hours and other lines), `messenger`, `payment`, `personalProfile` (for personal profiles) and up to 3 recent public `posts`; `details_status` says ok, not requested, or why a profile could not be opened. Email addresses and phone numbers are never returned. **Values:** true or false; default true. **Example:** `"includeProfileDetails": false`. **Tip:** turn it off for a fast list of names and links - one request per result is saved. **Combinations:** pages, people and places only; posts and videos are complete without it.

##### `onlyNewResults` - monitoring mode

**What it does:** returns only results that earlier runs have not delivered yet. **How it works:** the Facebook Search Scraper remembers the ids it delivered per keyword and search type in a named storage that persists between runs, and skips them next time; the first run returns everything. **Values:** true or false; default false. **Example:** `"onlyNewResults": true`. **Tip:** schedule the run hourly or daily with `sortBy: "recent"` to get a feed of new posts. **Combinations:** skipped known results do not count toward `maxItems`, so every run can still fill its limit with new ones.

##### `maxTotalItems` - limit for the whole run

**What it does:** stops the Facebook Search Scraper after this many rows in total. **How it works:** every saved row counts across all keywords; when the total is reached the run ends cleanly and the log says so. 0 means no total limit (only `maxItems` per keyword applies). **Values:** integer 0 or more; default 0. **Example:** `"maxTotalItems": 500`. **Tip:** the safest cost cap when you add many keywords. **Combinations:** keywords are read in input order, so the first keywords fill the total first.

##### `keywordFilter` - a second word the post must contain

**What it does:** keeps only posts whose text contains this word or phrase. **How it works:** after Facebook's search, the Facebook Search Scraper checks every post text without regard to upper or lower case and skips posts without the phrase; skipped posts do not count toward `maxItems`, so further pages are read. **Values:** text, optional. **Example:** `"searchQueries": ["coffee"], "keywordFilter": "latte"`. **Tip:** use it to narrow a broad search to one product or topic. **Combinations:** posts only; works with `mustContainQuery`, the dates and `minReactions`.

##### `postType` - only one kind of post

**What it does:** keeps only photos, videos / reels, link posts, text-only posts or shares. **How it works:** every post is classified in `postFormat` (text, photo, video, reel, link, share) and the Facebook Search Scraper keeps only the chosen kind; other posts do not count toward the limit. **Values:** `all`, `photo`, `video`, `link`, `text`, `share`; default `all`. **Example:** `"postType": "video"`. **Tip:** `video` includes reels. **Combinations:** posts only; works with every other post filter.

##### `postSource` - where the post was published

**What it does:** keeps posts from public groups only, from pages and profiles only, or from business pages only. **How it works:** every post row knows its group (`groupId`) and the kind of author (`authorType`); the Facebook Search Scraper keeps only the chosen source. **Values:** `all`, `groups`, `pages_and_profiles`, `business_pages`; default `all`. **Example:** `"postSource": "groups"`. **Tip:** group posts are where customers talk among themselves - good for research. **Combinations:** posts only.

##### `compact` - only the main columns

**What it does:** keeps the rows short. **How it works:** with true the Facebook Search Scraper fills only the main columns (`url`, `text`, `time`, `authorName`, `authorUrl`, counts, `postFormat`, media links, `linkUrl`, `groupName` and for pages `categories`, `followers`, `address`, `rating`, `website`) and leaves the others empty; the column order stays the same. **Values:** true or false; default false. **Example:** `"compact": true`. **Tip:** handy for spreadsheets and for feeding an AI tool. **Combinations:** independent of the filters; the price per row is the same.

##### `maxConcurrency` - keywords searched at the same time

**What it does:** sets how many keywords the Facebook Search Scraper searches in parallel. **How it works:** every keyword runs on its own connection and IP address and follows its own next-page cursor; rows of all keywords arrive together, and only a short random pause (0.3-0.9 s) separates two result pages. **Values:** integer 1-20; default 5. **Example:** `"maxConcurrency": 3`. **Tip:** lower it if the log shows refused pages. **Combinations:** changes only the speed, never the rows or the price.

##### `proxyConfiguration` - proxy

**What it does:** chooses the proxy of the Facebook Search Scraper. **How it works:** Facebook limits visitors who are not logged in per IP address; Apify residential proxies (the default) give the most reliable results, and when Facebook refuses a page the Facebook Search Scraper retries and then continues on a fresh IP from the same cursor. **Values:** Apify proxy settings; default residential. **Example:** `"proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"]}`. **Tip:** keep the default; datacenter IPs are refused far more often. **Combinations:** independent of the other options.

#### Output of the Facebook Search Scraper

Each dataset row of the Facebook Search Scraper holds the fields below. A field is empty (null) only when Facebook does not publish that value for the result or the option that fills it is off - the table says when. "Search types" says which result types fill the field; the other types leave it empty.

| Field | Search types | Meaning | Empty when |
|---|---|---|---|
| `searchQuery` | all | The keyword that found the result | never |
| `searchType` | all | posts, pages, people, places or videos | never |
| `position` | all | Position of the result for its keyword in this run | never |
| `id` | all | Id of the post, video, page, person or place | never |
| `url` | all | Link to the result | rarely, when Facebook gives a post no public link |
| `type` | all | post, video, page, person or place | never |
| `name` | pages / people / places, videos | Name of the page / person / place, or the video title | post rows |
| `text` | posts, videos | Text of the post or video description | posts without text; profile rows |
| `time` | posts, videos | Publish time, ISO 8601 UTC (for some videos Facebook shows only a date label such as "15 Sep" - then the day, at 00:00) | profile rows |
| `timestamp` | posts, videos | Publish time as Unix seconds | profile rows |
| `authorName` | posts, videos | Name of the page or person who posted | profile rows |
| `authorId` | posts, videos | Id of the author | profile rows |
| `authorUrl` | posts, videos | Link to the author | profile rows; a few anonymous group posts |
| `authorType` | all | User, Page or Group (for profiles: the result kind) | rarely |
| `authorProfilePictureUrl` | posts | Author picture | profile and video rows |
| `isVerified` | pages / people / places | Verified badge | post and video rows |
| `profilePictureUrl` | pages / people / places | Picture of the page / person / place | post and video rows |
| `snippet` | pages / people / places, videos | Extra line Facebook shows under the result (page: category / followers; video: date and views) | post rows; places and small pages - Facebook sends no result line for them (measured: null in the raw answer) |
| `reactionsCount` | posts | All reactions | profile and video rows |
| `commentsCount` | posts | Comments | profile and video rows |
| `sharesCount` | posts | Shares | profile and video rows; posts whose shares Facebook hides |
| `viewsCount` | posts | Video views of a video post | posts without a video |
| `reactionLikeCount` | posts | Like reactions | profile rows (0 when nobody used it) |
| `reactionLoveCount` | posts | Love reactions | same as reactionLikeCount |
| `reactionCareCount` | posts | Care reactions | same as reactionLikeCount |
| `reactionHahaCount` | posts | Haha reactions | same as reactionLikeCount |
| `reactionWowCount` | posts | Wow reactions | same as reactionLikeCount |
| `reactionSadCount` | posts | Sad reactions | same as reactionLikeCount |
| `reactionAngryCount` | posts | Angry reactions | same as reactionLikeCount |
| `postFormat` | posts | text, photo, video, reel, link or share | profile rows |
| `hashtags` | posts | Hashtags in the text | posts without hashtags (64% in the coffee test) |
| `mentions` | posts | Pages / people / groups tagged in the text: name, id, url, type | posts without mentions (none in the coffee test) |
| `links` | posts | Outside links in the text | posts without links |
| `media` | posts | Every photo and video: type, id, url, imageUrl, width, height, altText, videoUrl, durationSec, playCount | text-only posts |
| `imageUrls` | posts | Photo URLs | posts without photos |
| `videoUrls` | posts | Video file URLs | posts without a video |
| `thumbnailUrl` | videos | Video thumbnail | post and profile rows |
| `linkUrl` | posts, videos | Shared outside link (posts) or the post link of a video | posts that share no link |
| `linkTitle` | posts | Title of the shared link | posts that share no link |
| `linkDescription` | posts | Description of the shared link | posts that share no link |
| `linkSource` | posts | Domain of the shared link | posts that share no link |
| `sharedPost` | posts | The post this post shares: postId, url, text, authorName | posts that are not shares |
| `groupId` | posts | Group of a group post | posts outside groups |
| `groupName` | posts | Group name | posts outside groups |
| `groupUrl` | posts | Group link | posts outside groups |
| `postId` | posts | Numeric post id | profile and video rows |
| `storyId` | posts | Facebook story id | profile and video rows |
| `feedbackId` | posts | Feedback id (for comment tools) | profile and video rows |
| `author` | posts, videos | Author object: id, name, url, type, profilePictureUrl | profile rows |
| `author_title` | posts, videos | Author name | profile rows |
| `user` | posts, videos | Author object (same as author) | profile rows |
| `facebook_id` | all | Id of the author (posts, videos) or of the result (profiles) | rarely |
| `profile_id` | all | Same as facebook_id | rarely |
| `facebookUrl` | all | Link to the author (posts, videos) or the result (profiles) | rarely |
| `pageId` | posts, pages / people / places | Page id when the author / result is a Page | authors and results that are personal profiles or new-style pages |
| `pageName` | posts, pages / people / places | Page name (same rule as pageId) | same as pageId |
| `pageUrl` | posts, pages / people / places | Page link (same rule as pageId) | same as pageId |
| `message` | posts, videos | Post text (same as text) | posts without text; profile rows |
| `postText` | posts, videos | Post text (same as text) | same as message |
| `caption` | posts, videos | Post text (same as text) | same as message |
| `message_rich` | posts | Text with its hashtags, mentions and links | posts without text |
| `textReferences` | posts | Entities referenced in the text (same as mentions) | posts without mentions |
| `title` | all | Shared link title, else the first line of the post; result name for profiles and videos | posts without text or link |
| `description` | posts, pages / people / places | Shared link description (posts) or the intro text (profiles) | posts without a link; profiles without intro |
| `likes` | posts, pages / people / places | Like reactions (posts) or page likes (profiles) | new-style pages show followers, not likes |
| `reactionCount` | posts | All reactions (same as reactionsCount) | profile rows |
| `topReactionsCount` | posts | Reaction counts by type, e.g. {"like": 120, "love": 14} | posts without reactions |
| `shareCount` | posts | Shares (same as sharesCount) | same as sharesCount |
| `reshare_count` | posts | Shares (same as sharesCount) | same as sharesCount |
| `engagement_count` | posts | Reactions + comments + shares | profile and video rows |
| `top_comments` | posts | Comments Facebook shows with the post: id, text, created_at, author, reactions_count, replies_count | posts with no comment preview |
| `comments_id` | posts | Feedback id to load comments with a comments tool | profile and video rows |
| `shares_id` | posts | Same feedback id (for shares) | profile and video rows |
| `commentsDisabled` | posts | True when comments are turned off | profile and video rows |
| `privacy` | posts | Audience shown on the post, e.g. Public group / everyone | posts that show no audience icon |
| `paidPartnership` | posts | True for sponsored / paid-partnership posts | profile and video rows |
| `collaborators` | posts | Co-authors of the post (second and further authors) | posts with one author (all 22 in the coffee test) |
| `location` | all | Tagged place of a post {id, name, url}, or the address / city of a profile | posts with no tagged place; profiles without address |
| `location_name` | all | Name of the tagged place or the profile address | same as location |
| `taggedLocationId` | posts | Id of the tagged place | posts with no tagged place (4 of 20 with locationUid in our test had one) |
| `attachments` | posts | All photos, videos and the shared link in one list | text-only posts |
| `attached_post` | posts | The shared original post (same as sharedPost) | posts that are not shares |
| `attached_post_url` | posts | Link of the shared original post | posts that are not shares |
| `isReshare` | posts | True when the post shares another post | profile and video rows |
| `is_group_post` | posts | True for posts in a group | profile and video rows |
| `group` | posts | Group object {id, name, url} | posts outside groups |
| `external_url` | posts | Shared outside link (same as linkUrl) | posts that share no link |
| `external_link` | posts | Same as external_url | posts that share no link |
| `image` | posts, videos | First photo, else the video thumbnail | text-only posts |
| `images` | posts | Every photo: uri, width, height, id, alt | posts without photos |
| `image_alt` | posts | Facebook's description of the first photo | posts without media |
| `width` | posts | Width of the first photo / video | posts without media |
| `height` | posts | Height of the first photo / video | posts without media |
| `album_count` | posts | Number of photos in the post | posts without photos |
| `video` | posts, videos | Video file URL (posts) or video link (videos) | posts without a video |
| `video_id` | posts, videos | Video id | posts without a video |
| `video_thumbnail` | posts, videos | Video thumbnail | posts without a video |
| `video_files` | posts | Every video of the post: id, url, thumbnailUrl, durationSec | posts without a video |
| `video_duration_ms` | posts | Video length in milliseconds | posts without a video |
| `durationMs` | posts | Same as video_duration_ms | posts without a video |
| `video_view_count` | posts | Video views | posts without a video |
| `video_captions_url` | posts | Caption file of the video | videos without captions (all 3 videos in the coffee test had none) |
| `event_id` | - | Event id - kept for column compatibility; events search returns no results logged out (measured 2026-11-14) | always |
| `categories` | pages / people / places | Page categories, e.g. \["Coffee shop · Cafe"] (Add profile details) | post and video rows; Add profile details off |
| `followers` | pages / people / places | Followers (Add profile details) | post and video rows; pages that hide the count (41% in the coffee shop test) |
| `bio` | pages / people / places | Intro text (Add profile details) | post and video rows; pages without intro (73% of the small coffee shop pages) |
| `intro` | pages / people / places | Intro text (same as bio) | same as bio |
| `info` | pages / people / places | Other intro lines: opening hours and further items | post and video rows; pages that show none |
| `address` | pages / people / places | Address (Add profile details) | post and video rows; pages without address (82% in the coffee shop test) |
| `rating` | pages / people / places | Rating text, e.g. "Not yet rated (0 reviews)" or "4.8 (120 reviews)" | post and video rows; pages without reviews section |
| `priceRange` | pages / people / places | Price range, e.g. $$ | post and video rows; pages that set none (all 22 small coffee shop pages) |
| `services` | pages / people / places | Services offered, e.g. "Dine-in, Delivery" | post and video rows; pages that list none |
| `website` | pages / people / places | First website of the page | post and video rows; pages without website (all 22 small coffee shop pages) |
| `websites` | pages / people / places | Every website of the page | same as website |
| `alternativeSocialMedia` | pages / people / places | First other social account of the page (Instagram, YouTube ...) | post and video rows; pages that link none |
| `messenger` | pages / people / places | Messenger link of a Page (m.me/<username>) | post and video rows; personal profiles and pages without a username |
| `payment` | pages / people / places | Accepted payment methods when the page lists them | post and video rows; pages that list none |
| `personalProfile` | pages / people / places | For personal profiles: city, hometown, work, education, relationship | post and video rows; Pages |
| `posts` | pages / people / places | Recent public posts of the page: postId, url, text, time, reactionsCount, commentsCount | post and video rows; pages without public posts (55% in the coffee shop test) |
| `matches_query` | all | True when the text (posts) or name (profiles) contains the keyword | never |
| `search_source` | all | facebook_posts_search, facebook_pages_search ... | never |
| `sort` | all | top or recent | never |
| `details_status` | all | ok; for profiles: not requested, or unavailable (reason) when the profile could not be opened | never |
| `scrapedAt` | all | When the row was scraped (UTC) | never |

Example Facebook Search Scraper row (posts, shortened):

```json
{
  "searchQuery": "coffee",
  "searchType": "posts",
  "position": 1,
  "id": "1498696759063140",
  "url": "https://www.facebook.com/happyloopmedia/posts/pfbid0mZEtLkowUiTTjt3rCtYiznJ81Kv4yMkfGhmLTQtNwdbyeg8EP6FMDXn7kFNkxWYtl",
  "type": "post",
  "time": "2026-11-17T21:00:32.000Z",
  "authorName": "HappyLoop",
  "text": "Coffee lovers, this one's for you!",
  "reactionsCount": 438,
  "reactionLikeCount": 393,
  "reactionLoveCount": 17,
  "commentsCount": 97,
  "sharesCount": 81,
  "engagement_count": 616,
  "postFormat": "photo",
  "album_count": 1,
  "privacy": "Public",
  "top_comments": [{"text": "not in 25 countries, not only in Europe (North America too) ...", "created_at": "2026-11-17T21:51:47.000Z", "author": {"name": "Jakub Świtluk"}, "reactions_count": 24}]
}
```

#### Which columns can be empty in the Facebook Search Scraper

Measured on our latest test run (22 rows, run QoxpVWKP2tOZnDwZ8): every column that was empty on more than 10% of the rows, and why. A column is empty only when YouTube or Facebook does not publish the value for that row or the option that fills it is off.

- `address` (22 of 22 rows empty in the test): post and video rows; pages without address (82% in the coffee shop test).
- `alternativeSocialMedia` (22 of 22 rows empty in the test): post and video rows; pages that link none.
- `attached_post` (22 of 22 rows empty in the test): posts that are not shares.
- `attached_post_url` (22 of 22 rows empty in the test): posts that are not shares.
- `bio` (22 of 22 rows empty in the test): post and video rows; pages without intro (73% of the small coffee shop pages).
- `categories` (22 of 22 rows empty in the test): post and video rows; Add profile details off.
- `collaborators` (22 of 22 rows empty in the test): posts with one author (all 22 in the coffee test).
- `description` (22 of 22 rows empty in the test): posts without a link; profiles without intro.
- `durationMs` (20 of 22 rows empty in the test): posts without a video.
- `event_id` (22 of 22 rows empty in the test): always.
- `external_link` (22 of 22 rows empty in the test): posts that share no link.
- `external_url` (22 of 22 rows empty in the test): posts that share no link.
- `followers` (22 of 22 rows empty in the test): post and video rows; pages that hide the count (41% in the coffee shop test).
- `group` (21 of 22 rows empty in the test): posts outside groups.
- `groupId` (21 of 22 rows empty in the test): posts outside groups.
- `groupName` (21 of 22 rows empty in the test): posts outside groups.
- `groupUrl` (21 of 22 rows empty in the test): posts outside groups.
- `hashtags` (12 of 22 rows empty in the test): posts without hashtags (64% in the coffee test).
- `info` (22 of 22 rows empty in the test): post and video rows; pages that show none.
- `intro` (22 of 22 rows empty in the test): same as bio.
- `isVerified` (22 of 22 rows empty in the test): post and video rows.
- `linkDescription` (22 of 22 rows empty in the test): posts that share no link.
- `linkSource` (22 of 22 rows empty in the test): posts that share no link.
- `linkTitle` (22 of 22 rows empty in the test): posts that share no link.
- `linkUrl` (22 of 22 rows empty in the test): posts that share no link.
- `links` (22 of 22 rows empty in the test): posts without links.
- `location` (22 of 22 rows empty in the test): posts with no tagged place; profiles without address.
- `location_name` (22 of 22 rows empty in the test): same as location.
- `mentions` (21 of 22 rows empty in the test): posts without mentions (none in the coffee test).
- `messenger` (22 of 22 rows empty in the test): post and video rows; personal profiles and pages without a username.
- `name` (22 of 22 rows empty in the test): post rows.
- `pageId` (22 of 22 rows empty in the test): authors and results that are personal profiles or new-style pages.
- `pageName` (22 of 22 rows empty in the test): same as pageId.
- `pageUrl` (22 of 22 rows empty in the test): same as pageId.
- `payment` (22 of 22 rows empty in the test): post and video rows; pages that list none.
- `personalProfile` (22 of 22 rows empty in the test): post and video rows; Pages.
- `posts` (22 of 22 rows empty in the test): post and video rows; pages without public posts (55% in the coffee shop test).
- `priceRange` (22 of 22 rows empty in the test): post and video rows; pages that set none (all 22 small coffee shop pages).
- `profilePictureUrl` (22 of 22 rows empty in the test): post and video rows.
- `rating` (22 of 22 rows empty in the test): post and video rows; pages without reviews section.
- `services` (22 of 22 rows empty in the test): post and video rows; pages that list none.
- `sharedPost` (22 of 22 rows empty in the test): posts that are not shares.
- `snippet` (22 of 22 rows empty in the test): post rows; places and small pages - Facebook sends no result line for them (measured: null in the raw answer).
- `taggedLocationId` (22 of 22 rows empty in the test): posts with no tagged place (4 of 20 with locationUid in our test had one).
- `textReferences` (21 of 22 rows empty in the test): posts without mentions.
- `thumbnailUrl` (22 of 22 rows empty in the test): post and profile rows.
- `video` (20 of 22 rows empty in the test): posts without a video.
- `videoUrls` (20 of 22 rows empty in the test): posts without a video.
- `video_captions_url` (21 of 22 rows empty in the test): videos without captions (all 3 videos in the coffee test had none).
- `video_duration_ms` (20 of 22 rows empty in the test): posts without a video.
- `video_files` (20 of 22 rows empty in the test): posts without a video.
- `video_id` (19 of 22 rows empty in the test): posts without a video.
- `video_thumbnail` (19 of 22 rows empty in the test): posts without a video.
- `video_view_count` (20 of 22 rows empty in the test): posts without a video.
- `viewsCount` (20 of 22 rows empty in the test): posts without a video.
- `website` (22 of 22 rows empty in the test): post and video rows; pages without website (all 22 small coffee shop pages).
- `websites` (22 of 22 rows empty in the test): same as website.

#### Facebook Search Scraper vs. the top 5 Facebook search Actors in the Apify Store

We compared the Facebook Search Scraper with the five most used Store Actors of the same kind (Apify Store, November 2026) and built every feature that works without a login. The output contains every field any of the five returns (112 of 112 checked), except email and phone - this Actor never returns contact data.

| Feature | Top 5 | Facebook Search Scraper | Note |
|---|---|---|---|
| Keyword search of public posts | 5/5 | Yes | `searchType: "posts"` |
| Pages, people, places, videos search | 2/5 | Yes | all four, with profile details |
| Recent posts / date range | 4/5 | Yes | `sortBy`, `startDate`, `endDate` |
| Location filter | 2/5 | Yes | `locationUid` (Facebook applies it loosely, measured) |
| Reactions by type, comments, shares, views | 4/5 | Yes | reaction types, `engagement_count` |
| Comments shown with the post | 1/5 | Yes | `top_comments` (up to 10, with reply counts) |
| Page details (category, followers, address, rating, websites) | 1/5 | Yes | `includeProfileDetails` |
| Email / phone of pages | 1/5 | No | owner rule: no contact data |
| Only new results (monitoring) | 3/5 | Yes | `onlyNewResults` |
| Groups-only / events search | 1/5 | No | Facebook returns no group or event results logged out (measured) |
| Proxy configuration | 1/5 | Yes | residential by default |

#### How much does the Facebook Search Scraper cost?

The Facebook Search Scraper uses pay-per-result pricing: you pay a small fee per dataset row plus the Apify platform usage of the run, and nothing for keywords that return no rows. Measured on our test runs: 22 posts used $0.0017 in platform usage; 22 pages with profile details used $0.0030.

**Price per result:** one result = one dataset row = one post, video, page, person or place. The Facebook Search Scraper costs $1.49 per 1,000 results on the Apify Free plan, $1.39 per 1,000 on Starter, $1.29 per 1,000 on Scale and $1.19 per 1,000 on Business. Profile details and comments previews do not change the price per row.

**Worked example:** 5 keywords x 40 posts = 200 rows = 200 / 1,000 x $1.49 = **$0.298** on the Free plan, plus a fraction of a cent of platform usage.

**How to cap the cost:** set `maxTotalItems` (a hard total) and a small `maxItems` while testing; in Apify Console you can also set a maximum cost per run, and the Facebook Search Scraper stops when it is reached.

#### Use the Facebook Search Scraper through the API

Start a run and read the rows - from the Apify API (cURL):

```bash
curl -X POST "https://api.apify.com/v2/acts/neuro-scraper~facebook-search-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["coffee"], "searchType": "posts", "maxItems": 20}'
```

Python (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("neuro-scraper/facebook-search-scraper").call(
    run_input={"searchQueries": ["coffee"], "searchType": "posts", "maxItems": 20})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(row["authorName"], row["reactionsCount"], row["url"])
```

Node.js (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('neuro-scraper/facebook-search-scraper').call({
    searchQueries: ['coffee'], searchType: 'posts', maxItems: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, 'results');
```

#### Tips for the Facebook Search Scraper

- Use `mustContainQuery` for brand monitoring - Facebook also matches comments and author names.
- For local leads search `pages` with `pageCategory: "local business or place"` and keep profile details on.
- Schedule the Facebook Search Scraper with `onlyNewResults` to build a feed of new public posts.
- Use the Facebook Search Scraper with webhooks or the Apify API to push new rows into your CRM, Slack or a database automatically.
- Keep the default residential proxy: Facebook limits visitors per IP address, and the Facebook Search Scraper switches IPs when needed.

#### Limits of the Facebook Search Scraper

- Only public content is returned, as Facebook shows it to visitors who are not logged in; friends-only and closed-group posts are never visible.
- Facebook returns no group or event results to visitors who are not logged in (measured 2026-11-14), so those search types are not offered.
- The tagged-location filter is applied loosely by Facebook (4 of 20 results tagged at the place in our test).
- Many pages found by search are small and publish little (in our "coffee shop" test: 41% hide followers, 82% show no address, none list a website).
- Email addresses and phone numbers are never returned.

#### FAQ about the Facebook Search Scraper

**Why did the Facebook Search Scraper return fewer results than my maximum?**

Facebook may have fewer results for the keyword, or your filters (`mustContainQuery`, `minReactions`, the dates, `onlyNewResults`) removed some. The log line of every page shows how many new results Facebook sent and how many were kept, and a final line says when Facebook reports no further page.

**Why is a field empty in the Facebook Search Scraper output?**

Each search type fills its own columns: post fields are empty on page rows and the other way round, and many fields belong to one kind of post (video fields only on video posts, link fields only on link posts). Pages also publish very different amounts of information. The output table above says for every field when it can be empty.

**How do I get only new posts with the Facebook Search Scraper?**

Turn on `onlyNewResults`, set `sortBy` to recent and schedule the run. Each run returns only posts that earlier runs have not delivered.

**Can I search many keywords in one Facebook Search Scraper run?**

Yes - put them all in `searchQueries`. Each keyword gets its own `maxItems` limit; `maxTotalItems` caps the run.

**Do I need a Facebook account to use the Facebook Search Scraper?**

No. The Facebook Search Scraper works without any Facebook account, cookie or login.

**Can I export the Facebook Search Scraper results to Excel or Google Sheets?**

Yes. The Facebook Search Scraper dataset downloads as CSV, Excel (XLSX), JSON, XML or HTML, and the Google Sheets integration sends rows to a sheet after every run.

**Is it legal to use the Facebook Search Scraper?**

The Facebook Search Scraper collects publicly available data only. You are responsible for how you use it: personal data is protected by laws such as the GDPR, so only process it when you have a legitimate reason, and respect Facebook's terms for your use case. Ask a lawyer when unsure.

#### Other Actors that work well with the Facebook Search Scraper

- [Facebook Reels Scraper](https://apify.com/neuro-scraper/facebook-reels-scraper) - public Facebook Reels with views, reactions, comments and video links.
- [Facebook Comments Scraper](https://apify.com/neuro-scraper/facebook-comments-scraper) - every comment of the posts you found.
- [Facebook Hashtag Scraper](https://apify.com/neuro-scraper/facebook-hashtag-scraper) - public posts of a #hashtag.
- [Facebook Profile Scraper](https://apify.com/neuro-scraper/facebook-profile-scraper) - full details of pages and profiles.

#### Feedback on the Facebook Search Scraper

Found a bug in the Facebook Search Scraper, or missing a field? Open an issue on the Facebook Search Scraper Issues tab in Apify Console and we will look at it quickly. Tell us which input you used and what you expected - it helps us improve the Facebook Search Scraper for everyone.

# Actor input Schema

## `searchQueries` (type: `array`):

Words to search on Facebook, one per line (e.g. coffee, "electric cars", #travel). Each keyword is searched on its own and gets its own Max results.

## `searchType` (type: `string`):

Which Facebook search tab to read: public posts, pages, people (public profiles), places (local businesses) or videos.

## `maxItems` (type: `integer`):

How many results to return for EACH keyword (2 keywords x 20 = 40 rows). The Actor follows Facebook's next-page cursor until this number or the end of the results.

## `sortBy` (type: `string`):

Posts: Facebook's 'Recent posts' filter. Videos: Facebook's 'Most recent' sort. Ignored for pages, people and places.

## `startDate` (type: `string`):

Posts only: earliest post date, e.g. 2025-01-01 or "30 days". Sent to Facebook as its 'Date posted' filter (whole months) and checked again on every post's exact time.

## `endDate` (type: `string`):

Posts only: latest post date, e.g. 2025-12-31 or "today". Used together with or without Posts from date.

## `locationUid` (type: `string`):

Posts only: Facebook tagged-location filter - the numeric Facebook id of a city or place (e.g. 108424279189115 = New York, New York). Facebook uses it as a preference, not a strict filter (measured: 4 of 20 results tagged there); the taggedLocationId column shows the exact matches.

## `videoDate` (type: `string`):

Videos only: Facebook's own 'Date posted' filter for video search.

## `pageCategory` (type: `string`):

Pages only: Facebook's own page-category filter (the values are read from Facebook's filter list on every run).

## `placeFilters` (type: `array`):

Places only: Facebook's own place filters by name, e.g. open_now, delivery, takeout. Each one is matched against the filter list Facebook sends this run; unknown names are reported in the log.

## `exactMatch` (type: `boolean`):

Ask Facebook for results that match the keyword exactly.

## `mustContainQuery` (type: `boolean`):

Posts only: drop posts whose text does not contain the keyword (checked by the Actor; Facebook also matches comments, authors and links).

## `minReactions` (type: `integer`):

Posts only: skip posts with fewer reactions than this (checked by the Actor). 0 = keep all.

## `includeProfileDetails` (type: `boolean`):

For pages, people and places: open each result once and add its public profile - category, followers, likes, intro, address, rating, price range, services, websites, other social accounts and recent posts (one extra request per result).

## `onlyNewResults` (type: `boolean`):

Remember the results delivered by earlier runs (per keyword and search type) and return only new ones - schedule the Actor to monitor a keyword.

## `maxTotalItems` (type: `integer`):

Stops the whole run after this many dataset rows (all keywords together).

## `keywordFilter` (type: `string`):

Posts only: keep only posts whose text contains this word or phrase (checked by the Actor, without regard to case).

## `postType` (type: `string`):

Posts only: keep only one kind of post.

## `postSource` (type: `string`):

Posts only: where the post was published.

## `compact` (type: `boolean`):

Fill only the main columns (link, text, author, time, reactions, comments, shares, media, page basics); every other column stays empty.

## `maxConcurrency` (type: `integer`):

How many keywords are searched at the same time, each on its own connection.

## `proxyConfiguration` (type: `object`):

Facebook limits logged-out visitors per IP address. Residential proxies (the default) give the most reliable results; the Actor switches to a fresh IP when Facebook refuses one.

## `debugRaw` (type: `boolean`):

Developer option: saves the first raw results of each keyword to the key-value store.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee"
  ],
  "searchType": "posts",
  "maxItems": 20,
  "sortBy": "top",
  "videoDate": "",
  "pageCategory": "",
  "placeFilters": [],
  "exactMatch": false,
  "mustContainQuery": false,
  "minReactions": 0,
  "includeProfileDetails": true,
  "onlyNewResults": false,
  "maxTotalItems": 0,
  "postType": "all",
  "postSource": "all",
  "compact": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debugRaw": false
}
```

# Actor output Schema

## `results` (type: `string`):

One row per result, in the run's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "coffee"
    ],
    "placeFilters": [],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/facebook-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["coffee"],
    "placeFilters": [],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/facebook-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "coffee"
  ],
  "placeFilters": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call neuro-scraper/facebook-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/facebook-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vRIMuOj6s6hwatzt8/builds/rVr2LoYIG9eDpFGaK/openapi.json
