Post
One post with its reactions and comments.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringThe post's link (https://www.linkedin.com/posts/…, or a /feed/update/urn:li:… one).
id?stringThe post's id: its activity's number (7531543853288456193), instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A LinkedIn post or article.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.linkedin.post({ url: "https://www.linkedin.com/posts/williamhgates_how-ai-is-helping-kenyan-farmers-bill-gates-activity-7531543853288456193-Ku5w" });Example Response
{ "data": { "id": "7531543853288456193", "url": "https://www.linkedin.com/feed/update/urn:li:activity:7531543853288456193/", "text": "In Kenya, TomorrowNow turns AI-powered weather forecasts into text messages with advice farmers can act on—in their own language, on the phones they already use. This is the kind of innovation that can help AI’s benefits reach more people.", "createdAt": "2026-11-26T02:26:23.942Z", "author": { "id": "williamhgates", "username": "williamhgates", "displayName": "Bill Gates", "avatarUrl": "https://media.licdn.com/dms/image/v2/D5603AQF-RYZP55jmXA/profile-displayphoto-shrink_400_400/B56ZRi8g.aGsAg-/0/1736826818802?e=2147483647&v=beta&t=r6LJYwKPrJzfFDXVG8qAOoklQnqvEN855sHJ1NxhEAo", "verified": false, "url": "https://www.linkedin.com/in/williamhgates" }, "stats": { "views": null, "likes": 1139, "comments": 200, "shares": null, "saves": null, "engagementRate": null }, "media": [], "hashtags": [], "mentions": [], "ext": { "kind": "post", "title": null, "authorHeadline": "Chair, Gates Foundation and Founder, Breakthrough Energy", "repostedBy": null, "urn": "urn:li:share:7531543852617363456", "reshared": null, "edited": true, "linkPreview": { "url": "https://www.gatesnotes.com/fighting-climate-change-one-text-at-a-time", "title": "How AI is helping Kenyan farmers | Bill Gates", "subtitle": "gatesnotes.com" }, "captions": false, "language": null } }}