Comments on a public LinkedIn post: full text, commenter name, profile URL and headline, timestamps and engagement.
4 credits/ call
Never more than 125 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/linkedin.post_comments" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.linkedin.com/posts/satyanadella_today-at-microsoft-build-activity-7329207003942125568-xyz","limit":50}'{
"output": {
"found": true,
"data": {
"totalResults": "<integer | null>",
"nextCursor": "<string | null>",
"items": [
{
"edited": "<boolean | null>",
"pinned": "<boolean | null>",
"commentary": "<string | null>",
"createdUtc": "<integer | null>", …
}
]
}
},
"credits": 4
}Input and output
4 fields
https://www.linkedin.com/posts/satyanad….50.9 fields
Good to know
Top-level comments, newest first, up to 100 per call. Pass nextCursor (with the same url) for more.
postedLimit narrows the list to comments posted within the window.
A deleted or private post answers found: false. A miss is an answer, not an error.
Terms of use. Public LinkedIn data only. LinkedIn’s User Agreement restricts automated collection and LinkedIn enforces it; use the data for lawful purposes, keep copies only as long as you need them, and treat post and article text as the author’s content (analysis, not republication). Results contain personal data about identifiable people (GDPR, UK GDPR, CCPA): have a lawful basis, honour deletion requests, and never use it for spam or unsolicited bulk outreach.
The same key and credits work for every API.