# Google Places API Leads: Importer Leads from Google Maps & OSM (`rich_minds/local-business-leads-ai`) Actor

First 25 leads free. Google Places API leads that find importers and wholesalers — an importer list and distributor finder with phone, website and e-mail. Google data with your key, or free OpenStreetMap data with none. AI openers in each lead's language. Free demo and live search on any Apify plan.

- **URL**: https://apify.com/rich_minds/local-business-leads-ai.md
- **Developed by:** [Rich Minds](https://apify.com/rich_minds) (community)
- **Categories:** Lead generation, Business, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 qualified lead (rules only)s

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?

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

## Google Places API Leads: Importer Leads from Google Maps & OSM

**New importers, wholesalers and traders every week, ranked with phone and website.**

⚡ First **25 leads free** · 💵 **$0.0015** per qualified lead · 🤖 AI on by default (optional), on plans with model access or your key: $0.009 + ≈ $0.0026 AI tokens a lead · ⏱️ ≈ 90 s a search AI off, + ≈ 1–15 s a lead AI on

![Shortlist of B2B leads: importer verdict, phone, e-mail, first message](https://api.apify.com/v2/key-value-stores/HyTuBTxuzQl1DXL2j/records/shortlist.svg)

> **Type a search and Start — real leads, no key, no card** (OpenStreetMap, any plan); your Google key adds Google
> data. Shops and restaurants cost **$0 here**.
> **AI:** runs on Apify Starter and up, or free with your own Gemini key — otherwise you get the rules row at $0.0015.

### ⚡ At a glance

| | |
|---|---|
| **What you get** | importers, wholesalers and traders with website, phone and site e-mail |
| **You provide** | searches like "spice wholesaler Hamburg", or your best customer's website |
| **Data source** | Google data with your key — or free OpenStreetMap data with none (no ratings) |
| **Typical run** | 3 searches → ≈ 33 leads (estimate), ≈ 4–5 min (90 s a search, measured) |
| **Cost of that run** | first run: 25 free + 8 paid · next: $0.05 AI off · ≈ $0.38 AI on · Google: usually $0 |
| **Keys / setup** | none for OpenStreetMap · AI: Starter+ or a paid Gemini key; a free key: 1–5 AI verdicts per run |
| **Which plan** | demo, your list and the live search: any plan · e-mail digest: a plan that runs Store Actors |
| **Agencies** | 10 clients ≈ 2,200 leads a month: $3.30 AI off, ≈ $25.50 AI on, + $0.40 digests |

### 🎯 What this Actor does — B2B leads from Google Maps

- **Finds trade buyers, not shops:** types and trade words (wholesale, Großhandel) decide; shops dropped free.
- **Official Google Places API on your key** — or OpenStreetMap with none, through the same filter.
- **The e-mail from each lead's own website**, MX-checked — **Only leads with an e-mail** keeps just those.
- **Scores every lead and writes a first message in its language** — German in Hamburg, Arabic in Dubai.

### 🚀 How to use it — 4 steps

1. **Click Try it** — the free demo runs as filled in.
2. **Type your searches** ("rice trader Deira"), or **Products** × **Cities**.
3. **Press Start** — leads land best first in **Shortlist**.
4. **Schedule it weekly** — only new leads are charged.

![Outreach view: contact route, checked e-mail, first message](https://api.apify.com/v2/key-value-stores/HyTuBTxuzQl1DXL2j/records/outreach.svg)

#### 🧲 Find companies like your best customer

A website in **Find companies like this one** + **Cities**: its trade and product words, searched per city.

#### 📅 Before Gulfood 2027

Preset **Gulfood bundle**: traders in 10 Gulf cities, Arabic openers.

#### 📦 Already scraping Google Maps? Qualify your Google Maps scraper data

Recipe under Integrations.

📚 **Learn more:** [Tutorial — Google Places API leads](https://api.apify.com/v2/key-value-stores/HyTuBTxuzQl1DXL2j/records/tutorial.html)

### 🆚 Why this instead of running Google Maps Scraper yourself?

| | [Google Maps Scraper (`compass/crawler-google-places`)](https://apify.com/compass/crawler-google-places) | **This Actor** |
|---|---|---|
| **Same 100 usable B2B leads, all in (list price, no free tier)** | $1.08 — ≈ 180 places × $0.006, shops too | $0.15 here — 86 % less |
| **Your time per 100 leads** | sorting ≈ 180 places (≈ 2 min a lead on 5 sample leads, 2026-11-24) | a ranked sheet |

#### vs other Google Maps scrapers

| Rival, per row | 100 usable leads with e-mail | Lacks |
|---|---|---|
| **This Actor** · $0.0015 per qualified lead | $0.15, sorted, e-mail included | — |
| [scraperlink](https://apify.com/scraperlink/google-maps-scraper) · $0.0005 a place | ≈ $0.09 + sorting 180 rows + e-mails elsewhere | e-mail, B2B filter |
| [Serper Places](https://apify.com/umamidata/serper-google-places-scraper) · $0.01 a page | ≈ $0.18 + sorting + e-mails | e-mail, B2B filter |
| [pro100chok](https://apify.com/pro100chok/google-maps-scraper) · $0.00095 a place | ≈ $0.26 | B2B filter, AI |

### 💵 Pricing — what a run really costs

| Event | When | Price |
|---|---|---|
| `free-tier` | your first 25 qualified leads, any mode | **$0.00** |
| `qualified-lead-basic` | AI off — map fields, e-mail, rule score, opener | **$0.0015** |
| `qualified-lead-ai` | AI on — plus importer verdict, products, fit, message in the lead's language | **$0.009** |
| `digest-delivered` | a digest with ≥ 1 new lead reached your e-mail / chat; first 4 free | **$0.01** |

**Never charged here:** shops, restaurants, closed places, leads below your score or filters, your exclude list,
leads delivered before. Google bills your key (1,000 requests a month free); OpenStreetMap is free.

**How that compares** — 0.5× the $0.003 Store median (2.0× cheaper); one qualified lead replaces ≈ 1.8 raw places.

**Worked example** — 3 searches × 20 places → 33 qualified: first run 25 free + 8 × $0.0015 = $0.01; next run 33 × $0.0015 = $0.05 AI off · ≈ $0.38 AI on.

**AI tier:** $0.009 per lead + ≈ $0.0026 AI tokens (1,441–1,447 in / 216–226 out, gemini-3.5-flash-lite own key,
measured 2026-11-24/25; billed by Apify or your provider) ≈ $0.0116 all in.

**At volume** — agency, 10 clients × 10 cities weekly (≈ 2,200 leads a month): $3.30 AI off, ≈ $25.50 AI on, + $0.40 digests.

### 🤖 What the AI tier adds

The same sample lead, AI **off**:

```json
{"name": "Hanse Spice Import GmbH (sample)", "typeMatch": "b2b", "ruleScore": 95, "fitLabel": "hot",
 "generatedText": "Hello — we supply spice to importers and wholesalers, and your listing as a wholesaler in Hamburg fits that; may we send you our current spice price list and specifications?"}
```

AI **on** — it read the company's own text (own-key default model, run 2026-11-24):

```json
{"name": "Hanse Spice Import GmbH (sample)", "aiModel": "google:gemini-3.5-flash-lite", "fitScore": 95, "fitLabel": "hot",
 "businessKind": "importer", "productsHandled": ["whole and ground spices", "black pepper", "cumin", "turmeric", "cardamom"], "productFit": "strong",
 "generatedText": "I saw that you import whole and ground spices like black pepper and turmeric from India for food manufacturers and retailers in Northern Germany.\nWould you be interested in sourcing premium Indian whole spices and basmati rice in 20 ft containers directly from our export operations?"}
```

It re-ranks too: Gulf Grain fell from hot to cold 30. It saves ≈ 6 min each on 5 sample leads (2026-11-24).
**Language of the AI's first message** is **Auto**: the lead's own (German here; this sample ran in English). A free
[Gemini key](https://aistudio.google.com/apikey) gives 1–5 AI verdicts per run; a paid key assesses every lead.

### ⚙️ Input

| Field | Default | What it does |
|---|---|---|
| `preset` | `custom` | a ready search, incl. **Gulfood bundle** and **Agency** |
| `queries` | — | one search per line: what + where |
| `apiKey` | — | your Google key; empty = the keyless OpenStreetMap search |
| `goalDescription` | — | what you sell — the AI rates the fit from it |
| `minScore` / `maxQualified` | `45` / `100` | drop below this score / cap on leads and our charge |
| `requireEmail` | `false` | only leads with a checked e-mail; the rest dropped, never charged |
| `enableAi` | `true` | the AI verdict and first message |
| `liveSource` | `auto` | Google with a key, else OpenStreetMap; or force one |
| `products` / `cities` / `regionCode` | — | product × city searches, with the country's trade word |
| `lookalikeOf` | — | companies like this website, in each of `cities` |
| `openerLanguage` | `auto` | the AI message's language: the lead's own, or one fixed |

`{}` = the free demo. Also `maxGoogleRequests` (`25`), `languageCode` (`en`), `dedupeTtlDays` (`0`); API only:
`b2bOnly`, `findEmails`, `maxPerQuery`, `placeIds`, `clientName`.

### 📤 Output

One row per qualified lead; Google rows are **Google Maps content under your Google Maps Platform agreement**
(`attribution: "Google Maps"`); keyless rows say `"© OpenStreetMap contributors (ODbL)"`. **`liveSource`**: `google`
rows fill rating, reviewCount and types; `osm` rows fill address, trade tags, phone / website / e-mail where mapped —
no rating or reviews. `url` = the website, else the map page (the link to store); `name` — display only.

<details><summary>Every field and value</summary>

A row also holds city, postalCode, country, primaryType, phone (E.164),
phoneRaw, websiteDomain, bestEmail, emails, emailStatus, emailSource, contactRoute, category, businessStatus, placeUrl,
foundBy, typeMatch, flags, targetFlagsMatched, ruleScore, score, fitLabel, fitScore, scoreReasons, the AI's
businessKind, productsHandled, productFit, summary, generatedText, recommendedNextStep, aiModel, assessedBy, plus
chargedEvent, billedAs, source and fetchedAt (read in this run).

`typeMatch` ∈ b2b · neutral · retail; `fitLabel` ∈ hot · warm · cold; `productFit` ∈ strong · partial · none · unknown;
`businessKind` ∈ importer · wholesaler · distributor · trader · manufacturer · retail · food_service · other · unknown;
`assessedBy` ∈ ai · sample · rules; `emailStatus` ∈ ok · sample; `businessStatus` ∈ OPERATIONAL · CLOSED_TEMPORARILY · CLOSED_PERMANENTLY;
`liveSource` ∈ google · osm · list · dataset. `OUTPUT` adds `refused[]`, `queries[]`, `costUsd` (our charge),
`googleRequests`, `googleListCostUsd`, `osmRequests`, `sourceBusy`, `skippedNoEmail`, `lookalike`, `aiRejected`.

</details>

**Upsert key:** upsert on `dedupeKey` = `placeId` = `itemId`, stable per lead; `rowId` = per row in this run. **Which score:** sort by `score`,
trend on `ruleScore`.

Views: **Shortlist**, **Outreach**, **Lead list (CRM import)**, **Score breakdown**, **Export**.

⭐ **Found it useful? A review on the Store helps others find it.**

### 🔁 Run it weekly

1. Your address in **E-mail me the new leads** (`notifyEmail`, Starter+) or a Slack / Teams URL in **Send alerts
   to** (any plan); open the task the first real run saves, click **Schedule**.
2. Keep **Never output the same lead twice** on — one memory for all your searches; [tracker sheet](https://api.apify.com/v2/key-value-stores/HyTuBTxuzQl1DXL2j/records/tracker.csv).

From week 2 only new listings arrive: ≈ 4 a week per city (estimate) ≈ $0.006 AI off + $0.01 digest (first 4 free).

#### 🎯 Try it for your niche — ready trade leads searches

In **Start from a ready search**: list of spice importers in Germany `spice-importers-hamburg` · food traders in the
UAE `rice-traders-dubai` · food importers in the UK `food-importers-london` · coffee & tea importers in the USA
`coffee-tea-importers-usa` · produce importers in the Netherlands `produce-importers-rotterdam` · importers in
Belgium `freight-importers-antwerp` · `packaging-buyers-uk` · `industrial-distributors-chicago` ·
`spice-exporters-kerala` · `gulfood-bundle` · `agency-client-report` · `check-google-key`.

### 🔌 Integrations, automation and API

#### Run outcomes — what your integration sees

| Outcome | Run status | `OUTPUT.outcome` / fields | Charged? |
|---|---|---|---|
| Free demo (`{}`) | SUCCEEDED | `ok`, `demo: true` | no |
| Success | SUCCEEDED | `ok`, `rows`, `queries[]`, `liveSource` | per qualified lead |
| Nothing new — already delivered | SUCCEEDED | `empty`, `skippedAsDelivered` (`dedupeAcrossRuns: false`) | no |
| Nothing matched / city not found | SUCCEEDED | `empty`, `queries[].refusedReasons`, `refused[]` | not by us |
| OpenStreetMap busy — retry in a few minutes | SUCCEEDED | `source_busy`, `ok: false`, `osm_rate_limited` | no |
| Invalid input | FAILED | — (the status names the field) | no |
| Google refused key / billing / quota | FAILED | `source_failed`, `ok: false` | no |
| AI unavailable | SUCCEEDED | `ok`, `aiError` | basic price |

- **After a compass/crawler-google-places run:** its Integrations tab → this Actor, `sourceMode: dataset`, `datasetId` = `resource.defaultDatasetId`.
- **HubSpot / Pipedrive via Make or Zapier** — company = `name` + `website` + `phone`, note = `generatedText`, upsert on `dedupeKey`.
- **[API reference](https://api.apify.com/v2/key-value-stores/HyTuBTxuzQl1DXL2j/records/api-reference.md)** — every outcome, field and alias.

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("rich_minds/local-business-leads-ai").call(
    run_input={
        # free first call: {"sourceMode": "list", "itemsList": [{"name": "…"}]}
        "sourceMode": "live",  # the mode you send runs — autoSwitchToLive is Console-only
        "queries": ["spice wholesaler Hamburg", "rice trader Deira"],
        "dedupeAcrossRuns": True,  # a re-run skips leads already delivered — False to get them again
        "apiKey": "<YOUR_GOOGLE_PLACES_KEY>",  # optional: none = OpenStreetMap
        "maxQualified": 50, "maxGoogleRequests": 10, "requireEmail": False, "failOnSourceError": True,
        # "maxDiscoveryChargeUsd": 0.5,  # no source Actor bills you here
    },
    timeout_secs=1800,  # build="0.1.4" pins a build
)
rec = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("OUTPUT")
out = rec["value"] if rec else {}
if run["status"] != "SUCCEEDED" or not out.get("ok", True):
    raise RuntimeError(out.get("outcome"), out.get("sourceError"))
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["dedupeKey"], item["name"], item["score"], item["url"])
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('rich_minds/local-business-leads-ai').call(
    { sourceMode: 'live', queries: ['rice trader Deira'], dedupeAcrossRuns: true }, { timeout: 1800 /* , build: '0.1.4' */ });
const out = (await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('OUTPUT'))?.value ?? {};
if (run.status !== 'SUCCEEDED' || out.ok === false) throw new Error(out.sourceError || run.statusMessage);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

<details><summary>Webhook, delivery, run modes and list rows</summary>

- **Webhook** — `{"event": "lead.qualified", "lead": {…}, "runId": "…"}`; batch body (`webhookBatchSize` > 1)
  `{"event": "leads.qualified", "leads": […], "runId": "…"}`; a 429 / 5xx is retried once; `webhookSecret` →
  `X-Signature: sha256=<HMAC-SHA256 of the raw body>`; failed keys in `OUTPUT.webhook.failedKeys`, re-POSTed next run.
- **Delivery:** a per-service field wins over `sendAlertsTo` for its service; each URL is posted once.

#### Which call runs what — demo, live search or your own rows

| Input shape | `OUTPUT.mode` | Charges? |
|---|---|---|
| `{}`, or the untouched form | `demo` | no |
| `sourceMode: "live"` + `queries` (or `lookalikeOf` + `cities`) | `live` | yes |
| A saved task / schedule | as saved | as its mode |
| `sourceMode: "list"` + `itemsList` / `"dataset"` + `datasetId` | `list` / `dataset` | yes, no Google request |

#### List-mode rows — what a pasted record needs

| Field | Needed? | What it enables |
|---|---|---|
| `name` (or `title`, `displayName`) | required | the row's title |
| `placeId` | optional | dedupe key |
| `website` | optional | website score, e-mail lookup |
| `phone` + `country`, `types`, `category`, `rating`, `description` | optional | phone, B2B filter, score, AI text |

A Google Maps export maps as is — [template](https://api.apify.com/v2/key-value-stores/HyTuBTxuzQl1DXL2j/records/list-template.json).

</details>

**MCP for AI agents:** `{"mcpServers": {"apify": {"url": "https://mcp.apify.com/?actors=rich_minds/local-business-leads-ai"}}}`

**Minimal agent input:** `{"sourceMode": "live", "queries": ["rice trader Deira"], "dedupeAcrossRuns": false}` · any plan: `{"sourceMode": "list", "itemsList": [{"name": "Hanse Spice"}]}`

### 👥 Who is it for?

| You are… | You run it to… | Start with |
|---|---|---|
| Food or spice exporter | importers and wholesalers per city | `spice-importers-hamburg` |
| Packaging seller | food manufacturers | `packaging-buyers-uk` |
| Freight forwarder | importers at a port | `freight-importers-antwerp` |
| Industrial supplier | distributors per city | `industrial-distributors-chicago` |
| Lead-gen agency | a report per client | `agency-client-report` |

### 🧠 How the AI works

- **One call per qualified lead** from its map fields and own website text, nothing invented.
- **Model:** `anthropic/claude-haiku-4.5` via Apify; own key: Gemini (measured). An error keeps the rule score.

### 🔒 Data, compliance and limits

- Google data under **your Google Maps Platform agreement** (only place ids stored); OSM © contributors (ODbL);
  e-mails from public pages; GDPR applies.

### ❓ FAQ

**How much will one run cost me?** ≈ 33 leads: 25 free on the first run, then $0.05 AI off or ≈ $0.38 AI on.

**Can I find importers without a Google key?** Yes — the live search then reads OpenStreetMap, free.

**Want Google data?** Get your free Google Places API key (1,000 requests a month free, a card on file): in
[Google Cloud](https://console.cloud.google.com/google/maps-apis/api-list) turn on Places API (New), create a key,
link billing — then the **Check my Google key** preset names any fix.

**Where do I get a list of food importers in Germany or the UAE?** Pick the country list in **Start from a ready search**.

**How do I find wholesaler leads in another country?** Set **Country bias**, fill **Products** × **Cities**.

**Is this a Google Maps scraper alternative?** Yes — the official API: never blocked, B2B only.

**Can I get only leads with an e-mail?** Yes — **Only leads with an e-mail**; the rest are never charged.

**How long does a run take?** AI, own key (google:gemini-3.5-flash-lite): free key 0.8 s per lead on 2026-11-25
(≈ 75 leads a minute), 1.3 s on 2026-11-24, paid key 8.0–14.6 s; 50 leads ≈ 910 s; worst case ≈ 1,580 s per 100.

| Mode | Time | `timeoutSecs` |
|---|---|---|
| Free demo | 3 s (measured on Apify, 2026-11-24) | 120 |
| Live search, rules only | ≈ 90 s per search (measured on Apify, 2026-11-25) | 900 |
| AI, Apify model access | ≈ 6 s per lead (estimate) | 900 |
| AI, own key (google:gemini-3.5-flash-lite) | 0.8–14.6 s per lead (measured 2026-11-24 and 2026-11-25) | 1800 |

**Which Apify plan do I need?** Any plan; AI: Starter+ or your own Gemini key.

**Do rule-scored leads use my free ones?** Yes; while the AI is off, 5 wait for your first AI leads.

**Will I be charged for the same lead twice?** No — one memory per account, by place id: adding a city keeps it; a
new `targetFlags` set re-delivers shared rows as `already-charged`.

**Can I build an importer list for one product?** Yes — **Products** × **Cities**.

**Does it work as a distributor finder abroad?** Yes, one search per city.

**How do I send the openers safely?** By hand, a few a day, one offer, no attachment or tracking link.

**What if nothing matches?** 0 rows, nothing charged.

### 🧩 More Actors from the same developer

- **[Food Trade Fair Exhibitors](https://apify.com/rich_minds/trade-fair-exhibitors-ai)** — meet them at Gulfood.
- **[Local Business Leads](https://apify.com/rich_minds/local-business-lead)** — B2C shops & restaurants; this one: B2B importers.
- **[Government Food Contracts](https://apify.com/rich_minds/food-tenders-ai)** — US federal food awards for your products, weekly.

### 🆘 Support

Open an issue on the Actor's page; requests ship first.

### 📝 Changelog

- **0.1.4** (2026-11-25) — lookalike search, e-mail-only leads, openers in the lead's language.

# Actor input Schema

## `preset` (type: `string`):

Pick a ready trade search and press Start: it replaces the sample search and runs live — Google on <b>your</b> key, or OpenStreetMap with none. Your own values always win. <b>Check my Google key</b> spends one request and names the exact fix. <b>Custom</b> = fill the fields yourself.

## `queries` (type: `array`):

One search per line: <i>what</i> + <i>where</i> — "spice wholesaler Hamburg", "rice trader Deira". Your own searches next to the sample start the live search on any Apify plan: Google Places with your key, OpenStreetMap without. Affects what you pay: Google bills your key one request per 20 places; OpenStreetMap is free.

## `apiKey` (type: `string`):

Optional. A Google key with <b>Places API (New)</b>: ≈ 5–10 min in Google Cloud and a card on file — <a href="https://console.cloud.google.com/google/maps-apis/api-list" target="_blank">enable Places API (New)</a>, Credentials → API key, link billing. $0.035 per request of up to 20 places, 1,000 a month free. Encrypted, never logged. <b>Empty = the keyless OpenStreetMap search.</b>

## `goalDescription` (type: `string`):

Your own products and the buyer you want, in plain words — "we export Indian whole spices and basmati rice in 20 ft containers". The AI rates each business's fit to it and writes the first message from it. Empty = the AI judges the fit from your searches.

## `minScore` (type: `integer`):

The field that decides what you pay: a lead scoring below this is dropped and <b>not charged</b>. The free score adds B2B type 30, trade word 15, your product word 10, website 15, phone 10, open 10, ≥ 5 reviews 5, rating ≥ 4.0 5. 45 = warm and up; 70 = hot only.

## `maxQualified` (type: `integer`):

Hard cap on results and on what <b>this Actor</b> charges: at the default 100, at most $0.90 with AI on ($0.009 a lead) plus ≈ $0.26 of AI tokens billed to your model account, or $0.15 with AI off ($0.0015 a lead). Affects what you pay. Best-scoring first.

## `maxGoogleRequests` (type: `integer`):

Hard cap on billable Google requests per run on your key: 25 × $0.035 = $0.88 at Google's list price beyond its free 1,000 requests a month. The run stops reading at the cap and lists the queries it did not finish in <code>OUTPUT.refused</code>. Affects what Google bills you.

## `enableAi` (type: `boolean`):

<b>On by default.</b> Per lead: importer or shop, its products, the fit to yours, a first message in the lead's language. <b>On = $0.009 + ≈ $0.0026 AI tokens; off = $0.0015.</b> Needs Apify model access (Starter+; not measured on the platform yet) or your own Gemini key — otherwise you get the rules row at $0.0015.

## `requireEmail` (type: `boolean`):

On: a lead without a checked e-mail (from its own website or the map) is dropped and <b>never charged</b> — for e-mail outreach. Affects what you pay: fewer, e-mail-only leads. Off (default): leads with only a phone or a contact form are kept. Dropped leads are counted in <code>OUTPUT.skippedNoEmail</code>.

## `targetFlags` (type: `array`):

Only deliver leads with at least one of these flags, and rank those with more of them higher. Leave empty to keep everything. An API call passes the flag names from the README's flag table, e.g. <code>b2b_type</code> (<code>b2bType</code> works too); an unknown name stops the run at once with the list of valid ones.

## `b2bOnly` (type: `boolean`):

API only — hidden on the form. Drops a place whose Google types are only retail / food service (restaurant, cafe, supermarket, grocery or convenience store …) unless its name carries a trade word (wholesale, import, export, trading, Großhandel …). Free — dropped places are never charged.

## `findEmails` (type: `boolean`):

API only — hidden on the form. Reads up to 4 pages of each qualified lead's own website (home, contact, impressum, about; robots.txt obeyed, 1 request a second) and keeps the best published e-mail with an MX check. Included in the lead price; adds ≈ 1–3 s per site.

## `requireWebsite` (type: `boolean`):

API only — hidden on the form. Drops places with no website on Google (free).

## `minRating` (type: `number`):

API only — hidden on the form. Drops places rated below this (0 = keep all; a place without a rating fails any minimum above 0). Free.

## `minReviews` (type: `integer`):

API only — hidden on the form. Drops places with fewer reviews (0 = keep all). Many wholesalers have few reviews — keep it low. Free.

## `includeClosed` (type: `boolean`):

API only — hidden on the form. Off: places Google marks temporarily or permanently closed are dropped free. On: they are kept and flagged <code>closed</code>.

## `suppressionList` (type: `array`):

API only — hidden on the form. Names, websites or Google place ids to never output (your current customers). Skipped before any processing and never charged.

## `allowList` (type: `array`):

API only — hidden on the form. Names, websites or place ids no free rule may drop (a lead the B2B filter skipped — see <code>OUTPUT.skips</code> for the names). They still need to pass the minimum score.

## `liveSource` (type: `string`):

Which map the live search reads. <b>Auto</b>: Google Places on your key, OpenStreetMap when the key is empty — a real search either way, never the demo's samples. OpenStreetMap is free and needs no account (© OpenStreetMap contributors, ODbL); it has fewer phones and websites per business than Google. Same price per qualified lead.

## `products` (type: `array`):

One product per line ("spice", "basmati rice"). With <b>Cities</b> every product × city becomes a search "<product> wholesaler <city>", plus the same search with the country's own trade word (Großhandel, groothandel, mayorista …) when <b>Country bias</b> is set — at most 30 searches. Affects what you pay: more searches, more qualified leads.

## `cities` (type: `array`):

One city or district per line ("Hamburg", "Deira"). Used together with <b>Products</b>; Google requests stay capped by <b>Max Google requests per run</b>.

## `lookalikeOf` (type: `string`):

The website of your best customer ("hanse-spice.de"): its trade word (importer, wholesaler …) and product words become searches in <b>Cities</b> — companies like it, no query words to invent. Needs <b>Cities</b>; runs on any Apify plan (OpenStreetMap with no key, Google with your key). The profile it read is in <code>OUTPUT.lookalike</code>. Affects what you pay: one search per city and product.

## `regionCode` (type: `string`):

Google's <code>regionCode</code>: biases results and formats addresses for this country. Your search text already names the city, so leave it on Any unless a city name exists in several countries.

## `maxPerQuery` (type: `integer`):

API only — hidden on the form. How many places each search reads: 20 = one billable Google request, 40 = two, 60 = three (Google's ceiling per search). Affects what Google bills you.

## `languageCode` (type: `string`):

Google's <code>languageCode</code> for names, addresses and categories.

## `includedType` (type: `string`):

API only — hidden on the form. One Places (New) type passed to Google, e.g. <code>wholesaler</code> or <code>warehouse_store</code>. Empty = no restriction (recommended — many importers are typed as a plain store or company).

## `strictTypeFiltering` (type: `boolean`):

API only — hidden on the form. With a type above: on = Google returns only places of exactly that type; off = it ranks them first.

## `placeIds` (type: `array`):

API only — hidden on the form. Google place ids (or Google Maps links with one) of leads you already have: each is re-read with one Place Details request (≈ $0.020 at Google's list price, 1,000 free a month) — needs your Google key. A place a search of this run already returned is not read twice; an id that cannot be read comes back in OUTPUT.refused\[] with its reason. Affects what Google bills you.

## `llmProvider` (type: `string`):

<b>Apify (no keys)</b> — the AI runs through Apify's built-in OpenRouter proxy; tokens are billed to your Apify account at OpenRouter's rates. <b>My own key</b> — a Gemini key is the measured path: ≈ 0.8–14.6 s per lead (google:gemini-3.5-flash-lite free key: 0.8 s measured 2026-11-25, 1.3 s on 2026-11-24; an earlier paid Gemini key: 8.0–14.6 s) — size timeouts from the slowest: 50 leads ≈ 910 s. On 20+ leads a free key's rate limit may leave only 1–5 AI checks (one call at a time after a 429, then the borderline leads retried one by one), the rest keep their rule score; a paid Gemini key (billing on) assesses every lead. OpenAI, Anthropic and Groq keys use the same path but are untested.

## `llmModel` (type: `string`):

API only — hidden on the form. Leave empty for the default (<code>anthropic/claude-haiku-4.5</code> through Apify; <code>google:gemini-3.5-flash-lite</code> with your own key). Apify mode takes an OpenRouter slug such as <code>openai/gpt-4.1-mini</code>; own-key mode takes <code>provider:model</code>, e.g. <code>anthropic:claude-haiku-4-5-20251001</code>.

## `llmApiKey` (type: `string`):

Required when <b>AI model access</b> is <i>My own API key</i>. Stored encrypted by Apify, never logged.

## `openerLanguage` (type: `string`):

The language the AI writes each opener / first message in. <b>Auto</b>: the lead's country language — German for a Hamburg importer, Arabic for a Dubai trader, English elsewhere — so the message is usable as sent. Reasons and summary stay in English. AI tier only; the rules' opener (AI off) is English.

## `aiCandidateMultiplier` (type: `integer`):

API only — hidden on the form. How many of the best rule-scored leads get the AI pass, as a multiple of <b>Max qualified</b>. Higher = more thorough, slower, more tokens.

## `sendAlertsTo` (type: `string`):

Paste one or more URLs, one per line — the service is detected from the address: a Slack or Discord channel webhook, a Teams Workflows or Google Chat space webhook, your Telegram bot's send link (<code>https://api.telegram.org/bot\<token>/sendMessage?chat_id=@yourchannel</code>) or any other https URL (Zapier, Make, n8n, your CRM), which gets the leads as JSON. After every run with at least one new lead, the digest (how many are new, the top 10 with links) is posted there. Never sent for the free demo. Headers, batching and signing: <i>Delivery details (advanced)</i>.

## `notifyEmail` (type: `string`):

After every run with new leads, the digest (top 10 with links) is e-mailed here — schedule it weekly and only new ones arrive. Sent by Apify's send-mail Actor, so it needs Apify Starter and up (a plan that runs Store Actors); on the Free plan use <b>Send alerts to</b> above (Slack, Teams, Discord, Telegram). Never sent for the free demo.

## `dedupeAcrossRuns` (type: `boolean`):

Remembers every lead you were charged for — by its place id only — in a named key-value store on your account and skips it in future runs. One memory for every live search on your account: adding or removing a search, a city, a product or a country keeps it, so a lead is never delivered or charged twice. A separate memory per client: <code>dedupeStoreName</code> (API) or one saved task per client.

## `dedupeTtlDays` (type: `integer`):

0 = a delivered lead is never delivered or charged again (right for new leads). 90 or 180 = it comes back after that many days with fresh Google fields and e-mail — keeps your CRM's contacts current; charged again as a lead. Affects what you pay.

## `historyDatasetName` (type: `string`):

API only — hidden on the form. Optional. Type a name (e.g. <code>local-business-leads-ai-seen-log</code>) and every run appends its new leads with the date to that named dataset on your account — one list across months to connect to Google Sheets or your BI tool once. Empty = off. Costs nothing extra.

## `sourceMode` (type: `string`):

<code>{}</code> over the API runs the free demo — nothing charged; any search in <code>queries</code> runs the live search. The mode that runs = <code>sourceMode</code>, except <code>{}</code> = the free demo. <b>live</b> — Google Places on your key, or OpenStreetMap without one (<b>Live source</b>); any Apify plan, no Store Actor. <b>dataset</b> — an existing Apify dataset (e.g. a Google Maps export) re-scored for B2B fit. <b>list</b> — rows you paste in, or the free demo. The mode you choose always runs as chosen; only the untouched sample next to a search or a key you typed on the Console form switches to the live search.

## `autoSwitchToLive` (type: `boolean`):

API only — hidden on the form. On (default, Console runs only): search terms typed next to the untouched sample records start the live search (spend-capped; <code>OUTPUT.switchedToLive</code> names them). Off: the mode you send is the mode that runs — the sample stays the free demo and the status names the terms it did not search. Over the API the mode you send is always the mode that runs.

## `failOnSourceError` (type: `boolean`):

API only — hidden on the form. Off (default): a run whose Google key was refused ends FAILED with the plain reason anyway; a run with nothing to read ends SUCCEEDED with <code>OUTPUT.ok</code>. On: any source failure ends FAILED, so a schedule's failed-run alert fires. Turn it on for every schedule.

## `datasetId` (type: `string`):

API only — hidden on the form. Only for <b>dataset</b> mode. Pick the dataset so the Actor is granted read access to it.

## `itemsList` (type: `array`):

Only for <b>list</b> mode. JSON array of places. Required on every row: <code>name</code> (or <code>title</code>); optional: any field the README's <i>List-mode rows</i> table names (<code>placeId</code>, <code>website</code>, <code>phone</code>, <code>types</code>, <code>category</code>, <code>rating</code> …) — a Google Maps export from compass/crawler-google-places maps as it is. The prefilled rows are invented sample businesses for the free demo.

## `discoveryActorId` (type: `string`):

API compatibility: this Actor runs no source Actor — the live search is the Google Places API on your key (<code>apiKey</code>).

## `discoveryInput` (type: `object`):

API compatibility: the reader takes its input from <code>queries</code>, <code>placeIds</code> and the Google search fields.

## `maxDiscoveryChargeUsd` (type: `number`):

API only — hidden. Affects what you pay: $0 — no source Actor runs in this build (kept for API compatibility); Google's side is capped by <code>maxGoogleRequests</code> on your key.

## `maxToProcess` (type: `integer`):

API only — hidden on the form. Upper bound on how many places are scored in one run. Default = 3 × max qualified.

## `webhookUrl` (type: `string`):

API only — hidden on the form. Qualified leads are POSTed here as JSON (Zapier, Make, n8n, your CRM). For Google Sheets / Slack you can also use Apify's built-in Integrations tab. Stored encrypted — Zapier / Make hook URLs carry their secret in the path.

## `webhookHeaders` (type: `object`):

API only — hidden on the form. Extra HTTP headers for the webhook, e.g. <code>{"Authorization": "Bearer …"}</code>. Stored encrypted by Apify, never logged.

## `webhookBatchSize` (type: `integer`):

API only — hidden on the form. 1 = one POST per lead the moment it is ready. Higher = one POST per N leads.

## `webhookSecret` (type: `string`):

API only — hidden on the form. Any random string. Every webhook POST then carries <code>X-Signature: sha256=\<HMAC-SHA256 of the raw body with this secret></code>, so your endpoint can verify it came from this Actor. Stored encrypted by Apify, never logged.

## `dedupeStoreName` (type: `string`):

API only — hidden on the form. Key-value store used for cross-run memory. Left at the default, every live search on your account shares one memory (place ids are global): adding or removing a search, a city or a country keeps it, and rewording <code>goalDescription</code> keeps it too. Running it for several clients on one account, type one name per client.

## `discoveryTimeoutSecs` (type: `integer`):

API only — hidden on the form. Time cap in seconds for a source Actor run; the live search here reads the Google API inside the run's own timeout.

## `slackWebhookUrl` (type: `string`):

API only — an alias of <code>sendAlertsTo</code> (prefer it: one field takes every service), hidden on the form. Slack incoming-webhook URL for the digest.

## `discordWebhookUrl` (type: `string`):

API only — an alias of <code>sendAlertsTo</code> (prefer it: one field takes every service), hidden on the form. Discord channel webhook URL for the digest.

## `teamsWebhookUrl` (type: `string`):

API only — an alias of <code>sendAlertsTo</code> (prefer it: one field takes every service), hidden on the form. Teams Workflows webhook URL for the digest.

## `googleChatWebhookUrl` (type: `string`):

API only — an alias of <code>sendAlertsTo</code> (prefer it: one field takes every service), hidden on the form. Google Chat space webhook URL for the digest.

## `telegramUrl` (type: `string`):

API only — an alias of <code>sendAlertsTo</code> (prefer it: one field takes every service), hidden on the form. The bot's sendMessage link with its chat_id.

## `clientName` (type: `string`):

API only — hidden on the form; the <b>Agency</b> preset fills it. Brands the REPORT page and the DIGEST an agency forwards (one saved task per client, with its own dedupeStoreName). No cost.

## Actor input object example

```json
{
  "preset": "custom",
  "queries": [
    "spice wholesaler Hamburg",
    "rice trader Deira",
    "spice importer Hamburg"
  ],
  "minScore": 45,
  "maxQualified": 100,
  "maxGoogleRequests": 25,
  "enableAi": true,
  "requireEmail": false,
  "b2bOnly": true,
  "findEmails": true,
  "requireWebsite": false,
  "minRating": 0,
  "minReviews": 0,
  "includeClosed": false,
  "liveSource": "auto",
  "regionCode": "",
  "maxPerQuery": 20,
  "languageCode": "en",
  "includedType": "",
  "strictTypeFiltering": false,
  "llmProvider": "apify",
  "openerLanguage": "auto",
  "aiCandidateMultiplier": 2,
  "dedupeAcrossRuns": true,
  "dedupeTtlDays": 0,
  "historyDatasetName": "",
  "sourceMode": "list",
  "autoSwitchToLive": true,
  "failOnSourceError": false,
  "itemsList": [
    {
      "placeId": "demo-place-hh-0001",
      "name": "Hanse Spice Import GmbH (sample)",
      "address": "Demo-Kai 12, 20457 Hamburg, Germany",
      "city": "Hamburg",
      "postalCode": "20457",
      "country": "DE",
      "internationalPhoneNumber": "+49 40 9990 0101",
      "nationalPhoneNumber": "040 99900101",
      "website": "https://hanse-spice-import.example",
      "rating": 3.9,
      "reviewCount": 23,
      "types": [
        "wholesaler",
        "store",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "wholesaler",
      "category": "Wholesaler",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Hanse+Spice+Import+GmbH+Hamburg",
      "url": "https://www.google.com/maps/place/Speicherstadt,+Hamburg,+Germany",
      "foundBy": [
        "spice wholesaler Hamburg",
        "spice importer Hamburg"
      ],
      "bestEmail": "einkauf@hanse-spice-import.example",
      "emails": [
        "einkauf@hanse-spice-import.example",
        "info@hanse-spice-import.example"
      ],
      "emailStatus": "sample",
      "emailSource": "https://hanse-spice-import.example/impressum",
      "description": "Sample business (invented). Importer of whole and ground spices from India, Vietnam and Sri Lanka: black pepper, cumin, turmeric, cardamom. Supplies food manufacturers and retailers in Northern Germany from its Hamburg warehouse."
    },
    {
      "placeId": "demo-place-hh-0002",
      "name": "Elbe Gewürzhandel KG (sample)",
      "address": "Musterstraße 4, 22113 Hamburg, Germany",
      "city": "Hamburg",
      "postalCode": "22113",
      "country": "DE",
      "internationalPhoneNumber": "+49 40 9990 0202",
      "nationalPhoneNumber": "040 99900202",
      "rating": 4.2,
      "reviewCount": 3,
      "types": [
        "food_store",
        "store",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "food_store",
      "category": "Spice store",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Elbe+Gew%C3%BCrzhandel+KG+Hamburg",
      "foundBy": [
        "spice wholesaler Hamburg"
      ],
      "website": "https://elbe-gewuerzhandel.example",
      "bestEmail": "verkauf@elbe-gewuerzhandel.example",
      "emails": [
        "verkauf@elbe-gewuerzhandel.example"
      ],
      "emailStatus": "sample",
      "emailSource": "https://elbe-gewuerzhandel.example/kontakt",
      "description": "Sample business (invented). Spice wholesale trade since 1998: whole and seed spices, chilli and curry blends in 1 kg to 25 kg sacks for butchers, bakeries and Asian grocery stores in Hamburg and Schleswig-Holstein. Trade customers only."
    },
    {
      "placeId": "demo-place-hh-0003",
      "name": "Speicherstadt Curry House (sample)",
      "address": "Beispielweg 9, 20457 Hamburg, Germany",
      "city": "Hamburg",
      "postalCode": "20457",
      "country": "DE",
      "internationalPhoneNumber": "+49 40 9990 0303",
      "website": "https://speicherstadt-curry.example",
      "rating": 4.4,
      "reviewCount": 310,
      "types": [
        "indian_restaurant",
        "restaurant",
        "food",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "indian_restaurant",
      "category": "Indian restaurant",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Speicherstadt+Curry+House+Hamburg",
      "foundBy": [
        "spice wholesaler Hamburg"
      ]
    },
    {
      "placeId": "demo-place-dxb-0004",
      "name": "Al Noor Rice Trading L.L.C (sample)",
      "address": "Demo Building 7, Al Ras, Deira, Dubai, United Arab Emirates",
      "city": "Dubai",
      "country": "AE",
      "internationalPhoneNumber": "+971 4 999 0404",
      "nationalPhoneNumber": "04 999 0404",
      "website": "https://alnoor-rice-trading.example",
      "reviewCount": 3,
      "types": [
        "store",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "store",
      "category": "Rice wholesaler",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Al+Noor+Rice+Trading+L.L.C+Dubai",
      "url": "https://www.google.com/maps/place/Spice+Souk,+Deira,+Dubai",
      "foundBy": [
        "rice trader Deira"
      ],
      "bestEmail": "sales@alnoor-rice-trading.example",
      "emails": [
        "sales@alnoor-rice-trading.example"
      ],
      "emailStatus": "sample",
      "emailSource": "https://alnoor-rice-trading.example/contact",
      "description": "Sample business (invented). Rice trading company in Al Ras, Deira: Indian basmati 1121 and sella, Pakistani long grain, in 5 kg to 40 kg bags. Re-exports to Oman, Qatar and East Africa."
    },
    {
      "placeId": "demo-place-dxb-0005",
      "name": "Gulf Grain Foodstuff Trading (sample)",
      "address": "Example Street 21, Naif, Deira, Dubai, United Arab Emirates",
      "city": "Dubai",
      "country": "AE",
      "internationalPhoneNumber": "+971 4 999 0505",
      "reviewCount": 0,
      "types": [
        "wholesaler",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "wholesaler",
      "category": "Wholesaler",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Gulf+Grain+Foodstuff+Trading+Dubai",
      "foundBy": [
        "rice trader Deira"
      ],
      "website": "https://gulf-grain-trading.example",
      "description": "Sample business (invented). Foodstuff trading house in Naif, Deira: rice, sugar, lentils and cooking oil by the container and the pallet for supermarkets and restaurants across the UAE."
    },
    {
      "placeId": "demo-place-dxb-0006",
      "name": "Creekside Business Centre (sample)",
      "address": "Demo Tower, Port Saeed, Deira, Dubai, United Arab Emirates",
      "city": "Dubai",
      "country": "AE",
      "reviewCount": 2,
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Creekside+Business+Centre+Dubai",
      "foundBy": [
        "rice trader Deira"
      ]
    }
  ],
  "maxDiscoveryChargeUsd": 0.5,
  "webhookBatchSize": 1,
  "dedupeStoreName": "local-business-leads-ai-seen",
  "discoveryTimeoutSecs": 3600,
  "clientName": ""
}
```

# Actor output Schema

## `qualified` (type: `string`):

All qualified leads as JSON, best-scoring first.

## `sheet` (type: `string`):

The same leads as a spreadsheet.

## `output` (type: `string`):

ok, rows, refused\[], queries\[] (requests, found, kept, qualified per search), costUsd (this Actor's charge), googleRequests by SKU, googleListCostUsd and the attribution.

## `runSummary` (type: `string`):

JSON record with the funnel (loaded -> filtered -> AI-assessed -> qualified), per-reason skip counts, charged events by type, free-tier leads used and remaining, whether a budget limit was reached, webhook delivery counts and the dedupe store size.

# 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 = {
    "queries": [
        "spice wholesaler Hamburg",
        "rice trader Deira",
        "spice importer Hamburg"
    ],
    "maxGoogleRequests": 25,
    "maxPerQuery": 20,
    "sourceMode": "list",
    "itemsList": [
        {
            "placeId": "demo-place-hh-0001",
            "name": "Hanse Spice Import GmbH (sample)",
            "address": "Demo-Kai 12, 20457 Hamburg, Germany",
            "city": "Hamburg",
            "postalCode": "20457",
            "country": "DE",
            "internationalPhoneNumber": "+49 40 9990 0101",
            "nationalPhoneNumber": "040 99900101",
            "website": "https://hanse-spice-import.example",
            "rating": 3.9,
            "reviewCount": 23,
            "types": [
                "wholesaler",
                "store",
                "point_of_interest",
                "establishment"
            ],
            "primaryType": "wholesaler",
            "category": "Wholesaler",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Hanse+Spice+Import+GmbH+Hamburg",
            "url": "https://www.google.com/maps/place/Speicherstadt,+Hamburg,+Germany",
            "foundBy": [
                "spice wholesaler Hamburg",
                "spice importer Hamburg"
            ],
            "bestEmail": "einkauf@hanse-spice-import.example",
            "emails": [
                "einkauf@hanse-spice-import.example",
                "info@hanse-spice-import.example"
            ],
            "emailStatus": "sample",
            "emailSource": "https://hanse-spice-import.example/impressum",
            "description": "Sample business (invented). Importer of whole and ground spices from India, Vietnam and Sri Lanka: black pepper, cumin, turmeric, cardamom. Supplies food manufacturers and retailers in Northern Germany from its Hamburg warehouse."
        },
        {
            "placeId": "demo-place-hh-0002",
            "name": "Elbe Gewürzhandel KG (sample)",
            "address": "Musterstraße 4, 22113 Hamburg, Germany",
            "city": "Hamburg",
            "postalCode": "22113",
            "country": "DE",
            "internationalPhoneNumber": "+49 40 9990 0202",
            "nationalPhoneNumber": "040 99900202",
            "rating": 4.2,
            "reviewCount": 3,
            "types": [
                "food_store",
                "store",
                "point_of_interest",
                "establishment"
            ],
            "primaryType": "food_store",
            "category": "Spice store",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Elbe+Gew%C3%BCrzhandel+KG+Hamburg",
            "foundBy": [
                "spice wholesaler Hamburg"
            ],
            "website": "https://elbe-gewuerzhandel.example",
            "bestEmail": "verkauf@elbe-gewuerzhandel.example",
            "emails": [
                "verkauf@elbe-gewuerzhandel.example"
            ],
            "emailStatus": "sample",
            "emailSource": "https://elbe-gewuerzhandel.example/kontakt",
            "description": "Sample business (invented). Spice wholesale trade since 1998: whole and seed spices, chilli and curry blends in 1 kg to 25 kg sacks for butchers, bakeries and Asian grocery stores in Hamburg and Schleswig-Holstein. Trade customers only."
        },
        {
            "placeId": "demo-place-hh-0003",
            "name": "Speicherstadt Curry House (sample)",
            "address": "Beispielweg 9, 20457 Hamburg, Germany",
            "city": "Hamburg",
            "postalCode": "20457",
            "country": "DE",
            "internationalPhoneNumber": "+49 40 9990 0303",
            "website": "https://speicherstadt-curry.example",
            "rating": 4.4,
            "reviewCount": 310,
            "types": [
                "indian_restaurant",
                "restaurant",
                "food",
                "point_of_interest",
                "establishment"
            ],
            "primaryType": "indian_restaurant",
            "category": "Indian restaurant",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Speicherstadt+Curry+House+Hamburg",
            "foundBy": [
                "spice wholesaler Hamburg"
            ]
        },
        {
            "placeId": "demo-place-dxb-0004",
            "name": "Al Noor Rice Trading L.L.C (sample)",
            "address": "Demo Building 7, Al Ras, Deira, Dubai, United Arab Emirates",
            "city": "Dubai",
            "country": "AE",
            "internationalPhoneNumber": "+971 4 999 0404",
            "nationalPhoneNumber": "04 999 0404",
            "website": "https://alnoor-rice-trading.example",
            "reviewCount": 3,
            "types": [
                "store",
                "point_of_interest",
                "establishment"
            ],
            "primaryType": "store",
            "category": "Rice wholesaler",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Al+Noor+Rice+Trading+L.L.C+Dubai",
            "url": "https://www.google.com/maps/place/Spice+Souk,+Deira,+Dubai",
            "foundBy": [
                "rice trader Deira"
            ],
            "bestEmail": "sales@alnoor-rice-trading.example",
            "emails": [
                "sales@alnoor-rice-trading.example"
            ],
            "emailStatus": "sample",
            "emailSource": "https://alnoor-rice-trading.example/contact",
            "description": "Sample business (invented). Rice trading company in Al Ras, Deira: Indian basmati 1121 and sella, Pakistani long grain, in 5 kg to 40 kg bags. Re-exports to Oman, Qatar and East Africa."
        },
        {
            "placeId": "demo-place-dxb-0005",
            "name": "Gulf Grain Foodstuff Trading (sample)",
            "address": "Example Street 21, Naif, Deira, Dubai, United Arab Emirates",
            "city": "Dubai",
            "country": "AE",
            "internationalPhoneNumber": "+971 4 999 0505",
            "reviewCount": 0,
            "types": [
                "wholesaler",
                "point_of_interest",
                "establishment"
            ],
            "primaryType": "wholesaler",
            "category": "Wholesaler",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Gulf+Grain+Foodstuff+Trading+Dubai",
            "foundBy": [
                "rice trader Deira"
            ],
            "website": "https://gulf-grain-trading.example",
            "description": "Sample business (invented). Foodstuff trading house in Naif, Deira: rice, sugar, lentils and cooking oil by the container and the pallet for supermarkets and restaurants across the UAE."
        },
        {
            "placeId": "demo-place-dxb-0006",
            "name": "Creekside Business Centre (sample)",
            "address": "Demo Tower, Port Saeed, Deira, Dubai, United Arab Emirates",
            "city": "Dubai",
            "country": "AE",
            "reviewCount": 2,
            "types": [
                "point_of_interest",
                "establishment"
            ],
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Creekside+Business+Centre+Dubai",
            "foundBy": [
                "rice trader Deira"
            ]
        }
    ],
    "maxDiscoveryChargeUsd": 0.5
};

// Run the Actor and wait for it to finish
const run = await client.actor("rich_minds/local-business-leads-ai").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 = {
    "queries": [
        "spice wholesaler Hamburg",
        "rice trader Deira",
        "spice importer Hamburg",
    ],
    "maxGoogleRequests": 25,
    "maxPerQuery": 20,
    "sourceMode": "list",
    "itemsList": [
        {
            "placeId": "demo-place-hh-0001",
            "name": "Hanse Spice Import GmbH (sample)",
            "address": "Demo-Kai 12, 20457 Hamburg, Germany",
            "city": "Hamburg",
            "postalCode": "20457",
            "country": "DE",
            "internationalPhoneNumber": "+49 40 9990 0101",
            "nationalPhoneNumber": "040 99900101",
            "website": "https://hanse-spice-import.example",
            "rating": 3.9,
            "reviewCount": 23,
            "types": [
                "wholesaler",
                "store",
                "point_of_interest",
                "establishment",
            ],
            "primaryType": "wholesaler",
            "category": "Wholesaler",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Hanse+Spice+Import+GmbH+Hamburg",
            "url": "https://www.google.com/maps/place/Speicherstadt,+Hamburg,+Germany",
            "foundBy": [
                "spice wholesaler Hamburg",
                "spice importer Hamburg",
            ],
            "bestEmail": "einkauf@hanse-spice-import.example",
            "emails": [
                "einkauf@hanse-spice-import.example",
                "info@hanse-spice-import.example",
            ],
            "emailStatus": "sample",
            "emailSource": "https://hanse-spice-import.example/impressum",
            "description": "Sample business (invented). Importer of whole and ground spices from India, Vietnam and Sri Lanka: black pepper, cumin, turmeric, cardamom. Supplies food manufacturers and retailers in Northern Germany from its Hamburg warehouse.",
        },
        {
            "placeId": "demo-place-hh-0002",
            "name": "Elbe Gewürzhandel KG (sample)",
            "address": "Musterstraße 4, 22113 Hamburg, Germany",
            "city": "Hamburg",
            "postalCode": "22113",
            "country": "DE",
            "internationalPhoneNumber": "+49 40 9990 0202",
            "nationalPhoneNumber": "040 99900202",
            "rating": 4.2,
            "reviewCount": 3,
            "types": [
                "food_store",
                "store",
                "point_of_interest",
                "establishment",
            ],
            "primaryType": "food_store",
            "category": "Spice store",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Elbe+Gew%C3%BCrzhandel+KG+Hamburg",
            "foundBy": ["spice wholesaler Hamburg"],
            "website": "https://elbe-gewuerzhandel.example",
            "bestEmail": "verkauf@elbe-gewuerzhandel.example",
            "emails": ["verkauf@elbe-gewuerzhandel.example"],
            "emailStatus": "sample",
            "emailSource": "https://elbe-gewuerzhandel.example/kontakt",
            "description": "Sample business (invented). Spice wholesale trade since 1998: whole and seed spices, chilli and curry blends in 1 kg to 25 kg sacks for butchers, bakeries and Asian grocery stores in Hamburg and Schleswig-Holstein. Trade customers only.",
        },
        {
            "placeId": "demo-place-hh-0003",
            "name": "Speicherstadt Curry House (sample)",
            "address": "Beispielweg 9, 20457 Hamburg, Germany",
            "city": "Hamburg",
            "postalCode": "20457",
            "country": "DE",
            "internationalPhoneNumber": "+49 40 9990 0303",
            "website": "https://speicherstadt-curry.example",
            "rating": 4.4,
            "reviewCount": 310,
            "types": [
                "indian_restaurant",
                "restaurant",
                "food",
                "point_of_interest",
                "establishment",
            ],
            "primaryType": "indian_restaurant",
            "category": "Indian restaurant",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Speicherstadt+Curry+House+Hamburg",
            "foundBy": ["spice wholesaler Hamburg"],
        },
        {
            "placeId": "demo-place-dxb-0004",
            "name": "Al Noor Rice Trading L.L.C (sample)",
            "address": "Demo Building 7, Al Ras, Deira, Dubai, United Arab Emirates",
            "city": "Dubai",
            "country": "AE",
            "internationalPhoneNumber": "+971 4 999 0404",
            "nationalPhoneNumber": "04 999 0404",
            "website": "https://alnoor-rice-trading.example",
            "reviewCount": 3,
            "types": [
                "store",
                "point_of_interest",
                "establishment",
            ],
            "primaryType": "store",
            "category": "Rice wholesaler",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Al+Noor+Rice+Trading+L.L.C+Dubai",
            "url": "https://www.google.com/maps/place/Spice+Souk,+Deira,+Dubai",
            "foundBy": ["rice trader Deira"],
            "bestEmail": "sales@alnoor-rice-trading.example",
            "emails": ["sales@alnoor-rice-trading.example"],
            "emailStatus": "sample",
            "emailSource": "https://alnoor-rice-trading.example/contact",
            "description": "Sample business (invented). Rice trading company in Al Ras, Deira: Indian basmati 1121 and sella, Pakistani long grain, in 5 kg to 40 kg bags. Re-exports to Oman, Qatar and East Africa.",
        },
        {
            "placeId": "demo-place-dxb-0005",
            "name": "Gulf Grain Foodstuff Trading (sample)",
            "address": "Example Street 21, Naif, Deira, Dubai, United Arab Emirates",
            "city": "Dubai",
            "country": "AE",
            "internationalPhoneNumber": "+971 4 999 0505",
            "reviewCount": 0,
            "types": [
                "wholesaler",
                "point_of_interest",
                "establishment",
            ],
            "primaryType": "wholesaler",
            "category": "Wholesaler",
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Gulf+Grain+Foodstuff+Trading+Dubai",
            "foundBy": ["rice trader Deira"],
            "website": "https://gulf-grain-trading.example",
            "description": "Sample business (invented). Foodstuff trading house in Naif, Deira: rice, sugar, lentils and cooking oil by the container and the pallet for supermarkets and restaurants across the UAE.",
        },
        {
            "placeId": "demo-place-dxb-0006",
            "name": "Creekside Business Centre (sample)",
            "address": "Demo Tower, Port Saeed, Deira, Dubai, United Arab Emirates",
            "city": "Dubai",
            "country": "AE",
            "reviewCount": 2,
            "types": [
                "point_of_interest",
                "establishment",
            ],
            "businessStatus": "OPERATIONAL",
            "placeUrl": "https://www.google.com/maps/search/?api=1&query=Creekside+Business+Centre+Dubai",
            "foundBy": ["rice trader Deira"],
        },
    ],
    "maxDiscoveryChargeUsd": 0.5,
}

# Run the Actor and wait for it to finish
run = client.actor("rich_minds/local-business-leads-ai").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 '{
  "queries": [
    "spice wholesaler Hamburg",
    "rice trader Deira",
    "spice importer Hamburg"
  ],
  "maxGoogleRequests": 25,
  "maxPerQuery": 20,
  "sourceMode": "list",
  "itemsList": [
    {
      "placeId": "demo-place-hh-0001",
      "name": "Hanse Spice Import GmbH (sample)",
      "address": "Demo-Kai 12, 20457 Hamburg, Germany",
      "city": "Hamburg",
      "postalCode": "20457",
      "country": "DE",
      "internationalPhoneNumber": "+49 40 9990 0101",
      "nationalPhoneNumber": "040 99900101",
      "website": "https://hanse-spice-import.example",
      "rating": 3.9,
      "reviewCount": 23,
      "types": [
        "wholesaler",
        "store",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "wholesaler",
      "category": "Wholesaler",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Hanse+Spice+Import+GmbH+Hamburg",
      "url": "https://www.google.com/maps/place/Speicherstadt,+Hamburg,+Germany",
      "foundBy": [
        "spice wholesaler Hamburg",
        "spice importer Hamburg"
      ],
      "bestEmail": "einkauf@hanse-spice-import.example",
      "emails": [
        "einkauf@hanse-spice-import.example",
        "info@hanse-spice-import.example"
      ],
      "emailStatus": "sample",
      "emailSource": "https://hanse-spice-import.example/impressum",
      "description": "Sample business (invented). Importer of whole and ground spices from India, Vietnam and Sri Lanka: black pepper, cumin, turmeric, cardamom. Supplies food manufacturers and retailers in Northern Germany from its Hamburg warehouse."
    },
    {
      "placeId": "demo-place-hh-0002",
      "name": "Elbe Gewürzhandel KG (sample)",
      "address": "Musterstraße 4, 22113 Hamburg, Germany",
      "city": "Hamburg",
      "postalCode": "22113",
      "country": "DE",
      "internationalPhoneNumber": "+49 40 9990 0202",
      "nationalPhoneNumber": "040 99900202",
      "rating": 4.2,
      "reviewCount": 3,
      "types": [
        "food_store",
        "store",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "food_store",
      "category": "Spice store",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Elbe+Gew%C3%BCrzhandel+KG+Hamburg",
      "foundBy": [
        "spice wholesaler Hamburg"
      ],
      "website": "https://elbe-gewuerzhandel.example",
      "bestEmail": "verkauf@elbe-gewuerzhandel.example",
      "emails": [
        "verkauf@elbe-gewuerzhandel.example"
      ],
      "emailStatus": "sample",
      "emailSource": "https://elbe-gewuerzhandel.example/kontakt",
      "description": "Sample business (invented). Spice wholesale trade since 1998: whole and seed spices, chilli and curry blends in 1 kg to 25 kg sacks for butchers, bakeries and Asian grocery stores in Hamburg and Schleswig-Holstein. Trade customers only."
    },
    {
      "placeId": "demo-place-hh-0003",
      "name": "Speicherstadt Curry House (sample)",
      "address": "Beispielweg 9, 20457 Hamburg, Germany",
      "city": "Hamburg",
      "postalCode": "20457",
      "country": "DE",
      "internationalPhoneNumber": "+49 40 9990 0303",
      "website": "https://speicherstadt-curry.example",
      "rating": 4.4,
      "reviewCount": 310,
      "types": [
        "indian_restaurant",
        "restaurant",
        "food",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "indian_restaurant",
      "category": "Indian restaurant",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Speicherstadt+Curry+House+Hamburg",
      "foundBy": [
        "spice wholesaler Hamburg"
      ]
    },
    {
      "placeId": "demo-place-dxb-0004",
      "name": "Al Noor Rice Trading L.L.C (sample)",
      "address": "Demo Building 7, Al Ras, Deira, Dubai, United Arab Emirates",
      "city": "Dubai",
      "country": "AE",
      "internationalPhoneNumber": "+971 4 999 0404",
      "nationalPhoneNumber": "04 999 0404",
      "website": "https://alnoor-rice-trading.example",
      "reviewCount": 3,
      "types": [
        "store",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "store",
      "category": "Rice wholesaler",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Al+Noor+Rice+Trading+L.L.C+Dubai",
      "url": "https://www.google.com/maps/place/Spice+Souk,+Deira,+Dubai",
      "foundBy": [
        "rice trader Deira"
      ],
      "bestEmail": "sales@alnoor-rice-trading.example",
      "emails": [
        "sales@alnoor-rice-trading.example"
      ],
      "emailStatus": "sample",
      "emailSource": "https://alnoor-rice-trading.example/contact",
      "description": "Sample business (invented). Rice trading company in Al Ras, Deira: Indian basmati 1121 and sella, Pakistani long grain, in 5 kg to 40 kg bags. Re-exports to Oman, Qatar and East Africa."
    },
    {
      "placeId": "demo-place-dxb-0005",
      "name": "Gulf Grain Foodstuff Trading (sample)",
      "address": "Example Street 21, Naif, Deira, Dubai, United Arab Emirates",
      "city": "Dubai",
      "country": "AE",
      "internationalPhoneNumber": "+971 4 999 0505",
      "reviewCount": 0,
      "types": [
        "wholesaler",
        "point_of_interest",
        "establishment"
      ],
      "primaryType": "wholesaler",
      "category": "Wholesaler",
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Gulf+Grain+Foodstuff+Trading+Dubai",
      "foundBy": [
        "rice trader Deira"
      ],
      "website": "https://gulf-grain-trading.example",
      "description": "Sample business (invented). Foodstuff trading house in Naif, Deira: rice, sugar, lentils and cooking oil by the container and the pallet for supermarkets and restaurants across the UAE."
    },
    {
      "placeId": "demo-place-dxb-0006",
      "name": "Creekside Business Centre (sample)",
      "address": "Demo Tower, Port Saeed, Deira, Dubai, United Arab Emirates",
      "city": "Dubai",
      "country": "AE",
      "reviewCount": 2,
      "types": [
        "point_of_interest",
        "establishment"
      ],
      "businessStatus": "OPERATIONAL",
      "placeUrl": "https://www.google.com/maps/search/?api=1&query=Creekside+Business+Centre+Dubai",
      "foundBy": [
        "rice trader Deira"
      ]
    }
  ],
  "maxDiscoveryChargeUsd": 0.5
}' |
apify call rich_minds/local-business-leads-ai --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,rich_minds/local-business-leads-ai"
        }
    }
}
```

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/FWIkKDk1TyWgT86dF/builds/J2lYjnnv9YaM7M2Bx/openapi.json
