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

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 failure
import 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

NameTypeDescription
postpath · requiredstringThe 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.

FieldTypeDescription
activity_idstring | null
urnstring
urlstring | null
published_atstring | null
textstring | null
authorobject
reactions_countinteger | null
comments_countinteger | null
commentsobject[]The comments the public page shows (up to ~10).
has_videoboolean
has_captionsboolean
postingobject
cardobject
Status codes
StatusMeaning
200The post.
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

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.