Custom headcount by filters
curl --request POST \
--url https://web-scraping-api2.p.rapidapi.com/find-custom-headcount \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/company/amazon",
"keywords": "",
"where_they_live": [
103644278,
102713980
],
"where_they_studied": [
2584,
3084
],
"what_they_do": [
18,
8
],
"what_they_are_skilled_at": [
1346,
147
],
"what_they_studied": [
100189
],
"include_subsidiaries": "false"
}
'import requests
url = "https://web-scraping-api2.p.rapidapi.com/find-custom-headcount"
payload = {
"linkedin_url": "https://www.linkedin.com/company/amazon",
"keywords": "",
"where_they_live": [103644278, 102713980],
"where_they_studied": [2584, 3084],
"what_they_do": [18, 8],
"what_they_are_skilled_at": [1346, 147],
"what_they_studied": [100189],
"include_subsidiaries": "false"
}
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({
linkedin_url: 'https://www.linkedin.com/company/amazon',
keywords: '',
where_they_live: [103644278, 102713980],
where_they_studied: [2584, 3084],
what_they_do: [18, 8],
what_they_are_skilled_at: [1346, 147],
what_they_studied: [100189],
include_subsidiaries: 'false'
})
};
fetch('https://web-scraping-api2.p.rapidapi.com/find-custom-headcount', 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/find-custom-headcount",
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([
'linkedin_url' => 'https://www.linkedin.com/company/amazon',
'keywords' => '',
'where_they_live' => [
103644278,
102713980
],
'where_they_studied' => [
2584,
3084
],
'what_they_do' => [
18,
8
],
'what_they_are_skilled_at' => [
1346,
147
],
'what_they_studied' => [
100189
],
'include_subsidiaries' => 'false'
]),
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/find-custom-headcount"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/company/amazon\",\n \"keywords\": \"\",\n \"where_they_live\": [\n 103644278,\n 102713980\n ],\n \"where_they_studied\": [\n 2584,\n 3084\n ],\n \"what_they_do\": [\n 18,\n 8\n ],\n \"what_they_are_skilled_at\": [\n 1346,\n 147\n ],\n \"what_they_studied\": [\n 100189\n ],\n \"include_subsidiaries\": \"false\"\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/find-custom-headcount")
.header("x-rapidapi-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/company/amazon\",\n \"keywords\": \"\",\n \"where_they_live\": [\n 103644278,\n 102713980\n ],\n \"where_they_studied\": [\n 2584,\n 3084\n ],\n \"what_they_do\": [\n 18,\n 8\n ],\n \"what_they_are_skilled_at\": [\n 1346,\n 147\n ],\n \"what_they_studied\": [\n 100189\n ],\n \"include_subsidiaries\": \"false\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web-scraping-api2.p.rapidapi.com/find-custom-headcount")
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 \"linkedin_url\": \"https://www.linkedin.com/company/amazon\",\n \"keywords\": \"\",\n \"where_they_live\": [\n 103644278,\n 102713980\n ],\n \"where_they_studied\": [\n 2584,\n 3084\n ],\n \"what_they_do\": [\n 18,\n 8\n ],\n \"what_they_are_skilled_at\": [\n 1346,\n 147\n ],\n \"what_they_studied\": [\n 100189\n ],\n \"include_subsidiaries\": \"false\"\n}"
response = http.request(request)
puts response.read_body{
"message": "ok",
"data": {
"headcount": 2146
}
}{
"data": null,
"message": "Bad request: Invalid payload."
}{
"data": null,
"message": "Bad request: Invalid linkedin_url."
}{
"data": null,
"message": "System error. We will fix it soon!"
}Company Data
Find Custom Headcount
-
Discover the count of employees within a specific company who meet designated criteria.
-
1 credit per call.
POST
/
find-custom-headcount
Custom headcount by filters
curl --request POST \
--url https://web-scraping-api2.p.rapidapi.com/find-custom-headcount \
--header 'Content-Type: application/json' \
--header 'x-rapidapi-key: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/company/amazon",
"keywords": "",
"where_they_live": [
103644278,
102713980
],
"where_they_studied": [
2584,
3084
],
"what_they_do": [
18,
8
],
"what_they_are_skilled_at": [
1346,
147
],
"what_they_studied": [
100189
],
"include_subsidiaries": "false"
}
'import requests
url = "https://web-scraping-api2.p.rapidapi.com/find-custom-headcount"
payload = {
"linkedin_url": "https://www.linkedin.com/company/amazon",
"keywords": "",
"where_they_live": [103644278, 102713980],
"where_they_studied": [2584, 3084],
"what_they_do": [18, 8],
"what_they_are_skilled_at": [1346, 147],
"what_they_studied": [100189],
"include_subsidiaries": "false"
}
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({
linkedin_url: 'https://www.linkedin.com/company/amazon',
keywords: '',
where_they_live: [103644278, 102713980],
where_they_studied: [2584, 3084],
what_they_do: [18, 8],
what_they_are_skilled_at: [1346, 147],
what_they_studied: [100189],
include_subsidiaries: 'false'
})
};
fetch('https://web-scraping-api2.p.rapidapi.com/find-custom-headcount', 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/find-custom-headcount",
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([
'linkedin_url' => 'https://www.linkedin.com/company/amazon',
'keywords' => '',
'where_they_live' => [
103644278,
102713980
],
'where_they_studied' => [
2584,
3084
],
'what_they_do' => [
18,
8
],
'what_they_are_skilled_at' => [
1346,
147
],
'what_they_studied' => [
100189
],
'include_subsidiaries' => 'false'
]),
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/find-custom-headcount"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/company/amazon\",\n \"keywords\": \"\",\n \"where_they_live\": [\n 103644278,\n 102713980\n ],\n \"where_they_studied\": [\n 2584,\n 3084\n ],\n \"what_they_do\": [\n 18,\n 8\n ],\n \"what_they_are_skilled_at\": [\n 1346,\n 147\n ],\n \"what_they_studied\": [\n 100189\n ],\n \"include_subsidiaries\": \"false\"\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/find-custom-headcount")
.header("x-rapidapi-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/company/amazon\",\n \"keywords\": \"\",\n \"where_they_live\": [\n 103644278,\n 102713980\n ],\n \"where_they_studied\": [\n 2584,\n 3084\n ],\n \"what_they_do\": [\n 18,\n 8\n ],\n \"what_they_are_skilled_at\": [\n 1346,\n 147\n ],\n \"what_they_studied\": [\n 100189\n ],\n \"include_subsidiaries\": \"false\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://web-scraping-api2.p.rapidapi.com/find-custom-headcount")
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 \"linkedin_url\": \"https://www.linkedin.com/company/amazon\",\n \"keywords\": \"\",\n \"where_they_live\": [\n 103644278,\n 102713980\n ],\n \"where_they_studied\": [\n 2584,\n 3084\n ],\n \"what_they_do\": [\n 18,\n 8\n ],\n \"what_they_are_skilled_at\": [\n 1346,\n 147\n ],\n \"what_they_studied\": [\n 100189\n ],\n \"include_subsidiaries\": \"false\"\n}"
response = http.request(request)
puts response.read_body{
"message": "ok",
"data": {
"headcount": 2146
}
}{
"data": null,
"message": "Bad request: Invalid payload."
}{
"data": null,
"message": "Bad request: Invalid linkedin_url."
}{
"data": null,
"message": "System error. We will fix it soon!"
}Authorizations
Body
application/json
LinkedIn URL of the company.
Example:
"https://www.linkedin.com/company/amazon"
Example:
""
Default: true
Available options:
true, false Example:
"false"
⌘I
