API
Search for businesses
Run a live local-business search — every delivered lead fully verified.
API
Run a live local-business search — every delivered lead fully verified.
API
Run a live local-business search — every delivered lead fully verified.
POST/api/v1/search
Runs a live discovery search and returns the first batch of listings immediately, spending 1 lead per result. In the background we expand the search to find more matching leads and verify every one — up to 3 emails and 3 phones checked, plus the owner name where we find one. There's no separate enrichment charge: 1 lead covers the listing and all of its verification. Poll the search (Get Results) until enrichment is "complete" for the settled balance, and read all of its results by following next_offset — each poll returns one page, 50 leads by default and up to 1,000 with ?limit=.
| query | Required. The niche/keyword, e.g. "electrician". |
| location | City string, e.g. "Austin, TX". (Or pass location_code.) |
| location_code | Optional. Exact code from /locations. When it is sent, that code is what is searched, whatever location says; a value that can't be a code (anything but a positive whole number; 0 or blank counts as not sent) is a 400, with nothing searched or charged. Sent with location, the search is named after the code's own place — or after location, when the code's own name can't be looked up. Sent alone, the search is unnamed: location comes back null — in this response, on the poll endpoint and in GET /api/v1/searches. |
| US places only | A location_code the US location list doesn't hold, or a location ending in another country ("London, UK"), is a 400 and nothing is searched or charged. A US territory's code (Puerto Rico, Guam, the US Virgin Islands, American Samoa, the Northern Mariana Islands) is searched as a US one. |
{
"search_id": "b3e1...c4a",
"query": "electrician",
"location": "Austin, TX, Texas, United States",
"delivered": 20,
"found": 20,
"credits_remaining": 80,
"enrichment": "pending",
"more_results": "pending",
"poll": "/api/v1/searches/b3e1...c4a",
"results": [
{ "rank": 1, "name": "Bluebonnet Electric Co", "category": "Electrician",
"phone": "+1 512 555 0112", "rating": 5.0, "website": "https://…" }
]
}Each additional lead the worker finds spends 1 lead and is verified — no separate enrichment charge. The poll endpoint reports the settled balance once it's done.
discovery is "complete" when the first batch is in the response, or "in_progress" when the search was queued whole — then results is empty for now and the leads arrive on the poll endpoint. Empty here does not mean no results.
When the location has no matching listings at all, results is empty with discovery, enrichment and more_results already "complete": nothing was charged and nothing more is coming, so there is nothing to poll for.
Exact category and a lead cap on a single search, and campaigns: many keywords across the whole US, whole states or single places, each business charged once. Advanced search covers US places only for now: a country other than the US or a US territory (PR, GU, VI, AS, MP) is a 403 (a 400 for one no search may target, such as Iran), and nothing is searched or charged.
On a single search (POST /api/v1/search, and the MCP search_leads tool):
| exact_category | true — the query must then BE a Google category, such as "Plumber" or "HVAC contractor" — or that category's id ("plumber"). Only businesses whose MAIN Google category is that one are kept. A query that is no category is a 400 naming the close categories to send instead; an id naming another category than the query is a 400 saying which is which. Runs in the background: discovery is "in_progress" and the leads arrive on the poll endpoint. |
| max_leads | Stop after this many leads: a whole number from 100 to 1,000,000. Anything else is a 400. |
| country | "US" (the default), or a US territory's code — "PR", "GU", "VI", "AS" or "MP" — with a location_code from GET /api/v1/places?country=PR&q=…. Any other country is a 403 (a 400 for one no search may target, such as Iran). |
| said back | When a non-default option is sent — a US territory as country, an exact_category, or max_leads — the response says all three as applied: country ("US", or the territory), exact_category (the category id, or null) and max_leads (or null). Sending only the defaults (country "US", exact_category false) adds none of them. GET /api/v1/searches/:id carries them for any search, and campaign_id (a campaign's batch; null for your own search). |
| not on automations | Automations search US places only: country (other than the US), max_leads and exact_category are a 400 there. |
GET/api/v1/places?q=austin
Without q: the US states, { country, region, places, regions: [{ code, name, places }] }. With it (at least 2 characters): US places whose name contains it, names that start with it first — { country, total_matching, places: [{ code, name, region }] }, up to 50. Each code is one a campaign's places or a single search's location_code takes. A US territory's places are its own list: ?country=PR (or GU, VI, AS, MP); GET /api/v1/countries lists the US and its territories.
POST/api/v1/campaigns/estimate
What a campaign would find and how long it would take, without starting it or spending anything. It takes POST /api/v1/campaigns's body (below) and answers:
{
"country": "US",
"keywords": [{ "keyword": "plumber", "exact": false }],
"places": 1204,
"searches": 1204,
"expected_leads": 18450,
"low": 15100,
"high": 21900,
"charged_leads": 18450,
"minutes": 4320,
"time": "~3 days",
"paced_by_daily_budget": true,
"campaign_searches_per_day": 400
}expected_leads is the most likely number of unique leads, low–high the range it lands in most of the time, charged_leads the expectation capped by lead_cap; minutes includes waiting for your daily campaign budget, which your other running campaigns share with it (paced_by_daily_budget says when that, not the searching, sets the time).
POST/api/v1/campaigns
{
"keywords": ["plumber", { "keyword": "HVAC contractor", "exact": true }],
"regions": ["Texas"],
"places": ["Denver, Colorado", 1023191],
"lead_cap": 500,
"name": "Spring push"
}| keywords | Required: up to 20, each up to 100 characters — a string, or { keyword, exact } (exact_category is read as exact) to keep only that Google category. A single "keyword" string works too. Repeats are searched once. |
| country | "US" by default, or a US territory's code ("PR", "GU", "VI", "AS", "MP"); its places from GET /api/v1/places?country=PR. Any other country is a 403 (a 400 for one no search may target, such as Iran). |
| everywhere / regions / places | Where: every place in the US, whole states (by name or code), and single places — a name, "name, region" when a name is in several regions (a 400 lists them), or a code from /places. At least one; up to 25,000 regions and places together, and keywords × places at most 50,000 searches. |
| lead_cap | Stop after this many unique, charged leads: 100 to 1,000,000, or leave it out to search every place. max_leads is read as lead_cap. |
| name | Optional, up to 80 characters. |
The 201 response is the campaign as GET /api/v1/campaigns/:id shows it. It runs in the background in batches, in the same queue as every other search; each unique business spends 1 lead however many keywords or places find it, and it stops at lead_cap if set. Up to 25 campaigns running or paused at once, 40 new ones (or 250,000 searches) in a rolling 24 hours, and 5 start attempts a minute (refused ones count too) — each a 429 past it. See Limits for how campaigns share your daily city budget.
GET/api/v1/campaigns
Your campaigns, newest first: { campaigns: [...] }, ?limit= up to 100 (25 by default), plus any still running or paused past them, so every open campaign can be paused or stopped.
GET/api/v1/campaigns/:id
| status | running | paused | completed | stopped. status_detail is one sentence on where it is — waiting for the daily city budget or for leads, and until when (resume_at). A campaign can also be paused by itself: when a Free account runs out of leads (its leads don't renew; upgrade, then resume it), or when it searches outside the US and that isn't available to the account; status_detail says which. |
| finish_reason | Once finished: all_searched (every place searched), lead_limit (its lead cap reached) or stopped. null while it runs. |
| keywords / places / lead_cap / name | As started; places is how many it searches. |
| searches_total / searches_done / leads | Keywords × places, how many are done, and the unique leads charged so far. |
| estimate | { expected_leads, low, high, minutes } as estimated when it started. |
| by_keyword / top_places / running_now | Progress by keyword ({ keyword, exact, category, searches, searches_done, leads }), the places with the most leads ({ place, leads, basis }: basis "leads", or "businesses_checked" with leads null and businesses_checked when leads per place are not known), and the newest batch running now ({ keyword, places, status, verified, of }: places is the batch's place names) or null. |
| leads_url | Where its leads are: GET /api/v1/campaigns/:id/leads. |
POST/api/v1/campaigns/:id
{ "action": "pause" | "resume" | "stop" } — the campaign as GET /api/v1/campaigns lists it (no by_keyword, top_places or running_now: GET /api/v1/campaigns/:id has those). A pause or stop takes effect after the batches running now (a batch still queued is cancelled and refunded). Only a running campaign can be paused, only a paused one resumed, and a completed one not stopped: each a 409. Pausing a paused campaign, or stopping a stopped one, again only takes a batch still queued off the queue — what a 500 saying one could not be taken off asks for. A 500 saying the action went through but the campaign could not be read back means it landed: read it again in a moment, rather than sending a pause again (that would pause it again if it was resumed since).
GET/api/v1/campaigns/:id/leads
Its leads, a page at a time: ?limit= up to 2,500 (50 by default) and cursor. The answer is { total_matching, returned, next_cursor, leads } — total_matching on the first page, next_cursor null on the last; it pages by cursor, not by GET /api/v1/leads' total, limit, offset and next_offset. Each lead carries that endpoint's lead fields, and the response its data_sources pointer and Link header. POST the same path with filters and sort (the MCP query_leads vocabulary) to narrow them. Export them with campaign_id on Export.
A campaign's batches are its own searches, listed with the campaign: GET /api/v1/searches and the MCP list_searches tool leave them out. Add ?include_campaign_batches=true to the REST list to include them, each row then carrying its campaign_id (null for a search of your own).
An unknown or someone else's campaign is a 404 “Campaign not found.” A campaign, places or estimate read that fails is a 503 with Retry-After — nothing was started or changed.