curl --request POST \
--url https://api.generect.com/api/v1/search/realtime/leads/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"job_titles": [
"CEO",
"Founder"
],
"seniorities": [
"c_suite"
],
"locations": [
"United States"
],
"company_industries": [
"Software Development"
],
"company_headcounts": [
"51-200"
],
"limit_by": 50
}
'import requests
url = "https://api.generect.com/api/v1/search/realtime/leads/"
payload = {
"job_titles": ["CEO", "Founder"],
"seniorities": ["c_suite"],
"locations": ["United States"],
"company_industries": ["Software Development"],
"company_headcounts": ["51-200"],
"limit_by": 50
}
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({
job_titles: ['CEO', 'Founder'],
seniorities: ['c_suite'],
locations: ['United States'],
company_industries: ['Software Development'],
company_headcounts: ['51-200'],
limit_by: 50
})
};
fetch('https://api.generect.com/api/v1/search/realtime/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/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([
'job_titles' => [
'CEO',
'Founder'
],
'seniorities' => [
'c_suite'
],
'locations' => [
'United States'
],
'company_industries' => [
'Software Development'
],
'company_headcounts' => [
'51-200'
],
'limit_by' => 50
]),
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/leads/"
payload := strings.NewReader("{\n \"job_titles\": [\n \"CEO\",\n \"Founder\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"company_industries\": [\n \"Software Development\"\n ],\n \"company_headcounts\": [\n \"51-200\"\n ],\n \"limit_by\": 50\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/leads/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"job_titles\": [\n \"CEO\",\n \"Founder\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"company_industries\": [\n \"Software Development\"\n ],\n \"company_headcounts\": [\n \"51-200\"\n ],\n \"limit_by\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/search/realtime/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 \"job_titles\": [\n \"CEO\",\n \"Founder\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"company_industries\": [\n \"Software Development\"\n ],\n \"company_headcounts\": [\n \"51-200\"\n ],\n \"limit_by\": 50\n}"
response = http.request(request)
puts response.read_body{
"data": {
"leads": [
{
"id": "ACwAAAE9bk0BxY7Qf2mN4pR8sT1vW3zA5cE6gH9",
"linkedin_id": "78461298",
"linkedin_url": "https://www.linkedin.com/in/jordan-ellis",
"first_name": "Jordan",
"last_name": "Ellis",
"full_name": "Jordan Ellis",
"headline": "CEO at Microsoft",
"job_title": "Chief Executive Officer",
"linkedin_lead_persona": "CXO",
"job_started_on": "Feb 2014",
"company_id": "1035",
"linkedin_company_id": "1035",
"company_name": "Microsoft",
"company_url": "https://www.linkedin.com/company/microsoft",
"company_website": "https://www.microsoft.com",
"company_industry": "Software Development",
"company_headcount_range": "10001+",
"location": "Redmond, Washington, United States",
"location_city": "Redmond",
"location_country": "United States",
"is_premium": true,
"num_of_connections": 500
}
],
"results_count": 1240
},
"meta": {
"amount_charged": 49.6
}
}{
"status": "error",
"status_code": 400,
"detail": {
"company_headcounts": [
"Object with name=999 does not exist."
]
}
}{
"status": "error",
"status_code": 401,
"detail": "Authentication credentials were not provided."
}{
"status": "error",
"status_code": 402,
"detail": "Insufficient funds in the account."
}{
"status": "error",
"status_code": 403,
"detail": "You do not have permission to perform this action."
}{
"status": "error",
"status_code": 429,
"detail": "Request was throttled."
}Search realtime leads
Search fresh leads with advanced filters (keywords, past companies, schools, groups). Response time 5-60 sec. Billed per result returned.
curl --request POST \
--url https://api.generect.com/api/v1/search/realtime/leads/ \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"job_titles": [
"CEO",
"Founder"
],
"seniorities": [
"c_suite"
],
"locations": [
"United States"
],
"company_industries": [
"Software Development"
],
"company_headcounts": [
"51-200"
],
"limit_by": 50
}
'import requests
url = "https://api.generect.com/api/v1/search/realtime/leads/"
payload = {
"job_titles": ["CEO", "Founder"],
"seniorities": ["c_suite"],
"locations": ["United States"],
"company_industries": ["Software Development"],
"company_headcounts": ["51-200"],
"limit_by": 50
}
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({
job_titles: ['CEO', 'Founder'],
seniorities: ['c_suite'],
locations: ['United States'],
company_industries: ['Software Development'],
company_headcounts: ['51-200'],
limit_by: 50
})
};
fetch('https://api.generect.com/api/v1/search/realtime/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/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([
'job_titles' => [
'CEO',
'Founder'
],
'seniorities' => [
'c_suite'
],
'locations' => [
'United States'
],
'company_industries' => [
'Software Development'
],
'company_headcounts' => [
'51-200'
],
'limit_by' => 50
]),
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/leads/"
payload := strings.NewReader("{\n \"job_titles\": [\n \"CEO\",\n \"Founder\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"company_industries\": [\n \"Software Development\"\n ],\n \"company_headcounts\": [\n \"51-200\"\n ],\n \"limit_by\": 50\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/leads/")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"job_titles\": [\n \"CEO\",\n \"Founder\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"company_industries\": [\n \"Software Development\"\n ],\n \"company_headcounts\": [\n \"51-200\"\n ],\n \"limit_by\": 50\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.generect.com/api/v1/search/realtime/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 \"job_titles\": [\n \"CEO\",\n \"Founder\"\n ],\n \"seniorities\": [\n \"c_suite\"\n ],\n \"locations\": [\n \"United States\"\n ],\n \"company_industries\": [\n \"Software Development\"\n ],\n \"company_headcounts\": [\n \"51-200\"\n ],\n \"limit_by\": 50\n}"
response = http.request(request)
puts response.read_body{
"data": {
"leads": [
{
"id": "ACwAAAE9bk0BxY7Qf2mN4pR8sT1vW3zA5cE6gH9",
"linkedin_id": "78461298",
"linkedin_url": "https://www.linkedin.com/in/jordan-ellis",
"first_name": "Jordan",
"last_name": "Ellis",
"full_name": "Jordan Ellis",
"headline": "CEO at Microsoft",
"job_title": "Chief Executive Officer",
"linkedin_lead_persona": "CXO",
"job_started_on": "Feb 2014",
"company_id": "1035",
"linkedin_company_id": "1035",
"company_name": "Microsoft",
"company_url": "https://www.linkedin.com/company/microsoft",
"company_website": "https://www.microsoft.com",
"company_industry": "Software Development",
"company_headcount_range": "10001+",
"location": "Redmond, Washington, United States",
"location_city": "Redmond",
"location_country": "United States",
"is_premium": true,
"num_of_connections": 500
}
],
"results_count": 1240
},
"meta": {
"amount_charged": 49.6
}
}{
"status": "error",
"status_code": 400,
"detail": {
"company_headcounts": [
"Object with name=999 does not exist."
]
}
}{
"status": "error",
"status_code": 401,
"detail": "Authentication credentials were not provided."
}{
"status": "error",
"status_code": 402,
"detail": "Insufficient funds in the account."
}{
"status": "error",
"status_code": 403,
"detail": "You do not have permission to perform this action."
}{
"status": "error",
"status_code": 429,
"detail": "Request was throttled."
}Use Case:
Search fresh lead data with full realtime filters.Pricing
This is a billable endpoint — you are charged for each result returned. If no results are found, the request is free.Authorizations
Body
Job titles held by the people you want to find. A lead only needs to match one of the titles you provide — adding more expands your search. Results may also include similar titles (e.g. "marketing manager" can return "content marketing manager"). Combine with seniorities to target both function and level. Examples: "sales development representative", "marketing manager", "software engineer".
Job seniority levels at the lead's current employer (current position only, not previous roles). A lead needs to match at least one; adding more values expands your search. Allowed values: owner, founder, c_suite, partner, vp, head, director, manager, senior, entry, intern. Combine with job_titles to narrow targeting.
Free-text keywords searched across lead profiles (headline, current job description, skills, summary); a lead is included if their profile contains at least one. Realtime mode only — database mode does not support free-text search. Examples: "machine learning", "growth marketing", "kubernetes".
Job functions — categorize roles by business area, independent of seniority or title; a lead is included if their function matches at least one. Common values: Sales, Marketing, Engineering, Operations, Finance, HR, Product, Customer Success, Legal, Data. Combine with seniorities for function-by-seniority targeting.
Return the complete lead profile instead of the standard field set — roughly thirty extra fields, including skills, industry and social links. Priced as one lead enrichment per returned lead, charged on top of the search itself, so a request that returns N leads is billed twice: once for the search and once for the profiles. Each returned lead carries is_full_data so you can confirm what you received.
Include results_count in the response; without it the response carries only the page itself. The figure is an estimate, not an exact total. For a search anchored to one company it may come back as the string "within limit" rather than a number, meaning the whole match set fits inside the page you asked for — handle both types. A filter-only search reports results_count anyway, without this flag.
Was this page helpful?