The Companies API LogoThe Companies API Logo
APIUse casesCompanies
LoginLogin
Get started
Authentication
Errors
Rate limits
Webhooks
Datapoints
Companies
Enrich from domain
Enrich from email
Enrich from social network
Count companies
Search companies
Search by name
Search by prompt
Search similar
Ask company
Fetch context
Find email patterns
Fetch analytics
Export analytics
Industries
Search industries
Find similar industries
Lists
Fetch lists
Create list
Fetch companies
Toggle companies
Locations
Search cities
Search counties
Search countries
Search states
Search continents
Actions
Request action
Fetch actions
Teams
Fetch team
Technologies
Search technologies
Utilities
API health
OpenAPI spec
Get started
Authentication
Errors
Rate limits
Webhooks
Datapoints
Companies
Enrich from domain
Enrich from email
Enrich from social network
Count companies
Search companies
Search by name
Search by prompt
Search similar
Ask company
Fetch context
Find email patterns
Fetch analytics
Export analytics
Industries
Search industries
Find similar industries
Lists
Fetch lists
Create list
Fetch companies
Toggle companies
Locations
Search cities
Search counties
Search countries
Search states
Search continents
Actions
Request action
Fetch actions
Teams
Fetch team
Technologies
Search technologies
Utilities
API health
OpenAPI spec

Search companies by name

Provide a company name and get all the companies that match it.
GET
https://api.thecompaniesapi.com/v2/companies/by-name
1 credit per company

You can use this endpoint if you need more information about the company, but be careful.

Two companies can have the same name, for example, Bolt.

That's why this feature can return multiple companies.

If you have a company's domain name, it's better to use it.

We use it as a unique key in our database.

Signup to access all the features

Get your API token and start implementing the API in your product with 500 free credits.

No credit card required

Query parameters
namestring (required)

The company name.

…/companies/by-name?name=microsoft

pagenumber (optional)

The page to fetch (default to 1).

/companies/by-name?page=1

countriesstring (optional)

The countries to filter the companies by. You can provide multiple countries separated by a comma. Default to all countries.

/companies/by-name?countries=us,fr,de

Possible values

ad
ae
af
ag
ai
al
am
ao
aq
ar
Show 238 more
exactWordsMatchboolean (optional)

If set to true, the company name must match the searched words. 'Bank of A' will not return Bank of America but 'Bank of' and 'Bank of America' will. Default to true.

/companies/by-name?exactWordsMatch=false

listsToExcludestring (optional)

Comma-separated IDs of your lists containing companies to exclude from the results.

/companies/by-name?listsToExclude=3920,3925

searchFieldsarray (optional)

attributes.searchFields

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

Possible values

about.name
domain.domain
simplifiedboolean (optional)

Return a simplified version of the companies (no credits deducted but limitation are applied on the free plan). It is useful for previewing the data before fetching the full version. Default to false.

/companies/by-name?simplified=true

Possible values

false
true
sizenumber (optional)

The number of companies to be returned (between 1 and 25). Default to 1.

/companies/by-name?name=amazon&size=2

sortFieldsstring (optional)

An array of multiple fields combined to sort the results.

…/companies/by-name?sortFields=%5B%7B%22key%22%3A%22meta.score%22%2C%22order%22%3A%22desc%22%7D%5D

Make sure this parameter is stringified and encoded.

sortKeystring (optional)

The field to sort the results.

…/companies/by-name?sortKey=meta.score

Possible values

about.businessType
about.industries
about.industry
about.name
about.totalEmployees
about.yearFounded
analytics.monthlyVisitors
apps
codes.naics
codes.sic
Show 13 more
sortOrderstring (optional)

The order to sort the results.

…/companies/by-name?sortOrder=asc

Possible values

asc
desc
Response schema
companiesarray

The companies that match with the name.

Browse all datapoints
metaobject

The metas information.

Code examples
Select your favorite language:
C#

Go

Java

JavaScript
SDK

PHP

Python

Ruby

Rust

import createClient from '@thecompaniesapi/sdk'

const tca = createClient({ apiToken: 'YOUR_API_TOKEN' })

const response = await tca.searchCompaniesByName({
  name: 'The Companies API',
  size: 2
})

const companies = response.data.companies // Companies that match the name
const meta = response.data.meta // Meta information

Search companies

Search and filter through millions of companies with more than 50 segmentation criteria.

Search companies using a prompt

Describe the companies you are looking for and our AI model will find them for you.

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