curl --request POST \
--url https://api.companyenrich.com/companies/similar/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domains": [
"<string>"
],
"similarityWeight": 0,
"minScore": 0.5,
"exclude": {
"domains": [
"<string>"
],
"regions": [
"<string>"
],
"countries": [
"<string>"
],
"states": [
123
],
"cities": [
123
],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [
123
],
"keywords": [
"<string>"
],
"technologies": [
"<string>"
],
"fundingRounds": []
},
"query": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
},
"workforceGrowth": {
"minPercent": 123,
"maxPercent": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"require": [],
"regions": [
"<string>"
],
"countries": [
"<string>"
],
"states": [
123
],
"cities": [
123
],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [
123
],
"keywords": [
"<string>"
],
"technologies": [
"<string>"
],
"fundingRounds": []
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
domains: ['<string>'],
similarityWeight: 0,
minScore: 0.5,
exclude: {
domains: ['<string>'],
regions: ['<string>'],
countries: ['<string>'],
states: [123],
cities: [123],
type: [],
category: [],
employees: [],
reportedEmployees: [],
revenue: [],
naicsCode: [123],
keywords: ['<string>'],
technologies: ['<string>'],
fundingRounds: []
},
query: '<string>',
foundedYear: {min: 123, max: 123},
fundingAmount: {min: 123, max: 123},
fundingYear: {min: 123, max: 123},
workforceGrowth: {minPercent: 123, maxPercent: 123},
workforceSize: [{min: 123, max: 123}],
require: [],
regions: ['<string>'],
countries: ['<string>'],
states: [123],
cities: [123],
type: [],
category: [],
employees: [],
reportedEmployees: [],
revenue: [],
naicsCode: [123],
keywords: ['<string>'],
technologies: ['<string>'],
fundingRounds: []
})
};
fetch('https://api.companyenrich.com/companies/similar/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/companies/similar/preview"
payload = {
"domains": ["<string>"],
"similarityWeight": 0,
"minScore": 0.5,
"exclude": {
"domains": ["<string>"],
"regions": ["<string>"],
"countries": ["<string>"],
"states": [123],
"cities": [123],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [123],
"keywords": ["<string>"],
"technologies": ["<string>"],
"fundingRounds": []
},
"query": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
},
"workforceGrowth": {
"minPercent": 123,
"maxPercent": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"require": [],
"regions": ["<string>"],
"countries": ["<string>"],
"states": [123],
"cities": [123],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [123],
"keywords": ["<string>"],
"technologies": ["<string>"],
"fundingRounds": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"domain": "<string>",
"website": "<string>",
"industry": "<string>",
"description": "<string>",
"keywords": [
"<string>"
],
"logo_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"metadata": {
"scores": {}
},
"page": 123,
"totalPages": 123,
"totalItems": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Preview
Cost: FREE - No credits deducted
Requirements: Requires Scale plans
Notice: Returns top 25 results only
Preview search for similar companies based on given criteria. You can search by domain, industry, employees, revenue, founded year, and more. This endpoint returns the top 25 similar companies for free, perfect for previewing results before running a full similar search.
curl --request POST \
--url https://api.companyenrich.com/companies/similar/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"domains": [
"<string>"
],
"similarityWeight": 0,
"minScore": 0.5,
"exclude": {
"domains": [
"<string>"
],
"regions": [
"<string>"
],
"countries": [
"<string>"
],
"states": [
123
],
"cities": [
123
],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [
123
],
"keywords": [
"<string>"
],
"technologies": [
"<string>"
],
"fundingRounds": []
},
"query": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
},
"workforceGrowth": {
"minPercent": 123,
"maxPercent": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"require": [],
"regions": [
"<string>"
],
"countries": [
"<string>"
],
"states": [
123
],
"cities": [
123
],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [
123
],
"keywords": [
"<string>"
],
"technologies": [
"<string>"
],
"fundingRounds": []
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
domains: ['<string>'],
similarityWeight: 0,
minScore: 0.5,
exclude: {
domains: ['<string>'],
regions: ['<string>'],
countries: ['<string>'],
states: [123],
cities: [123],
type: [],
category: [],
employees: [],
reportedEmployees: [],
revenue: [],
naicsCode: [123],
keywords: ['<string>'],
technologies: ['<string>'],
fundingRounds: []
},
query: '<string>',
foundedYear: {min: 123, max: 123},
fundingAmount: {min: 123, max: 123},
fundingYear: {min: 123, max: 123},
workforceGrowth: {minPercent: 123, maxPercent: 123},
workforceSize: [{min: 123, max: 123}],
require: [],
regions: ['<string>'],
countries: ['<string>'],
states: [123],
cities: [123],
type: [],
category: [],
employees: [],
reportedEmployees: [],
revenue: [],
naicsCode: [123],
keywords: ['<string>'],
technologies: ['<string>'],
fundingRounds: []
})
};
fetch('https://api.companyenrich.com/companies/similar/preview', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/companies/similar/preview"
payload = {
"domains": ["<string>"],
"similarityWeight": 0,
"minScore": 0.5,
"exclude": {
"domains": ["<string>"],
"regions": ["<string>"],
"countries": ["<string>"],
"states": [123],
"cities": [123],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [123],
"keywords": ["<string>"],
"technologies": ["<string>"],
"fundingRounds": []
},
"query": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
},
"workforceGrowth": {
"minPercent": 123,
"maxPercent": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"require": [],
"regions": ["<string>"],
"countries": ["<string>"],
"states": [123],
"cities": [123],
"type": [],
"category": [],
"employees": [],
"reportedEmployees": [],
"revenue": [],
"naicsCode": [123],
"keywords": ["<string>"],
"technologies": ["<string>"],
"fundingRounds": []
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"items": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"domain": "<string>",
"website": "<string>",
"industry": "<string>",
"description": "<string>",
"keywords": [
"<string>"
],
"logo_url": "<string>",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"metadata": {
"scores": {}
},
"page": 123,
"totalPages": 123,
"totalItems": 123
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>",
"errors": {}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
Query Parameters
Whether to wait for on-demand enrichment when a seed company is not stored yet. When false, valid missing domains are scheduled for background enrichment and the request returns a 404 if any seed company is missing, so it can be retried with a stable seed set later. This only controls seed-company enrichment; preparing a similarity vector for a stored company may still require processing.
Body
Response
OK