curl --request GET \
--url https://api.lemlist.com/api/database/people/export \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/database/people/export"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/database/people/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/database/people/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/database/people/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Full name,Email,Phone,LinkedIn URL,Company name,Job title,Country
John Doe,john@example.com,+33100000000,https://www.linkedin.com/in/example-profile,Acme Inc,CTO,France{
"error": "A CSV export holds at most 1000 rows"
}{
"error": "This export needs 10 searches from your 24h quota, and you have 3 left."
}Export People database
Exports the People Database leads matching a search as a CSV file.
curl --request GET \
--url https://api.lemlist.com/api/database/people/export \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.lemlist.com/api/database/people/export"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.lemlist.com/api/database/people/export', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));require 'uri'
require 'net/http'
url = URI("https://api.lemlist.com/api/database/people/export")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.lemlist.com/api/database/people/export",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}Full name,Email,Phone,LinkedIn URL,Company name,Job title,Country
John Doe,john@example.com,+33100000000,https://www.linkedin.com/in/example-profile,Acme Inc,CTO,France{
"error": "A CSV export holds at most 1000 rows"
}{
"error": "This export needs 10 searches from your 24h quota, and you have 3 left."
}values for filters with a closed list; for autocomplete filters (job titles, companies, countries, skills, technologies) there is no enumerable list — run a search to discover which values match.Authorizations
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters
The search to export, URL-encoded JSON array — the same filters array POST /database/people takes. Each entry needs a filterId and at least one in/out value.
Filter ids and their allowed values come from GET /database/filters. That endpoint returns values only for filters with a closed list; filters of type autocomplete (job titles, companies, countries, skills, technologies…) have no enumerable list, so their values are discovered by running a search rather than read upfront.
How many rows to export. Defaults to 1000, which is also the maximum.
1 <= x <= 1000Response
CSV file download
Was this page helpful?