LinkedIn Feed
Extract a LinkedIn feed post — author, body, attachments, reactions, and comment counts.
API usage
Add &scraper=linkedin-feed to a Crawling API request. URL-encode the target URL in the url parameter.
curl 'https://api.crawlbase.com/?token=YOUR_TOKEN' \
--data-urlencode 'url=https://www.linkedin.com/feed/update/urn:li:activity:7022155503770251267' \
--data-urlencode 'scraper=linkedin-feed' -Gfrom crawlbase import CrawlingAPI
api = CrawlingAPI({'token': 'YOUR_TOKEN'})
res = api.get(
'https://www.linkedin.com/feed/update/urn:li:activity:7022155503770251267',
{'scraper': 'linkedin-feed'}
)
import json
data = json.loads(res['body'])const { CrawlingAPI } = require('crawlbase');
const api = new CrawlingAPI({ token: 'YOUR_TOKEN' });
const res = await api.get(
'https://www.linkedin.com/feed/update/urn:li:activity:7022155503770251267',
{ scraper: 'linkedin-feed' }
);
const data = JSON.parse(res.body);require 'crawlbase'
api = Crawlbase::API.new(token: 'YOUR_TOKEN')
res = api.get('https://www.linkedin.com/feed/update/urn:li:activity:7022155503770251267', scraper: 'linkedin-feed')
data = JSON.parse(res.body)Example input URL
The URL passed in the url parameter (URL-decoded for readability):
https://www.linkedin.com/feed/update/urn:li:activity:7022155503770251267Response shape
JSON response body. Field types may be null when the source page omits the value.
Activity URN.
Author display name.
Author headline.
Author profile URL.
Relative timestamp.
Post text.
Attached images, videos, document links.
Total reactions.
Comments count.
Reposts count.
Sample response
{
"post_id": "urn:li:activity:7022155503770251267",
"author_name": "Jane Doe",
"author_headline": "VP Engineering",
"posted_at": "2 weeks ago",
"reactions_count": 1842,
"comments_count": 87,
"reposts_count": 42
}
