One public LinkedIn post or Pulse article by URL: title, text, author, reaction and comment counts, publish date and lead image.
3 credits/ call
Never more than 7 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/linkedin.post" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"url":"https://www.linkedin.com/posts/austenallred_being-a-father-has-made-me-a-better-founder-activity-6678633309211295744-Yahw"}'{
"output": {
"found": true,
"data": {
"title": "<string | null>",
"authorFollowers": "<integer | null>",
"likes": "<integer | null>",
"comments": "<integer | null>", …
}
},
"credits": 3
}Input and output
1 field
https://www.linkedin.com/posts/austenal….13 fields
Good to know
Deleted, private and members-only posts answer found: false. Are not billed. A miss is an answer, not an error, and it costs nothing.
Use linkedin.post_comments for the full comment list.
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.