Extract posts from a LinkedIn profile or company page
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/posts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"limit": 5
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/posts"
payload = {
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"limit": 5
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({linkedin_url: 'https://www.linkedin.com/in/john-doe', limit: 5})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/posts', 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://app.pipecorn.com/api/v2/intents/leads/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_url' => 'https://www.linkedin.com/in/john-doe',
'limit' => 5
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.pipecorn.com/api/v2/intents/leads/posts"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/intents/leads/posts")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 5\n}"
response = http.request(request)
puts response.read_body{
"posts": [
{
"author": "Jane Smith",
"author_url": "https://www.linkedin.com/in/jane-smith",
"content": "Post content text...",
"id": "1234567890123456789",
"urn": "urn:li:activity:1234567890123456789",
"base_url": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789",
"post_url": "https://www.linkedin.com/posts/jane-smith_post-title-activity-1234567890123456789-abcd",
"published_at": "2026-03-11",
"engagement_count": 142,
"reactions_count": 128,
"comments_count": 14
}
]
}Signals
Extract posts from a LinkedIn profile or company page
Returns up to the specified limit of posts for a LinkedIn person profile or company page. The URL is detected automatically: company page URLs use the organization feed; profile URLs use the member profile feed. Results can be narrowed with posted_within.
POST
/
intents
/
leads
/
posts
Extract posts from a LinkedIn profile or company page
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/posts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"limit": 5
}
'import requests
url = "https://app.pipecorn.com/api/v2/intents/leads/posts"
payload = {
"linkedin_url": "https://www.linkedin.com/in/john-doe",
"limit": 5
}
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({linkedin_url: 'https://www.linkedin.com/in/john-doe', limit: 5})
};
fetch('https://app.pipecorn.com/api/v2/intents/leads/posts', 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://app.pipecorn.com/api/v2/intents/leads/posts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'linkedin_url' => 'https://www.linkedin.com/in/john-doe',
'limit' => 5
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.pipecorn.com/api/v2/intents/leads/posts"
payload := strings.NewReader("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 5\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-KEY", "<api-key>")
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))
}HttpResponse<String> response = Unirest.post("https://app.pipecorn.com/api/v2/intents/leads/posts")
.header("X-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.pipecorn.com/api/v2/intents/leads/posts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"linkedin_url\": \"https://www.linkedin.com/in/john-doe\",\n \"limit\": 5\n}"
response = http.request(request)
puts response.read_body{
"posts": [
{
"author": "Jane Smith",
"author_url": "https://www.linkedin.com/in/jane-smith",
"content": "Post content text...",
"id": "1234567890123456789",
"urn": "urn:li:activity:1234567890123456789",
"base_url": "https://www.linkedin.com/feed/update/urn:li:activity:1234567890123456789",
"post_url": "https://www.linkedin.com/posts/jane-smith_post-title-activity-1234567890123456789-abcd",
"published_at": "2026-03-11",
"engagement_count": 142,
"reactions_count": 128,
"comments_count": 14
}
]
}Use Cases
- Monitor content published by key prospects, customers, or their companies
- Track thought leadership from individuals and brand pages
- Analyze posting patterns and content strategy
- Extract posts for further analysis or engagement tracking
Parameters
Required
linkedin_url: LinkedIn profile URL (e.g.https://www.linkedin.com/in/...) or company page URL (e.g.https://www.linkedin.com/company/...)limit: Maximum number of posts to return (minimum: 1)
Optional
posted_within:last_24_hours,last_7_days, orlast_30_days. Omit to return posts without this recency filter. Any other value returns400.
Response
The response is a JSON object with aposts array. Each post may include:
author: Post author nameauthor_url: LinkedIn URL of the author (profile or company)content: Post text contentid: Post IDurn: LinkedIn URN for the postbase_url: Base post URLpost_url: Full post URLpublished_at: Date when the post was published (YYYY-MM-DD format)engagement_count: Total engagement on the post (reactions + comments)reactions_count: Number of reactions on the postcomments_count: Number of comments on the post
200 with an empty posts array.
Example Request
curl --request POST \
--url https://app.pipecorn.com/api/v2/intents/leads/posts \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: your-api-key' \
--data '{
"linkedin_url": "https://www.linkedin.com/in/profile",
"limit": 5,
"posted_within": "last_7_days"
}'
"linkedin_url": "https://www.linkedin.com/company/example".
Example Response
{
"posts": [
{
"author": "Author Name",
"author_url": "https://www.linkedin.com/in/author-profile",
"content": "Post content text...",
"id": "1234567890",
"urn": "urn:li:activity:1234567890",
"base_url": "https://www.linkedin.com/feed/update/...",
"post_url": "https://www.linkedin.com/posts/...",
"published_at": "2026-01-15",
"engagement_count": 142,
"reactions_count": 128,
"comments_count": 14
}
]
}
Errors (400)
- Missing
limit:Missing required keys: limit - Missing
linkedin_url:Missing required keys: linkedin_url - Invalid
posted_within:Invalid posted_within. Use last_24_hours, last_7_days, last_30_days, or omit the key.
Notes
- Synchronous response (
200 OK) with{ "posts": [...] } - Recency filtering is applied after posts are fetched from LinkedIn
Authorizations
Body
application/json
LinkedIn profile URL (e.g. /in/...) or company page URL (e.g. /company/...)
Example:
"https://www.linkedin.com/in/john-doe"
Maximum number of posts to return
Required range:
x >= 1Example:
5
Only include posts published within this window. Omit for no recency filter.
Available options:
last_24_hours, last_7_days, last_30_days Response
Successfully extracted posts
Posts from the profile or company page, after optional recency filtering
Show child attributes
Show child attributes
Was this page helpful?