LinkedIn Post Comments API
Get the comments on a LinkedIn post by its activity URN. Each comment includes the text, author, time posted and like and reply counts. Page through the rest with `start`.
- Endpoint
- POST /linkedin/get-activity-comments
- Price
- 1 credit per result
- SDK
- client.linkedin.getActivityComments()
- MCP tool
- linkedin_get_activity_comments
curl -X POST "https://api.bridgly.app/linkedin/get-activity-comments" \ -H "Authorization: Bearer $BRIDGLY_KEY" \ -H "Content-Type: application/json" \ -d '{ "activityUrn": "urn:li:activity:7300000000000000000", "count": 10}'import osimport requestsresponse = requests.post( "https://api.bridgly.app/linkedin/get-activity-comments", headers={"Authorization": f"Bearer {os.environ['BRIDGLY_KEY']}"}, json={ "activityUrn": "urn:li:activity:7300000000000000000", "count": 10, },)data = response.json()const response = await fetch("https://api.bridgly.app/linkedin/get-activity-comments", { method: "POST", headers: { Authorization: `Bearer ${process.env.BRIDGLY_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ "activityUrn": "urn:li:activity:7300000000000000000", "count": 10 }),});const data = await response.json();import { Bridgly } from "@bridgly/sdk";const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });const res = await client.linkedin.getActivityComments({ activityUrn: "urn:li:activity:7300000000000000000", count: 10});if (res.type === "success") { console.log(res.data);}What does the LinkedIn Post Comments API return?
LinkedIn comments scraper API: get the comments on any LinkedIn post as JSON, with each comment’s text, author name, time posted and like and reply counts. Every response has the same envelope: the result in data, plus timeMs and the creditsCost of the call.
Request body
startinteger- Number of results to skip. Defaults to 0.
activityUrnstringrequired- The activity to fetch comments for — a `urn:li:activity:<id>` or the post link, e.g. "urn:li:activity:7300000000000000000" or "https://www.linkedin.com/feed/update/urn:li:activity:7300000000000000000/".
countinteger · 1–100 · default 10- Number of results to return (1–100). Defaults to 10.
sortOrderenum- Comment ordering: "relevance" for LinkedIn's "Most relevant" ranking (default), "recent" for newest first.
- relevance | recent
Example response
{ "timeMs": 1840, "creditsCost": 1, "data": [ { "urn": "string", "activityId": "string", "commentId": "string", "parentCommentId": "string", "text": "string", "authorName": "string", "createdTime": 0, "numLikes": 0, "numComments": 0 } ]}What can you build with the LinkedIn Post Comments API?
Find warm leads
List the people who commented on a post in your niche and follow up.
Run giveaways
Collect every commenter on a post to pick winners fairly.
Analyze sentiment
Send comment text to a model to see how people responded to a launch.
LinkedIn Post Comments API questions
How do I get the comments on a LinkedIn post with an API?
Send the post’s activityUrn, urn:li:activity:<id>, where the id is the long number after "activity" in the post’s link. Each comment comes back with its text, author name, time posted and like and reply counts.
How do I get all the comments on a LinkedIn post?
Each call returns up to 100 comments, set with count. Set start to the number you already have, 100, then 200 and so on, until no more come back. You pay 1 credit for each comment returned.
Can I analyze what people say under a LinkedIn post?
Yes. The comment text comes back as plain JSON, ready for sentiment or topic analysis of the reaction to a launch, an announcement or a competitor’s post.
How do I use the LinkedIn Post Comments API?
Send a POST request to https://api.bridgly.app/linkedin/get-activity-comments with activityUrn in the JSON body and your API key in the Authorization header. In the TypeScript SDK, call client.linkedin.getActivityComments(). AI agents connected to Bridgly over MCP can call the linkedin_get_activity_comments tool.
How much does the LinkedIn Post Comments API cost?
Costs 1 credit per result returned, with a minimum of 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.
More LinkedIn endpoints
The same API key works on every endpoint. See all LinkedIn API endpoints.
- LinkedIn Post Reactions API→LinkedIn post likes scraper API: list who reacted to any LinkedIn post, with each person’s name, headline, profile URL and reaction type, as JSON.
- LinkedIn Post Search API→LinkedIn post search API: search posts by keyword, newest first or by relevance, from the last day, week or month, with author, link and engagement counts.
- LinkedIn Post API→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.
- LinkedIn Profile Comments API→LinkedIn user comments API: list the comments any LinkedIn member has written on other posts, with the comment text, time, link and the post it was on.
Try the LinkedIn Post Comments API
100 free credits on business email, no card. Your first call takes a minute.