DUNS Number

GET/v0/duns

Validates DUNS (Data Universal Numbering System) numbers — 9-digit company identifiers issued by Dun & Bradstreet. Widely required in public procurement, US federal contracting, and international trade. Accepts both plain format (150483782) and hyphenated format (15-048-3782). Optionally performs a live lookup against the D&B Direct+ API to retrieve company details.

Try it

Query Parameters

ParameterTypeRequiredDescription
valuestringYesThe 9-digit DUNS number to validate. Hyphens and spaces are ignored (e.g. 00-668-9579 and 006689579 are equivalent).
lookupbooleanNoWhen true, performs a live lookup against the D&B Direct+ API and returns company details.

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://api.isvalid.dev/v0/duns?value=006689579&lookup=true"

Response Fields

FieldTypeDescription
validbooleanWhether the value is a valid 9-digit DUNS number
formattedstringThe number in canonical hyphenated format (XX-XXX-XXXX). Only present when valid is true.
dunsobjectLive lookup result. Present only when lookup=true. See The duns object below.

The duns object

When the lookup failed (checked: false):

FieldTypeDescription
checkedbooleanfalse
reasonstringunavailable — the D&B Direct+ API could not be reached or credentials are not configured

When the lookup succeeded (checked: true):

FieldTypeDescription
checkedbooleantrue
foundbooleanWhether the company was found in the D&B registry
namestring | nullRegistered company name
countryCodestring | nullISO 3166-1 alpha-2 country code of the registered address
citystring | nullCity of the registered address
regionstring | nullState or region abbreviation (e.g. NY, CA)
postalCodestring | nullPostal code of the registered address
streetstring | nullStreet address line
isActiveboolean | nullWhether the company is currently active. null if status is unknown.

Example Response

{
  "valid": true,
  "formatted": "00-668-9579",
  "duns": {
    "checked": true,
    "found": true,
    "name": "Dun & Bradstreet Inc.",
    "countryCode": "US",
    "city": "Jacksonville",
    "region": "FL",
    "postalCode": "32202",
    "street": "5335 Gate Pkwy",
    "isActive": true
  }
}