Get the LinkedIn company
curl --request GET \
--url https://api.harvestapi.io/linkedin/company \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/company"
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', 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",
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"
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")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/company")
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": "<string>",
"universalName": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"tagline": "<string>",
"website": "<string>",
"logo": "<string>",
"foundedOn": {
"month": 123,
"year": 123,
"day": 123
},
"employeeCount": 123,
"employeeCountRange": {
"start": 123,
"end": 123
},
"followerCount": 123,
"description": "<string>",
"companyType": "<string>",
"locations": [
{
"country": "<string>",
"city": "<string>",
"geographicArea": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"headquarter": true,
"description": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
}
],
"specialities": [
"<string>"
],
"industries": [
{
"id": "<string>",
"name": "<string>",
"urn": "<string>",
"title": "<string>",
"hierarchy": "<string>"
}
],
"logos": [
{
"url": "<string>",
"width": 123,
"height": 123
}
],
"backgroundCover": "<string>",
"backgroundCovers": [
{
"url": "<string>",
"width": 123,
"height": 123
}
],
"active": true,
"jobSearchUrl": "<string>",
"pageVerified": true,
"pageType": "<string>",
"showcase": true,
"paidCompany": true,
"autoGenerated": true,
"callToActionUrl": "<string>",
"similarOrganizations": [
{
"id": "<string>",
"universalName": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"logo": "<string>",
"employeeCountRange": {
"start": 123,
"end": 123
},
"followerCount": 123,
"description": "<string>",
"industries": [
{
"id": "<string>",
"name": "<string>",
"urn": "<string>",
"title": "<string>",
"hierarchy": "<string>"
}
],
"backgroundCover": "<string>"
}
],
"affiliatedPages": [
{
"id": "<string>",
"universalName": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"logo": "<string>",
"followerCount": 123,
"description": "<string>",
"industries": [
{
"id": "<string>",
"name": "<string>",
"urn": "<string>",
"title": "<string>",
"hierarchy": "<string>"
}
],
"logos": [
{
"url": "<string>",
"width": 123,
"height": 123
}
],
"showcase": true,
"paidCompany": true
}
]
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>",
"universalName": "<string>"
}
}{
"error": 123,
"message": "<string>"
}LinkedIn Company
Get Company
Get the LinkedIn company. Required at least one of the query parameters
GET
/
linkedin
/
company
Get the LinkedIn company
curl --request GET \
--url https://api.harvestapi.io/linkedin/company \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.harvestapi.io/linkedin/company"
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', 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",
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"
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")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.harvestapi.io/linkedin/company")
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": "<string>",
"universalName": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"tagline": "<string>",
"website": "<string>",
"logo": "<string>",
"foundedOn": {
"month": 123,
"year": 123,
"day": 123
},
"employeeCount": 123,
"employeeCountRange": {
"start": 123,
"end": 123
},
"followerCount": 123,
"description": "<string>",
"companyType": "<string>",
"locations": [
{
"country": "<string>",
"city": "<string>",
"geographicArea": "<string>",
"line1": "<string>",
"line2": "<string>",
"postalCode": "<string>",
"headquarter": true,
"description": "<string>",
"parsed": {
"text": "<string>",
"countryCode": "<string>",
"regionCode": "<string>",
"country": "<string>",
"countryFull": "<string>",
"state": "<string>",
"city": "<string>"
}
}
],
"specialities": [
"<string>"
],
"industries": [
{
"id": "<string>",
"name": "<string>",
"urn": "<string>",
"title": "<string>",
"hierarchy": "<string>"
}
],
"logos": [
{
"url": "<string>",
"width": 123,
"height": 123
}
],
"backgroundCover": "<string>",
"backgroundCovers": [
{
"url": "<string>",
"width": 123,
"height": 123
}
],
"active": true,
"jobSearchUrl": "<string>",
"pageVerified": true,
"pageType": "<string>",
"showcase": true,
"paidCompany": true,
"autoGenerated": true,
"callToActionUrl": "<string>",
"similarOrganizations": [
{
"id": "<string>",
"universalName": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"logo": "<string>",
"employeeCountRange": {
"start": 123,
"end": 123
},
"followerCount": 123,
"description": "<string>",
"industries": [
{
"id": "<string>",
"name": "<string>",
"urn": "<string>",
"title": "<string>",
"hierarchy": "<string>"
}
],
"backgroundCover": "<string>"
}
],
"affiliatedPages": [
{
"id": "<string>",
"universalName": "<string>",
"linkedinUrl": "<string>",
"name": "<string>",
"logo": "<string>",
"followerCount": 123,
"description": "<string>",
"industries": [
{
"id": "<string>",
"name": "<string>",
"urn": "<string>",
"title": "<string>",
"hierarchy": "<string>"
}
],
"logos": [
{
"url": "<string>",
"width": 123,
"height": 123
}
],
"showcase": true,
"paidCompany": true
}
]
},
"status": "<string>",
"error": "<string>",
"query": {
"url": "<string>",
"universalName": "<string>"
}
}{
"error": 123,
"message": "<string>"
}const params = new URLSearchParams({
url: 'https://www.linkedin.com/company/google/', // by URL
// universalName: 'google', // by universalName alternatively
});
fetch(`https://api.harvestapi.io/linkedin/company?${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?universalName=google \
--header 'X-API-Key: <api-key>'
import requests
url = "https://api.harvestapi.io/linkedin/company?universalName=google"
headers = {"X-API-Key": "<api-key>"}
response = requests.request("GET", url, headers=headers)
print(response.text)
Authorizations
Query Parameters
URL of the LinkedIn company (optional)
Universal name of the LinkedIn company profile, can be found in URL (optional)
Company name. It will use LinkedIn search and return the most relevant result.
⌘I

