curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-posts?linkedin_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Famazon%2F&start=0&sort_by=top' \
--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-posts"
querystring = {
"linkedin_url": "https://www.linkedin.com/company/amazon/",
"start": "0",
"sort_by": "top"
}
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({
linkedin_url: "https://www.linkedin.com/company/amazon/",
start: "0",
sort_by: "top"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-posts?${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([
'linkedin_url' => "https://www.linkedin.com/company/amazon/",
'start' => "0",
'sort_by' => "top"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-posts" . "?" . $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("linkedin_url", "https://www.linkedin.com/company/amazon/")
params.Add("start", "0")
params.Add("sort_by", "top")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-posts?"+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-posts?linkedin_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Famazon%2F&start=0&sort_by=top"))
.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());
{
"data": [
{
"num_comments": 173,
"poster": {
"linkedin_url": "https://www.linkedin.com/company/example/",
"name": "Amazon",
"image_url": "https://media.licdn.com/dms/image/v2/D560BAQGDLy4STCnHbg/company-logo_400_400/B56ZnZxDipI0AY-/0/1760295142304/amazon_logo?e=1795651200&v=beta&t=MM2U6vxjUg1kn1W8coDEJ7I9g7ytqJ4pXkCTv11Bp28"
},
"text": "🏋️♂️ Meet Amazon's very own strongman!",
"images": [
{
"url": "https://media.licdn.com/dms/image/example.png"
}
],
"num_appreciations": 32,
"num_empathy": 139,
"num_interests": 4,
"num_likes": 4084,
"num_praises": 264,
"num_reposts": 68,
"posted": "2024-06-06 14:40:25",
"reshared": false,
"time": "6 days ago",
"url": "https://www.linkedin.com/posts/example_post",
"urn": "7204492333600440320",
"video": {
"duration": 70033,
"stream_url": "https://dms.licdn.com/playlist/vid/example.mp4"
},
"attributes": [
"<string>"
],
"share_urn": "7523036288531423232"
}
],
"message": "Request successful.",
"paging": {
"count": 50,
"pagination_token": "1888681094-1793951641518-76b4cfec69e296eac25a7d5409258046",
"start": 0
}
}{
"data": null,
"message": "Bad request: Invalid linkedin_url."
}{
"data": null,
"message": "the url was not found on Linkedin"
}{
"data": null,
"message": "System error. You will not be charged for this request. We will fix it soon!"
}Post Data
Get Company's Posts
-
Get posts from a LinkedIn company page. Pagination is supported to fetch all posts.
-
2 credits per call.
GET
/
get-company-posts
curl --request GET \
--url 'https://live-fetch.p.rapidapi.com/get-company-posts?linkedin_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Famazon%2F&start=0&sort_by=top' \
--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-posts"
querystring = {
"linkedin_url": "https://www.linkedin.com/company/amazon/",
"start": "0",
"sort_by": "top"
}
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({
linkedin_url: "https://www.linkedin.com/company/amazon/",
start: "0",
sort_by: "top"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-posts?${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([
'linkedin_url' => "https://www.linkedin.com/company/amazon/",
'start' => "0",
'sort_by' => "top"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-posts" . "?" . $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("linkedin_url", "https://www.linkedin.com/company/amazon/")
params.Add("start", "0")
params.Add("sort_by", "top")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-posts?"+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-posts?linkedin_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Famazon%2F&start=0&sort_by=top"))
.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());
{
"data": [
{
"num_comments": 173,
"poster": {
"linkedin_url": "https://www.linkedin.com/company/example/",
"name": "Amazon",
"image_url": "https://media.licdn.com/dms/image/v2/D560BAQGDLy4STCnHbg/company-logo_400_400/B56ZnZxDipI0AY-/0/1760295142304/amazon_logo?e=1795651200&v=beta&t=MM2U6vxjUg1kn1W8coDEJ7I9g7ytqJ4pXkCTv11Bp28"
},
"text": "🏋️♂️ Meet Amazon's very own strongman!",
"images": [
{
"url": "https://media.licdn.com/dms/image/example.png"
}
],
"num_appreciations": 32,
"num_empathy": 139,
"num_interests": 4,
"num_likes": 4084,
"num_praises": 264,
"num_reposts": 68,
"posted": "2024-06-06 14:40:25",
"reshared": false,
"time": "6 days ago",
"url": "https://www.linkedin.com/posts/example_post",
"urn": "7204492333600440320",
"video": {
"duration": 70033,
"stream_url": "https://dms.licdn.com/playlist/vid/example.mp4"
},
"attributes": [
"<string>"
],
"share_urn": "7523036288531423232"
}
],
"message": "Request successful.",
"paging": {
"count": 50,
"pagination_token": "1888681094-1793951641518-76b4cfec69e296eac25a7d5409258046",
"start": 0
}
}{
"data": null,
"message": "Bad request: Invalid linkedin_url."
}{
"data": null,
"message": "the url 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-posts?linkedin_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Famazon%2F&start=0&sort_by=top' \
--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-posts"
querystring = {
"linkedin_url": "https://www.linkedin.com/company/amazon/",
"start": "0",
"sort_by": "top"
}
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({
linkedin_url: "https://www.linkedin.com/company/amazon/",
start: "0",
sort_by: "top"
});
const url = `https://live-fetch.p.rapidapi.com/get-company-posts?${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([
'linkedin_url' => "https://www.linkedin.com/company/amazon/",
'start' => "0",
'sort_by' => "top"
]);
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/get-company-posts" . "?" . $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("linkedin_url", "https://www.linkedin.com/company/amazon/")
params.Add("start", "0")
params.Add("sort_by", "top")
req, _ := http.NewRequest("GET", "https://live-fetch.p.rapidapi.com/get-company-posts?"+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-posts?linkedin_url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Famazon%2F&start=0&sort_by=top"))
.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());
