# Dun & Bradstreet Company Profile Scraper (`good-apis/dnb-company-profile-scraper`) Actor

Full D\&B firmographics for any company — name, 9-digit DUNS, website, HQ address, industries, revenue, Fortune rank, stock ticker and key executives. Input a company name or D\&B profile URL. $12.00 / 1,000 companies.

- **URL**: https://apify.com/good-apis/dnb-company-profile-scraper.md
- **Developed by:** [Danny](https://apify.com/good-apis) (community)
- **Categories:** Lead generation, Business
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Dun & Bradstreet Company Profile Scraper

Get the full **Dun & Bradstreet** business profile for any company — by name or by D\&B profile URL.
Returns one clean firmographic record per company: legal name, **9-digit D-U-N-S number**, website, HQ
address, industries, **annual revenue**, Fortune rank, stock exchange + ticker, and the key
principal / executives.

**Pricing: $12.00 per 1,000 companies** (pay per result — you are only charged for profiles actually
returned, never for a company that isn't found).

***

### What you get

Give it a list of companies. For each, you get back:

| Field | Description |
|-------|-------------|
| `name` | Legal / primary company name |
| `duns` | The 9-digit D-U-N-S number |
| `website` | Company website |
| `description` | Business description |
| `street_address`, `city`, `state`, `postal_code`, `country` | Full HQ address |
| `location` | One-line formatted address |
| `primary_industry`, `industries` | Industry sector + the full industry list |
| `revenue` | `{amount, formatted, currency, year, reliability}` — e.g. `$416.16 billion` (2025) |
| `fortune_rank` | Fortune ranking, when the company has one |
| `stock_exchange`, `ticker` | e.g. `NASDAQ:AAPL`, `AAPL` |
| `key_principal` | Top executive (usually the CEO) |
| `executives` | List of named executives with titles |
| `trade_style` | "Doing business as" name |
| `total_contacts`, `total_principals` | Contact / principal counts on file |
| `dnb_id` | The D\&B directory id (used in the profile URL) |
| `url` | The D\&B profile page URL |

> **Note on gated fields:** D\&B reserves a few fields (exact employee count, phone number) for its paid
> Hoovers subscription. Those come back as `null` — this actor never fabricates a value it can't see.

***

### Input

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `companies` | array of strings | ✅ | Company names (e.g. `"Apple"`) and/or D\&B profile URLs. |
| `country` | string | | ISO-2 country used when matching a name (default `US`). |

```json
{
  "companies": ["Apple", "Microsoft", "https://www.dnb.com/business-directory/company-profiles.tesla_inc.148284255.html"],
  "country": "US"
}
```

You can mix names and URLs freely. A name is matched to its best D\&B directory profile automatically.

***

### Example output (one item)

```json
{
  "name": "Apple Inc.",
  "duns": "060704780",
  "website": "www.apple.com",
  "city": "Cupertino",
  "state": "California",
  "country": "US",
  "primary_industry": "Manufacturing",
  "industries": ["Communications Equipment Manufacturing", "Computer and Peripheral Equipment Manufacturing"],
  "revenue": {"amount": 416161000000, "formatted": "$416.16 billion", "currency": "USD", "year": "2025", "reliability": "Actual"},
  "fortune_rank": {"rank": 4, "description": "Fortune 1000 Revenue Rank", "as_of": "2026"},
  "stock_exchange": "NASDAQ:AAPL",
  "ticker": "AAPL",
  "key_principal": "Timothy D Cook",
  "executives": [{"name": "Timothy D Cook", "position": "Chief Executive Officer"}],
  "url": "https://www.dnb.com/business-directory/company-profiles.apple_inc.ec7f550b3a97b94d919d837672573959.html"
}
```

***

### Run it from code

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("<YOUR_USERNAME>/dnb-company-profile-scraper").call(run_input={
    "companies": ["Apple", "Microsoft", "Walmart"],
    "country": "US",
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["duns"], item["revenue"])
```

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('<YOUR_USERNAME>/dnb-company-profile-scraper').call({
    companies: ['Apple', 'Microsoft', 'Walmart'],
    country: 'US',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

***

### FAQ

**Does it return the real 9-digit D-U-N-S number?** Yes — the `duns` field is the standard 9-digit
D-U-N-S number (e.g. Apple = `060704780`).

**Can I pass just a company name?** Yes. Names are matched to the closest D\&B directory profile. For
exact control, pass the D\&B profile URL.

**What about revenue for private companies?** Revenue is returned whenever D\&B publishes it (public
companies and many large private ones). If D\&B doesn't publish it, `revenue` is `null`.

**How am I billed?** Per company profile actually returned. Companies that don't match cost nothing.

**Where does the data come from?** The public Dun & Bradstreet Business Directory
(dnb.com/business-directory).

# Actor input Schema

## `companies` (type: `array`):

One or more companies to look up. Each entry can be a company name (e.g. 'Apple'), a full D\&B profile URL (dnb.com/business-directory/company-profiles.<slug>.<id>.html), or a bare url-selector. A name is matched to its best D\&B directory profile automatically.

## `country` (type: `string`):

ISO-2 country used when matching a company by name (default US).

## Actor input object example

```json
{
  "companies": [
    "Apple",
    "Microsoft",
    "Walmart"
  ],
  "country": "US"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "companies": [
        "Apple",
        "Microsoft",
        "Walmart"
    ],
    "country": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("good-apis/dnb-company-profile-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "companies": [
        "Apple",
        "Microsoft",
        "Walmart",
    ],
    "country": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("good-apis/dnb-company-profile-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "companies": [
    "Apple",
    "Microsoft",
    "Walmart"
  ],
  "country": "US"
}' |
apify call good-apis/dnb-company-profile-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=good-apis/dnb-company-profile-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/wmOrUd5aO3XmRyLlt/builds/WifZbHnAPHyrGEf7R/openapi.json
