REST API
Find and export local-business leads from Google Maps from your own code. Everything the app does with a campaign, the API does too, with the same plan limits and the same credits.
Basics
Base URL
https://app.localicp.com/api/v1
Version
1.0.0-beta
Authentication
Send your API key as a bearer token on every request.
Authorization: Bearer YOUR_API_KEY
The examples show a placeholder. Put your own key in its place. Create a key in Settings
Plans
The API is part of the Growth and Agency plans.
Credits
Creating a draft or an estimate is free. A run holds its credit ceiling while it works, then settles to what it delivered: only delivered leads are charged and the rest of the hold is returned.
Your first campaign
Four requests, from a sentence to a page of leads.
curl -X POST "https://app.localicp.com/api/v1/campaigns" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: 00000000-0000-4000-8000-000000000000" \ -H "Content-Type: application/json" \ -d '{ "prompt": "dentists in Austin TX", "target_count": 50 }'- 2Run it
This spends credits. The Idempotency-Key makes a retry safe: you make it up, any unique id such as a UUID.
See the endpointcurl -X POST "https://app.localicp.com/api/v1/campaigns/CAMPAIGN_ID/run" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Idempotency-Key: 00000000-0000-4000-8000-000000000000" \ -H "Content-Type: application/json" \ -d '{}' curl "https://app.localicp.com/api/v1/campaigns/CAMPAIGN_ID" \ -H "Authorization: Bearer YOUR_API_KEY"
curl "https://app.localicp.com/api/v1/campaigns/CAMPAIGN_ID/results" \ -H "Authorization: Bearer YOUR_API_KEY"
All endpoints
23 endpoints, as the server lists them.