# Brave Local Results Scraper (`searchapi/brave-local-results-scraper`) Actor

Scrapes local business listings from Brave Search. Extracts local pack results including business name, address, rating, review count, price level, phone, hours, and website for location-based queries.

- **URL**: https://apify.com/searchapi/brave-local-results-scraper.md
- **Developed by:** [Search API](https://apify.com/searchapi) (community)
- **Categories:** Developer tools, Automation, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Brave Local Results Scraper

Scrapes local business listings from Brave Search. Extracts local pack results including business name, address, rating, review count, price level, phone, hours, and website for location-based queries.

### What this Actor collects

Each dataset item represents one Brave local place, combining list data with the optional detail response for contact, location, ratings, hours, media, profiles, and source metadata.

- Uses the input limits and filters below to control the crawl.
- Stores source-backed fields defined by the 70-field dataset schema.
- Omits optional fields when the source does not expose a value instead of writing nulls or fabricated placeholders.

### Use cases

- Local lead research
- Location and category monitoring
- Business-directory enrichment

### Input

Provide input in JSON. Fields marked required must be supplied; source-specific alternatives and constraints are described in the field text.

| Field | Type | Required | Default | Description |
| --- | --- | :---: | --- | --- |
| `query` | string | Yes | — | What to search for, such as coffee shops, hotels, or pharmacies. |
| `location` | string | No | `""` | City, region, or address to search around. Leave empty only when the query already contains a location. |
| `maxItems` | integer | No | `30` | Maximum unique places to save from Brave's current result set. |
| `country` | string | No | `"us"` | Two-letter country code used for browser locale and output context. |
| `language` | string | No | `"en"` | Language code used for the Brave Maps search and browser locale. |
| `includeDetails` | boolean | No | `true` | Fetch each place's detail response for profiles, related pages, and the richest available record. |
| `maxConcurrency` | integer | No | `5` | Maximum simultaneous place-detail requests. |
| `maxRequestRetries` | integer | No | `3` | Retries temporary rate limits and server errors with bounded backoff. |
| `navigationTimeoutSecs` | integer | No | `60` | Maximum seconds to wait for navigation and API responses. |
| `headless` | boolean | No | `true` | Disable only for local visual debugging. |
| `proxyConfiguration` | object | No | — | Optional Apify or custom proxy settings. A consistent fresh session is used for each run. |

#### Example input

```json
{
  "query": "coffee shops",
  "maxItems": 30,
  "country": "us",
  "language": "en",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "location": "New York City",
  "includeDetails": true,
  "maxConcurrency": 5,
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 60
}
```

### Output

The default dataset contains one item per place or local-business result. The following are the most useful fields; detail-only fields depend on `includeDetails` and source availability.

| Field | Type | Description |
| --- | --- | --- |
| `position` | integer | Position |
| `businessName` | string | Business Name |
| `address` | string | Address |
| `rating` | number | Rating |
| `reviewCount` | integer | Review Count |
| `priceRange` | string | Price Range |
| `phone` | string | Phone |
| `currentHours` | string | Current Hours |
| `website` | string | Website |
| `category` | string | Category |
| `type` | string | Record Type |
| `title` | string | Title |
| `name` | string | Name |
| `description` | string | Description |
| `url` | string | URL |
| `query` | string | Query |

<details>
<summary>All 70 declared dataset fields</summary>

`type`, `resultType`, `position`, `id`, `spid`, `name`, `businessName`, `title`, `fullTitle`, `description`
`address`, `streetAddress`, `houseNumber`, `city`, `state`, `postalCode`, `addressCountry`, `latitude`, `longitude`, `zoomLevel`
`phone`, `phoneRaw`, `email`, `website`, `url`, `domain`, `providerUrl`, `category`, `iconCategory`, `categories`
`servesCuisine`, `rating`, `bestRating`, `reviewCount`, `ratingSource`, `ratingSourceUrl`, `priceRange`, `priceLevel`, `openingHours`, `currentHours`
`currentDay`, `distance`, `thumbnailUrl`, `originalImageUrl`, `favicon`, `images`, `imageUrls`, `thumbnailUrls`, `imageCount`, `profiles`
`relatedResults`, `familyFriendly`, `sourceLocal`, `sourceBoth`, `sourceType`, `sourceLanguage`, `fetchedContentAt`, `pageAge`, `pageFetchedAt`, `timezone`
`timezoneOffset`, `searchQuery`, `query`, `location`, `requestedCountry`, `language`, `searchUrl`, `scrapedAt`, `detailFetched`, `searchMetadata`

</details>

#### Example dataset item

This compact example is taken from local Actor storage. Long text and nested collections are shortened for documentation only.

```json
{
  "position": 1,
  "businessName": "787 Coffee Co.",
  "address": "251 W 30th St, New York, NY 10001",
  "phone": "+16464540133",
  "currentHours": "07:00 - 20:00",
  "website": "http://www.787coffee.com/",
  "category": "restaurant",
  "type": "localResult",
  "title": "787 Coffee Co.",
  "name": "787 Coffee Co.",
  "description": "Coffee Shop",
  "url": "http://www.787coffee.com/"
}
```

### Related Actors

- [Brave AI Mode Scraper](https://apify.com/searchapi/brave-ai-mode-scraper)
- [Brave Autocomplete Scraper](https://apify.com/searchapi/brave-autocomplete-scraper)
- [Brave Discussions Scraper](https://apify.com/searchapi/brave-discussions-scraper)

# Actor input Schema

## `query` (type: `string`):

What to search for, such as coffee shops, hotels, or pharmacies.

## `location` (type: `string`):

City, region, or address to search around. Leave empty only when the query already contains a location.

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

Maximum unique places to save from Brave's current result set.

## `country` (type: `string`):

Two-letter country code used for browser locale and output context.

## `language` (type: `string`):

Language code used for the Brave Maps search and browser locale.

## `includeDetails` (type: `boolean`):

Fetch each place's detail response for profiles, related pages, and the richest available record.

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

Maximum simultaneous place-detail requests.

## `maxRequestRetries` (type: `integer`):

Retries temporary rate limits and server errors with bounded backoff.

## `navigationTimeoutSecs` (type: `integer`):

Maximum seconds to wait for navigation and API responses.

## `headless` (type: `boolean`):

Disable only for local visual debugging.

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

Optional Apify or custom proxy settings. A consistent fresh session is used for each run.

## Actor input object example

```json
{
  "query": "coffee shops",
  "location": "New York City",
  "maxItems": 30,
  "country": "us",
  "language": "en",
  "includeDetails": true,
  "maxConcurrency": 5,
  "maxRequestRetries": 3,
  "navigationTimeoutSecs": 60,
  "headless": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Normalized source-backed place records from Brave Maps list and detail APIs.

# 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 = {
    "query": "coffee shops",
    "location": "New York City",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("searchapi/brave-local-results-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 = {
    "query": "coffee shops",
    "location": "New York City",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("searchapi/brave-local-results-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "query": "coffee shops",
  "location": "New York City",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call searchapi/brave-local-results-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=searchapi/brave-local-results-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/pHubYSAFi8WPghngT/builds/GpvNhLVV11a4JagpZ/openapi.json
