curl --request POST \
--url https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale \
--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)))))",
"current_company_ids": [
162479,
1053
],
"title_keywords": [
"Director",
"Operation"
],
"company_headcounts": [
"1001-5000",
"5001-10000"
],
"functions": [
"Accounting",
"Administrative"
],
"geo_codes": [
103644278,
102299470
],
"past_company_ids": [
1009
],
"industry_codes": [
3,
4
],
"seniority_levels": [],
"year_in_current_company": [],
"year_in_current_position": [],
"years_of_experience": [],
"current_company_names": [
"Apple",
"Microsoft"
],
"past_company_names": [
"Apple",
"Microsoft"
],
"company_type": [],
"company_headquarter_location_ids": [],
"company_headquarter_location_ids_exclude": [],
"seniority_levels_exclude": [],
"past_job_titles": [
"CEO"
],
"current_company_ids_exclude": [],
"title_keywords_exclude": [
"Sales"
],
"functions_exclude": [],
"geo_codes_exclude": [
105080838,
102257491
],
"past_company_ids_exclude": [
1009
],
"past_job_titles_exclude": [
"Founder"
],
"industry_codes_exclude": [
5,
6
],
"first_name": "",
"last_name": "",
"profile_languages": [],
"school_ids": [
123456
],
"school_ids_exclude": [
654321
],
"changed_jobs": "false",
"posted_on_linkedin": "false",
"mentioned_in_news": "false",
"keywords": "system",
"zipcode_ids": [
90001
],
"radius": 5
}
'import requests
url = "https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale"
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)))))",
"current_company_ids": [162479, 1053],
"title_keywords": ["Director", "Operation"],
"company_headcounts": ["1001-5000", "5001-10000"],
"functions": ["Accounting", "Administrative"],
"geo_codes": [103644278, 102299470],
"past_company_ids": [1009],
"industry_codes": [3, 4],
"seniority_levels": [],
"year_in_current_company": [],
"year_in_current_position": [],
"years_of_experience": [],
"current_company_names": ["Apple", "Microsoft"],
"past_company_names": ["Apple", "Microsoft"],
"company_type": [],
"company_headquarter_location_ids": [],
"company_headquarter_location_ids_exclude": [],
"seniority_levels_exclude": [],
"past_job_titles": ["CEO"],
"current_company_ids_exclude": [],
"title_keywords_exclude": ["Sales"],
"functions_exclude": [],
"geo_codes_exclude": [105080838, 102257491],
"past_company_ids_exclude": [1009],
"past_job_titles_exclude": ["Founder"],
"industry_codes_exclude": [5, 6],
"first_name": "",
"last_name": "",
"profile_languages": [],
"school_ids": [123456],
"school_ids_exclude": [654321],
"changed_jobs": "false",
"posted_on_linkedin": "false",
"mentioned_in_news": "false",
"keywords": "system",
"zipcode_ids": [90001],
"radius": 5
}
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)))))',
current_company_ids: [162479, 1053],
title_keywords: ['Director', 'Operation'],
company_headcounts: ['1001-5000', '5001-10000'],
functions: ['Accounting', 'Administrative'],
geo_codes: [103644278, 102299470],
past_company_ids: [1009],
industry_codes: [3, 4],
seniority_levels: [],
year_in_current_company: [],
year_in_current_position: [],
years_of_experience: [],
current_company_names: ['Apple', 'Microsoft'],
past_company_names: ['Apple', 'Microsoft'],
company_type: [],
company_headquarter_location_ids: [],
company_headquarter_location_ids_exclude: [],
seniority_levels_exclude: [],
past_job_titles: ['CEO'],
current_company_ids_exclude: [],
title_keywords_exclude: ['Sales'],
functions_exclude: [],
geo_codes_exclude: [105080838, 102257491],
past_company_ids_exclude: [1009],
past_job_titles_exclude: ['Founder'],
industry_codes_exclude: [5, 6],
first_name: '',
last_name: '',
profile_languages: [],
school_ids: [123456],
school_ids_exclude: [654321],
changed_jobs: 'false',
posted_on_linkedin: 'false',
mentioned_in_news: 'false',
keywords: 'system',
zipcode_ids: [90001],
radius: 5
})
};
fetch('https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale', 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/lead-search-at-scale",
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)))))',
'current_company_ids' => [
162479,
1053
],
'title_keywords' => [
'Director',
'Operation'
],
'company_headcounts' => [
'1001-5000',
'5001-10000'
],
'functions' => [
'Accounting',
'Administrative'
],
'geo_codes' => [
103644278,
102299470
],
'past_company_ids' => [
1009
],
'industry_codes' => [
3,
4
],
'seniority_levels' => [
],
'year_in_current_company' => [
],
'year_in_current_position' => [
],
'years_of_experience' => [
],
'current_company_names' => [
'Apple',
'Microsoft'
],
'past_company_names' => [
'Apple',
'Microsoft'
],
'company_type' => [
],
'company_headquarter_location_ids' => [
],
'company_headquarter_location_ids_exclude' => [
],
'seniority_levels_exclude' => [
],
'past_job_titles' => [
'CEO'
],
'current_company_ids_exclude' => [
],
'title_keywords_exclude' => [
'Sales'
],
'functions_exclude' => [
],
'geo_codes_exclude' => [
105080838,
102257491
],
'past_company_ids_exclude' => [
1009
],
'past_job_titles_exclude' => [
'Founder'
],
'industry_codes_exclude' => [
5,
6
],
'first_name' => '',
'last_name' => '',
'profile_languages' => [
],
'school_ids' => [
123456
],
'school_ids_exclude' => [
654321
],
'changed_jobs' => 'false',
'posted_on_linkedin' => 'false',
'mentioned_in_news' => 'false',
'keywords' => 'system',
'zipcode_ids' => [
90001
],
'radius' => 5
]),
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/lead-search-at-scale"
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 \"current_company_ids\": [\n 162479,\n 1053\n ],\n \"title_keywords\": [\n \"Director\",\n \"Operation\"\n ],\n \"company_headcounts\": [\n \"1001-5000\",\n \"5001-10000\"\n ],\n \"functions\": [\n \"Accounting\",\n \"Administrative\"\n ],\n \"geo_codes\": [\n 103644278,\n 102299470\n ],\n \"past_company_ids\": [\n 1009\n ],\n \"industry_codes\": [\n 3,\n 4\n ],\n \"seniority_levels\": [],\n \"year_in_current_company\": [],\n \"year_in_current_position\": [],\n \"years_of_experience\": [],\n \"current_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"past_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"company_type\": [],\n \"company_headquarter_location_ids\": [],\n \"company_headquarter_location_ids_exclude\": [],\n \"seniority_levels_exclude\": [],\n \"past_job_titles\": [\n \"CEO\"\n ],\n \"current_company_ids_exclude\": [],\n \"title_keywords_exclude\": [\n \"Sales\"\n ],\n \"functions_exclude\": [],\n \"geo_codes_exclude\": [\n 105080838,\n 102257491\n ],\n \"past_company_ids_exclude\": [\n 1009\n ],\n \"past_job_titles_exclude\": [\n \"Founder\"\n ],\n \"industry_codes_exclude\": [\n 5,\n 6\n ],\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"profile_languages\": [],\n \"school_ids\": [\n 123456\n ],\n \"school_ids_exclude\": [\n 654321\n ],\n \"changed_jobs\": \"false\",\n \"posted_on_linkedin\": \"false\",\n \"mentioned_in_news\": \"false\",\n \"keywords\": \"system\",\n \"zipcode_ids\": [\n 90001\n ],\n \"radius\": 5\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/lead-search-at-scale")
.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 \"current_company_ids\": [\n 162479,\n 1053\n ],\n \"title_keywords\": [\n \"Director\",\n \"Operation\"\n ],\n \"company_headcounts\": [\n \"1001-5000\",\n \"5001-10000\"\n ],\n \"functions\": [\n \"Accounting\",\n \"Administrative\"\n ],\n \"geo_codes\": [\n 103644278,\n 102299470\n ],\n \"past_company_ids\": [\n 1009\n ],\n \"industry_codes\": [\n 3,\n 4\n ],\n \"seniority_levels\": [],\n \"year_in_current_company\": [],\n \"year_in_current_position\": [],\n \"years_of_experience\": [],\n \"current_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"past_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"company_type\": [],\n \"company_headquarter_location_ids\": [],\n \"company_headquarter_location_ids_exclude\": [],\n \"seniority_levels_exclude\": [],\n \"past_job_titles\": [\n \"CEO\"\n ],\n \"current_company_ids_exclude\": [],\n \"title_keywords_exclude\": [\n \"Sales\"\n ],\n \"functions_exclude\": [],\n \"geo_codes_exclude\": [\n 105080838,\n 102257491\n ],\n \"past_company_ids_exclude\": [\n 1009\n ],\n \"past_job_titles_exclude\": [\n \"Founder\"\n ],\n \"industry_codes_exclude\": [\n 5,\n 6\n ],\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"profile_languages\": [],\n \"school_ids\": [\n 123456\n ],\n \"school_ids_exclude\": [\n 654321\n ],\n \"changed_jobs\": \"false\",\n \"posted_on_linkedin\": \"false\",\n \"mentioned_in_news\": \"false\",\n \"keywords\": \"system\",\n \"zipcode_ids\": [\n 90001\n ],\n \"radius\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale")
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 \"current_company_ids\": [\n 162479,\n 1053\n ],\n \"title_keywords\": [\n \"Director\",\n \"Operation\"\n ],\n \"company_headcounts\": [\n \"1001-5000\",\n \"5001-10000\"\n ],\n \"functions\": [\n \"Accounting\",\n \"Administrative\"\n ],\n \"geo_codes\": [\n 103644278,\n 102299470\n ],\n \"past_company_ids\": [\n 1009\n ],\n \"industry_codes\": [\n 3,\n 4\n ],\n \"seniority_levels\": [],\n \"year_in_current_company\": [],\n \"year_in_current_position\": [],\n \"years_of_experience\": [],\n \"current_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"past_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"company_type\": [],\n \"company_headquarter_location_ids\": [],\n \"company_headquarter_location_ids_exclude\": [],\n \"seniority_levels_exclude\": [],\n \"past_job_titles\": [\n \"CEO\"\n ],\n \"current_company_ids_exclude\": [],\n \"title_keywords_exclude\": [\n \"Sales\"\n ],\n \"functions_exclude\": [],\n \"geo_codes_exclude\": [\n 105080838,\n 102257491\n ],\n \"past_company_ids_exclude\": [\n 1009\n ],\n \"past_job_titles_exclude\": [\n \"Founder\"\n ],\n \"industry_codes_exclude\": [\n 5,\n 6\n ],\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"profile_languages\": [],\n \"school_ids\": [\n 123456\n ],\n \"school_ids_exclude\": [\n 654321\n ],\n \"changed_jobs\": \"false\",\n \"posted_on_linkedin\": \"false\",\n \"mentioned_in_news\": \"false\",\n \"keywords\": \"system\",\n \"zipcode_ids\": [\n 90001\n ],\n \"radius\": 5\n}"
response = http.request(request)
puts response.read_body{
"message": "Use this request_id to check your search with 'Check Search Status' endpoint",
"request_id": "0bb8360c779317e5f6fc1722a8bd26a1",
"total_count": 11075
}{
"data": null,
"message": "Bad request: Invalid payload."
}{
"data": null,
"message": "System error. We will fix it soon!"
}Lead Search at Scale
curl --request POST \
--url https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale \
--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)))))",
"current_company_ids": [
162479,
1053
],
"title_keywords": [
"Director",
"Operation"
],
"company_headcounts": [
"1001-5000",
"5001-10000"
],
"functions": [
"Accounting",
"Administrative"
],
"geo_codes": [
103644278,
102299470
],
"past_company_ids": [
1009
],
"industry_codes": [
3,
4
],
"seniority_levels": [],
"year_in_current_company": [],
"year_in_current_position": [],
"years_of_experience": [],
"current_company_names": [
"Apple",
"Microsoft"
],
"past_company_names": [
"Apple",
"Microsoft"
],
"company_type": [],
"company_headquarter_location_ids": [],
"company_headquarter_location_ids_exclude": [],
"seniority_levels_exclude": [],
"past_job_titles": [
"CEO"
],
"current_company_ids_exclude": [],
"title_keywords_exclude": [
"Sales"
],
"functions_exclude": [],
"geo_codes_exclude": [
105080838,
102257491
],
"past_company_ids_exclude": [
1009
],
"past_job_titles_exclude": [
"Founder"
],
"industry_codes_exclude": [
5,
6
],
"first_name": "",
"last_name": "",
"profile_languages": [],
"school_ids": [
123456
],
"school_ids_exclude": [
654321
],
"changed_jobs": "false",
"posted_on_linkedin": "false",
"mentioned_in_news": "false",
"keywords": "system",
"zipcode_ids": [
90001
],
"radius": 5
}
'import requests
url = "https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale"
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)))))",
"current_company_ids": [162479, 1053],
"title_keywords": ["Director", "Operation"],
"company_headcounts": ["1001-5000", "5001-10000"],
"functions": ["Accounting", "Administrative"],
"geo_codes": [103644278, 102299470],
"past_company_ids": [1009],
"industry_codes": [3, 4],
"seniority_levels": [],
"year_in_current_company": [],
"year_in_current_position": [],
"years_of_experience": [],
"current_company_names": ["Apple", "Microsoft"],
"past_company_names": ["Apple", "Microsoft"],
"company_type": [],
"company_headquarter_location_ids": [],
"company_headquarter_location_ids_exclude": [],
"seniority_levels_exclude": [],
"past_job_titles": ["CEO"],
"current_company_ids_exclude": [],
"title_keywords_exclude": ["Sales"],
"functions_exclude": [],
"geo_codes_exclude": [105080838, 102257491],
"past_company_ids_exclude": [1009],
"past_job_titles_exclude": ["Founder"],
"industry_codes_exclude": [5, 6],
"first_name": "",
"last_name": "",
"profile_languages": [],
"school_ids": [123456],
"school_ids_exclude": [654321],
"changed_jobs": "false",
"posted_on_linkedin": "false",
"mentioned_in_news": "false",
"keywords": "system",
"zipcode_ids": [90001],
"radius": 5
}
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)))))',
current_company_ids: [162479, 1053],
title_keywords: ['Director', 'Operation'],
company_headcounts: ['1001-5000', '5001-10000'],
functions: ['Accounting', 'Administrative'],
geo_codes: [103644278, 102299470],
past_company_ids: [1009],
industry_codes: [3, 4],
seniority_levels: [],
year_in_current_company: [],
year_in_current_position: [],
years_of_experience: [],
current_company_names: ['Apple', 'Microsoft'],
past_company_names: ['Apple', 'Microsoft'],
company_type: [],
company_headquarter_location_ids: [],
company_headquarter_location_ids_exclude: [],
seniority_levels_exclude: [],
past_job_titles: ['CEO'],
current_company_ids_exclude: [],
title_keywords_exclude: ['Sales'],
functions_exclude: [],
geo_codes_exclude: [105080838, 102257491],
past_company_ids_exclude: [1009],
past_job_titles_exclude: ['Founder'],
industry_codes_exclude: [5, 6],
first_name: '',
last_name: '',
profile_languages: [],
school_ids: [123456],
school_ids_exclude: [654321],
changed_jobs: 'false',
posted_on_linkedin: 'false',
mentioned_in_news: 'false',
keywords: 'system',
zipcode_ids: [90001],
radius: 5
})
};
fetch('https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale', 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/lead-search-at-scale",
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)))))',
'current_company_ids' => [
162479,
1053
],
'title_keywords' => [
'Director',
'Operation'
],
'company_headcounts' => [
'1001-5000',
'5001-10000'
],
'functions' => [
'Accounting',
'Administrative'
],
'geo_codes' => [
103644278,
102299470
],
'past_company_ids' => [
1009
],
'industry_codes' => [
3,
4
],
'seniority_levels' => [
],
'year_in_current_company' => [
],
'year_in_current_position' => [
],
'years_of_experience' => [
],
'current_company_names' => [
'Apple',
'Microsoft'
],
'past_company_names' => [
'Apple',
'Microsoft'
],
'company_type' => [
],
'company_headquarter_location_ids' => [
],
'company_headquarter_location_ids_exclude' => [
],
'seniority_levels_exclude' => [
],
'past_job_titles' => [
'CEO'
],
'current_company_ids_exclude' => [
],
'title_keywords_exclude' => [
'Sales'
],
'functions_exclude' => [
],
'geo_codes_exclude' => [
105080838,
102257491
],
'past_company_ids_exclude' => [
1009
],
'past_job_titles_exclude' => [
'Founder'
],
'industry_codes_exclude' => [
5,
6
],
'first_name' => '',
'last_name' => '',
'profile_languages' => [
],
'school_ids' => [
123456
],
'school_ids_exclude' => [
654321
],
'changed_jobs' => 'false',
'posted_on_linkedin' => 'false',
'mentioned_in_news' => 'false',
'keywords' => 'system',
'zipcode_ids' => [
90001
],
'radius' => 5
]),
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/lead-search-at-scale"
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 \"current_company_ids\": [\n 162479,\n 1053\n ],\n \"title_keywords\": [\n \"Director\",\n \"Operation\"\n ],\n \"company_headcounts\": [\n \"1001-5000\",\n \"5001-10000\"\n ],\n \"functions\": [\n \"Accounting\",\n \"Administrative\"\n ],\n \"geo_codes\": [\n 103644278,\n 102299470\n ],\n \"past_company_ids\": [\n 1009\n ],\n \"industry_codes\": [\n 3,\n 4\n ],\n \"seniority_levels\": [],\n \"year_in_current_company\": [],\n \"year_in_current_position\": [],\n \"years_of_experience\": [],\n \"current_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"past_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"company_type\": [],\n \"company_headquarter_location_ids\": [],\n \"company_headquarter_location_ids_exclude\": [],\n \"seniority_levels_exclude\": [],\n \"past_job_titles\": [\n \"CEO\"\n ],\n \"current_company_ids_exclude\": [],\n \"title_keywords_exclude\": [\n \"Sales\"\n ],\n \"functions_exclude\": [],\n \"geo_codes_exclude\": [\n 105080838,\n 102257491\n ],\n \"past_company_ids_exclude\": [\n 1009\n ],\n \"past_job_titles_exclude\": [\n \"Founder\"\n ],\n \"industry_codes_exclude\": [\n 5,\n 6\n ],\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"profile_languages\": [],\n \"school_ids\": [\n 123456\n ],\n \"school_ids_exclude\": [\n 654321\n ],\n \"changed_jobs\": \"false\",\n \"posted_on_linkedin\": \"false\",\n \"mentioned_in_news\": \"false\",\n \"keywords\": \"system\",\n \"zipcode_ids\": [\n 90001\n ],\n \"radius\": 5\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/lead-search-at-scale")
.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 \"current_company_ids\": [\n 162479,\n 1053\n ],\n \"title_keywords\": [\n \"Director\",\n \"Operation\"\n ],\n \"company_headcounts\": [\n \"1001-5000\",\n \"5001-10000\"\n ],\n \"functions\": [\n \"Accounting\",\n \"Administrative\"\n ],\n \"geo_codes\": [\n 103644278,\n 102299470\n ],\n \"past_company_ids\": [\n 1009\n ],\n \"industry_codes\": [\n 3,\n 4\n ],\n \"seniority_levels\": [],\n \"year_in_current_company\": [],\n \"year_in_current_position\": [],\n \"years_of_experience\": [],\n \"current_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"past_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"company_type\": [],\n \"company_headquarter_location_ids\": [],\n \"company_headquarter_location_ids_exclude\": [],\n \"seniority_levels_exclude\": [],\n \"past_job_titles\": [\n \"CEO\"\n ],\n \"current_company_ids_exclude\": [],\n \"title_keywords_exclude\": [\n \"Sales\"\n ],\n \"functions_exclude\": [],\n \"geo_codes_exclude\": [\n 105080838,\n 102257491\n ],\n \"past_company_ids_exclude\": [\n 1009\n ],\n \"past_job_titles_exclude\": [\n \"Founder\"\n ],\n \"industry_codes_exclude\": [\n 5,\n 6\n ],\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"profile_languages\": [],\n \"school_ids\": [\n 123456\n ],\n \"school_ids_exclude\": [\n 654321\n ],\n \"changed_jobs\": \"false\",\n \"posted_on_linkedin\": \"false\",\n \"mentioned_in_news\": \"false\",\n \"keywords\": \"system\",\n \"zipcode_ids\": [\n 90001\n ],\n \"radius\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web-scraping-api2.p.rapidapi.com/lead-search-at-scale")
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 \"current_company_ids\": [\n 162479,\n 1053\n ],\n \"title_keywords\": [\n \"Director\",\n \"Operation\"\n ],\n \"company_headcounts\": [\n \"1001-5000\",\n \"5001-10000\"\n ],\n \"functions\": [\n \"Accounting\",\n \"Administrative\"\n ],\n \"geo_codes\": [\n 103644278,\n 102299470\n ],\n \"past_company_ids\": [\n 1009\n ],\n \"industry_codes\": [\n 3,\n 4\n ],\n \"seniority_levels\": [],\n \"year_in_current_company\": [],\n \"year_in_current_position\": [],\n \"years_of_experience\": [],\n \"current_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"past_company_names\": [\n \"Apple\",\n \"Microsoft\"\n ],\n \"company_type\": [],\n \"company_headquarter_location_ids\": [],\n \"company_headquarter_location_ids_exclude\": [],\n \"seniority_levels_exclude\": [],\n \"past_job_titles\": [\n \"CEO\"\n ],\n \"current_company_ids_exclude\": [],\n \"title_keywords_exclude\": [\n \"Sales\"\n ],\n \"functions_exclude\": [],\n \"geo_codes_exclude\": [\n 105080838,\n 102257491\n ],\n \"past_company_ids_exclude\": [\n 1009\n ],\n \"past_job_titles_exclude\": [\n \"Founder\"\n ],\n \"industry_codes_exclude\": [\n 5,\n 6\n ],\n \"first_name\": \"\",\n \"last_name\": \"\",\n \"profile_languages\": [],\n \"school_ids\": [\n 123456\n ],\n \"school_ids_exclude\": [\n 654321\n ],\n \"changed_jobs\": \"false\",\n \"posted_on_linkedin\": \"false\",\n \"mentioned_in_news\": \"false\",\n \"keywords\": \"system\",\n \"zipcode_ids\": [\n 90001\n ],\n \"radius\": 5\n}"
response = http.request(request)
puts response.read_body{
"message": "Use this request_id to check your search with 'Check Search Status' endpoint",
"request_id": "0bb8360c779317e5f6fc1722a8bd26a1",
"total_count": 11075
}{
"data": null,
"message": "Bad request: Invalid payload."
}{
"data": null,
"message": "System error. We will fix it soon!"
}Having a big employee search? No problem, we now can scrape searches that are up to 50k results.
🛠 How the Process Works
Step 1️⃣: Initiate Search
- Launch your search with specific criteria via this endpoint.
- This endpoint returns a
request_id, allowing you to track progress through the Check Search Status endpoint. - The search initiation alone costs 50 credits, even if the search returns 0 results.
- Then each result costs 1 credits, and will be charged in advanced before you actually fetch the results.
Step 2️⃣: Monitor Search Progress
- Use the Check Search Status endpoint to track your search.
- This action is free of charge.
Step 3️⃣: Retrieve Results
- Once the search is complete, access the results via the Get Search Results endpoint.
- Fetching results is free of charge.
This endpoint is for custom-plan users only. Please contact us for more details.
💡 For better understanding and demo code, please follow this tutorialAuthorizations
Body
The LinkedIn Sales Navigator URL for searching employees. When using this parameter, all other parameters will be ignored.
"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)))))"
To filter by current company. Learn how to find a company_id. Maximum: 10 elements.
[162479, 1053]
Maximum: 20 elements.
["Director", "Operation"]
Self-employed, 1-10, 11-50, 51-200, 201-500, 501-1000, 1001-5000, 5001-10000, 10001+ ["1001-5000", "5001-10000"]
Accounting, Administrative, Arts and Design, Business Development, Community and Social Services, Consulting, Education, Engineering, Entrepreneurship, Finance, Healthcare Services, Human Resources, Information Technology, Legal, Marketing, Media and Communication, Military and Protective Services, Operations, Product Management, Program and Project Management, Purchasing, Quality Assurance, Real Estate, Research, Sales, Customer Success and Support ["Accounting", "Administrative"]
To filter by location. Learn how to find a geo_code. Maximum: 20 elements.
[103644278, 102299470]
Owner/Partner, CXO, Vice President, Director, Experienced Manager, Entry Level Manager, Strategic, Senior, Entry Level, In Training []
Less than 1 year, 1 to 2 years, 3 to 5 years, 6 to 10 years, More than 10 years []
Less than 1 year, 1 to 2 years, 3 to 5 years, 6 to 10 years, More than 10 years []
Less than 1 year, 1 to 2 years, 3 to 5 years, 6 to 10 years, More than 10 years []
In case the company_id is not available, use this filter instead. Maximum: 10 elements.
["Apple", "Microsoft"]
In case the company_id is not available, use this filter instead. Maximum: 10 elements.
["Apple", "Microsoft"]
Public Company, Privately Held, Non Profit, Educational Institution, Partnership, Self Employed, Self Owned, Government Agency []
To exclude some locations. Learn how to find a geo_code/location_id. Maximum: 20 elements.
[]
Owner/Partner, CXO, Vice President, Director, Experienced Manager, Entry Level Manager, Strategic, Senior, Entry Level, In Training []
["CEO"]
Maximum: 20 elements.
["Sales"]
Accounting, Administrative, Arts and Design, Business Development, Community and Social Services, Consulting, Education, Engineering, Entrepreneurship, Finance, Healthcare Services, Human Resources, Information Technology, Legal, Marketing, Media and Communication, Military and Protective Services, Operations, Product Management, Program and Project Management, Purchasing, Quality Assurance, Real Estate, Research, Sales, Customer Success and Support []
To exclude some locations. Learn how to find a geo_code. Maximum: 20 elements.
[105080838, 102257491]
["Founder"]
[5, 6]
""
""
Arabic, English, Spanish, Portuguese, Chinese, French, Italian, Russian, German, Dutch, Turkish, Tagalog, Polish, Korean, Japanese, Malay, Norwegian, Danish, Romanian, Swedish, Bahasa Indonesia, Czech []
Maximum: 10 elements.
[123456]
Maximum: 10 elements.
[654321]
true, false "false"
true, false "false"
true, false "false"
Support Boolean keywords as well. For example: AI OR "machine learning".
"system"
Maximum: 5 elements.
[90001]
To be used together with the zipcode_ids filter to define the radius in mile.
1, 5, 10, 25, 35, 50, 75, 100 5
