Get LinkedIn company posts
TL;DR
About
Company pages on LinkedIn open on a relevance-ranked "Top" view and label posts "1w" or "1mo", so it is hard to say what a brand posted last month. The script switches the sort to Recent first and turns each activity id into an exact postedAt timestamp. The full commentary comes back, including the part LinkedIn hides behind "...more". Say you do product marketing at a small CRM company. Every Monday you run it on hubspot with count 30, throw out the isRepost rows and rank what went up in the last seven days by reactions. The top url then goes to get_post_comments to see who replied. LinkedIn's own Posts API will not read a competitor's feed, because it returns an organization's posts only to members holding an administrator, content admin or sponsored content poster role on that page. The ceiling is 50 posts with no offset, so a year of a page's history is out of reach.
Input
company requiredLinkedIn company page URL (e.g. https://www.linkedin.com/company/anthropicresearch/) or its slug (anthropicresearch).
count optionalHow many of the most recent posts to return. Default 10.
Default: 10Output
posts requiredNewest first.
company requiredThe company slug, as requested.
complete requiredTrue when the page has no more posts than these. False when count stopped the list first.
Example output
Shape only: placeholder values generated from the output schema, not a real run.
{
"posts": [
{
"url": "https://example.com/item/123",
"urn": "…",
"text": "…",
"reposts": 3,
"comments": 3,
"isRepost": true,
"postedAt": "2026-01-15T09:30:00Z",
"reactions": 3
}
],
"company": "…",
"complete": true
}