> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Dun & Bradstreet: Dnb Get Data Blocks

> Enrich a company by D-U-N-S number with D&B Data Blocks. Includes SDK V2 guidance, input constraints, response fields, and Deepline credit cost.

Enrich a company by D-U-N-S number with D\&B Data Blocks.

<Info>
  Tool ID: `dnb_get_data_blocks`
</Info>

## Run this action

This action has conditional or dynamic input fields that cannot be represented by a reliable static example.

Inspect the live contract before executing it:

```bash theme={null}
deepline tools get dnb_get_data_blocks --json
```

## Example response

The static output schema is not detailed enough to generate a reliable example. Use `deepline tools get dnb_get_data_blocks --json` for the complete live contract.

## Input reference

Retrieve the requested Data Blocks for a nine-digit D-U-N-S number. Supply blockIDs as a comma-separated list of exact block IDs and versions licensed to your Direct+ account. Returns upstream D\&B JSON, including the requested company data. Requires a customer Direct+ key and secret.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.duns` | `string` | Yes | — | Nine-digit D-U-N-S Number. Minimum length: 1. Pattern: `^[0-9]&#123;9&#125;$`. |
| `payload.blockIDs` | `string` | Yes | — | Comma-separated licensed block IDs with exact levels and versions. Examples: companyinfo\_L2\_v1,hierarchyconnections\_L1\_v1,principalscontacts\_L3\_v2. Content and coverage depend on your D\&B contract. Minimum length: 1. |
| `payload.tradeUp` | `"hq"` | No | — | Allowed: `hq`. Minimum length: 1. |
| `payload.orderReason` | `string` | No | — | D\&B purpose-of-use code when required by your entitlement; use the reason applicable to your use case. Minimum length: 1. |
| `payload.inLanguage` | `string` | No | — | Minimum length: 1. |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Retrieve the requested Data Blocks for a nine-digit D-U-N-S number. Supply blockIDs as a comma-separated list of exact block IDs and versions licensed to your Direct+ account. Returns upstream D&B JSON, including the requested company data. Requires a customer Direct+ key and secret.",
    "properties": {
      "duns": {
        "type": "string",
        "description": "Nine-digit D-U-N-S Number.",
        "minLength": 1,
        "pattern": "^[0-9]{9}$"
      },
      "blockIDs": {
        "type": "string",
        "description": "Comma-separated licensed block IDs with exact levels and versions. Examples: companyinfo_L2_v1,hierarchyconnections_L1_v1,principalscontacts_L3_v2. Content and coverage depend on your D&B contract.",
        "minLength": 1
      },
      "tradeUp": {
        "type": "string",
        "minLength": 1,
        "enum": [
          "hq"
        ]
      },
      "orderReason": {
        "type": "string",
        "description": "D&B purpose-of-use code when required by your entitlement; use the reason applicable to your use case.",
        "minLength": 1
      },
      "inLanguage": {
        "type": "string",
        "minLength": 1
      }
    },
    "required": [
      "duns",
      "blockIDs"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

Standard tool result payload.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.data` | `object` | Yes | — | Provider response payload. |
| `result.meta` | `object` | No | — | Additional response metadata (status, paging). |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Standard tool result payload.",
    "properties": {
      "data": {
        "type": "object",
        "description": "Provider response payload.",
        "additionalProperties": true
      },
      "meta": {
        "type": "object",
        "description": "Additional response metadata (status, paging).",
        "additionalProperties": true
      }
    },
    "required": [
      "data"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Deepline cost

* Pricing model: `fixed` (per call).
* Estimated Deepline credits: `0` per pricing unit.
* Provider-native pricing may still exist outside Deepline credit billing.

## Related documentation

* [Dun & Bradstreet provider guide](/docs/providers/dnb/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.