Count
Get the total count of companies matching search criteria without returning results. Accepts the same filters as /companies/search. Use this to check result volume before running a full search.
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "company-enrich",
path: "/companies/search/count"
});
console.log(output);Body parameters
The list IDs to filter by
The semantic search query to find companies with. More natural language version of the standard query.
The semantic weight to apply to the results. Must be between 0 and 1. 0.7 is default. Larger values will prioritize semantic similarity, smaller values will prioritize traditional search factors.
Exclusion filters to apply on the companies. If a company matches any of the filters here, it will be excluded from the results.
The search query to apply on the company name and domain
The range of years
The funding amount range to filter by
The range of years
The operator to apply to the filters. Defaults to And.
The operator to apply to the filters. Defaults to And.
The operator to apply to the filters. Defaults to And.
Filter companies by workforce growth percentage over a selected period and department.
Filter companies by absolute workforce headcount. Multiple entries can be provided to filter on different departments simultaneously.
The features that must exist for the company
The region IDs to filter by
The 2 letter country codes to filter by
The state IDs to filter by
The city IDs to filter by
The list of company types to filter by
The list of company categories to filter by
The list of employee counts to filter by
The list of revenue ranges to filter by
The NAICS codes to filter by. Can be 2 to 6 digit codes. In case of a 2-5 digit code, all 6 digit codes under it will be included
The keywords to filter by
The technologies to filter by
The funding rounds to filter by
Response