curl --request POST \
--url 'https://live-fetch.p.rapidapi.com/search-posts' \
--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'Content-Type: application/json' \
--data '{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}'
import requests
url = "https://live-fetch.p.rapidapi.com/search-posts"
payload = {
"search_keywords": "",
"sort_by": "Latest",
"date_posted": "",
"content_type": "",
"from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"],
"from_company": [],
"mentioning_member": [],
"mentioning_company": [],
"author_company": [],
"author_industry": [],
"author_keyword": "",
"limit": 20
}
headers = {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "live-fetch.p.rapidapi.com",
"Content-Type": "application/json"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
const url = 'https://live-fetch.p.rapidapi.com/search-posts';
const options = {
method: 'POST',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'live-fetch.p.rapidapi.com',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"search_keywords": "",
"sort_by": "Latest",
"date_posted": "",
"content_type": "",
"from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"],
"from_company": [],
"mentioning_member": [],
"mentioning_company": [],
"author_company": [],
"author_industry": [],
"author_keyword": "",
"limit": 20
})
};
try {
const response = await fetch(url, options);
const result = await response.json();
console.log(result);
} catch (error) {
console.error(error);
}
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/search-posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => '{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}',
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: live-fetch.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_KEY",
"Content-Type: application/json"
],
]);
$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"
"strings"
)
func main() {
payload := strings.NewReader(`{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}`)
req, _ := http.NewRequest("POST", "https://live-fetch.p.rapidapi.com/search-posts", payload)
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
req.Header.Add("Content-Type", "application/json")
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/search-posts"))
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\"search_keywords\": \"\", \"sort_by\": \"Latest\", \"date_posted\": \"\", \"content_type\": \"\", \"from_member\": [\"ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc\"], \"from_company\": [], \"mentioning_member\": [], \"mentioning_company\": [], \"author_company\": [], \"author_industry\": [], \"author_keyword\": \"\", \"limit\": 20}"))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"data": [
{
"post_type": "photo",
"post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7206932158031003648/",
"posted": "2024-06-13 08:15:24",
"poster_name": "Ron Bar El",
"urn": "7206932158031003648",
"num_comments": null,
"num_likes": null,
"num_shares": null,
"poster_linkedin_url": "https://www.linkedin.com/in/ACoAAAJcHacBGQdA-cxEAGl5Q1swIHXwixZMAK4?miniProfileUrn=urn%3Ali%3Afs_miniProfile%3AACoAAAJcHacBGQdA-cxEAGl5Q1swIHXwixZMAK4",
"poster_title": "Chief TechStoryteller Officer | Founder of turba, Tech storytelling & Brand strategy agency | Speaker",
"text": "The #AI #Narrative War: Beyond the technological battle for AI supremacy among the tech giants...",
"document": null,
"images": [
"<string>"
],
"is_sponsored": false,
"poster_image_url": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_800_800/B56ZRi8g.aGsAc-/0/1736826818808?e=1795651200&v=beta&t=mD0uLOs1cjCSID5jb-exghLe2V4aVjHH0k8FRoFITLM",
"reshared": false,
"share_urn": "7524292224508096512"
}
],
"message": "ok"
}{
"data": null,
"message": "Bad request: Invalid date_posted."
}{
"data": null,
"message": "System error. You will not be charged for this request. We will fix it soon!"
}Post Data
Search Posts
-
Simulates LinkedIn’s Post Search Function with most important filters.
-
1 credit per 20 posts retrieved.
POST
/
search-posts
curl --request POST \
--url 'https://live-fetch.p.rapidapi.com/search-posts' \
--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'Content-Type: application/json' \
--data '{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}'
import requests
url = "https://live-fetch.p.rapidapi.com/search-posts"
payload = {
"search_keywords": "",
"sort_by": "Latest",
"date_posted": "",
"content_type": "",
"from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"],
"from_company": [],
"mentioning_member": [],
"mentioning_company": [],
"author_company": [],
"author_industry": [],
"author_keyword": "",
"limit": 20
}
headers = {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "live-fetch.p.rapidapi.com",
"Content-Type": "application/json"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
const url = 'https://live-fetch.p.rapidapi.com/search-posts';
const options = {
method: 'POST',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'live-fetch.p.rapidapi.com',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"search_keywords": "",
"sort_by": "Latest",
"date_posted": "",
"content_type": "",
"from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"],
"from_company": [],
"mentioning_member": [],
"mentioning_company": [],
"author_company": [],
"author_industry": [],
"author_keyword": "",
"limit": 20
})
};
try {
const response = await fetch(url, options);
const result = await response.json();
console.log(result);
} catch (error) {
console.error(error);
}
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/search-posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => '{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}',
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: live-fetch.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_KEY",
"Content-Type: application/json"
],
]);
$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"
"strings"
)
func main() {
payload := strings.NewReader(`{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}`)
req, _ := http.NewRequest("POST", "https://live-fetch.p.rapidapi.com/search-posts", payload)
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
req.Header.Add("Content-Type", "application/json")
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/search-posts"))
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\"search_keywords\": \"\", \"sort_by\": \"Latest\", \"date_posted\": \"\", \"content_type\": \"\", \"from_member\": [\"ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc\"], \"from_company\": [], \"mentioning_member\": [], \"mentioning_company\": [], \"author_company\": [], \"author_industry\": [], \"author_keyword\": \"\", \"limit\": 20}"))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
{
"data": [
{
"post_type": "photo",
"post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7206932158031003648/",
"posted": "2024-06-13 08:15:24",
"poster_name": "Ron Bar El",
"urn": "7206932158031003648",
"num_comments": null,
"num_likes": null,
"num_shares": null,
"poster_linkedin_url": "https://www.linkedin.com/in/ACoAAAJcHacBGQdA-cxEAGl5Q1swIHXwixZMAK4?miniProfileUrn=urn%3Ali%3Afs_miniProfile%3AACoAAAJcHacBGQdA-cxEAGl5Q1swIHXwixZMAK4",
"poster_title": "Chief TechStoryteller Officer | Founder of turba, Tech storytelling & Brand strategy agency | Speaker",
"text": "The #AI #Narrative War: Beyond the technological battle for AI supremacy among the tech giants...",
"document": null,
"images": [
"<string>"
],
"is_sponsored": false,
"poster_image_url": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_800_800/B56ZRi8g.aGsAc-/0/1736826818808?e=1795651200&v=beta&t=mD0uLOs1cjCSID5jb-exghLe2V4aVjHH0k8FRoFITLM",
"reshared": false,
"share_urn": "7524292224508096512"
}
],
"message": "ok"
}{
"data": null,
"message": "Bad request: Invalid date_posted."
}{
"data": null,
"message": "System error. You will not be charged for this request. We will fix it soon!"
}curl --request POST \
--url 'https://live-fetch.p.rapidapi.com/search-posts' \
--header 'x-rapidapi-host: live-fetch.p.rapidapi.com' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'Content-Type: application/json' \
--data '{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}'
import requests
url = "https://live-fetch.p.rapidapi.com/search-posts"
payload = {
"search_keywords": "",
"sort_by": "Latest",
"date_posted": "",
"content_type": "",
"from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"],
"from_company": [],
"mentioning_member": [],
"mentioning_company": [],
"author_company": [],
"author_industry": [],
"author_keyword": "",
"limit": 20
}
headers = {
"x-rapidapi-key": "YOUR_RAPIDAPI_KEY",
"x-rapidapi-host": "live-fetch.p.rapidapi.com",
"Content-Type": "application/json"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
const url = 'https://live-fetch.p.rapidapi.com/search-posts';
const options = {
method: 'POST',
headers: {
'x-rapidapi-key': 'YOUR_RAPIDAPI_KEY',
'x-rapidapi-host': 'live-fetch.p.rapidapi.com',
'Content-Type': 'application/json'
},
body: JSON.stringify({
"search_keywords": "",
"sort_by": "Latest",
"date_posted": "",
"content_type": "",
"from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"],
"from_company": [],
"mentioning_member": [],
"mentioning_company": [],
"author_company": [],
"author_industry": [],
"author_keyword": "",
"limit": 20
})
};
try {
const response = await fetch(url, options);
const result = await response.json();
console.log(result);
} catch (error) {
console.error(error);
}
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://live-fetch.p.rapidapi.com/search-posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => '{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}',
CURLOPT_HTTPHEADER => [
"x-rapidapi-host: live-fetch.p.rapidapi.com",
"x-rapidapi-key: YOUR_RAPIDAPI_KEY",
"Content-Type: application/json"
],
]);
$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"
"strings"
)
func main() {
payload := strings.NewReader(`{"search_keywords": "", "sort_by": "Latest", "date_posted": "", "content_type": "", "from_member": ["ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc"], "from_company": [], "mentioning_member": [], "mentioning_company": [], "author_company": [], "author_industry": [], "author_keyword": "", "limit": 20}`)
req, _ := http.NewRequest("POST", "https://live-fetch.p.rapidapi.com/search-posts", payload)
req.Header.Add("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
req.Header.Add("x-rapidapi-host", "live-fetch.p.rapidapi.com")
req.Header.Add("Content-Type", "application/json")
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/search-posts"))
.header("x-rapidapi-key", "YOUR_RAPIDAPI_KEY")
.header("x-rapidapi-host", "live-fetch.p.rapidapi.com")
.header("Content-Type", "application/json")
.method("POST", HttpRequest.BodyPublishers.ofString("{\"search_keywords\": \"\", \"sort_by\": \"Latest\", \"date_posted\": \"\", \"content_type\": \"\", \"from_member\": [\"ACoAAA8BYqEBCGLg_vT_ca6mMEqkpp9nVffJ3hc\"], \"from_company\": [], \"mentioning_member\": [], \"mentioning_company\": [], \"author_company\": [], \"author_industry\": [], \"author_keyword\": \"\", \"limit\": 20}"))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Authorizations
Body
application/json
Example:
"marketing"
Available options:
Latest, Top match Filter posts by a specific date or date range.
Available options:
Past 24 hours, Past week, Past month, past-year, past-2y, past-3y Example:
"Past week"
Available options:
Videos, Images, Job posts, Live videos, Documents, Collaborative articles Example:
"Images"
List of LinkedIn URNs.
Example:
["ACoAAAGafwYBi3pXOoVVwIyAFc453DuIv50jfTA"]
List of LinkedIn URNs.
Example:
["ACoAAAGafwYBi3pXOoVVwIyAFc453DuIv50jfTA"]
Author title keywords.
Example:
"marketing manager"
Number of posts to retrieve. Must be a multiple of 20 (20, 40, 60, 80, 100). Minimum and default is 20, maximum is 100. Costs 1 credit per 20 posts.
Example:
20
