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

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

url = URI("https://api.captaindata.com/v1/companies/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>",
    "company_name": "<string>",
    "description": "<string>",
    "li_company_url": "<string>",
    "li_company_id": 123,
    "sn_company_url": "<string>",
    "category": "<string>",
    "number_employees": "<string>"
  }
]
{
"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 companies using Sales Navigator compatible search queries.Credit Cost: 1 credit per request + 1 credits per result. A full page of 25 results typically consumes 6 credits (1 + 25).
Copy the query string from a Sales Navigator company search URL and use it as the query parameter. Example: (keywords%3Aai)
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 Company search compliant query param

Response

Successful response

uid
string
company_name
string
description
string
li_company_url
string<uri>
li_company_id
integer
sn_company_url
string<uri>
category
string
number_employees
string