Discover/dnb.com API
live

dnb.com APIdnb.com

Search D&B's global business directory, retrieve company profiles with financials and contacts, and look up D-U-N-S numbers via a simple REST API.

Endpoints
3
Updated
3mo ago
Try it
Page number for pagination
Company name or keyword to search for
Number of results per page
api.parse.bot/scraper/74c825f2-e2bf-4077-a4bc-ae1975b468fd/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/74c825f2-e2bf-4077-a4bc-ae1975b468fd/search_companies?page=1&query=Microsoft&page_size=5' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

Search for companies by name or keyword in the D&B Business Directory. Returns paginated results with company summaries and navigator facets for filtering by country, industry, and employee count.

Input
ParamTypeDescription
pageintegerPage number for pagination
queryrequiredstringCompany name or keyword to search for
page_sizeintegerNumber of results per page
Response
{
  "type": "object",
  "fields": {
    "companies": "array of company objects with primaryName, companyAddress, companyCity, companyCountry, industryName, locationType, urlSelector",
    "navigators": "object with countries, familyTreeRolesPlayed, and numberOfEmployees facet arrays",
    "returnResults": "integer number of results returned in this page",
    "totalMatchedResults": "integer total number of matching companies"
  },
  "sample": {
    "data": {
      "companies": [
        {
          "duns": "11cc3fba5624e87df547d444810e77f8",
          "companyCity": "Redmond",
          "primaryName": "Microsoft Corporation",
          "urlSelector": "microsoft_corporation.11cc3fba5624e87df547d444810e77f8",
          "industryName": "Software Publishers",
          "locationType": "Parent",
          "companyRegion": "Washington",
          "companyAddress": "1 Microsoft Way",
          "companyCountry": "United States",
          "companyZipCode": "98052-8300",
          "tradeStyleNames": "Microsoft"
        }
      ],
      "navigators": {
        "countries": [
          {
            "countryName": "United States",
            "countryISOAlpha2Code": "us",
            "candidatesMatchedQuantity": 351
          }
        ],
        "numberOfEmployees": [
          {
            "maximumValue": 5,
            "minimumValue": 0,
            "candidatesMatchedQuantity": 163
          }
        ],
        "familyTreeRolesPlayed": [
          {
            "familyTreeRolesName": "Branch/Division",
            "candidatesMatchedQuantity": 551
          }
        ]
      },
      "returnResults": 5,
      "totalMatchedResults": 1065
    },
    "status": "success"
  }
}

About the dnb.com API

The D&B Business Directory API exposes 3 endpoints covering company search, full profile retrieval, and D-U-N-S number lookup across millions of businesses in Dun & Bradstreet's global directory. The search_companies endpoint returns paginated results with address, industry, and location type fields alongside navigator facets for filtering by country, employee count, and family tree role. Profile data includes revenue, year started, website, and corporate hierarchy sections.

Endpoints Overview

The API provides three endpoints. search_companies accepts a query string plus optional page and page_size parameters, returning an array of company objects with fields including primaryName, companyAddress, companyCity, companyCountry, industryName, and locationType. It also returns a navigators object with facet arrays for countries, employee count ranges, and family tree roles, plus totalMatchedResults so you can implement pagination correctly.

Company Profiles and D-U-N-S Lookup

get_company_profile accepts either a url_selector from search results (formatted as company_name.hash) or a full profile_url. It returns structured fields — company_name, address, phone, website, revenue, industry, year_started, duns_number — as well as a raw_data object containing the full response payload with overview, contacts, financials, header, and corporate hierarchy sections. Note that phone and year_started may be masked for non-subscribers on the D&B site, which is reflected in what the endpoint can return.

lookup_duns_number is purpose-built for resolving a company_name to its D-U-N-S identifier. It accepts optional city, state, and country (ISO alpha-2 code, e.g. us, gb) filters and returns an array of matching company objects including duns_hash, address, zip_code, industry, location_type, and a profile link, plus a total_results count.

Coverage and Data Shape

All three endpoints draw from Dun & Bradstreet's business directory, which covers companies globally. Revenue figures are denominated in USD. The duns_number field returns an encrypted hash form of the D-U-N-S identifier rather than the raw nine-digit number, consistent with how D&B exposes identifiers in its directory. The raw_data field in profile responses is the place to look for deeper corporate hierarchy and contacts data not surfaced in the top-level fields.

Common use cases
  • Resolve a company name to its D-U-N-S hash for cross-referencing business records using lookup_duns_number
  • Build a due-diligence workflow that pulls revenue, year started, and industry classification from get_company_profile
  • Populate a CRM with verified company addresses and website URLs retrieved from D&B profile data
  • Filter company search results by country and employee count range using the navigators facet arrays from search_companies
  • Identify corporate hierarchy relationships using the corporate section within the raw_data profile response
  • Verify whether a prospective partner or vendor has an active D&B listing before initiating onboarding
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Dun & Bradstreet have an official developer API?+
Yes. D&B offers the D&B Direct API for enterprise customers, documented at https://directplus.documentation.dnb.com/. It requires a paid contract and provides access to full D-U-N-S numbers, credit risk scores, and other data products not available in the public business directory.
What does `get_company_profile` return for phone numbers and founding year when that data is restricted on the D&B site?+
When D&B masks phone or year_started for non-subscribers, the endpoint returns those fields in the same masked form. The raw_data object is also returned, but restricted fields are not recoverable beyond what the directory exposes publicly.
Does the API return the raw nine-digit D-U-N-S number?+
No. Both get_company_profile and lookup_duns_number return duns_number and duns_hash as encrypted identifiers, consistent with how D&B surfaces them in the public directory. The unencrypted nine-digit D-U-N-S number is only available through D&B's enterprise API products. You can fork this API on Parse and revise it to add an endpoint that handles any additional identifier formats if D&B exposes them in other directory pages.
Can I retrieve credit risk scores or financial ratings through this API?+
Not currently. The API covers company overview, revenue, address, industry classification, contacts, and corporate hierarchy from the public D&B business directory. Credit risk scores, Paydex scores, and predictive analytics are not part of the public directory data. You can fork the API on Parse and revise it to add endpoints targeting those data surfaces if they become accessible.
How does pagination work in `search_companies`?+
The endpoint accepts page (page number) and page_size (results per page) as optional parameters. The response includes returnResults indicating how many records are in the current page and totalMatchedResults giving the full count of matching companies, which you can use to calculate total pages and drive pagination loops.
Page content last updated . Spec covers 3 endpoints from dnb.com.
Related APIs in B2b DirectorySee all →
angieslist.com API
Search for home service professionals on Angi and access their detailed profiles including reviews, contact information, and photos to find the right contractor for your project. Quickly compare multiple service providers by viewing their ratings, customer feedback, and verified business details all in one place.
naukri.com API
naukri.com API
maxpreps.com API
Access high school sports data from MaxPreps. Search for schools, retrieve team rosters and schedules, look up athlete profiles, and browse national or state rankings across all sports.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
homes.com API
Search for real estate agents and properties available for sale or rent, while accessing detailed agent profiles with their 1-year transaction history, active listings, and performance statistics. Get comprehensive property details and agent information all in one place to help you find the right agent or property that matches your needs.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
104.com.tw API
Search for jobs across Taiwan's largest job board and retrieve detailed job listings including descriptions, requirements, and company information. Find the right career opportunities by browsing thousands of positions or searching for specific roles that match your skills and interests.
mouser.com API
mouser.com API
Dun & Bradstreet Business Directory API · Parse