curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-by-id?company_id=162479' \
--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
import requests
url = "https://live-fetch.p.rapidapi.com/get-company-by-id"
querystring = {
"company_id": "162479"
}
headers = {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "live-fetch.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
const params = new URLSearchParams({
company_id: "162479"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-by-id?${params}`;
const options = {
method: 'GET',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'live-fetch.p.rapidapi.com'
}
};
try {
const response = await fetch(url, options);
const result = await response.json();
console.log(result);
} catch (error) {
console.error(error);
}
<?php
$query = http_build_query([
'company_id' => "162479"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-by-id" . "?" . $query,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: live-fetch.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_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"
"io"
"net/http"
"net/url"
)
func main() {
params := url.Values{}
params.Add("company_id", "162479")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-by-id?"+params.Encode(), nil)
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://live-fetch.p.rapidapi.com/get-company-by-id?company_id=162479"))
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"message": "ok",
"data": {
"company_id": "162479",
"company_name": "Apple",
"description": "We’re a diverse collective of thinkers and doers, continually reimagining what’s possible to help us all do what we love in new ways. And the same innovation that goes into our products also applies to our practices — strengthening our commitment to leave the world better than we found it. This is where your work can make a difference in people’s lives. Including your own.\n\nApple is an equal opportunity employer that is committed to inclusion and diversity. Visit apple.com/careers to learn more.",
"domain": "apple.com",
"email": "",
"employee_count": 165036,
"employee_range": "10001+",
"follower_count": 17689006,
"funding_info": {
"crunchbase_url": "https://www.crunchbase.com/organization/apple",
"last_funding_round_amount": null,
"last_funding_round_currency": null,
"last_funding_round_month": 4,
"last_funding_round_type": "Post IPO equity",
"last_funding_round_year": 2021,
"num_funding_rounds": null
},
"hq_address_line1": "1 Apple Park Way",
"hq_address_line2": "",
"hq_city": "Cupertino",
"hq_country": "US",
"hq_full_address": "1 Apple Park Way, Cupertino, California 95014, US",
"hq_postalcode": "95014",
"hq_region": "California",
"industries": [
"Computers and Electronics Manufacturing"
],
"linkedin_url": "https://www.linkedin.com/company/apple/",
"locations": [
{
"city": "Cupertino",
"country": "US",
"full_address": "1 Apple Park Way, Cupertino, California 95014, US",
"is_headquarter": true,
"line1": "1 Apple Park Way",
"line2": "",
"region": "California",
"zipcode": "95014"
}
],
"logo_url": "https://media.licdn.com/dms/image/v2/C560BAQHdAaarsO-eyA/company-logo_400_400/company-logo_400_400/0/1630637844948/apple_logo?e=1744243200&v=beta&t=UZPODQ4VLm4xKooGWuiYIUtapnfYcfNDEc_gYgqNZN8",
"phone": "",
"specialties": "Innovative Product Development, World-Class Operations, Retail, Telephone Support",
"tagline": "",
"website": "http://www.apple.com/careers",
"year_founded": 1976,
"type": "Public Company"
}
}{
"data": null,
"message": "Bad request: Invalid company_id."
}{
"data": null,
"message": "The id was not found on Linkedin"
}{
"data": null,
"message": "System error. You will not be charged for this request. We will fix it soon!"
}Other Endpoints
Get Company by ID
-
Retrieve valuable data points using a company’s LinkedIn internal ID.
-
1 credit per call.
GET
/
get-company-by-id
curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-by-id?company_id=162479' \
--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
import requests
url = "https://live-fetch.p.rapidapi.com/get-company-by-id"
querystring = {
"company_id": "162479"
}
headers = {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "live-fetch.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
const params = new URLSearchParams({
company_id: "162479"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-by-id?${params}`;
const options = {
method: 'GET',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'live-fetch.p.rapidapi.com'
}
};
try {
const response = await fetch(url, options);
const result = await response.json();
console.log(result);
} catch (error) {
console.error(error);
}
<?php
$query = http_build_query([
'company_id' => "162479"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-by-id" . "?" . $query,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: live-fetch.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_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"
"io"
"net/http"
"net/url"
)
func main() {
params := url.Values{}
params.Add("company_id", "162479")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-by-id?"+params.Encode(), nil)
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://live-fetch.p.rapidapi.com/get-company-by-id?company_id=162479"))
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"message": "ok",
"data": {
"company_id": "162479",
"company_name": "Apple",
"description": "We’re a diverse collective of thinkers and doers, continually reimagining what’s possible to help us all do what we love in new ways. And the same innovation that goes into our products also applies to our practices — strengthening our commitment to leave the world better than we found it. This is where your work can make a difference in people’s lives. Including your own.\n\nApple is an equal opportunity employer that is committed to inclusion and diversity. Visit apple.com/careers to learn more.",
"domain": "apple.com",
"email": "",
"employee_count": 165036,
"employee_range": "10001+",
"follower_count": 17689006,
"funding_info": {
"crunchbase_url": "https://www.crunchbase.com/organization/apple",
"last_funding_round_amount": null,
"last_funding_round_currency": null,
"last_funding_round_month": 4,
"last_funding_round_type": "Post IPO equity",
"last_funding_round_year": 2021,
"num_funding_rounds": null
},
"hq_address_line1": "1 Apple Park Way",
"hq_address_line2": "",
"hq_city": "Cupertino",
"hq_country": "US",
"hq_full_address": "1 Apple Park Way, Cupertino, California 95014, US",
"hq_postalcode": "95014",
"hq_region": "California",
"industries": [
"Computers and Electronics Manufacturing"
],
"linkedin_url": "https://www.linkedin.com/company/apple/",
"locations": [
{
"city": "Cupertino",
"country": "US",
"full_address": "1 Apple Park Way, Cupertino, California 95014, US",
"is_headquarter": true,
"line1": "1 Apple Park Way",
"line2": "",
"region": "California",
"zipcode": "95014"
}
],
"logo_url": "https://media.licdn.com/dms/image/v2/C560BAQHdAaarsO-eyA/company-logo_400_400/company-logo_400_400/0/1630637844948/apple_logo?e=1744243200&v=beta&t=UZPODQ4VLm4xKooGWuiYIUtapnfYcfNDEc_gYgqNZN8",
"phone": "",
"specialties": "Innovative Product Development, World-Class Operations, Retail, Telephone Support",
"tagline": "",
"website": "http://www.apple.com/careers",
"year_founded": 1976,
"type": "Public Company"
}
}{
"data": null,
"message": "Bad request: Invalid company_id."
}{
"data": null,
"message": "The id was not found on Linkedin"
}{
"data": null,
"message": "System error. You will not be charged for this request. We will fix it soon!"
}curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-by-id?company_id=162479' \
--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY'
import requests
url = "https://live-fetch.p.rapidapi.com/get-company-by-id"
querystring = {
"company_id": "162479"
}
headers = {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "live-fetch.p.rapidapi.com"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
const params = new URLSearchParams({
company_id: "162479"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-by-id?${params}`;
const options = {
method: 'GET',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'live-fetch.p.rapidapi.com'
}
};
try {
const response = await fetch(url, options);
const result = await response.json();
console.log(result);
} catch (error) {
console.error(error);
}
<?php
$query = http_build_query([
'company_id' => "162479"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-by-id" . "?" . $query,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: live-fetch.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_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"
"io"
"net/http"
"net/url"
)
func main() {
params := url.Values{}
params.Add("company_id", "162479")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-by-id?"+params.Encode(), nil)
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://live-fetch.p.rapidapi.com/get-company-by-id?company_id=162479"))
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
.method("GET", HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Query Parameters
Learn how to find a company_id.
Example:
162479
