DataMerge

Enrich companies and contacts, search contacts via the DataMerge API

Get Company

AI-generated

Summary

Fetches a company record from the DataMerge API by DataMerge ID (1 credit) or by a record UUID from a previous enrichment (free), returning the record flattened into a single-level JSON object.

Inputs

  • Lookup By — Choose 'DataMerge ID' (default; charges 1 credit) or 'Record ID' (free).
  • DataMerge ID (required) — Company ID such as DM001283124635. Shown and required only when Lookup By is DataMerge ID. Sent as the datamerge_id query parameter.
  • Record ID (required) — Record UUID returned from a previous enrichment job. Shown and required only when Lookup By is Record ID. Sent as the record_id query parameter.
  • Add to List — Optional list slug (e.g. my-companies) to add the company to. Only available and sent when looking up by DataMerge ID.

Output shape

One item per input item, containing id, company_id, success, and the company record's fields flattened. Nested objects become keys joined with double underscores (e.g. parent__child). Arrays are kept as arrays.

If the API response has no success flag or no record, no item is emitted for that input item (it is silently skipped). Errors throw a NodeApiError, or with Continue On Fail enabled are output as an item with an 'error' message.

Examples

Example 1: Look up a known company and save it to a list

Lookup By = DataMerge ID; DataMerge ID = DM001283124635; Add to List = my-companies

Example 2: Retrieve a company already enriched earlier, at no cost

Lookup By = Record ID; Record ID = {{ $json.record_id }} from a prior enrichment result

Links

Discussion