POST
/
search
/
database
/
company-leads
/
count
Count database company leads
curl --request POST \
  --url https://api.generect.com/api/v1/search/database/company-leads/count/ \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "company_search_criteria": {
    "industries": [
      "Software"
    ],
    "headcounts": [
      "51-200"
    ],
    "locations": [
      "United States"
    ],
    "limit_by": 50
  },
  "lead_search_criteria": {
    "job_titles": [
      "CEO",
      "Founder"
    ],
    "seniorities": [
      "CXO"
    ],
    "locations": [
      "San Francisco, CA"
    ],
    "company_industries": [
      "Software"
    ],
    "company_headcounts": [
      "51-200"
    ],
    "limit_by": 50
  }
}
'
{
  "data": {
    "results_count": 320,
    "companies_count": 45,
    "leads_count": 320
  },
  "meta": {
    "amount_charged": 0
  }
}

Use Case:

Count cached company-lead matches before retrieving them.

Pricing

This endpoint is free — it does not incur any charges.

Authorizations

Authorization
string
header
required

Use the required Token prefix. Example: Authorization: Token xxxxxxxxx

Body

application/json
company_search_criteria
object
Example:
{
"industries": ["Software"],
"headcounts": ["51-200"],
"locations": ["United States"],
"limit_by": 50
}
lead_search_criteria
object
Example:
{
"job_titles": ["CEO", "Founder"],
"seniorities": ["CXO"],
"locations": ["San Francisco, CA"],
"company_industries": ["Software"],
"company_headcounts": ["51-200"],
"limit_by": 50
}

Response

Matching company-lead count

data
object
meta
object

Operation metadata returned in every data/meta response.