# Find Facebook Business Pages by Keyword and City

**Use case:** 

Build a local lead list from Facebook. Search public Facebook Pages by business type and city, and get each Page's name, URL, category line, location, description and verified status. This example searches dentists and plumbers in Austin. Use your own niche and city. No Facebook login, cookies or token needed.

## Input

```json
{
  "queries": [
    "dentist Austin",
    "plumber Austin"
  ],
  "searchType": "pages",
  "maxResults": 50,
  "locationUid": "",
  "maxConcurrency": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

## Output

```json
{
  "query": {
    "label": "Query"
  },
  "position": {
    "label": "#",
    "format": "number"
  },
  "rowType": {
    "label": "Type"
  },
  "profilePicture": {
    "label": "Picture",
    "format": "image"
  },
  "name": {
    "label": "Name"
  },
  "url": {
    "label": "URL",
    "format": "link"
  },
  "isVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "subtitle": {
    "label": "Subtitle"
  },
  "location": {
    "label": "Lives in"
  },
  "description": {
    "label": "Description"
  },
  "id": {
    "label": "ID"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The Facebook Search Scraper Actor is ready to run with the inputs already set for "Find Facebook Business Pages by Keyword and City". [Sign up or log in](https://console.apify.com/create-task-from-example/GRVaVlGyadYaKJlx9) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Find Facebook Business Pages by Keyword and City" task

The Facebook Search Scraper Actor will start running based on the input automatically. You can also change all the input fields, like search queries, search type, and more, to match your specific use case.

### 3. Receive the "Find Facebook Business Pages by Keyword and City" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as query, #, type, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Find Facebook Business Pages by Keyword and City" task via API](https://apify.com/coregent/facebook-search-scraper.md).

## FAQ

### How do I find local businesses on Facebook?

Enter a business type and city ("dentist Austin"), keep Search type on Pages, and the scraper returns the Pages Facebook shows for that search.

### Do I need a Facebook account?

No. It reads what Facebook search shows to a logged-out visitor and never asks for a login, cookies or token.

### Why do I get fewer results than my limit?

Logged-out Facebook search stops after a certain depth, which varies by query. Use several narrower queries for more Pages.

### Can I run many cities at once?

Yes. Add up to 100 queries per run, each with its own result limit.

## About this Actor

This example demonstrates how to use [Facebook Search Scraper](https://apify.com/coregent/facebook-search-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/coregent/facebook-search-scraper.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

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 full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/coregent/facebook-search-scraper.md

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`).
