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

Facebook Search Scraper finds Facebook business pages by category and location, then returns address, phone, email, website, opening hours, rating, review count and followers. Uses your own Facebook session cookies. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/socialdataapi/facebook-search-scraper.md
- **Developed by:** [Social Data API](https://apify.com/socialdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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 — Business Pages, Phones, Emails and Hours

Facebook Search Scraper finds Facebook business pages by category and location and returns each page's name, category, address, phone number, email, website, opening hours, services, price band, star rating, review count and follower count. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a local lead generation pipeline. **Pages that cannot be read are saved as free rows and never charged.** Start with one category in one city, then add every market you sell in.

![Facebook Search Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/q-facebook-search-hero.webp)

***

### What data can I extract with Facebook Search Scraper?

Using this Facebook Business Page API, you will be able to extract the following Facebook business page data:

| 🏢 Page name | 🏷️ Categories | 📍 Address (if listed) | 📞 Phone number |
|---|---|---|---|
| ✉️ Email | 🌐 Website and website domain | 🕒 Opening hours | 🛎️ Services |
| 💲 Price band | ⭐ Rating text, recommend % and review count | 👥 Followers (approximate) and followings | 👍 Likes |
| 📝 Intro text and info snippets | 🆔 Page ID and vanity name | 🔗 Page URL | 📸 Instagram account(s) |
| 🔀 Other linked social account | 🖼️ Profile picture, cover photo and photo link | 🗺️ Map link built from the address | 📢 Ad Library status |
| 📅 Creation date and ad status (when published) | | | |

***

### How to use Facebook Search Scraper

Local lead-gen and sales teams use it to turn "category + city" into a list of Facebook business pages with the contact details needed to reach out.

**Copy to your AI assistant:**

```text
socialdataapi/facebook-search-scraper (Apify Actor ID: socialdataapi/facebook-search-scraper, https://apify.com/socialdataapi/facebook-search-scraper) is an Apify Actor that returns Facebook business pages found by category and location as structured JSON: page name, category, address, phone, email, website, opening hours, services, price band, rating and follower count. Use it whenever someone needs Facebook business pages for a type of business in a place, with their own Facebook session cookies - local lead lists, market mapping by city and CRM enrichment. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/socialdataapi~facebook-search-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"categories":["Pub"],"locations":["NYC"],"resultsLimit":10,"c_user":"YOUR_C_USER","xs":"YOUR_XS"}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("socialdataapi/facebook-search-scraper").call(run_input={"categories": ["Pub"], "locations": ["NYC"], "resultsLimit": 10, "c_user": "YOUR_C_USER", "xs": "YOUR_XS"}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: categories (array of strings, business types to search, default ["Pub"]), locations (array of strings, places to search, default ["NYC"]; every category is searched in every location), resultsLimit (integer, business pages per search, 1-500, default 10), c_user (string, secret, Facebook c_user cookie, required for search results), xs (string, secret, Facebook xs cookie from the same session, required for search results), proxyConfiguration (object, optional proxy for reading pages; default no proxy with automatic Apify proxy fallback). Each business page is one row billed as one row_result event. A page that cannot be read is saved as a free row with only facebookUrl, error and errorReason (login_wall, blocked, facebook_unavailable, http_<code>, unsupported_page, fetch_error or empty_result); a run without a session, with a session Facebook does not accept, or with no search results saves one free info row with errorReason session_required, session_invalid or empty_result. Follower counts are approximate because Facebook shows rounded numbers. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/socialdataapi~facebook-search-scraper/builds/default
```

#### Facebook Search Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at Scrapier and it can search Facebook business pages on its own. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/facebook-search-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Facebook Search Scraper](https://apify.com/socialdataapi/facebook-search-scraper) in the Apify Store.
3. Type your business categories and locations, and paste your Facebook `c_user` and `xs` cookies.
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to get your Facebook c_user and xs cookies

1. Log in to facebook.com in Chrome, Edge or Firefox.
2. Open DevTools (F12) and go to Application > Cookies > https://www.facebook.com.
3. Copy the value of the cookie named `c_user` into the Facebook c_user cookie field.
4. Copy the value of the cookie named `xs` from the same session into the Facebook xs cookie field.
5. Both fields are stored as secrets; treat them like a password and copy fresh values if a run reports that the session was not accepted.

#### How to scale Facebook Search Scraper to bulk

To scrape Facebook pages in bulk, add several categories and several locations: every category is searched in every location, so 5 categories and 10 cities become 50 searches in one run, each capped by your pages-per-search limit. A page found by two searches is read and billed once. For recurring lead lists, save the input as a task and schedule it, or call the API from your own job and read the dataset when the run finishes.

***

### ✨ Features

Facebook Search Scraper fetches clean, structured business pages from Facebook. It's ideal for local lead lists, sales territory mapping, local SEO directories and CRM enrichment — a Facebook business page scraper, Facebook business contact scraper and Facebook page data extractor in one run.

It extracts, per business page:

- **Page name and categories** – what the business is called and what it does.
- **Phone number and email** – the contact details listed on the page.
- **Address and website** – where it is and where it sells online.
- **Opening hours** – the hours text shown on the page.
- **Services and price band** – what it offers and how expensive it is.
- **Rating and review count** – the recommend percentage and number of reviews.
- **Follower count** – approximate audience size, plus followings and likes.

⚡ Pages that cannot be read are retried through Apify proxies and, if they still fail, saved as free rows with the reason.

***

### Use cases 💡

- **Local sales rep** — use it as a Facebook local business scraper for call lists per city.
- **Lead-gen agency** — use it as a Facebook leads scraper for niche-by-city prospect lists.
- **Local SEO consultant** — compare opening hours, ratings and websites of competing businesses.
- **Market researcher** — count businesses and price bands per category and city.
- **AI agent builder** — index business pages into a RAG store for local recommendations.

Building an AI agent? [Connect Facebook Search Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Every category in every city.** Two categories and two locations become four searches in one run, and pages are read while the search is still going, so rows start arriving after the first result page.
- **Contact data behind each page.** A recorded page (Bruschetta Bar Miami) came back with a phone number, an email address, a website, 232 followers and 17 followings.
- **38 fields per business page.** Contact details, opening hours, services, price band, rating split into recommend % and review count, images and Ad Library status — more than a plain Facebook page scraper or Facebook business scraper list.

***

### ⬇️ Input

![Facebook Search Scraper input form with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/q-facebook-search-input.webp)

The Actor accepts lists of business categories and locations and searches every pair; your own Facebook `c_user` and `xs` cookies are required to get search results.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `categories` | No | array | Business types to search. Default `["Pub"]`. | `["Pub", "Coffee shop"]` |
| `locations` | No | array | Places to search; paired with every category. Default `["NYC"]`. | `["NYC", "Chicago"]` |
| `resultsLimit` | No | integer | Business pages to scrape per search (category and location pair). Default 10, from 1 to 500. | `25` |
| `c_user` | Yes, for search results | string (secret) | Your Facebook `c_user` cookie. Without it the run saves one free info row and stops. | `"100012345678901"` |
| `xs` | Yes, for search results | string (secret) | Your Facebook `xs` cookie from the same session. | `"12%3AaBcDeFgHiJkLmN%3A2"` |
| `proxyConfiguration` | No | object | Optional proxy for reading pages. Default: no proxy, then Apify datacenter and residential proxies when a page is blocked. | `{"useApifyProxy": false}` |

#### Free plan limits

Users on the Apify free plan can fetch up to 20 business pages per run (all searches together) and 200 business pages per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "categories": ["Pub", "Coffee shop"],
  "locations": ["NYC", "Chicago"],
  "resultsLimit": 25,
  "c_user": "100012345678901",
  "xs": "12%3AaBcDeFgHiJkLmN%3A2%3A1730000000%3A-1%3A-1",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

***

### ⬆️ Output

![Facebook Search Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/WYkyEfqs10huyXYxr/records/q-facebook-search-output.webp)

Every business page is one typed JSON item with the same 38 fields on every run; export it as JSON (default), CSV or Excel. Pages that cannot be read come back as free rows with only the page URL, an error message and an error reason, and a run without a usable session or without search results saves one free info row.

#### Example output

A real business page read during a test run, followed by a free row for a page Facebook did not show:

```json
[
  {
    "facebookUrl": "https://www.facebook.com/bruschettabarmiami",
    "categories": [
      "Caterer"
    ],
    "info": [
      "Bruschetta Bar Miami. 232 followers",
      ". An original catering company for your event, Bruschetta Bar Miami offers a wide variety of unique ha"
    ],
    "likes": 232,
    "messenger": null,
    "priceRange": null,
    "title": "Bruschetta Bar Miami",
    "address": null,
    "pageId": "100063662675964",
    "pageName": "bruschettabarmiami",
    "pageUrl": "https://www.facebook.com/bruschettabarmiami",
    "intro": "An original catering company for your event, Bruschetta Bar Miami offers a wide variety of unique ha",
    "websites": [
      "https://bruschettabarmiami.com"
    ],
    "phone": "+1 786-543-4216",
    "email": "Paola@bruschettabarmiami.com",
    "alternativeSocialMedia": null,
    "website": "bruschettabarmiami.com",
    "services": null,
    "rating": null,
    "followers": 232,
    "followings": 17,
    "profilePictureUrl": "https://scontent.fdac8-1.fna.fbcdn.net/v/t39.30808-1/306087525_504648211667264_8250202381024131736_n.jpg?stp=dst-jpg_tt6&cstp=mx1067x1067&ctp=s200x200&_nc_cat=101&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=f907e8&_nc_ohc=wXIjbnI7b2cQ7kNvwGiSK6R&_nc_oc=AdpXYYhsuTGl2N82V1P9wdXtS294WVQq8EfjSv6NHaprItI5c7yCtMT46PvyftjAgpc&_nc_zt=24&_nc_ht=scontent.fdac8-1.fna&_nc_gid=kSFNJPznpU-09JP2s0L17w&_nc_ss=73289&oh=00_AQRIZmSxeiAwLPHn2_U1HPxoIW9McZ8sOmW6AMcuZec-OA&oe=6AF74AE4",
    "coverPhotoUrl": "https://scontent.fdac178-1.fna.fbcdn.net/v/t39.30808-6/481238066_1158706549594757_50408827431704869_n.jpg?stp=dst-jpg_tt6&cstp=mx1280x720&ctp=s960x960&_nc_cat=109&_nc_map=urlgen_bucketless&ccb=1-7&_nc_sid=cc71e4&_nc_ohc=v1kY3TfsWh8Q7kNvwH3pGlR&_nc_oc=AdpQRNjoerV7QbAVN0hzTFAvopyyUCdPD4sNMaFJPBZQPIQlep7awkcpCS-izG0MFds&_nc_zt=23&_nc_ht=scontent.fdac178-1.fna&_nc_gid=kSFNJPznpU-09JP2s0L17w&_nc_ss=73289&oh=00_AQQA8K_BzyC6rfWhvv4h9vGAtZk21aN9BhNAzAXubUmmuA&oe=6AF75027",
    "profilePhoto": "https://www.facebook.com/photo/?fbid=504648211667264",
    "ratingOverall": null,
    "ratingCount": null,
    "category": "Caterer",
    "addressUrl": null,
    "instagram": [],
    "ratings": null,
    "business_hours": null,
    "business_price": null,
    "business_services": null,
    "creation_date": null,
    "ad_status": null,
    "about_me": {
      "text": "An original catering company for your event, Bruschetta Bar Miami offers a wide variety of unique ha"
    },
    "facebookId": "100063662675964",
    "pageAdLibrary": {
      "is_business_page_active": false,
      "id": "596427237126888"
    }
  },
  {
    "facebookUrl": "https://www.facebook.com/joespizzanyc",
    "error": "login_wall (HTTP 200)",
    "errorReason": "login_wall"
  }
]
```

***

### How does it work?

Scrapier's Facebook pages search runs Facebook's own page search with the session cookies you provide, two searches at a time with a short pause between result pages. As soon as a result page arrives, the business pages on it are opened and read without logging in, eight at a time, so rows reach your dataset while the search is still running. It sends plain HTTP requests, with no browser. When Facebook blocks a page, the Actor retries it through Apify datacenter and then residential proxies, up to four attempts. Pages that still cannot be read are saved as free rows with the reason. The output fields stay the same on every run, so your downstream code keeps working when Facebook changes its pages.

***

### How do you integrate Facebook Search Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Facebook Search Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/socialdataapi~facebook-search-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"categories": ["Pub"], "locations": ["NYC"], "resultsLimit": 10, "c_user": "YOUR_C_USER", "xs": "YOUR_XS"},
)
for item in resp.json():
    print(item.get("title"), item.get("phone"))
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the Actor to your AI agent with one command:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/facebook-search-scraper"
```

This registers Facebook Search Scraper as a tool your agent can call directly. It works in Claude Code, Cursor and Windsurf, so an agent can find the pubs in a city, read their phone numbers and opening hours, and draft an outreach list.

#### No-code tools (n8n, Make, LangChain)

- **n8n** — add the Apify node with "Run an Actor" and pick `socialdataapi/facebook-search-scraper`, or use the HTTP Request node pointed at the run-sync endpoint with your token.
- **Make** — use the Apify app's "Run an Actor" module, then "Get Dataset Items" to send the business pages to your sheet or CRM.
- **LangChain** — install `langchain-apify` and load the Actor with `ApifyActorsTool("socialdataapi/facebook-search-scraper")`.

***

### Is it legal to scrape Facebook data?

Collecting business information that Facebook pages show publicly is generally legal, but how you store and use it matters. Facebook Search Scraper reads each business page as any visitor sees it without logging in; your session is used only to run the search. Under GDPR and similar laws, scraping public data is generally permissible, but storing and using it must comply with local data-protection law, and contact details must be used under anti-spam rules. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Facebook Search Scraper return?

It returns the page name, categories, phone number, email and address of every business page, plus website, opening hours, services, price band, rating and follower count. See [the data fields section](#what-data-can-i-extract-with-facebook-search-scraper) for the full list.

#### Does Facebook Search Scraper require a Facebook account or login?

Yes — the search needs the `c_user` and `xs` cookies of a logged-in Facebook account, because Facebook's page search answers only logged-in visitors. The cookie fields are stored as secrets and never written to the logs, and the business pages themselves are read without your session. Without the cookies, the run saves one free info row and stops.

#### What happens if a Facebook page is private or doesn't exist?

The page is saved as a free row with only the page URL, an error message and an error reason such as login_wall, blocked, facebook_unavailable, unsupported_page or fetch_error. In your code, skip rows that have an error reason, or collect them to retry later.

#### Can I scrape multiple Facebook pages at once?

Yes. Add several categories and locations; every pair is searched, each search returns up to your pages-per-search limit, and eight pages are read at the same time.

#### Does Facebook Search Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Facebook Search Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=socialdataapi/facebook-search-scraper"
```

Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Facebook Search Scraper return data in a format LLMs can use directly?

Yes. Every row is typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Facebook changes its layout or updates its anti-bot system?

Scrapier maintains the Actor. When Facebook changes, Scrapier updates the Actor — your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Facebook Search Scraper without managing proxies or browser infrastructure?

Yes. Retries and the switch to Apify proxies when a page is blocked run on the Actor's side, and it needs no browser. You send one request and get structured JSON back, with no proxy accounts and no maintenance.

#### Which Facebook business page fields work best for AI training data and RAG indexing?

For RAG, use the page name, intro text, categories, services, opening hours and address. For training data, use the recommend percentage, review count, follower count, followings and likes. All fields are typed values — strings, integers, lists — with no normalization needed.

***

### Related scrapers

| Scraper | What it extracts |
|---|---|
| [Facebook Pages Scraper](https://apify.com/socialdataapi/facebook-pages-scraper) | Details of Facebook pages you already have links for |
| [Facebook Page Posts Scraper](https://apify.com/socialdataapi/facebook-page-posts-scraper) | Posts published by Facebook pages |
| [Facebook Email Scraper](https://apify.com/socialdataapi/facebook-email-scraper) | Emails linked to Facebook pages and profiles |
| [Facebook Phone Number Scraper](https://apify.com/socialdataapi/facebook-phone-number-scraper) | Phone numbers linked to Facebook pages and profiles |
| [Facebook Groups Search Scraper](https://apify.com/socialdataapi/facebook-groups-search-scraper) | Facebook groups found by keyword |
| [Google Maps Scraper](https://apify.com/socialdataapi/google-maps-scraper) | Local businesses from Google Maps |

***

### Your feedback

Found a bug or missing a field? Let us know in the Issues tab of this Actor. The Scrapier team reads every report and ships fixes.

# Actor input Schema

## `categories` (type: `array`):

Business types to search (Pub, Bar, Restaurant...). Each one is combined with every location, e.g. "Pub NYC", "Bar London".

## `locations` (type: `array`):

Where to search (NYC, London...). Each location is paired with every category.

## `resultsLimit` (type: `integer`):

Maximum business pages to scrape for each search (each category and location pair), from 1 to 500. Higher means more data and a longer run. Free plan: up to 20 business pages per run (all searches together) and 200 per month; paid plans have no limit.

## `c_user` (type: `string`):

Your own Facebook session, required for search results. Log in to facebook.com, open DevTools > Application > Cookies > https://www.facebook.com and copy the value of 'c_user'. Without it the run saves one info row and stops.

## `xs` (type: `string`):

The 'xs' cookie value from the same logged-in facebook.com session as c_user. Required for search results; treat it like a password.

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

Optional proxy for reading business pages (searches always use your session directly). No proxy by default; when a page is blocked the run retries it through Apify datacenter and then residential proxies.

## Actor input object example

```json
{
  "categories": [
    "Pub"
  ],
  "locations": [
    "NYC"
  ],
  "resultsLimit": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

All scraped items in the Actor'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 = {
    "categories": [
        "Pub"
    ],
    "locations": [
        "NYC"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("socialdataapi/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 = {
    "categories": ["Pub"],
    "locations": ["NYC"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("socialdataapi/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 '{
  "categories": [
    "Pub"
  ],
  "locations": [
    "NYC"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call socialdataapi/facebook-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,socialdataapi/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/yFKSU4m5iiYyxOODA/builds/V2L7waL8lvYu5HXvg/openapi.json
