Create a search
Starts one asynchronous maps search. The job begins in pending; poll the returned job URL until it reaches completed or failed. Creating a job requires an active subscription or trial, and available credits. Requires the searches:write scope when called with a scoped key.
/v1/searchesStarts one asynchronous maps search. The job begins in pending; poll the returned job URL until it reaches completed or failed. Creating a job requires an active subscription or trial, and available credits. Requires the searches:write scope when called with a scoped key.
Pass Authorization: Bearer mapleads_xxx.
In: header
Request Body
application/json
Maps query and extraction options.
TypeScript Definitions
Use the request body type in TypeScript.
Map source to search.
"google"Value in
- "google"
- "bing"
- "apple"
Business category or search query.
1 <= length <= 200Optional city, region, address, or postal-code hint.
length <= 200Optional two-letter country code.
^[A-Za-z]{2}$Language code used for the maps query.
2 <= length <= 10"en"Links this search to an assistant conversation you own. Optional, and only meaningful to the MapLeads dashboard — API integrations can ignore it. A conversation id belonging to another account is rejected.
uuidResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/searches" \ -H "Content-Type: application/json" \ -d '{ "provider": "google", "keyword": "design agencies", "location": "New York, NY", "country": "US", "lang": "en", "options": { "maxResults": 100, "enrichEmail": true, "enrichSocials": true } }'{ "id": "018f275d-5475-7dc8-bd84-4f319efab001", "provider": "google", "status": "pending", "keyword": "design agencies", "location": "New York, NY", "language": "en", "maxResults": 100, "resultCount": 0, "error": null, "createdAt": "2026-08-01T10:00:00Z", "progress": { "phase": "searching", "found": 0, "processed": 0, "failed": 0 }}List searches GET
Returns up to the 50 most recent searches owned by the authenticated user. Requires the `searches:read` scope when called with a scoped key.
Get a search GET
Returns the current job state and customer-facing progress counters. Requires the `searches:read` scope when called with a scoped key.