# Zapier — DataMerge Integrations
> zapier.com/apps/datamerge/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Identity
DataMerge is a company data provider that uses AI agents to enrich company domains with company information and retrieve company hierarchies.

- App slug: datamerge
- Operations published here: 7 (4 functions, 3 queries)

## Authentication
Zapier connects to DataMerge via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection datamerge
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/datamerge/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect DataMerge through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · contact_search`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "datamerge", owner: "me" });

const { data } = await zapier.runAction({
  app: "datamerge",
  actionType: "write",
  action: "contact_search",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action datamerge write contact_search \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing DataMerge's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "datamerge" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions datamerge --page-size 50 --max-items 200 --json
```

### Functions (4)

Functions change something in DataMerge.

#### Search for Contacts
Search for contacts at specified companies with job title and location filters. Returns when complete (async with webhook).

- Type: write · Key: `contact_search`
- Requires: max_results_per_company
- Optional: domains, company_list, enrich_emails, enrich_phones, job_titles_include_1, job_titles_include_2, job_titles_exclude, location_country, location_region, location_city
- SDK: `runAction({ app: "datamerge", actionType: "write", action: "contact_search" })`
- CLI: `npx zapier-sdk run-action datamerge write contact_search`

#### Enrich Contacts
Enrich specific contacts by LinkedIn URL or by first name + last name + domain. Returns when complete (async with webhook).

- Type: write · Key: `enrich_contacts`
- Requires: contacts_json
- Optional: enrich_emails, enrich_phones
- SDK: `runAction({ app: "datamerge", actionType: "write", action: "enrich_contacts" })`
- CLI: `npx zapier-sdk run-action datamerge write enrich_contacts`

#### Find Lookalike Companies
Find similar companies using seed domains and filters. Starts the job and returns the result when complete (async with webhook).

- Type: write · Key: `find_lookalike_companies`
- Requires: lookalike_domains
- Optional: size, include_countries, company_sizes, revenues, year_founded_min, year_founded_max, list, exclude_all
- SDK: `runAction({ app: "datamerge", actionType: "write", action: "find_lookalike_companies" })`
- CLI: `npx zapier-sdk run-action datamerge write find_lookalike_companies`

#### Enrich Company Data
Enrich one or more companies by domain. Starts the job and returns the result when complete (async with webhook).

- Type: write · Key: `start_company_enrichment`
- Requires: nothing
- Optional: domain, domains, country_code, global_ultimate, list, skip_if_exists
- SDK: `runAction({ app: "datamerge", actionType: "write", action: "start_company_enrichment" })`
- CLI: `npx zapier-sdk run-action datamerge write start_company_enrichment`

### Queries (3)

Queries read from DataMerge and return data. They change nothing.

#### Find Company by ID
Fetch a company by DataMerge ID (charges 1 credit) or by record_id (free).

- Type: search · Key: `get_company`
- Requires: nothing
- Optional: datamerge_id, record_id, add_to_list
- SDK: `runAction({ app: "datamerge", actionType: "search", action: "get_company" })`
- CLI: `npx zapier-sdk run-action datamerge search get_company`

#### Find Companies in Hierarchy
Returns companies in the same global ultimate hierarchy for a given company ID.

- Type: search · Key: `get_company_hierarchy`
- Requires: datamerge_id
- Optional: copy, max_level, country_code, include_branches, include_names, only_subsidiaries
- SDK: `runAction({ app: "datamerge", actionType: "search", action: "get_company_hierarchy" })`
- CLI: `npx zapier-sdk run-action datamerge search get_company_hierarchy`

#### Find Contact by Record ID
Retrieve a contact by record UUID (from a previous contact search or enrichment). Never charges credits.

- Type: search · Key: `get_contact`
- Requires: record_id
- SDK: `runAction({ app: "datamerge", actionType: "search", action: "get_contact" })`
- CLI: `npx zapier-sdk run-action datamerge search get_contact`

## Links
- Full app page: zapier.com/apps/datamerge/integrations
- MCP: zapier.com/mcp/datamerge
- SDK: npmjs.com/package/@zapier/zapier-sdk