Piloterr

LinkedIn Post Info

GET
/v2/linkedin/post/info

Simplify LinkedIn post retrieval with our efficient API for enhanced content analysis.

Credit cost: 1 credit per call

Authorization

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Query Parameters

query*string

The LinkedIn post to retrieve. Accepts a numeric post ID or a full post URL.

Accepted formats:

  • 7027826235833520128: LinkedIn numeric post ID
  • https://www.linkedin.com/posts/tanyalindsay_...-activity-7027826235833520128-m0GW: full post URL

Example:

https://www.linkedin.com/posts/tanyalindsay_we-have-been-building-a-web3-gaming-platform-activity-7027826235833520128-m0GW

Notes:

  • Deleted posts: Returns a not-found error if the post has been removed.
  • Comments: Up to the first batch of comments are returned. Deep comment threads may be truncated.
fields?string

Comma-separated list of response fields to return, with dot notation for nested fields (e.g. name,location.city).

is_async?boolean

Run the request as a background job: the API answers 202 with a job_id to poll on GET /v1/jobs/{id}.

Defaultfalse
soft_fail?boolean

Return HTTP 200 even when the request fails; the error is in the error field of the body.

Defaultfalse

Response Body

Successful response

application/json
  1. response
id?string
url?string
text?string
author?
images?array<string>
comments?array<>
hashtags?array<unknown>
image_url?string
like_count?integer
shared_link?unknown
shared_post?
shared_video?unknown
comments_count?integer
date_published?string
total_engagement?integer
mentioned_profiles?array<unknown>
Example Request
curl -X GET 'https://api.piloterr.com/v2/linkedin/post/info?query=string'
Example Response
{  "id": "7027826235833520128",  "url": "https://www.linkedin.com/posts/tanyalindsay_we-have-been-building-a-web3-gaming-platform-activity-7027826235833520128-m0GW",  "text": "We have been building a web3 gaming platform based on entertainment and not on ponzi or the p2e narrative...",  "author": {    "url": "https://ca.linkedin.com/in/example-user",    "full_name": "Alex Martin",    "image_url": null,    "profile_type": "person"  },  "images": [    "https://media.licdn.com/dms/image/v2/C4E22AQGXHY67ydHRgQ/feedshare-shrink_2048_1536/feedshare-shrink_2048_1536/0/1675462056613"  ],  "comments": [    {      "text": "These stats are too funny. The web3 investors need to learn that whilst youth audiences have ideals and morals but these get easily lost when it comes down to having fun.",      "author": {        "url": "https://uk.linkedin.com/in/example-user-2",        "headline": "Virtual Reality SPECIALIST| VR/AR/MR/360/XR | CEO Omnilux VR",        "full_name": "Jordan Lee",        "image_url": null,        "profile_type": "person"      }    }  ],  "hashtags": [],  "image_url": "https://media.licdn.com/dms/image/v2/C4E22AQGXHY67ydHRgQ/feedshare-shrink_2048_1536/feedshare-shrink_2048_1536/0/1675462056613",  "like_count": 5,  "shared_link": null,  "shared_post": {    "id": "7027397210061328384",    "link": null,    "text": "Web 3 Gaming has a serious problem...",    "image": null,    "title": null  },  "shared_video": null,  "comments_count": 2,  "date_published": "2023-02-05T02:32:25.297Z",  "total_engagement": 7,  "mentioned_profiles": []}