API reference
Search Google Maps. Get the owner's name, email and phone.
The LocalPipe API finds local businesses by category and location, then looks up who owns each one and how to reach them. Two endpoints do most of the work, and both are built to be called by scripts and coding agents.
Base URL
curl -X POST \
https://uunrlffonnvmbsstkpze.supabase.co/functions/v1/maps-search \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"query": "plumber",
"location": "Austin, TX",
"limit": 200,
"filters": {
"min_reviews": 21,
"has_website": true
}
}'
# 202 Accepted
{ "task_id": "uuid-here", "status": "pending" }Required file
You need the categories CSV to build a search
query is matched against Google Maps' own category list. Use a category exactly as it is written in this file (4,285 of them) and results are filtered to that category. Give the file to your coding agent with the reference.
How a run works
Three calls take you from a category and a city to owner contacts. The full code is on the quickstart.
- 01SearchPOST
/maps-searchSend business categories and locations. The API answers 202 with a task_id straight away and runs every keyword and location pair in parallel.Read the reference - 02CollectGET
/get-scrape-resultsTake the businesses by webhook, or poll and page through them. Each one has a name, phone, address, rating, review count, website and Place ID.Read the reference - 03EnrichPOST
/enrichSend each business for its owner's name, verified email and phone. You are charged for results that are found, not for records you submit.Read the reference
Endpoints
All paths are relative to the base URL. Requests and responses are JSON.
- POST
/maps-searchSearch Google Maps by category and location. Up to 1,000 keywords and 100 locations per call. - GET
/get-scrape-resultsPoll a search and page through its businesses, up to 5,000 per page. - POST
/enrichFind the owner or decision-maker's name, verified email and phone for one business. - GET
/get-job-resultsPoll an enrichment job for its records. No time limit, no rate limit. - GET
/get-usageAccount type, credits remaining and Google Maps exports remaining. - GET
/list-business-listsYour saved Business Lists, with IDs for exclusion and list actions. - POST
/business-list-apiMerge, edit, enrich, clean chains from or delete a saved list. - POST
/scrape-reviews-apiGoogle reviews for up to 10 Place IDs, returned in the response. - POST
/location-enrich-apiHow many physical locations a business operates. - POST
/cancel-scrape-jobCancel running searches. Leads already found are kept. - POST
/cancel-enrich-jobCancel pending or running enrichment jobs.
Four things to know before you write code
One header
Every request carries your key in x-api-key. The polling endpoints use a separate public key, given on the polling page.
AuthenticationEverything is asynchronous
Search and enrichment return 202 at once. Pass a callback_url to be sent the result, or poll with no time limit.
Polling and webhooks1,000 requests a minute
A 429 means the call was not accepted. Retry it after 60 seconds or the record is lost. Polling does not count.
Rate limitsPay on find
Owner email 2 credits, business email 1, owner phone 4. A result that comes back "not found" costs nothing.
Pricing and creditsThese docs are written to be read by machines too
Every page has a Markdown twin at the same address with .md added. To build with Claude Code, Codex or Cursor, hand the agent the two files below and the prompt on Build with AI agents.
NewA ready-made SKILL.md for Claude and other agents is in the LocalPipe app, on the API Access page. Add it to Claude Code or the Claude apps and ask for a lead list in plain words. See how to install and use the SKILL.md.
- /localpipe-api-docs.mdFull reference, one fileMarkdown
- /localpipe-business-categories.csvCategories CSV, 4,285 rowsCSV
- /docs.mdIndex of every pageMarkdown
- /llms.txtSite summary for LLMsllms.txt
Reference updated . Building a workflow does not need a live test: every endpoint here is documented and live.