Count matching companies
curl --request POST \
--url https://api.companyenrich.com/v2/companies/search/count \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"query": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain": "<string>",
"keywords": "<string>",
"technologies": "<string>",
"region": "<string>",
"country": "<string>",
"state": 123,
"city": 123,
"workforceGrowth": {
"min": 123,
"max": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"naicsCodes": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
}
},
"semantic": {
"query": "<string>",
"weight": 0.5,
"autoFilter": true
},
"lookalike": {
"domains": [
"<string>"
],
"weight": 0,
"minScore": 0.5
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: {
query: '<string>',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
domain: '<string>',
keywords: '<string>',
technologies: '<string>',
region: '<string>',
country: '<string>',
state: 123,
city: 123,
workforceGrowth: {min: 123, max: 123},
workforceSize: [{min: 123, max: 123}],
naicsCodes: '<string>',
foundedYear: {min: 123, max: 123},
fundingAmount: {min: 123, max: 123},
fundingYear: {min: 123, max: 123}
},
semantic: {query: '<string>', weight: 0.5, autoFilter: true},
lookalike: {domains: ['<string>'], weight: 0, minScore: 0.5}
})
};
fetch('https://api.companyenrich.com/v2/companies/search/count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/v2/companies/search/count"
payload = {
"filter": {
"query": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain": "<string>",
"keywords": "<string>",
"technologies": "<string>",
"region": "<string>",
"country": "<string>",
"state": 123,
"city": 123,
"workforceGrowth": {
"min": 123,
"max": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"naicsCodes": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
}
},
"semantic": {
"query": "<string>",
"weight": 0.5,
"autoFilter": True
},
"lookalike": {
"domains": ["<string>"],
"weight": 0,
"minScore": 0.5
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"count": 123,
"total": 123,
"interpretation": {
"filter": {
"query": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain": "<string>",
"keywords": "<string>",
"technologies": "<string>",
"region": "<string>",
"country": "<string>",
"state": 123,
"city": 123,
"type": "private",
"employees": "1-10",
"reportedEmployees": "1-10",
"revenue": "under-1m",
"workforceGrowth": {
"period": "m6",
"department": "overall",
"min": 123,
"max": 123
},
"workforceSize": [
{
"department": "overall",
"min": 123,
"max": 123
}
],
"naicsCodes": "<string>",
"categories": "b2b",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingRounds": "seed",
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
},
"require": "linkedin"
},
"boost": {
"names": [
"<string>"
],
"categories": [
"b2b"
],
"revenue": [
"under-1m"
]
}
}
}{
"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>"
}Company · Search
Count matching companies
Counts companies using the same filters, semantic query, and lookalike query as the search endpoint, without pagination or response expansions. Send an empty object ({}) to count companies without filters.
This endpoint does not consume credits. count is limited by the current plan; total is the matching search population before plan limits. Semantic and lookalike totals refer to the vector search candidate pool. Semantic queries infer company attributes as in search and report them in interpretation.
POST
/
v2
/
companies
/
search
/
count
Count matching companies
curl --request POST \
--url https://api.companyenrich.com/v2/companies/search/count \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"filter": {
"query": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain": "<string>",
"keywords": "<string>",
"technologies": "<string>",
"region": "<string>",
"country": "<string>",
"state": 123,
"city": 123,
"workforceGrowth": {
"min": 123,
"max": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"naicsCodes": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
}
},
"semantic": {
"query": "<string>",
"weight": 0.5,
"autoFilter": true
},
"lookalike": {
"domains": [
"<string>"
],
"weight": 0,
"minScore": 0.5
}
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
filter: {
query: '<string>',
id: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
domain: '<string>',
keywords: '<string>',
technologies: '<string>',
region: '<string>',
country: '<string>',
state: 123,
city: 123,
workforceGrowth: {min: 123, max: 123},
workforceSize: [{min: 123, max: 123}],
naicsCodes: '<string>',
foundedYear: {min: 123, max: 123},
fundingAmount: {min: 123, max: 123},
fundingYear: {min: 123, max: 123}
},
semantic: {query: '<string>', weight: 0.5, autoFilter: true},
lookalike: {domains: ['<string>'], weight: 0, minScore: 0.5}
})
};
fetch('https://api.companyenrich.com/v2/companies/search/count', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.companyenrich.com/v2/companies/search/count"
payload = {
"filter": {
"query": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain": "<string>",
"keywords": "<string>",
"technologies": "<string>",
"region": "<string>",
"country": "<string>",
"state": 123,
"city": 123,
"workforceGrowth": {
"min": 123,
"max": 123
},
"workforceSize": [
{
"min": 123,
"max": 123
}
],
"naicsCodes": "<string>",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
}
},
"semantic": {
"query": "<string>",
"weight": 0.5,
"autoFilter": True
},
"lookalike": {
"domains": ["<string>"],
"weight": 0,
"minScore": 0.5
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"count": 123,
"total": 123,
"interpretation": {
"filter": {
"query": "<string>",
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"domain": "<string>",
"keywords": "<string>",
"technologies": "<string>",
"region": "<string>",
"country": "<string>",
"state": 123,
"city": 123,
"type": "private",
"employees": "1-10",
"reportedEmployees": "1-10",
"revenue": "under-1m",
"workforceGrowth": {
"period": "m6",
"department": "overall",
"min": 123,
"max": 123
},
"workforceSize": [
{
"department": "overall",
"min": 123,
"max": 123
}
],
"naicsCodes": "<string>",
"categories": "b2b",
"foundedYear": {
"min": 123,
"max": 123
},
"fundingRounds": "seed",
"fundingAmount": {
"min": 123,
"max": 123
},
"fundingYear": {
"min": 123,
"max": 123
},
"require": "linkedin"
},
"boost": {
"names": [
"<string>"
],
"categories": [
"b2b"
],
"revenue": [
"under-1m"
]
}
}
}{
"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
Body
application/json
Response
OK