Skip to content
LocalICPDocs
ProductDataPricingDevelopers
Sign inStart free
Guides
OverviewErrors and limits
Endpoints
Campaigns6Results and leads5Bulk runs6Account6
Integrations
MCP serverWebhooks

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.

  1. 1Create a draft

    Free. The answer carries the campaign's id.

    See the endpoint
    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
      }'
  2. 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 endpoint
    curl -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 '{}'
  3. 3Poll it

    Until status is completed, failed or cancelled.

    See the endpoint
    curl "https://app.localicp.com/api/v1/campaigns/CAMPAIGN_ID" \
      -H "Authorization: Bearer YOUR_API_KEY"
  4. 4Read the results

    Page by page. Partial results are there while it runs.

    See the endpoint
    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.

Campaigns
  • POST/campaignsCreate a campaign draft
  • POST/campaigns/estimateEstimate campaign cost and time
  • POST/campaigns/{id}/runRun a draft once
  • GET/campaigns/{id}Poll a campaign
  • GET/campaignsList campaigns
  • POST/campaigns/{id}/cancelCancel a campaign
Results and leads
  • GET/campaigns/{id}/resultsRead a page of results
  • GET/campaigns/{id}/results/{placeId}Read one result
  • GET/campaigns/{id}/exportExport campaign results
  • GET/leadsList leads across campaigns
  • POST/campaigns/{id}/leads/enrichEnrich saved leads on demand
Bulk runs
  • POST/bulkCreate a bulk run draft
  • POST/bulk/{id}/runRun a bulk draft
  • GET/bulk/{id}Poll a bulk run
  • GET/bulkList bulk runs
  • POST/bulk/{id}/cancelCancel a bulk run
  • GET/bulk/{id}/exportExport a bulk run
Account
  • GET/creditsRead available credits
  • GET/pricingRead pricing and plan limits
  • GET/place-fieldsRead the place-field catalog
  • GET/usageRead usage per API key
  • GET/usage/ledgerDownload the credit statement
  • GET/openapi.jsonRead the v1 OpenAPI document
© 2026 LocalICPDevelopersOpenAPIPrivacyTerms