LeadmapX

LeadmapX API, webhooks and MCP for lead automation

Control B2B lead searches from your own code, from no-code tools like Zapier, Make and n8n, or from AI agents. Results flow back into your CRM automatically.

Use LeadmapX inside ChatGPT or Claude

Ask in plain language, e.g. “Find 30 tax advisors in Frankfurt with email and phone, cap at 20 credits.” The assistant estimates the cost, starts the search, tracks progress and returns the leads as a table.

Claude (Desktop & web)

  1. Open Settings → Connectors → Add custom connector.
  2. Name it LeadmapX and paste the URL below.
  3. Click Connect and sign in to LeadmapX once. No key needed.
https://leadmapx.com/mcp

Claude Desktop (config file)

{
  "mcpServers": {
    "leadmapx": { "url": "https://leadmapx.com/mcp" }
  }
}

Claude Code (terminal)

claude mcp add --transport http leadmapx https://leadmapx.com/mcp

ChatGPT – connector (MCP)

  1. Open Settings → Apps & Connectors → Advanced and enable developer mode.
  2. Click Create, name it LeadmapX, paste the MCP URL and choose OAuth.
  3. Sign in to LeadmapX once, then enable the connector in a new chat.

ChatGPT – custom GPT (Actions)

  1. In ChatGPT open Explore GPTs → Create → Configure → Create new action.
  2. Choose Import from URL and paste the OpenAPI URL below.
  3. Authentication: API Key, Auth Type Bearer, paste your key from Account → Automation → API keys.
  4. Paste the instructions below into the GPT's Instructions field and save.
https://leadmapx.com/api/public/v1/openapi.json

Instructions template for your GPT

You are a B2B lead research assistant powered by LeadmapX.
1. Before every search, call the cost estimate and tell the user the expected credits and current balance. Start only after the user confirms.
2. Start searches with a business type and place, lead_type "contact" by default, and always set a credit_cap.
3. Check progress every minute until done; then fetch the delivered leads and show them as a table (company, city, phone, email, website).
4. Never invent contact data. Only report what LeadmapX returns.
5. If credits are insufficient, say so and link to https://leadmapx.com/#pricing.

How billing works

ChatGPT and Claude never handle payments for LeadmapX. Every search is charged to your LeadmapX credit balance at the normal prices: the 5 free daily credits are used first, then purchased credits or your subscription. Each search can carry a credit cap, agent purchases stay within your 24-hour budget, and with too few credits the search is refused instead of overspending. Your ChatGPT or Claude plan is billed separately by its provider.

1. Create an API key

Sign in and open Account → Automation → API keys. A key starts with lmx_live_ and is shown only once; only a fingerprint is stored. Send it as Authorization: Bearer <key> (or X-API-Key). Revoke it any time.

https://leadmapx.com/api/public/v1

2. Endpoints

  • POST/searchesStart a search: query, lead_type, credit_cap, lead_cap, speed, campaign_name
  • GET/searchesList your searches
  • GET/searches/{id}Progress %, leads found, credits spent, areas done
  • GET/searches/{id}/leadsDelivered leads with full profile (limit, offset)
  • POST/searches/{id}/verifyqueue mailbox checks; body lead_ids (optional, else all delivered leads, max 500), 0.5 purchased credits each
  • POST/searches/{id}/controlpause, resume, stop, set_cap with credit_cap, or set_lead_cap with lead_cap
  • GET/creditsBalance, daily free credits, 24 h purchase budget

3. Examples

cURL

curl -X POST https://leadmapx.com/api/public/v1/searches \
  -H "Authorization: Bearer lmx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"query":"tax advisors in Frankfurt","lead_type":"contact","credit_cap":50,"speed":"balanced"}'

JavaScript

const res = await fetch("https://leadmapx.com/api/public/v1/searches", {
  method: "POST",
  headers: { Authorization: "Bearer " + process.env.LEADMAPX_KEY, "Content-Type": "application/json" },
  body: JSON.stringify({ query: "tax advisors in Frankfurt", credit_cap: 50 }),
});
const { campaign_id, poll_url } = await res.json();

Python

import os, requests
r = requests.post("https://leadmapx.com/api/public/v1/searches",
    headers={"Authorization": f"Bearer {os.environ['LEADMAPX_KEY']}"},
    json={"query": "tax advisors in Frankfurt", "credit_cap": 50})
search = r.json()
leads = requests.get(search["leads_url"], headers={"Authorization": f"Bearer {os.environ['LEADMAPX_KEY']}"}).json()
201 Created
{
  "campaign_id": "8f93…41",
  "status": "running",
  "planned_areas": 18,
  "credit_cap": 50,
  "poll_url": "https://leadmapx.com/api/public/v1/searches/8f93…41",
  "leads_url": "https://leadmapx.com/api/public/v1/searches/8f93…41/leads"
}

OpenAPI specification

Import the machine-readable description into Postman, Insomnia, n8n or as a custom GPT action. openapi.json

Limits and errors

60 requests per minute and 1,200 per hour per account. 400 = invalid input or JSON, 401 = missing or revoked key, 402 = not enough credits, 404 = unknown search, 413 = body too large, 429 = wait 60 seconds (Retry-After).

Start searches from Zapier, Make or n8n

Use an HTTP step (Zapier: Webhooks by Zapier → Custom Request, Make: HTTP → Make a request, n8n: HTTP Request node) with POST /api/public/v1/searches and your API key. Poll the status or simply wait for the webhook below.

Receive every new lead by webhook

  1. Create a catch hook: Zapier "Catch Hook", Make "Custom webhook" or an n8n "Webhook" node, and copy its HTTPS URL.
  2. In LeadmapX open Account → Automation → CRM webhook, paste the URL and save.
  3. Click "Send test event" so your tool learns every field.
  4. Every newly unlocked lead is sent as event lead.unlocked; failed deliveries are retried up to 5 times.

Payload

{
  "event": "lead.unlocked",
  "lead": {
    "id": "…", "company": "Muster Steuerberatung GmbH",
    "legal_form": "GmbH",
    "website": "https://muster-stb.de",
    "email": "info@muster-stb.de",
    "email_status": "verified",
    "phone": "+49 69 123456",
    "address": "Hauptstraße 1", "postcode": "60311", "city": "Frankfurt am Main", "country": "DE",
    "lat": 50.11, "lng": 8.68,
    "primary_contact": { "first_name": "Anna", "last_name": "Muster", "role": "Managing Director" },
    "decision_makers": [ … ], "contacts": [ … ], "social": { … }, "score": 82, "source_url": "…", "verified_at": "…"
  }
}

Verify the signature

Each request carries X-LeadmapX-Timestamp and X-LeadmapX-Signature: sha256=<hex>. The signature is HMAC-SHA256 of "<timestamp>.<raw body>" with your webhook secret. Reject old timestamps and compare in constant time.

// Node.js
const expected = "sha256=" + crypto.createHmac("sha256", SECRET)
  .update(req.headers["x-leadmapx-timestamp"] + "." + rawBody).digest("hex");
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(req.headers["x-leadmapx-signature"]));

Native HubSpot export

No Zapier needed: create a HubSpot Private App with CRM company and contact read/write scopes, paste its token under Account → Automation → HubSpot. The token is checked and stored encrypted. Send selected leads from the lead table, or switch on auto-sync to push every newly unlocked lead in the background. Existing companies (same domain) and contacts (same email) are updated, not duplicated.

Connect any MCP-capable agent in 30 seconds. It signs in with OAuth as you, searches, exports leads and buys credits only within the daily budget you set.

1. Add the MCP server

Add this to your client configuration (Claude Desktop, Cursor, Windsurf or any MCP client). The first call opens the LeadmapX sign-in.

https://leadmapx.com/mcp

Client setup

  • Claude (Desktop & web): Settings → Connectors → Add custom connector, paste the URL.
  • ChatGPT: Settings → Connectors → Create, paste the URL (developer mode).
  • Claude Code: run claude mcp add --transport http leadmapx https://leadmapx.com/mcp

Cursor: add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "leadmapx": { "url": "https://leadmapx.com/mcp" }
  }
}

Windsurf: add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "leadmapx": { "serverUrl": "https://leadmapx.com/mcp" }
  }
}

Authentication

OAuth 2.1 with dynamic client registration. Your client opens the LeadmapX sign-in once; no API keys or passwords are shared. You can revoke access at any time by signing out the connection in your client.

2. Available tools

  • estimate_search_costCost forecast before starting
  • start_lead_searchFree-text search: business type + place
  • get_campaign_statusProgress, spend and suggested_followups
  • control_campaignPause, resume, cancel, set credit cap
  • get_delivered_leadsLeads with contacts as JSON, paged
  • verify_leadsMailbox checks (0.5 credits)
  • get_campaign_costsCost breakdown per search
  • list_campaignsAll searches of the user
  • get_credit_balanceBalance incl. daily free credits
  • list_credit_packsPacks and prices
  • buy_creditsPurchase within the 24 h budget

3. Recommended agent flow

  1. Estimate the cost of a search with estimate_search_cost.
  2. Start it with start_lead_search; 5 free credits are included every day.
  3. Poll get_campaign_status, then fetch results with get_delivered_leads.
  4. Follow suggested_followups for the next area, related keywords or email checks.

Guardrails

Agents act with your permissions only. Purchases stay within your rolling 24-hour budget, configurable under Account → Automation. Every search can carry a credit cap.

Create free account