LINKEDIN API

LinkedIn Post API

Get a single LinkedIn post by its activity URN. Returns the post text, author, publish date, images, any shared article, event or job, reaction, comment and share counts, and its comments.

Endpoint
POST /linkedin/get-post-detail
Price
1 credit per request
SDK
client.linkedin.getPostDetail()
MCP tool
linkedin_get_post_detail
Terminal
curl -X POST "https://api.bridgly.app/linkedin/get-post-detail" \
-H "Authorization: Bearer $BRIDGLY_KEY" \
-H "Content-Type: application/json" \
-d '{
"activityUrn": "urn:li:activity:7300000000000000000"
}'
[ REQUEST AND RESPONSE ]

What does the LinkedIn Post API return?

LinkedIn post scraper API: get one post as JSON by its URN, with author, text, images, any shared article or job, reaction, comment and share counts. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.

Request body

activityUrnstringrequired
The post/update to fetch — a `urn:li:activity:<id>` or the post link, e.g. "urn:li:activity:7300000000000000000".

Example response

200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"data": {
"urn": "string",
"activity": {
"type": "post"
},
"url": "string",
"shareUrn": "string",
"shareAudience": "string",
"text": "string",
"publishedAt": "string",
"postedAt": 0,
"actorName": "string",
"actorUrn": "string",
"actorPublicIdentifier": "string",
"actorUrl": "string",
"actorHeadline": "string",
"images": [
{
"url": "string"
}
],
"article": {
"title": "string",
"subtitle": "string",
"url": "string",
"imageUrl": "string"
},
"event": {
"title": "string",
"url": "string",
"date": "string",
"location": "string"
},
"job": {
"title": "string",
"company": "string",
"location": "string",
"url": "string"
},
"socialCounts": {
"numLikes": 0,
"numComments": 0,
"numShares": 0,
"reactionTypeCounts": [
{
"reactionType": "string",
"count": 0
}
]
},
"resharedPost": {
"actorName": "string",
"text": "string",
"actorUrn": "string",
"actorPublicIdentifier": "string",
"actorUrl": "string",
"publishedAt": "string",
"urn": "string",
"url": "string",
"shareUrn": "string"
},
"comments": [
{
"urn": "string",
"text": "string",
"commenterName": "string",
"commenterUrn": "string",
"createdTime": 0,
"parentCommentUrn": "string"
}
]
}
}
[ USE CASES ]

What can you build with the LinkedIn Post API?

Track post performance

Re-fetch a post on a schedule and chart how reactions and comments grow.

Archive content

Save the full text and attachments of posts you reference or report on.

Feed AI summaries

Pass a post and its first comments to a model to summarize the discussion.

[ FAQ ]

LinkedIn Post API questions

How do I get LinkedIn post data from a post URL?

The post’s ID is the long number after "activity" in the post’s link, as in linkedin.com/feed/update/urn:li:activity:7300000000000000000/ or near the end of a linkedin.com/posts/ link. Send it as activityUrn in the form urn:li:activity:<id>.

Can I get the engagement stats of a LinkedIn post?

Yes. The response has the reaction, comment and share counts together with the text, author, publish date, images and the post’s comments.

Where do I get post URNs in bulk?

Posts returned by the LinkedIn Profile Posts, Company Posts and Post Search APIs each carry their urn, so you can list posts first and fetch the ones you need in full.

How do I use the LinkedIn Post API?

Send a POST request to https://api.bridgly.app/linkedin/get-post-detail with activityUrn in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.linkedin.getPostDetail(). AI agents connected to Bridgly over MCP can call the linkedin_get_post_detail tool.

How much does the LinkedIn Post API cost?

Costs 1 credit per request. Credits cost $2.00 per 1,000 on pay-as-you-go and as low as $1.00 per 1,000 at volume. New accounts on a business email start with 100 free credits, and failed requests are never charged.

Try the LinkedIn Post API

100 free credits on business email, no card. Your first call takes a minute.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free with 100 credits