Get the LinkedIn company people stats
curl --request GET \
--url https://api.harvestapi.io/linkedin/company-people-stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/company-people-stats"
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.harvestapi.io/linkedin/company-people-stats', 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.harvestapi.io/linkedin/company-people-stats",
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.harvestapi.io/linkedin/company-people-stats"
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.harvestapi.io/linkedin/company-people-stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/company-people-stats")
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{
"element": {
"id": "1441",
"universalName": "google",
"linkedinUrl": "https://www.linkedin.com/company/google",
"peopleStats": [
{
"statTitle": "Locations",
"values": [
{
"title": "United States",
"count": 79084
},
{
"title": "California, United States",
"count": 47339
},
{
"title": "San Francisco Bay Area",
"count": 42556
}
]
},
{
"statTitle": "School",
"values": [
{
"title": "University of California, Berkeley",
"count": 3558
},
{
"title": "Stanford University",
"count": 3191
},
{
"title": "Massachusetts Institute of Technology",
"count": 1594
}
]
},
{
"statTitle": "Current Function",
"values": [
{
"title": "Engineering",
"count": 76734
},
{
"title": "Information Technology",
"count": 19508
},
{
"title": "Business Development",
"count": 15830
}
]
},
{
"statTitle": "Skill Explicit",
"values": [
{
"title": "Python (Programming Language)",
"count": 53899
},
{
"title": "Java",
"count": 48710
},
{
"title": "C++",
"count": 45410
}
]
},
{
"statTitle": "Service categories",
"values": [
{
"title": "Consulting",
"count": 1870
},
{
"title": "Marketing",
"count": 1545
},
{
"title": "Software Development",
"count": 1396
}
]
},
{
"statTitle": "Field of Study",
"values": [
{
"title": "Computer Science",
"count": 44460
},
{
"title": "Computational Science",
"count": 39151
},
{
"title": "Computer Engineering",
"count": 10590
}
]
}
]
},
"status": 200,
"query": {
"universalName": "google"
}
}{
"error": 123,
"message": "<string>"
}LinkedIn Company
Company People Stats
Get the People statistics of a LinkedIn company page: where the employees are located, where they studied, etc.
GET
/
linkedin
/
company-people-stats
Get the LinkedIn company people stats
curl --request GET \
--url https://api.harvestapi.io/linkedin/company-people-stats \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/company-people-stats"
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.harvestapi.io/linkedin/company-people-stats', 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.harvestapi.io/linkedin/company-people-stats",
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.harvestapi.io/linkedin/company-people-stats"
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.harvestapi.io/linkedin/company-people-stats")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/company-people-stats")
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{
"element": {
"id": "1441",
"universalName": "google",
"linkedinUrl": "https://www.linkedin.com/company/google",
"peopleStats": [
{
"statTitle": "Locations",
"values": [
{
"title": "United States",
"count": 79084
},
{
"title": "California, United States",
"count": 47339
},
{
"title": "San Francisco Bay Area",
"count": 42556
}
]
},
{
"statTitle": "School",
"values": [
{
"title": "University of California, Berkeley",
"count": 3558
},
{
"title": "Stanford University",
"count": 3191
},
{
"title": "Massachusetts Institute of Technology",
"count": 1594
}
]
},
{
"statTitle": "Current Function",
"values": [
{
"title": "Engineering",
"count": 76734
},
{
"title": "Information Technology",
"count": 19508
},
{
"title": "Business Development",
"count": 15830
}
]
},
{
"statTitle": "Skill Explicit",
"values": [
{
"title": "Python (Programming Language)",
"count": 53899
},
{
"title": "Java",
"count": 48710
},
{
"title": "C++",
"count": 45410
}
]
},
{
"statTitle": "Service categories",
"values": [
{
"title": "Consulting",
"count": 1870
},
{
"title": "Marketing",
"count": 1545
},
{
"title": "Software Development",
"count": 1396
}
]
},
{
"statTitle": "Field of Study",
"values": [
{
"title": "Computer Science",
"count": 44460
},
{
"title": "Computational Science",
"count": 39151
},
{
"title": "Computer Engineering",
"count": 10590
}
]
}
]
},
"status": 200,
"query": {
"universalName": "google"
}
}{
"error": 123,
"message": "<string>"
}Get the People tab statistics of a LinkedIn company
Returns the breakdown shown on the “People” tab of a company page: where the employees are located, where they studied, what they do, what they are skilled at, the service categories they offer and their fields of study. Every group is a list of values with the number of employees matching each value, up to 15 values per group, largest first.const params = new URLSearchParams({
query: 'https://www.linkedin.com/company/google/', // by URL
// query: 'google', // by universal name alternatively
// query: '1441', // or by company ID
});
fetch(`https://api.harvestapi.io/linkedin/company-people-stats?${params.toString()}`, {
headers: { 'X-API-Key': '<api-key>' },
})
.then((response) => response.json())
.then((data) => console.log(data));
curl --request GET \
--url https://api.harvestapi.io/linkedin/company-people-stats?query=google \
--header 'X-API-Key: <api-key>'
import requests
url = "https://api.harvestapi.io/linkedin/company-people-stats?query=google"
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers)
print(response.text)
Authorizations
Query Parameters
URL or universal name or company ID of the LinkedIn company. A company ID skips the company lookup and answers faster

