GeoLead Search: Create

Use this API endpoint to create a GeoLead Search and build targeted lists of local businesses with verified emails in seconds.

Endpoint

POST
https://api.anymailfinder.com
/v5.1/geo-lead

Pricing

This endpoint is free to use.

Credits are only charged when you download the results for the first time.

Authentication

Include your API key using the Authorization header.
Refer to the Authentication page for setup instructions.

Code example

curl -X POST "https://api.anymailfinder.com/v5.1/geo-lead" \
-H "Authorization: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"file_name": "restaurants_in_new_york",
"find_company_emails": true,
"find_decision_maker_categories": ["ceo"],
"latitude": 40.7127753,
"longitude": -74.0059728,
"query": "restaurants",
"radius_km": 1
}'

Request parameters

Send as JSON in the POST body:

ParameterExample valueDescription
file_name
string - optional
nullA label to identify the GeoLead search.
find_company_emails
boolean
trueWhether to search for company emails.
find_decision_maker_categories
string[]
[
"ceo"
]
Decision maker categories to search for. To disable Decision Maker search pass in an empty array.
latitude
number
40.7127753The latitude coordinate for the search center point.
longitude
number
-74.0059728The longitude coordinate for the search center point.
query
string
"restaurants"The search query to find businesses or locations within the specified radius.
radius_km
integer
10The search radius in km from the center point.
result_limit
integer - optional
nullOptional limit on the number of leads to extract. If specified, the extraction will stop once this limit is reached.

Headers

ParameterExample valueDescription
x-webhook-url
string - optional
"https://yourdomain.com/webhook"URL to receive a webhook notification when processing completes.

Response

200OK

The search has been successfully created and will process asynchronously.

  • If you specified a webhook URL, you will receive a notification when the search is completed.
  • Otherwise, use the GeoLead Search Detail API endpoint to check the search status.
{
"counts": {
"failed": 0,
"found_unknown": 0,
"found_valid": 0,
"not_found": 0,
"total": 0
},
"created_at": "2025-01-08T13:25:36.457Z",
"credits_needed": 0,
"file_name": "string",
"find_company_emails": true,
"find_decision_maker_categories": [
"ceo"
],
"id": "string",
"latitude": 40.7127753,
"longitude": -74.0059728,
"paid": false,
"query": "restaurants",
"radius_km": 2,
"result_limit": null,
"started_running_at": "2025-09-15T13:50:42.000Z",
"status": "queued"
}
PropertyTypeDescription
statusstringThe current status of the GeoLead search. Possible values:
  • extraction_queued: The search for companies matching the specified criteria is queued and will start soon.
  • extraction_running: The search for companies is in progress.
  • queued: The search for emails of the found companies is queued and will start soon.
  • running: The search for emails of the found companies is in progress.
  • paused: The GeoLead search has been temporarily paused.
  • completed: The GeoLead search has finished successfully.
  • failed: The GeoLead search processing failed due to an error.
counts.failedintegerNumber of rows where the search failed.
counts.found_unknownintegerNumber of rows with risky emails found.
counts.found_validintegerNumber of rows with valid emails found.
counts.not_foundintegerNumber of rows where no email was found.
counts.totalintegerTotal number of rows in the search.
created_atstringThe datetime when the search was created.
credits_neededintegerThe maximum credits required to download the results. Duplicate searches within a month are not charged.
file_namestringThe label provided to identify this GeoLead search.
find_company_emailsbooleanIf company emails have been searched.
find_decision_maker_categoriesstring[]The decision maker categories that have been searched.
idstringUnique identifier for this GeoLead search.
latitudenumberThe searched position latitude.
longitudenumberThe searched position longitude.
paidbooleanIndicates whether this search was paid for.
querystringThe searched type of companies (eg. "restaurants").
radius_kmintegerThe searched position radius (in km).
result_limitinteger | nullIf a limit of result was set when the search was created.
started_running_atstring | nullThe datetime when the search started processing.
400Bad Request
401Unauthorized

Need Help?

Our team is experienced with APIs and is here to help. Contact us via chat or email at team@anymailfinder.com.