Search realtime company leads
curl --request POST \
--url https://api.generect.com/api/v1/search/realtime/company-leads/ \
--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/realtime/company-leads/"
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/realtime/company-leads/', 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/realtime/company-leads/",
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/realtime/company-leads/"
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/realtime/company-leads/")
.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/realtime/company-leads/")
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": {
"leads": [
{
"lead_id": "ACwAAAE9bk0BxY7Qf2mN4pR8sT1vW3zA5cE6gH9",
"first_name": "Jordan",
"last_name": "Ellis"
}
],
"results_count": 320
},
"meta": {
"amount_charged": 12.8
}
}Company-Leads
Search realtime company leads
Search fresh leads at matching companies.
POST
/
api
/
v1
/
search
/
realtime
/
company-leads
/
Search realtime company leads
curl --request POST \
--url https://api.generect.com/api/v1/search/realtime/company-leads/ \
--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/realtime/company-leads/"
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/realtime/company-leads/', 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/realtime/company-leads/",
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/realtime/company-leads/"
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/realtime/company-leads/")
.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/realtime/company-leads/")
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": {
"leads": [
{
"lead_id": "ACwAAAE9bk0BxY7Qf2mN4pR8sT1vW3zA5cE6gH9",
"first_name": "Jordan",
"last_name": "Ellis"
}
],
"results_count": 320
},
"meta": {
"amount_charged": 12.8
}
}Use Case:
Find fresh leads at matching companies.Pricing
This is a billable endpoint — you are charged for each result returned. If no results are found, the request is free.Your price decreases automatically as your lifetime spend grows. Check your current tier and pricing →
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