curl --request POST \
--url https://api.parallellabs.app/api/v0/leads \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"companyId": "<string>",
"filters": {},
"segment": [
"<string>"
],
"audience": {},
"daysBack": 123,
"limit": 123
}
'import requests
url = "https://api.parallellabs.app/api/v0/leads"
payload = {
"companyId": "<string>",
"filters": {},
"segment": ["<string>"],
"audience": {},
"daysBack": 123,
"limit": 123
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyId: '<string>',
filters: {},
segment: ['<string>'],
audience: {},
daysBack: 123,
limit: 123
})
};
fetch('https://api.parallellabs.app/api/v0/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.parallellabs.app/api/v0/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([
'companyId' => '<string>',
'filters' => [
],
'segment' => [
'<string>'
],
'audience' => [
],
'daysBack' => 123,
'limit' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.parallellabs.app/api/v0/leads"
payload := strings.NewReader("{\n \"companyId\": \"<string>\",\n \"filters\": {},\n \"segment\": [\n \"<string>\"\n ],\n \"audience\": {},\n \"daysBack\": 123,\n \"limit\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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.parallellabs.app/api/v0/leads")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"companyId\": \"<string>\",\n \"filters\": {},\n \"segment\": [\n \"<string>\"\n ],\n \"audience\": {},\n \"daysBack\": 123,\n \"limit\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parallellabs.app/api/v0/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyId\": \"<string>\",\n \"filters\": {},\n \"segment\": [\n \"<string>\"\n ],\n \"audience\": {},\n \"daysBack\": 123,\n \"limit\": 123\n}"
response = http.request(request)
puts response.read_body{
"leads": [
{}
],
"totalAvailable": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Generate leads by filters, premade segments, and/or buyer-intent keywords
At least one of filters / segment / audience is required; combining them intersects the criteria. Call the field-options endpoint first to learn the filter surface and valid enum values (never guess enum strings), and the segments endpoint to find premade segment externalIds. Costs 1 data credit per call.
curl --request POST \
--url https://api.parallellabs.app/api/v0/leads \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"companyId": "<string>",
"filters": {},
"segment": [
"<string>"
],
"audience": {},
"daysBack": 123,
"limit": 123
}
'import requests
url = "https://api.parallellabs.app/api/v0/leads"
payload = {
"companyId": "<string>",
"filters": {},
"segment": ["<string>"],
"audience": {},
"daysBack": 123,
"limit": 123
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
companyId: '<string>',
filters: {},
segment: ['<string>'],
audience: {},
daysBack: 123,
limit: 123
})
};
fetch('https://api.parallellabs.app/api/v0/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.parallellabs.app/api/v0/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([
'companyId' => '<string>',
'filters' => [
],
'segment' => [
'<string>'
],
'audience' => [
],
'daysBack' => 123,
'limit' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.parallellabs.app/api/v0/leads"
payload := strings.NewReader("{\n \"companyId\": \"<string>\",\n \"filters\": {},\n \"segment\": [\n \"<string>\"\n ],\n \"audience\": {},\n \"daysBack\": 123,\n \"limit\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<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.parallellabs.app/api/v0/leads")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"companyId\": \"<string>\",\n \"filters\": {},\n \"segment\": [\n \"<string>\"\n ],\n \"audience\": {},\n \"daysBack\": 123,\n \"limit\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.parallellabs.app/api/v0/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"companyId\": \"<string>\",\n \"filters\": {},\n \"segment\": [\n \"<string>\"\n ],\n \"audience\": {},\n \"daysBack\": 123,\n \"limit\": 123\n}"
response = http.request(request)
puts response.read_body{
"leads": [
{}
],
"totalAvailable": 123
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Authorizations
Company API key - scoped to a specific company. Generate from the Integrations page in your dashboard.
Body
Lead generation criteria
Company ID (bills its data credits)
Attribute filters (each a string[] unless noted), in the exact audience-builder shape. Location: city, state, personalState (person's home state), zip. Person: age {minAge,maxAge}, gender. profile (nested object): incomeRange, netWorth, homeowner, married, children. attributes (nested object): credit_rating, credit_range_new_credit, credit_card_user, investment, cra_code, mortgage_amount {min,max}, occupation_group, ethnic_code, language_code, education, excludeEducation, smoker, single_parent, dwelling_type, estimated_home_value, home_year_built {min,max}, home_purchase_price {min,max}, home_purchase_year {min,max}. Contact quality: notNulls (fields that must be present). businessProfile (nested object): industry, seniority, department, jobTitle, excludeJobTitle, jobTitleMatchMode (string, "contains" default or "exact"), companyName, companyDomain, companyDescription, employeeCount, companyRevenue, sic, companyNaics. Use lead_field_options for the enumerated fields' valid values.
Premade segment externalIds from lead_segments (e.g. "b2b_12636", "b2c_1253").
Buyer-intent keyword search — the highest-signal input. { segmentSearches: string[] } is free-text topics the lead is actively shopping for (e.g. ['CRM software']); optional b2b: bool biases to business vs consumer intent. Distinct from filters.businessProfile.companyDescription, which describes what the company IS. Combine with filters to intersect intent and firmographics.
Recency window for intent data, 2-10, default 7.
Max leads, max 100, default 25.

