Comments a LinkedIn member left on other people's posts: comment text, permalink and timestamp, plus the post it was left on.
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.profile_comments" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.linkedin.com/in/satyanadella","limit":50}'{
"output": {
"found": true,
"data": {
"totalResults": "<integer | null>",
"nextCursor": "<string | null>",
"items": [
{
"edited": "<boolean | null>",
"isAuthor": "<boolean | null>",
"commentary": "<string | null>",
"createdUtc": "<integer | null>", …
}
]
}
},
"credits": 4
}Input and output
4 fields
https://www.linkedin.com/in/satyanadella.50.9 fields
Good to know
Up to 100 comments per call. Pass nextCursor (with the same url) for more.
postedLimit narrows the list to comments from the last 24 hours. Week or month.
The post is identified by id and URL. Call linkedin.post for its text and author.
Unknown URL? It comes back as not found, not as 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.