Search public LinkedIn posts with author, company, industry, mention, content-type and date filters and get rich author, engagement and attachment details.
4 credits/ call
Never more than 26 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/linkedin.search_posts_full" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query":"b2b sales","datePosted":"last-week","sort":"date","limit":10}'{
"output": {
"found": true,
"data": {
"nextCursor": "<string | null>",
"posts": [
{
"pollTotalVotes": "<integer | null>",
"pollClosed": "<boolean | null>",
"text": "<string | null>",
"createdUtc": "<integer | null>", …
}
]
}
},
"credits": 4
}Input and output
11 fields
b2b sales.last-week.date.10.16 fields
Good to know
Returns up to `limit` posts per call. Pass nextCursor for more.
Poll details are returned when available.
A search with no matches 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.