The Mine Works
Dun & Bradstreet Company Lists by Industry and City, With Revenue and Employees
← All posts
use-case November 27, 2026 · 8 min read Updated November 27, 2026

Dun & Bradstreet Company Lists by Industry and City, With Revenue and Employees

Build target account lists from the Dun & Bradstreet business directory by industry, state and city, with phone, website, key principal, NAICS codes, revenue and employee counts, and filter them in a short Python script.

Try the scraper

The actor referenced in this article. Pay only for results delivered.

View the scraper →

A sales team that sells to one kind of company in one place, say software publishers in Austin or banks in Chicago, needs the same list every quarter: who is there, how big they are, who runs them and how to reach the office. The Dun & Bradstreet business directory on dnb.com has exactly that, sorted by industry and location, with revenue and employee counts. It shows it one company page at a time, with no export.

Try it live: Dun & Bradstreet Scraper. Pay per result delivered.

The Dun & Bradstreet Scraper reads the public D&B directory by industry, country, state and city, or from pasted dnb.com links, and returns one flat row per company: name, full address, phone, website, key principal, NAICS and SIC codes, ownership, revenue and employees as numbers, and the D&B directory id. No login, no cookies and no API key. D&B’s directory sits behind a Cloudflare check that plain cloud addresses do not pass, so the actor sends its calls through Apify’s UNBLOCKER proxy, and that cost is in the price.

Who uses this data

  • Sales and SDR teams building a territory list: every company in one industry in one state or city, with phone, website and the named key principal.
  • RevOps and CRM owners who want clean segments. Each row has the primary 4 digit NAICS code, every NAICS and SIC code on the profile and the parent sector, so it drops into a CRM field without guessing.
  • Market sizing and strategy. List rows only, with profiles off, show how many companies D&B lists for an industry in a place, cheaply. D&B listed 59,042 software publishers in the United States on 20 Nov 2026.
  • Account researchers enriching a known company: paste its D&B profile link and get revenue, employees, ownership and principals back.

Which actor fits which job

JobActorInputOne row is
Companies by industry and city, with revenueDun & Bradstreet ScraperIndustries, country, state, cityOne company
Funding rounds and investorsCrunchbase ScraperCompany names or slugsOne company profile
Company size, website and followers on LinkedInLinkedIn Company ScraperCompany pagesOne company
A company name to its official websiteCompany Domain FinderCompany namesOne company and its domain
People and emails at the accounts you pickedB2B Leads FinderTarget companiesOne lead

D&B is where the list starts: which companies exist in a market and how big they are. The others add funding, social presence or the people to contact. This post sticks to D&B.

A prospect list: one industry in one city

{
  "industries": ["computer_systems_design_and_related_services"],
  "country": "us",
  "state": "NY",
  "city": "New York",
  "maxItems": 200
}
  • industries takes D&B directory industry slugs. All 314 are in the input, with their NAICS code, so you pick from a list rather than type them.
  • country is a two letter code (us, gb, ca, au, de, fr, in and so on). The United States has the most data.
  • state is written as D&B writes it (California, Texas, England, Ontario) or as a US code (CA, TX, NY). city needs a state.
  • maxItems is per industry or link, 1 to 5,000. Lists come largest revenue first, so a small number gives you the biggest companies in that market.
  • includeDetails is on by default and reads each company’s profile for phone, website, revenue, employees and principals.

A misspelt place costs one call and returns an info row, not a bill.

Size a market first, then enrich the shortlist

Profiles cost more because each one is a separate call through the unblocker, while one list call returns about 50 companies. So for a wide market, start with list rows only:

{
  "industries": ["software_publishers", "restaurants_and_other_eating_places"],
  "country": "gb",
  "maxItems": 500,
  "includeDetails": false
}

Each row then has name, city, state, country, D&B id and profile link. The README’s test returned 240 list rows from two UK industries in 76 seconds. Pick the companies you want and send their profile_url values back as startUrls:

{
  "startUrls": [
    "https://www.dnb.com/business-directory/company-profiles/microsoft-corporation.11cc3fba5624e87df547d444810e77f8",
    "https://www.dnb.com/business-directory/company-profiles/apple-inc.ec7f550b3a97b94d919d837672573959"
  ]
}

A profile link returns that company with its full profile. Listing links from dnb.com work too and keep D&B’s own filters, for example https://www.dnb.com/business-directory/us/software-publishers/revenue-1b-plus/companies for software publishers with revenue above one billion dollars.

Python: a call list with reported revenue only

This script pulls software publishers in Austin, Texas, keeps companies whose revenue D&B marks as Actual, and writes a CSV sorted by employee count.

import csv
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("themineworks/dnb-scraper").call(run_input={
    "industries": ["software_publishers"],
    "country": "us",
    "state": "Texas",
    "city": "Austin",
    "maxItems": 100,
    "includeDetails": True
})

rows = []
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if "_type" in row:  # summary, info and error rows
        continue
    if not row.get("details_scraped"):
        continue  # list data only, no profile fields
    if row.get("revenue_reliability") != "Actual":
        continue
    rows.append(row)

rows.sort(key=lambda r: r.get("employees_all_sites_count") or 0, reverse=True)

cols = ["company_name", "city", "phone", "website", "key_principal",
        "naics_code", "revenue_usd", "employees_all_sites_count", "profile_url"]
with open("austin_software.csv", "w", newline="") as f:
    w = csv.DictWriter(f, fieldnames=cols, extrasaction="ignore")
    w.writeheader()
    w.writerows(rows)
print(f"{len(rows)} companies with reported revenue")

Company rows have no _type field; the summary, info and error rows do. details_scraped is false when a profile could not be read, and that row is charged at the list price. Drop the revenue_reliability check if Modelled figures are good enough for your segment.

What a row holds

FieldWhat it is
company_name, trade_style_nameLegal name and the doing business as name when D&B shows one
dnb_id, profile_urlD&B directory id and profile link
address, city, state, country, country_codeFull address with profiles; place on every row
phone, websiteWith profiles
key_principal, principalsThe key principal and the other principals D&B names publicly, with positions
industry, naics_code, industries, parent_industryPrimary industry, 4 digit NAICS, every NAICS and SIC code, parent sector
ownership, entity_type, is_headquartersFor example Public, Parent, true
employees_all_sites, employees_all_sites_countD&B’s band and the number, with reliability
employees_this_site, employees_this_site_countSame for this location
revenue, revenue_usd, revenue_reliability, revenue_yearBand text, number in USD, Actual or Modelled, year
revenue_historyRevenue by year in USD millions, when D&B shows it
stock_ticker, rankingPublic companies, for example a Fortune 1000 rank
source, search_industry, search_location, positionWhere the row came from

In the README’s tests on Apify, street address, website and key principal came back on 75 of 75 profiles and the phone on 73 of 75.

What it costs

EventFree planGold
Company with full profile$0.009$0.0072
Company from a list only$0.0018$0.0012
Run start$0.003$0.003

That is $9.00 per 1,000 full profiles on the Free plan and $7.20 on Gold, or $1.80 and $1.20 per 1,000 list rows. Each company row is charged once, as one or the other, never both. Apify’s free plan includes $5 of credit every month, which covers about 550 full profiles or about 2,700 list rows at Free plan prices.

Never charged: inputs that are not D&B industries or links, a list with no companies, a company that a second list of the same run returns again, companies past maxItems, the summary, info and error rows, and anything past your max cost per run. The start fee is charged only once companies came back.

Limits worth knowing

  • No D-U-N-S number. D&B hides it, along with year started and year incorporated, from visitors. dnb_id is the stable id you get instead.
  • No search by company name. D&B’s keyword search runs behind a verification check. Work from industries and places, or paste profile links.
  • 5,000 companies per list, 100 lists per run. Split a big market by state or city to go further.
  • Profiles take time. A profile takes 10 to 70 seconds through the unblocker, 8 are read at a time. The README’s “Try it” input, 10 full profiles, took about 2 minutes.
  • Revenue and employees can be estimates. Check the reliability fields before you treat a number as reported.
  • No emails. Phone, website and named principals only.

The actor reads only the public directory pages anyone can open on dnb.com without an account. It does not log in, buy reports or read D&B Hoovers or credit data. The people in the rows are company officers D&B names publicly in a business role; you are responsible for how you use them, including D&B’s terms and the marketing and data protection laws that apply to you.

Related Actor

Explore the scraper referenced in this article: inputs, outputs, and pricing, then run it on Apify.

Frequently asked questions

Can I get the D-U-N-S number for each company? +

No. D&B hides the 9 digit D-U-N-S number from visitors and sells it in its reports, so it is not in the rows. Each row carries dnb_id instead, the id from the D&B profile link, which is stable and unique per company and works as a join key between runs.

How do I get only large companies? +

Lists already come largest revenue first, so a low maxItems gives the top of a market. For a hard cut, open the D&B directory, apply its own filter such as revenue-1b-plus or employees-10000-plus, and paste that listing link into startUrls. The filter in the link is kept.

Is the revenue figure reported or estimated? +

It can be either. D&B labels each revenue and employee figure as Actual (reported) or Modelled (estimated by D&B), and the actor keeps that label in revenue_reliability and employees_all_sites_reliability. Filter on Actual when you need reported numbers only.

Does it return email addresses? +

No. A row holds the company phone, website, address, key principal and the other principals D&B names publicly with their positions, but no email addresses. Pair the website column with an email or contact tool if your outreach needs them.

Apify Store

Find a ready-made scraper for your job

Apify has over 80,000 scrapers and automations, ours included. Start free with $5 of platform credit every month.