One post as the account sees it (its own reaction in user_reacted; impressions_counter for the author only). postId is the activity's number as a link carries it, or a urn:li:activity / ugcPost / share urn. 404 when the account cannot see it.
Your API key from the console (gw_live_…).
In: header
Path Parameters
The post: the activity's number as its link carries it, or a urn:li:activity:…, urn:li:ugcPost:… or urn:li:share:… urn. Anything else answers 400.
Query Parameters
The LinkedIn account (lg_…) to act as.
1 <= lengthResponse Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/posts/7390000000000000000?account_id=lg_3f9c2a7b1d"{ "object": "Post", "provider": "LINKEDIN", "id": "string", "social_id": "string", "share_url": "string", "text": "string", "date": "2019-08-24T14:15:22Z", "parsed_datetime": "2019-08-24T14:15:22Z", "reaction_counter": 0, "comment_counter": 0, "repost_counter": 0, "impressions_counter": 0, "user_reacted": "string", "author": { "public_identifier": "string", "id": "string", "name": "string", "is_company": true, "headline": "string", "profile_picture_url": "string" }, "permissions": { "can_react": true, "can_share": true, "can_post_comments": true }, "is_repost": true, "repost_content": { "id": "string", "text": "string", "author": { "public_identifier": "string", "id": "string", "name": "string", "is_company": true, "headline": "string", "profile_picture_url": "string" }, "date": null, "parsed_datetime": null, "attachments": [ null ] }, "attachments": [ { "id": "string", "type": "img", "url": "string", "unavailable": true } ]}Create a post or a repost POST
Multipart (with an image) or JSON. A public post (visible to anyone, comments from anyone), a write under its own daily cap (`post`, 20). `text` up to 3000 characters; one JPEG, PNG or GIF image in `attachments`; `repost` (a post id or urn) shares that post, with `text` as its commentary or empty. Not offered yet, each answering 422: mentions (`{{n}}` in the text, `mentions`), more than one image, a video, `external_link`, `include_job_posting`, `targeted_audience`, `as_organization`, `location`, `post_type`. A post needs `text`, an image or a `repost` (400 otherwise).
A post's comments GET
The post's own comments (replies are a comment's, with `comment_id`), newest first by default, a page of `limit`. Pass `cursor` back for the next page; `null` on the last.