Get found leads
curl --request GET \
--url https://api.sendpilot.ai/v1/lead-database/searches/{id}/results \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.sendpilot.ai/v1/lead-database/searches/{id}/results"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.sendpilot.ai/v1/lead-database/searches/{id}/results', 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.sendpilot.ai/v1/lead-database/searches/{id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.sendpilot.ai/v1/lead-database/searches/{id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.sendpilot.ai/v1/lead-database/searches/{id}/results")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendpilot.ai/v1/lead-database/searches/{id}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"search_id": "<string>",
"leads": [
{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"email": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"job_title": "<string>",
"company": "<string>",
"location": "<string>",
"person_address": "<string>",
"country": "<string>",
"industry": "<string>",
"seniority": "<string>",
"departments": "<string>",
"profile_summary": "<string>",
"company_linkedin_url": "<string>",
"company_summary": "<string>",
"company_keywords": {},
"website": "<string>",
"employees": "<string>",
"company_address": "<string>",
"company_city": "<string>",
"company_state": "<string>",
"company_country": "<string>",
"company_phone": {},
"company_email": {},
"technologies": {},
"latest_funding": "<string>",
"latest_funding_amount": "<string>",
"last_raised_at": "<string>",
"facebook": "<string>",
"twitter": "<string>",
"youtube": "<string>",
"instagram": "<string>",
"annual_revenue": "<string>"
}
],
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true
}Lead Database
Get Search Results
Read paginated leads found by a database search.
GET
/
v1
/
lead-database
/
searches
/
{id}
/
results
Get found leads
curl --request GET \
--url https://api.sendpilot.ai/v1/lead-database/searches/{id}/results \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.sendpilot.ai/v1/lead-database/searches/{id}/results"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.sendpilot.ai/v1/lead-database/searches/{id}/results', 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.sendpilot.ai/v1/lead-database/searches/{id}/results",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.sendpilot.ai/v1/lead-database/searches/{id}/results"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.sendpilot.ai/v1/lead-database/searches/{id}/results")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sendpilot.ai/v1/lead-database/searches/{id}/results")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"search_id": "<string>",
"leads": [
{
"id": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"email": "<string>",
"phone": "<string>",
"linkedin_url": "<string>",
"job_title": "<string>",
"company": "<string>",
"location": "<string>",
"person_address": "<string>",
"country": "<string>",
"industry": "<string>",
"seniority": "<string>",
"departments": "<string>",
"profile_summary": "<string>",
"company_linkedin_url": "<string>",
"company_summary": "<string>",
"company_keywords": {},
"website": "<string>",
"employees": "<string>",
"company_address": "<string>",
"company_city": "<string>",
"company_state": "<string>",
"company_country": "<string>",
"company_phone": {},
"company_email": {},
"technologies": {},
"latest_funding": "<string>",
"latest_funding_amount": "<string>",
"last_raised_at": "<string>",
"facebook": "<string>",
"twitter": "<string>",
"youtube": "<string>",
"instagram": "<string>",
"annual_revenue": "<string>"
}
],
"total": 123,
"offset": 123,
"limit": 123,
"has_more": true
}Requires
leads:read. Results use offset (default 0, maximum 10,000) and limit (default 100, maximum 500).
The response includes search_id, leads, total, offset, limit, and has_more. Use the actual returned page and has_more to continue. These REST parameters are not MCP’s opaque cursor.
Profile/contact data comes from third parties. Use the status endpoint to distinguish a still-running search from a completed search with fewer results.Authorizations
API key for authentication (prefix: sp_live_ or sp_test_)
Path Parameters
Search ID
Query Parameters
Maximum number of items to return
Required range:
1 <= x <= 500Offset for pagination (0-indexed)
Required range:
0 <= x <= 10000