Random Companies
GEThttps://api-companies.dataandapis.com/v1/companies/random
Random Companies is an endpoint of the Company Enrichment API. Turn a domain or work email into company name, industry, size, HQ, tickers and socials.
Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.
Request
Query parameters
| Parameter | Example | |
|---|---|---|
| amount | 3 | Optional |
Example request
curl
curl "https://api-companies.dataandapis.com/v1/companies/random?amount=3" \
-H "X-Api-Key: YOUR_API_KEY"JavaScript / TypeScript (dataandapis package)
// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.companies.randomCompanies({ amount: 3 });Node.js (fetch)
const res = await fetch("https://api-companies.dataandapis.com/v1/companies/random?amount=3", {
headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();Python (dataandapis package)
# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.companies.random_companies(amount=3)Python (requests)
import os, requests
r = requests.get(
"https://api-companies.dataandapis.com/v1/companies/random?amount=3",
headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()Guide to the dataandapis npm package →Guide to the dataandapis Python package →
Example response
Example response{
"ok": true,
"count": 3,
"results": [
{
"id": 51026,
"name": "Wysor",
"domain": "wysor.io",
"description": "German software company providing AI tools for regulated professions",
"country": "Germany",
"industries": [
"artificial intelligence"
],
"employees": null,
"tickers": [],
"sources": [
"WIKIDATA"
]
},
{
"id": 85791,
"name": "Airport Railroad Corporation",
"domain": "arex.or.kr",
"description": "South Korean airport railroad company",
"country": "South Korea",
"industries": [
"airport rail link"
],
…
Show full response
Example response
{
"ok": true,
"count": 3,
"results": [
{
"id": 51026,
"name": "Wysor",
"domain": "wysor.io",
"description": "German software company providing AI tools for regulated professions",
"country": "Germany",
"industries": [
"artificial intelligence"
],
"employees": null,
"tickers": [],
"sources": [
"WIKIDATA"
]
},
{
"id": 85791,
"name": "Airport Railroad Corporation",
"domain": "arex.or.kr",
"description": "South Korean airport railroad company",
"country": "South Korea",
"industries": [
"airport rail link"
],
…{
"ok": true,
"count": 3,
"results": [
{
"id": 51026,
"name": "Wysor",
"domain": "wysor.io",
"description": "German software company providing AI tools for regulated professions",
"country": "Germany",
"industries": [
"artificial intelligence"
],
"employees": null,
"tickers": [],
"sources": [
"WIKIDATA"
]
},
{
"id": 85791,
"name": "Airport Railroad Corporation",
"domain": "arex.or.kr",
"description": "South Korean airport railroad company",
"country": "South Korea",
"industries": [
"airport rail link"
],
"employees": null,
"tickers": [],
"sources": [
"WIKIDATA"
]
},
{
"id": 60356,
"name": "Ministry of Supply",
"domain": "ministryofsupply.com",
"description": "American fashion brand",
"country": "United States",
"industries": [
"fashion"
],
"employees": null,
"tickers": [],
"sources": [
"WIKIDATA"
]
}
]
}