Request
POST https://api.profilehunt.dev/v1/post
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
{ "url": "https://www.linkedin.com/posts/vikas-singh-546643206_a-few-years-ago-learning-ai-felt-like-an-share-7527053936265064449-YZh7" }url is a LinkedIn post URL, the one Copy link to post gives you: linkedin.com/posts/ followed by the post's slug. The usual forms work (with or without https:// and www., country subdomains, extra query). Short lnkd.in links and /feed/update/ URLs are not accepted yet, and get 422 invalid_url (not charged) — resolve a lnkd.in link to its /posts/ form first.
Post pages are fetched through Webshare only.
For many posts at once, send up to 100 URLs to POST /v1/post/batches and poll GET /v1/post/batches/:id. It works exactly like the profile Batch API, with post in each result where profile batches have profile.
Response
| status | post | Credit |
|---|---|---|
| ok | The post object below | 1 |
| gone | null: no public post at this URL | 0 |
| unavailable | null: LinkedIn didn't serve the page just then. Retry later. | 0 |
Anything else is an error with an HTTP status other than 200; see Errors.
The post object
Every key is always present. A value the page doesn't show is null. This is the public view of the post: what LinkedIn shows people who aren't signed in. It is the same shape as a post inside a profile's recent_posts.
| Field | Type | Notes |
|---|---|---|
| url | string | Canonical link to the post. |
| posted_at | string | When it was posted, ISO 8601 UTC. From the post, falling back to the time encoded in its activity id. |
| text | string | null | The post's text. null for a post with no caption (image or video only). |
| likes | number | null | Reactions the public page shows, when it shows a count. |
| author | PostAuthor | null | Who posted it: name and url (a member's /in/ page or a company's /company/ page). |
Good to know
- Nothing is cached: every call reads the page again and uses a credit if the post is found.
- To get a person's posts without knowing each URL, call
POST /v1/profileand readrecent_posts. - Comments and the full reaction breakdown aren't included; LinkedIn doesn't show them to logged-out visitors.