curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-by-domain?domain=apple.com' \
--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-domain"
querystring = {
"domain": "apple.com"
}
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({
domain: "apple.com"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-by-domain?${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([
'domain' => "apple.com"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-by-domain" . "?" . $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("domain", "apple.com")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-by-domain?"+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-domain?domain=apple.com"))
.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",
"confident_score": "100%",
"data": {
"affiliated_companies": [
"https://www.linkedin.com/company/123456"
],
"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": 165935,
"employee_range": "10001+",
"follower_count": 17691680,
"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
}
}{
"data": null,
"message": "Bad request: Invalid domain."
}{
"data": null,
"message": "The API was not able to find the domain on Linkedin. You will not be charged for this request."
}{
"data": null,
"message": "System error. You will not be charged for this request. We will fix it soon!"
}Top Endpoints
Get Company by Domain
-
Find a company on LinkedIn using its web domain.
-
1 credit per call.
GET
/
get-company-by-domain
curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-by-domain?domain=apple.com' \
--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-domain"
querystring = {
"domain": "apple.com"
}
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({
domain: "apple.com"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-by-domain?${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([
'domain' => "apple.com"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-by-domain" . "?" . $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("domain", "apple.com")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-by-domain?"+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-domain?domain=apple.com"))
.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",
"confident_score": "100%",
"data": {
"affiliated_companies": [
"https://www.linkedin.com/company/123456"
],
"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": 165935,
"employee_range": "10001+",
"follower_count": 17691680,
"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
}
}{
"data": null,
"message": "Bad request: Invalid domain."
}{
"data": null,
"message": "The API was not able to find the domain on Linkedin. You will not be charged for this request."
}{
"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-domain?domain=apple.com' \
--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-domain"
querystring = {
"domain": "apple.com"
}
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({
domain: "apple.com"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-by-domain?${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([
'domain' => "apple.com"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-by-domain" . "?" . $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("domain", "apple.com")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-by-domain?"+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-domain?domain=apple.com"))
.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());
