cURL
curl --request POST \
--url https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"url": "https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))",
"limit": 25
}
'import requests
url = "https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url"
payload = {
"url": "https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))",
"limit": 25
}
headers = {
"x-rapidapi-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-rapidapi-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))',
limit: 25
})
};
fetch('https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url', 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://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))',
'limit' => 25
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-rapidapi-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url"
payload := strings.NewReader("{\n \"url\": \"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))\",\n \"limit\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-rapidapi-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url")
.header("x-rapidapi-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))\",\n \"limit\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-rapidapi-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))\",\n \"limit\": 25\n}"
response = http.request(request)
puts response.read_body{
"message": "Use this request_id to check your search with 'Check Search Companies Status' endpoint",
"request_id": "ba072fac0b38d12378ef5023742f0184s34e1i8n2a7p0m9o"
}{
"data": null,
"message": "Bad request: Invalid payload."
}{
"data": null,
"message": "System error. We will fix it soon!"
}Company Search (via Sales Navigator)
Search Companies by Sales URL
POST
/
search-companies-by-sales-nav-url
cURL
curl --request POST \
--url https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"url": "https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))",
"limit": 25
}
'import requests
url = "https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url"
payload = {
"url": "https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))",
"limit": 25
}
headers = {
"x-rapidapi-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-rapidapi-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: 'https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))',
limit: 25
})
};
fetch('https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url', 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://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'url' => 'https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))',
'limit' => 25
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-rapidapi-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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url"
payload := strings.NewReader("{\n \"url\": \"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))\",\n \"limit\": 25\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-rapidapi-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url")
.header("x-rapidapi-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"url\": \"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))\",\n \"limit\": 25\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web-scraping-api2.p.rapidapi.com/search-companies-by-sales-nav-url")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-rapidapi-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"url\": \"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))\",\n \"limit\": 25\n}"
response = http.request(request)
puts response.read_body{
"message": "Use this request_id to check your search with 'Check Search Companies Status' endpoint",
"request_id": "ba072fac0b38d12378ef5023742f0184s34e1i8n2a7p0m9o"
}{
"data": null,
"message": "Bad request: Invalid payload."
}{
"data": null,
"message": "System error. We will fix it soon!"
}- Works exactly the same endpoint Search Companies except that it takes a search url as the input. It’s helpful when you already have sales navigator search url(s).
Authorizations
Body
application/json
Example:
"https://www.linkedin.com/sales/search/people?coach=false&query=(filters%3AList((type%3AREGION%2Cvalues%3AList((id%3A103644278%2CselectionType%3AINCLUDED)))%2C(type%3ACURRENT_COMPANY%2Cvalues%3AList((id%3A82274765%2CselectionType%3AINCLUDED)))))"
Limit the number of results. Default: 25. Maximum 1000.
Example:
25
⌘I
