DataMerge
API Reference

The DataMerge API

A REST API for B2B data enrichment. Enrich companies by domain, find contacts by job title and location, traverse corporate hierarchies, and discover lookalike companies. JSON in, JSON out.

DataMerge mascot
Base URL
api.datamerge.ai
Format
JSON / REST
Auth
API key
Processing
Async (job + poll)

Authentication

All requests require an API key. Get yours at app.datamerge.ai. Sign up for 20 free credits, no credit card required.

Request header
Authorization: Token YOUR_API_KEY
or alternatively: X-API-Key: YOUR_API_KEY

Core Operations

Company Enrichment

POST /v1/company/enrich

Convert any domain into a full firmographic profile: registered legal name, address, industry, employee count, revenue, social profiles, and global ultimate holding company.

curl -X POST https://api.datamerge.ai/v1/company/enrich \
  -H "Authorization: Token $KEY" \
  -H "Content-Type: application/json" \
  -d '{"domains": ["stripe.com"]}'
# β†’ {"job_id": "abc123", "status": "queued"}
1 credit per successful record Β· 0 for not found

Corporate Hierarchy

GET /v1/company/hierarchy

Traverse the full corporate tree for any company: parent entities, subsidiaries, and the global ultimate holding company, each with their own legal name and country.

curl "https://api.datamerge.ai/v1/company/hierarchy\
?datamerge_id=DM001283124635&include_names=true" \
  -H "Authorization: Token $KEY"
# β†’ {parents: [...], company: {...}, children: [...]}
Returns all entities in the group Β· Unique capability (few providers offer this)

Contact Search

POST /v1/contact/search

Find decision-makers at companies by job title, seniority, and location. Enrich with validated email addresses and mobile phone numbers.

curl -X POST https://api.datamerge.ai/v1/contact/search \
  -H "Authorization: Token $KEY" \
  -d '{
    "domains": ["stripe.com"],
    "filters": {"job_titles_include": ["CEO","CTO"]},
    "enrich_fields": ["contact.emails"]
  }'
1 credit per email Β· 4 credits per mobile

Lookalike Discovery

POST /v1/company/lookalike

Find companies similar to a seed company, filtered by country, industry, employee count, and revenue. Ideal for building prospect lists from your best customers.

curl -X POST https://api.datamerge.ai/v1/company/lookalike \
  -H "Authorization: Token $KEY" \
  -d '{
    "companiesFilters": {
      "lookalikeDomains": ["stripe.com"],
      "primaryLocations": ["US"],
      "companySizes": ["51-200"]
    }
  }'
1 credit per company returned

How the API Works: Async Jobs

All enrichment endpoints are asynchronous. Every request returns a job_id immediately. Poll the status endpoint until the job completes. Results are embedded in the status response.

The pattern: always the same
# Step 1: Start the job
curl -X POST https://api.datamerge.ai/v1/company/enrich \
  -H "Authorization: Token $KEY" \
  -d '{"domains": ["shopify.com"]}'

# β†’ {"job_id": "abc123", "status": "queued"}

# Step 2: Poll until status = "completed"
curl https://api.datamerge.ai/v1/company/enrich/abc123/status \
  -H "Authorization: Token $KEY"

# β†’ {
#     "status": "completed",
#     "record_ids": ["uuid..."],
#     "companies": [{ "legal_name": "Shopify Inc", ... }]
#   }

Job statuses: queued β†’ processing β†’ completed or failed. Credits are only charged on completed with results.

Using DataMerge in AI Agents

πŸ”Œ

MCP Server

Connect Claude Desktop, Cursor, or Windsurf directly. No code required. Your agent calls DataMerge as a native tool.

https://mcp.datamerge.ai Setup guide β†’
πŸ“„

SKILL.md

Drop the SKILL.md into your agent's context. It contains everything an AI needs to understand and call the DataMerge API correctly.

datamerge.ai/SKILL.md View SKILL.md β†’
πŸ“š

Full Docs

One URL, all documentation inlined. Designed for AI agents that can't follow links. Fetch once and have everything.

datamerge.ai/docs/llms.txt Open docs β†’
DataMerge mascot

Ready to Fetch Some Leads?

Free credits. Premium data. Zero tail-chasing.

1 credit = 1 lead. No credit card required.