The Companies API LogoThe Companies API Logo
APICompaniesUse casesPricing
LoginLogin

Count companies by industry, revenue, size, & more with our API

Easily count companies by industry, revenue, size, and other criteria using our powerful API. Get accurate data for your business needs.

Count companies matching your query

Free

Count the companies matching your conditions. Useful if you are building your own search engine for companies.

Query parameters

querystring (required)

An array of conditions the companies must match.

Make sure this parameter is stringified and encoded.

GET
https://api.thecompaniesapi.com/v2/companies/count?query=%5B%7B%22attribute%22%3A%22about.industries%22%2C%22operator%22%3A%22or%22%2C%22sign%22%3A%22equals%22%2C%22values%22%3A%5B%22retail%22%2C%22internet%22%2C%22services%22%5D%7D%2C%7B%22attribute%22%3A%22locations.headquarters.country.code%22%2C%22operator%22%3A%22or%22%2C%22sign%22%3A%22equals%22%2C%22values%22%3A%5B%22us%22%2C%22fr%22%2C%22gb%22%5D%7D%5D&token=XXXXXX
The endpoint that defines your search criteria.
searchstring (optional)

An additional search query applied to the company name or domain.

/companies/count?search=amazon

searchFieldsarray (optional)

Define the fields to search.

/companies/count?searchFields[]=domain&searchFields[]=name

Possible values

about.name
domain.domain

Response

countnumber

The number of companies matching the conditions.

Endpoints
GET
https://api.thecompaniesapi.com/v2/companies/count
POST
https://api.thecompaniesapi.com/v2/companies/count
A glowing background image to highlight the titleA glowing background image to highlight the title
© 2025 The Companies API
  • Updates
  • Terms
  • Privacy
  • FAQ
  • Status

Fast-growing SaaS companies with remote teams