curl --request POST \
--url https://api.leadsforge.ai/public/v1/maps-discovery/search \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 200,
"radiusKm": 5,
"categories": [
"dentist",
"dental clinic"
],
"clientRequestID": "req_12345",
"keywords": [
"emergency plumber"
],
"language": "en",
"lat": 40.758,
"lng": -73.9855,
"webhookURL": "https://example.com/webhooks/maps-search"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 200,
radiusKm: 5,
categories: ['dentist', 'dental clinic'],
clientRequestID: 'req_12345',
keywords: ['emergency plumber'],
language: 'en',
lat: 40.758,
lng: -73.9855,
webhookURL: 'https://example.com/webhooks/maps-search'
})
};
fetch('https://api.leadsforge.ai/public/v1/maps-discovery/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 200,
radiusKm: 5,
categories: ['dentist', 'dental clinic'],
clientRequestID: 'req_12345',
keywords: ['emergency plumber'],
language: 'en',
lat: 40.758,
lng: -73.9855,
webhookURL: 'https://example.com/webhooks/maps-search'
})
};
fetch('https://api.leadsforge.ai/public/v1/maps-discovery/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.leadsforge.ai/public/v1/maps-discovery/search';
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 200,
radiusKm: 5,
categories: ['dentist', 'dental clinic'],
clientRequestID: 'req_12345',
keywords: ['emergency plumber'],
language: 'en',
lat: 40.758,
lng: -73.9855,
webhookURL: 'https://example.com/webhooks/maps-search'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.leadsforge.ai/public/v1/maps-discovery/search"
payload = {
"limit": 200,
"radiusKm": 5,
"categories": ["dentist", "dental clinic"],
"clientRequestID": "req_12345",
"keywords": ["emergency plumber"],
"language": "en",
"lat": 40.758,
"lng": -73.9855,
"webhookURL": "https://example.com/webhooks/maps-search"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadsforge.ai/public/v1/maps-discovery/search"
payload := strings.NewReader("{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.leadsforge.ai/public/v1/maps-discovery/search")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.leadsforge.ai/public/v1/maps-discovery/search");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadsforge.ai/public/v1/maps-discovery/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 200,
'radiusKm' => 5,
'categories' => [
'dentist',
'dental clinic'
],
'clientRequestID' => 'req_12345',
'keywords' => [
'emergency plumber'
],
'language' => 'en',
'lat' => 40.758,
'lng' => -73.9855,
'webhookURL' => 'https://example.com/webhooks/maps-search'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.leadsforge.ai/public/v1/maps-discovery/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}"
response = http.request(request)
puts response.read_body{
"categories": [
"dentist",
"dental clinic"
],
"clientRequestID": "req_12345",
"completedAt": "<string>",
"consumedCredits": 123,
"createdAt": "2026-09-13T12:00:00Z",
"error": "<string>",
"foundCount": 143,
"jobID": "5f1c2e3a-0b1d-4c2e-9f3a-1b2c3d4e5f60",
"keywords": [
"emergency plumber"
],
"language": "en",
"lat": 40.758,
"limit": 200,
"lng": -73.9855,
"radiusKm": 5,
"reservedCredits": 123,
"resultsURL": "/public/v1/maps-discovery/jobs/5f1c2e3a-0b1d-4c2e-9f3a-1b2c3d4e5f60/results",
"status": "in_progress",
"statusURL": "/public/v1/maps-discovery/jobs/5f1c2e3a-0b1d-4c2e-9f3a-1b2c3d4e5f60",
"updatedAt": "2026-09-13T12:01:00Z",
"webhookURL": "https://example.com/webhooks/maps-search"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}Search local businesses on Google Maps
Asynchronous. Starts a Google Maps search within radiusKm of the lat/lng coordinates and returns 202 with the job; poll GET /maps-discovery/jobs/ or pass webhookURL, then page through GET /maps-discovery/jobs//results. Send lat and lng: an omitted value is read as 0, which is a valid coordinate.
Send keywords, categories, or both; at least one is required. keywords are searched as typed and every place Google returns for them is kept. categories restrict the results to those Google Maps categories (GET /maps-discovery/filters/categories). Without keywords, a category that is not a Google Maps category is searched as a keyword; with keywords it is rejected with 400. foundCount is at most limit and can be lower when the area has fewer matching places.
Consumes credits: your account’s maps discovery price per business found. The job reserves the price for limit businesses and settles for the businesses actually found.
Idempotency-Key: a job with the same key in your account is returned as is, whatever the request body as long as it is valid, for as long as that job exists; a request that is rejected frees its key. A repeat does not count against the concurrent jobs limit, but it is still subject to the rate limit and can get 429; retry it with the same key.
Webhook: POST with JSON body when the job ends, 2xx = delivered. Delivery is tried up to 3 times on 5xx, 429 or network errors, each attempt waiting up to 8 seconds for a response; there is no later redelivery, so poll GET /maps-discovery/jobs/ if you miss it. Redirects are not followed. Every attempt carries an X-Webhook-Delivery-Id header equal to jobID. webhookURL must be a public http or https URL with a domain name, not an IP address, or the request fails with 400; use https. Payload: jobID (string), status (completed|failed|no_results), foundCount (int), limit (int), consumedCredits (number), error (string, present on failed and no_results).
The search creates a list named “Public API: Local Businesses” in the app.
curl --request POST \
--url https://api.leadsforge.ai/public/v1/maps-discovery/search \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 200,
"radiusKm": 5,
"categories": [
"dentist",
"dental clinic"
],
"clientRequestID": "req_12345",
"keywords": [
"emergency plumber"
],
"language": "en",
"lat": 40.758,
"lng": -73.9855,
"webhookURL": "https://example.com/webhooks/maps-search"
}
'const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 200,
radiusKm: 5,
categories: ['dentist', 'dental clinic'],
clientRequestID: 'req_12345',
keywords: ['emergency plumber'],
language: 'en',
lat: 40.758,
lng: -73.9855,
webhookURL: 'https://example.com/webhooks/maps-search'
})
};
fetch('https://api.leadsforge.ai/public/v1/maps-discovery/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 200,
radiusKm: 5,
categories: ['dentist', 'dental clinic'],
clientRequestID: 'req_12345',
keywords: ['emergency plumber'],
language: 'en',
lat: 40.758,
lng: -73.9855,
webhookURL: 'https://example.com/webhooks/maps-search'
})
};
fetch('https://api.leadsforge.ai/public/v1/maps-discovery/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));const url = 'https://api.leadsforge.ai/public/v1/maps-discovery/search';
const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
limit: 200,
radiusKm: 5,
categories: ['dentist', 'dental clinic'],
clientRequestID: 'req_12345',
keywords: ['emergency plumber'],
language: 'en',
lat: 40.758,
lng: -73.9855,
webhookURL: 'https://example.com/webhooks/maps-search'
})
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));import requests
url = "https://api.leadsforge.ai/public/v1/maps-discovery/search"
payload = {
"limit": 200,
"radiusKm": 5,
"categories": ["dentist", "dental clinic"],
"clientRequestID": "req_12345",
"keywords": ["emergency plumber"],
"language": "en",
"lat": 40.758,
"lng": -73.9855,
"webhookURL": "https://example.com/webhooks/maps-search"
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.leadsforge.ai/public/v1/maps-discovery/search"
payload := strings.NewReader("{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.leadsforge.ai/public/v1/maps-discovery/search")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}")
.asString();using RestSharp;
var options = new RestClientOptions("https://api.leadsforge.ai/public/v1/maps-discovery/search");
var client = new RestClient(options);
var request = new RestRequest("");
request.AddHeader("Authorization", "<api-key>");
request.AddJsonBody("{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}", false);
var response = await client.PostAsync(request);
Console.WriteLine("{0}", response.Content);
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.leadsforge.ai/public/v1/maps-discovery/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 200,
'radiusKm' => 5,
'categories' => [
'dentist',
'dental clinic'
],
'clientRequestID' => 'req_12345',
'keywords' => [
'emergency plumber'
],
'language' => 'en',
'lat' => 40.758,
'lng' => -73.9855,
'webhookURL' => 'https://example.com/webhooks/maps-search'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}require 'uri'
require 'net/http'
url = URI("https://api.leadsforge.ai/public/v1/maps-discovery/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 200,\n \"radiusKm\": 5,\n \"categories\": [\n \"dentist\",\n \"dental clinic\"\n ],\n \"clientRequestID\": \"req_12345\",\n \"keywords\": [\n \"emergency plumber\"\n ],\n \"language\": \"en\",\n \"lat\": 40.758,\n \"lng\": -73.9855,\n \"webhookURL\": \"https://example.com/webhooks/maps-search\"\n}"
response = http.request(request)
puts response.read_body{
"categories": [
"dentist",
"dental clinic"
],
"clientRequestID": "req_12345",
"completedAt": "<string>",
"consumedCredits": 123,
"createdAt": "2026-09-13T12:00:00Z",
"error": "<string>",
"foundCount": 143,
"jobID": "5f1c2e3a-0b1d-4c2e-9f3a-1b2c3d4e5f60",
"keywords": [
"emergency plumber"
],
"language": "en",
"lat": 40.758,
"limit": 200,
"lng": -73.9855,
"radiusKm": 5,
"reservedCredits": 123,
"resultsURL": "/public/v1/maps-discovery/jobs/5f1c2e3a-0b1d-4c2e-9f3a-1b2c3d4e5f60/results",
"status": "in_progress",
"statusURL": "/public/v1/maps-discovery/jobs/5f1c2e3a-0b1d-4c2e-9f3a-1b2c3d4e5f60",
"updatedAt": "2026-09-13T12:01:00Z",
"webhookURL": "https://example.com/webhooks/maps-search"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}{
"code": "<string>",
"data": "<unknown>",
"message": "<string>"
}Authorizations
Headers
Body
Search request
Search request
Response
Job created
Was this page helpful?
