LinkedIn post API
One public LinkedIn post by URL or id: text, author and followers, publish time, reactions and comment counts, the comments the public page shows, and the page’s own schema.org SocialMediaPosting or VideoObject.
GET /v1/linkedin/posts/{post}Beta5 credits per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/linkedin/posts/7528601878516084736",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 5 credits{ "activity_id": "7528601878516084736", "urn": "urn:li:activity:7528601878516084736", "url": "https://www.linkedin.com/posts/charleslamanna_copilot-at-microsoft-ignite-expand…", "published_at": "2026-11-17T23:36:02.496Z", "text": "Since September, I've been working with my Autopilot, Apollo, every day. \n\nIt's …", "author": { "name": "Charles Lamanna", "url": "https://www.linkedin.com/in/charleslamanna", "followers_count": 97618 }, "reactions_count": 1233, "comments_count": 67, "comments": [ { "author": "Joel Hammer", "author_url": null, "text": "Don’t get me wrong – you’re doing a great job with Copilot and all the agentic c…", "published_at": "2026-11-18T06:46:51.681Z", "likes": 47 }, "… 9 more" ], "has_video": false, "…": "3 more fields"}Parameters
| Name | Type | Description |
|---|---|---|
postpath · required | string | The post URL (linkedin.com/posts/… or /feed/update/urn:li:activity:…), its activity id or URN. Example: 7528601878516084736. |
Response fields
200 with a LinkedInPost, in LinkedIn’s own schema.org JSON-LD, with the rest of the public page beside it.
| Field | Type | Description |
|---|---|---|
activity_id | string | null | |
urn | string | |
url | string | null | |
published_at | string | null | |
text | string | null | |
author | object | |
reactions_count | integer | null | |
comments_count | integer | null | |
comments | object[] | The comments the public page shows (up to ~10). |
has_video | boolean | |
has_captions | boolean | |
posting | object | |
card | object |
Status codes
| Status | Meaning |
|---|---|
200 | The post. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | LinkedIn has no such public page, or it was removed. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | LinkedIn is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Do I get every comment?
No: the comments a logged-out visitor sees, up to about ten. The full thread is shown only to signed-in members.
LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.