Skip to main content
GET
/
people
/
search
Get data from captaindata people search
curl --request GET \
  --url https://api.captaindata.com/v1/people/search \
  --header 'X-API-Key: <api-key>'
import requests

url = "https://api.captaindata.com/v1/people/search"

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.captaindata.com/v1/people/search', 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.captaindata.com/v1/people/search",
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.captaindata.com/v1/people/search"

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.captaindata.com/v1/people/search")
.header("X-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.captaindata.com/v1/people/search")

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
[
  {
    "uid": "<string>",
    "full_name": "<string>",
    "first_name": "<string>",
    "last_name": "<string>",
    "job_title": "<string>",
    "company_name": "<string>",
    "summary": "<string>",
    "location": "<string>",
    "li_profile_id": 123,
    "li_profile_url": "<string>",
    "li_profile_image_url": "<string>",
    "li_company_id": 123,
    "job_start": "2023-11-07T05:31:56Z",
    "job_end": "2023-11-07T05:31:56Z",
    "job_time_period": "<string>",
    "recently_hired": true,
    "recently_promoted": true
  }
]
{
"error_label": "<string>",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}
{
"error_label": "<string>",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}
{
"error_label": "<string>",
"error_ref": "ERR-12345",
"message": "<string>",
"status_code": 123,
"params": {},
"data": {}
}
This endpoint allows you to search for people using Sales Navigator compatible search queries.Credit Cost: 1 credit per request + 1 credits per result. A full page of 25 results typically consumes 26 credits (1 + 25).
Copy the query string from a Sales Navigator people search URL and use it as the query parameter. Example: (keywords%3Aceo)
Not all Sales Navigator filters are compatible. Account-specific filters cannot be used.

Authorizations

X-API-Key
string
header
required

Query Parameters

cursor
string

Cursor value obtained from the X-Pagination-Next response header of a previous request, used to continue pagination. Cursors expire after 24 hours. If a cursor has expired or is invalid, pagination must be restarted from the beginning.

page_size
integer
default:25

Maximum number of results per page (read-only; defined by the endpoint, actual count may be lower in some cases like throttling or internal limits).

Required range: 25 <= x <= 25
query
string
required

A Sales Navigator People search compliant query param. Please copy the entire value of the query parameter from your LinkedIn Sales Navigator search URL (everything after ?query=) and paste it here.

Example:

"(keywords:\"Software Engineer\")"

Response

Successful response

uid
string
full_name
string
first_name
string
last_name
string
job_title
string
company_name
string
summary
string
location
string
li_profile_id
integer
li_profile_url
string<uri>
li_profile_image_url
string
li_company_id
integer
job_start
string<date-time>
job_end
string<date-time>
job_time_period
string
recently_hired
boolean
recently_promoted
boolean