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 Development"
],
"headcounts": [
"51-200"
],
"locations": [
"United States"
]
},
"lead_search_criteria": {
"job_titles": [
"CEO"
],
"seniorities": [
"c_suite"
],
"locations": [
"United States"
]
}
}
'import requests
url = "https://api.generect.com/api/v1/search/database/company-leads/count/"
payload = {
"company_search_criteria": {
"industries": ["Software Development"],
"headcounts": ["51-200"],
"locations": ["United States"]
},
"lead_search_criteria": {
"job_titles": ["CEO"],
"seniorities": ["c_suite"],
"locations": ["United States"]
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_search_criteria: {
industries: ['Software Development'],
headcounts: ['51-200'],
locations: ['United States']
},
lead_search_criteria: {job_titles: ['CEO'], seniorities: ['c_suite'], locations: ['United States']}
})
};
fetch('https://api.generect.com/api/v1/search/database/company-leads/count/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.generect.com/api/v1/search/database/company-leads/count/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_search_criteria' => [
'industries' => [
'Software Development'
],
'headcounts' => [
'51-200'
],
'locations' => [
'United States'
]
],
'lead_search_criteria' => [
'job_titles' => [
'CEO'
],
'seniorities' => [
'c_suite'
],
'locations' => [
'United States'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.generect.com/api/v1/search/database/company-leads/count/"
payload := strings.NewReader("{\n \"company_search_criteria\": {\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ]\n },\n \"lead_search_criteria\": {\n \"job_titles\": [\n \"CEO\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.generect.com/api/v1/search/database/company-leads/count/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_search_criteria\": {\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ]\n },\n \"lead_search_criteria\": {\n \"job_titles\": [\n \"CEO\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/search/database/company-leads/count/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_search_criteria\": {\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ]\n },\n \"lead_search_criteria\": {\n \"job_titles\": [\n \"CEO\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"results_count": 320,
"companies_count": 45,
"leads_count": 320
},
"meta": {
"amount_charged": 0
}
}
Company-Leads
Count database company leads
Count cached company-lead matches. Database count endpoints are free.
POST
/
api
/
v1
/
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 Development"
],
"headcounts": [
"51-200"
],
"locations": [
"United States"
]
},
"lead_search_criteria": {
"job_titles": [
"CEO"
],
"seniorities": [
"c_suite"
],
"locations": [
"United States"
]
}
}
'import requests
url = "https://api.generect.com/api/v1/search/database/company-leads/count/"
payload = {
"company_search_criteria": {
"industries": ["Software Development"],
"headcounts": ["51-200"],
"locations": ["United States"]
},
"lead_search_criteria": {
"job_titles": ["CEO"],
"seniorities": ["c_suite"],
"locations": ["United States"]
}
}
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
company_search_criteria: {
industries: ['Software Development'],
headcounts: ['51-200'],
locations: ['United States']
},
lead_search_criteria: {job_titles: ['CEO'], seniorities: ['c_suite'], locations: ['United States']}
})
};
fetch('https://api.generect.com/api/v1/search/database/company-leads/count/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.generect.com/api/v1/search/database/company-leads/count/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_search_criteria' => [
'industries' => [
'Software Development'
],
'headcounts' => [
'51-200'
],
'locations' => [
'United States'
]
],
'lead_search_criteria' => [
'job_titles' => [
'CEO'
],
'seniorities' => [
'c_suite'
],
'locations' => [
'United States'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.generect.com/api/v1/search/database/company-leads/count/"
payload := strings.NewReader("{\n \"company_search_criteria\": {\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ]\n },\n \"lead_search_criteria\": {\n \"job_titles\": [\n \"CEO\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ]\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.generect.com/api/v1/search/database/company-leads/count/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"company_search_criteria\": {\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ]\n },\n \"lead_search_criteria\": {\n \"job_titles\": [\n \"CEO\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ]\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/search/database/company-leads/count/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_search_criteria\": {\n \"industries\": [\n \"Software Development\"\n ],\n \"headcounts\": [\n \"51-200\"\n ],\n \"locations\": [\n \"United States\"\n ]\n },\n \"lead_search_criteria\": {\n \"job_titles\": [\n \"CEO\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ]\n }\n}"
response = http.request(request)
puts response.read_body{
"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
Use the required Token prefix. Example: Authorization: Token xxxxxxxxx
Body
application/json
Show child attributes
Show child attributes
Example:
{ "industries": ["Software Development"], "headcounts": ["51-200"], "locations": ["United States"], "limit_by": 50 }
Show child attributes
Show child attributes
Example:
{ "job_titles": ["CEO", "Founder"], "seniorities": ["c_suite"], "locations": ["United States"], "company_industries": ["Software Development"], "company_headcounts": ["51-200"], "limit_by": 50 }
Was this page helpful?
⌘I