# Local Business Coverage Intelligence API (`soilair/local-business-coverage-intelligence-api`) Actor

Find deduplicated local businesses around explicit coordinates with bounded coverage profiles, stable place identity, and a coverage certificate.

- **URL**: https://apify.com/soilair/local-business-coverage-intelligence-api.md
- **Developed by:** [Salih Can Kurnaz](https://apify.com/soilair) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 business results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## Local Business Coverage Intelligence API

Find local businesses around explicit latitude/longitude centers and return one clean, deduplicated row per business.

### What it does

- Searches one or more business categories around explicit coordinates.
- Uses bounded adaptive map coverage rather than a single center query.
- Deduplicates overlapping observations into a stable business row.
- Returns name, category, address, coordinates, rating, review count, website, phone, Google place identifiers, and Maps URL when available.
- Writes a `COVERAGE_CERTIFICATE` describing the bounded search actually performed.

This Actor does **not** claim complete coverage of every business in a city or of all Google Maps data. Coverage is bounded by the requested area and selected profile.

### Input

Each item in `searches` accepts:

- `query` — business category or phrase, e.g. `coffee shops`
- `locationLabel` — human-readable area label
- `centerLat` / `centerLng` — explicit search center
- `radiusKm` — square half-width/half-height from 1 to 6 km
- `hl` / `gl` — Google language and country context
- optional `searchId` — stable label for correlating output

`coverageProfile`:

- `QUICK` — faster, lower request count
- `BALANCED` — recommended default
- `DEEP` — broader bounded coverage at higher runtime/cost

The Actor never infers the user's current location.

### Example input

```json
{
  "searches": [
    {
      "searchId": "seattle_coffee",
      "query": "coffee shops",
      "locationLabel": "Seattle, WA",
      "centerLat": 47.6062,
      "centerLng": -122.3321,
      "radiusKm": 2,
      "hl": "en",
      "gl": "us"
    }
  ],
  "coverageProfile": "BALANCED"
}
```

### Output

The default Dataset contains one row per `searchId + stableKey`. Internal tile, parser, request-hash, and viewport diagnostics are excluded from public Dataset rows.

Main outputs:

- `dataset` — deduplicated businesses
- `summary` — run-level counts and field coverage
- `coverageCertificate` — bounded coverage evidence

Typical fields include `name`, `category`, `address`, `latitude`, `longitude`, `rating`, `reviewsCount`, `website`, `phone`, `placeId`, `cid`, `featureId`, `googleMapsUrl`, `observedTiles`, and `distanceFromSearchCenterKm`.

### Pricing

Pay per event:

- `business-result`: **$0.0035 per delivered business**
- `apify-actor-start`: **$0.00005** synthetic start event

A business result is charged only after its row has been persisted to the default Dataset. The Actor respects the run spending limit before deciding how many rows can be delivered.

### Coverage and data notes

- Results reflect the Google Maps data returned for the requested query, coordinates, language/country context, and run time.
- Optional fields can be unavailable for individual businesses.
- The coverage certificate is not an absolute completeness guarantee.
- Stable identity prioritizes Google place identifiers and deterministic fallbacks.

### Programmatic use

Run the Actor from Apify Console, API, clients, MCP/agent integrations, or scheduled tasks. The output schema links directly to the Dataset, summary, and coverage certificate.

# Actor input Schema

## `searches` (type: `array`):

One or more local-business searches. Each search uses an explicit center and square radius; it does not infer your location.

## `coverageProfile` (type: `string`):

QUICK favors speed, BALANCED is the V142-proven default, and DEEP maximizes bounded coverage at higher request cost.

## Actor input object example

```json
{
  "searches": [
    {
      "searchId": "seattle_coffee",
      "query": "coffee shops",
      "locationLabel": "Seattle, WA",
      "centerLat": 47.6062,
      "centerLng": -122.3321,
      "radiusKm": 6,
      "hl": "en",
      "gl": "us"
    }
  ],
  "coverageProfile": "BALANCED"
}
```

# Actor output Schema

## `summary` (type: `string`):

Run-level business counts, field coverage, and per-search coverage metadata.

## `coverageCertificate` (type: `string`):

Bounded coverage evidence for each search; never an absolute Google Maps completeness claim.

## `dataset` (type: `string`):

Deduplicated public-facing local-business rows.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("soilair/local-business-coverage-intelligence-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("soilair/local-business-coverage-intelligence-api").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 '{}' |
apify call soilair/local-business-coverage-intelligence-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,soilair/local-business-coverage-intelligence-api"
        }
    }
}
```

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/z518dJZmd5dDtIuSl/builds/sEA0ChTVdOWeEwYGn/openapi.json
