100 free credits. No credit card required. Get a key

LinkedIn company posts API

A company page’s posts, newest first, with text, reactions, comments, images, video and documents, paginated with after as far as LinkedIn shows a logged-out visitor (about 65 posts).

GET /v1/linkedin/companies/{company}/postsBeta5 credits per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/linkedin/companies/microsoft/posts",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 5 credits
{
"data": [
{
"activity_id": "7531046479881490432",
"urn": "urn:li:activity:7531046479881490432",
"shared_urn": "urn:li:ugcPost:7531046478887448576",
"url": "https://www.linkedin.com/posts/microsoft_more-young-people-across-washington-state-activity-7531046479881490432-bBRw",
"published_at": "2026-11-24T17:30:00.881Z",
"relative_time": "7h",
"author": {
"name": "Microsoft",
"url": "https://www.linkedin.com/company/microsoft",
"followers": "29,587,529 followers"
},
"text": "More young people across Washington state are looking for someone in their corner, and Big Brothers Big Sisters of Puget…",
"reactions_count": 124,
"comments_count": 14,
"images": [],
"video": {
"poster_url": "https://media.licdn.com/dms/image/v2/D4E10AQF7fwe9i5-3FQ/videocover-high/B4EaIJ5VDFHAAs-/0/1795462369070?e=2147483647&v=…",
"duration": null,
"sources": [
{
"url": "https://dms.licdn.com/playlist/vid/v2/D4E10AQF7fwe9i5-3FQ/mp4-720p-30fp-crf28/B4EaIJ5VDFHABo-/0/1795462371271?e=21474836…",
"type": "video/mp4",
"bitrate": 744822
},
{
"url": "https://dms.licdn.com/playlist/vid/v2/D4E10AQF7fwe9i5-3FQ/mp4-640p-30fp-crf28/B4EaIJ5VDFHABk-/0/1795462369071?e=21474836…",
"type": "video/mp4",
"bitrate": 560836
},
"… 1 more"
]
},
"document": null,
"article": null
},
{
"activity_id": "7529688345350688768",
"urn": "urn:li:activity:7529688345350688768",
"shared_urn": "urn:li:ugcPost:7529653600709623808",
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7529688345350688768/",
"published_at": "2026-11-20T23:33:16.376Z",
"relative_time": "4d",
"author": {
"name": "Microsoft Cloud",
"url": "https://www.linkedin.com/showcase/microsoft-cloud-platform/",
"followers": "733,504 followers"
},
"text": "The countdown to #MSIgnite 2027 starts now! We’re returning to San Francisco, November 16–19, 2027, for another unforget…",
"reactions_count": 73,
"comments_count": 7,
"images": [],
"video": null,
"document": {
"title": "Ignite 2027",
"pages": 5
},
"article": null
},
"… 9 more"
],
"after": "eyJrIjoiY29tcGFueSIsImMiOiJtaWNyb3NvZnQiLCJvIjoiMTAzNSIsInQiOiIwLTE3OTU1NjgzNzM3MTktNzljYTVjZDIyOTRhNTJkMzY4NmU5NWEyMjdj…"
}

Parameters

NameTypeDescription
companypath · requiredstringThe page’s universal name (the part after /company/ or /showcase/) or its URL. Example: microsoft.
page_typequery"company" | "showcase"showcase for a /showcase/ page given by name; a URL says it itself. One of company, showcase.
afterquerystringCursor: the previous page’s after (or the company’s posts_next).
Response fields

200 with a LinkedInCompanyPostsPage, in LinkedIn’s own schema.org JSON-LD, with the rest of the public page beside it.

FieldTypeDescription
dataLinkedInFeedPost[]
afterstring | nullCursor for the next page; null on the last.
Status codes
StatusMeaning
200A page of posts.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404LinkedIn has no such public page, or it was removed.
429Too many requests. Wait for Retry-After seconds.
503LinkedIn is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

Questions

How do I get the next page?

Pass after from the response, unchanged.

LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.