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

Authentication

Learn how to authenticate your requests to The Companies API.

The Companies API uses API tokens to authenticate requests. They are permanent, never expire, and safe for long-term purposes.

You can manage your API tokens in your settings or on this page below.

Your API tokens carry many privileges, so keep them secure!

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

API tokens

There are multiple ways to authenticate your HTTPS requests to the API.

  • By adding an Authorization header. The Authorization header is formatted as such: Authorization: Basic MY-API-TOKEN (replace MY-API-TOKEN with one of yours).
  • By sending the API token as a GET parameter. Like this ?token=MY-API-TOKEN (mostly used to quickly test an endpoint).
  • You can also authenticate your requests using our SDKs for your favorite programming languages. The JavaScript SDK is already available.
Code examples
Select your favorite language:
C#

Go

Java

JavaScript
SDK

PHP

Python

Ruby

Rust

// Example 1 : With our SDK
import createClient from '@thecompaniesapi/sdk'

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

const response = await tca.fetchCompany({
  domain: 'thecompaniesapi.com'
})

const company = response.data // The company profile

// Example 2 : With a GET parameter
const response = await fetch('https://api.thecompaniesapi.com/v2/companies/thecompaniesapi.com?token=YOUR_API_TOKEN')

const company = response.data // The company profile

// Example 3 : With an Authorization header
const response = await fetch('https://api.thecompaniesapi.com/v2/companies/thecompaniesapi.com', {
  headers: {
    'Authorization': 'Basic YOUR_API_TOKEN'
  }
})

const company = response.data // The company profile

Getting Started

Supercharge your product features and marketing with The Companies API.

Errors

Learn how to handle errors when using The Companies API.

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