Fetch Company Details

B2B API

Fetch company details

Retrieve a detailed profile for a known company, including identity, location, revenue, employee count, industry classification, and online presence. Optionally add family-tree, competitor, installed-technology, or logo data.

GET /company/{companyId} Requires bearer token Company ID required Optional related-data expansions

What you can retrieve

Company Details is best when you already have a Demandbase company ID from Company Search, record matching, or another B2B API workflow.

Identity

Understand the company

Retrieve the company name, description, type, operating status, tickers, websites, and social links.

Firmographics

Measure company scale

Return annual revenue, revenue currency, employee count, founding year, and site counts.

Classification

Understand the market

Review primary and secondary industries plus SIC, NAICS, and British SIC classifications.

Location

Find the primary address

Return street, city, state, postal code, country, coordinates, and phone number.

Organization

Explore the company hierarchy

Add family-tree data to review related companies and acquisition relationships.

Market context

Add competitive and technology data

Optionally return competitors, installed technologies, and available company logos.

Common requests

Fetch the core company profile

Request URL
GET /company/{companyId}

Include the family tree

Request URL
GET /company/{companyId}?fields=familytree

Include competitors

Request URL
GET /company/{companyId}?fields=competitors

Include installed technologies

Request URL
GET /company/{companyId}?fields=installedtech

Include company logos

Request URL
GET /company/{companyId}?fields=logos

Include multiple related datasets

Request URL
GET /company/{companyId}?fields=familytree,competitors

Quickstart

Replace COMPANY_ID with a company ID returned by Company Search or another B2B API workflow.

Step 1

Send the request

Request
curl --request GET \
  --url "https://uapi.demandbase.com/data/b2b/v1/company/COMPANY_ID" \
  --header "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  --header "Accept: application/json"
Step 2

Read the response

Illustrative response
{
  "companyId": 123456,
  "companyName": "Example Company",
  "companyType": "Public",
  "companyStatus": "Operating",
  "classification": {
    "primaryBusiness": {
      "industry": "Computer Software",
      "industryCode": "8"
    }
  },
  "address": {
    "city": "Example City",
    "state": "CA",
    "country": "United States"
  },
  "revenue": 1000,
  "revenueCurrency": "USD",
  "employeeCount": 5000,
  "websites": ["https://example.com"]
}

Request anatomy

Path

Identify the company

Place the integer Demandbase company ID directly in the request path.

companyIdRequired company identifier
Query

Control the response

Add related datasets, sort family-tree results, or select company fields.

fieldsRelated data to include
sortByFamily-tree result order
companyFieldsComma-separated company fields
Headers

Authenticate and choose a format

Send a valid bearer token and request JSON or XML.

AuthorizationBearer access token
Acceptapplication/json or application/xml

Response anatomy

The core response contains company profile data. Optional related datasets appear only when requested with fields.

Profile

Identity and status

companyIdDemandbase company ID
companyNameCompany name
descriptionCompany description
companyTypeCompany type
companyStatusOperating status
tickersTicker and exchange records
Firmographics

Scale and classification

classificationPrimary and secondary businesses
revenueAnnual revenue in millions
revenueCurrencyRevenue currency
employeeCountEmployee count
sicSIC code and description
naicsNAICS code and description
Presence

Location and online presence

addressPrimary address and coordinates
phoneCompany phone number
websitesCompany websites
socialHandlesSocial and blog URLs
siteTypesKnown site types
siteCountKnown site count
Company structure

Hierarchy and related companies

businessStructureCompany hierarchy type
familyTreeRecursive company hierarchy
acquisitionsAcquired-company records
competitorsCompetitor company records
Additional data

Technology, logos, and diversity

techUsedTechnology categories, subcategories, and products
companyLogosAvailable company-logo URLs
diversityDiversity attributes and certifications
britishSicsBritish SIC codes and descriptions

Important rules

Required

Use an integer company ID

The companyId path value is required and must be an integer.

Expansions

Use supported field values

Use familytree, competitors, installedtech, or logos.

Multiple expansions

Separate values with commas

Pass multiple fields values as one comma-separated query parameter.

Family-tree sorting

Use the supported sort value

sortBy supports popularity for family-tree results.

Parameters and expansions

Parameter Location Use it to Example
companyIdPathIdentify the company record to fetch.123456
fieldsQueryAdd one or more related datasets.familytree,competitors
sortByQuerySort family-tree results.popularity
companyFieldsQuerySelect comma-separated company fields.Comma-separated field names
fields

Related-data expansions

Value Returned as
familytreefamilyTree and related acquisition data
competitorscompetitors
installedtechtechUsed
logoscompanyLogos
Related records

Compact company objects

Family-tree, acquisition, and competitor results use compact company records.

companyIdDemandbase company ID
nameCompany name
cityCity
stateState or province
countryCountry
Response availability

Requested data may be absent

Optional profile attributes and related datasets appear only when data is available for the selected company.

Common errors

Status Error How to fix it
400-103 companyId must be an integer. Use the numeric company ID returned by Company Search or another B2B API workflow.
400-106 Invalid field name. Use only documented values in fields and supported company-field names.
401 Authentication failed. Generate a valid token and send it in the Authorization: Bearer YOUR_ACCESS_TOKEN header.
404-100 Invalid ID, record not found. Confirm the company ID exists and is available to your API Key Set.
Related endpoints

Next steps

Search for additional companies, find contacts at the account, or retrieve recent company news.

Search companies → · Search contacts → · Company news →