Docs
Log in

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' -G
from 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:7022155503770251267

Response shape

JSON response body. Field types may be null when the source page omits the value.

post_id
string
Activity URN.
author_name
string
Author display name.
author_headline
string
Author headline.
author_profile_url
string
Author profile URL.
posted_at
string
Relative timestamp.
body
string
Post text.
media
array
Attached images, videos, document links.
reactions_count
integer
Total reactions.
comments_count
integer
Comments count.
reposts_count
integer
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
}