Get Leads
curl --request GET \
--url https://api.example.com/api/enrich/{jobId}/leadsimport requests
url = "https://api.example.com/api/enrich/{jobId}/leads"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/enrich/{jobId}/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.example.com/api/enrich/{jobId}/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/enrich/{jobId}/leads"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/enrich/{jobId}/leads")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/enrich/{jobId}/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"totalLeads": 123,
"leads": [
{
"leads[].id": "<string>",
"leads[].name": "<string>",
"leads[].title": "<string>",
"leads[].company": "<string>",
"leads[].location": "<string>",
"leads[].linkedinUrl": "<string>",
"leads[].email": "<string>",
"leads[].phone": "<string>",
"leads[].address": "<string>",
"leads[].enrichmentStatus": "<string>"
}
]
}Endpoints
Get Leads
Retrieve all enriched leads from a completed enrich job
GET
/
api
/
enrich
/
{jobId}
/
leads
Get Leads
curl --request GET \
--url https://api.example.com/api/enrich/{jobId}/leadsimport requests
url = "https://api.example.com/api/enrich/{jobId}/leads"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/enrich/{jobId}/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.example.com/api/enrich/{jobId}/leads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/api/enrich/{jobId}/leads"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/api/enrich/{jobId}/leads")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/enrich/{jobId}/leads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"success": true,
"totalLeads": 123,
"leads": [
{
"leads[].id": "<string>",
"leads[].name": "<string>",
"leads[].title": "<string>",
"leads[].company": "<string>",
"leads[].location": "<string>",
"leads[].linkedinUrl": "<string>",
"leads[].email": "<string>",
"leads[].phone": "<string>",
"leads[].address": "<string>",
"leads[].enrichmentStatus": "<string>"
}
]
}Path Parameters
string
required
The job ID from
POST /api/enrich. Starts with run_This endpoint only works for jobs with status
COMPLETED. If the job is still running, you’ll receive an error.Request
curl https://api.cheetah-sales.dev/api/enrich/run_cm5x8k9j0000108l4g2h5h3k2/leads \
-H "Authorization: Bearer YOUR_API_KEY"
const jobId = 'run_cm5x8k9j0000108l4g2h5h3k2';
const response = await fetch(
`https://api.cheetah-sales.dev/api/enrich/${jobId}/leads`,
{ headers: { 'Authorization': 'Bearer YOUR_API_KEY' } }
);
const data = await response.json();
for (const lead of data.leads) {
console.log(`${lead.name} - ${lead.email}`);
}
import requests
job_id = 'run_cm5x8k9j0000108l4g2h5h3k2'
response = requests.get(
f'https://api.cheetah-sales.dev/api/enrich/{job_id}/leads',
headers={'Authorization': 'Bearer YOUR_API_KEY'}
)
for lead in response.json()['leads']:
print(f"{lead['name']} - {lead['email']}")
Response
boolean
Whether the request was successful
number
Total number of leads
array
Array of enriched lead objects
Response
{
"success": true,
"jobId": "run_cm5x8k9j0000108l4g2h5h3k2",
"listId": "550e8400-e29b-41d4-a716-446655440000",
"totalLeads": 25,
"leads": [
{
"id": "lead-uuid-1",
"name": "Jane Doe",
"title": "VP of Engineering",
"company": "TechCorp",
"location": "San Francisco Bay Area",
"linkedinUrl": "https://www.linkedin.com/in/janedoe",
"email": "jane.doe@techcorp.com",
"phone": "+1-555-123-4567",
"address": "123 Tech Street, San Francisco, CA 94105",
"enrichmentStatus": "enriched"
},
{
"id": "lead-uuid-2",
"name": "John Smith",
"title": "Director of Engineering",
"company": "StartupXYZ",
"location": "New York City",
"linkedinUrl": "https://www.linkedin.com/in/johnsmith",
"email": "john@startupxyz.com",
"phone": null,
"address": "456 Startup Ave, New York, NY 10001",
"enrichmentStatus": "enriched"
}
]
}
Data Coverage
| Data Point | Coverage |
|---|---|
| 70-85% | |
| Phone | 40-60% |
| Address | 80-90% |
Leads with
failed enrichmentStatus will still have basic info (name, title, company, LinkedIn URL) but may be missing email/phone.