POST /v1/post: Post Endpoint Reference

Request and response of POST /v1/post and post batches: accepted URL formats, statuses, and every field of the post object with its type.

Last updated

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

statuspostCredit
okThe post object below1
gonenull: no public post at this URL0
unavailablenull: 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.

FieldTypeNotes
urlstringCanonical link to the post.
posted_atstringWhen it was posted, ISO 8601 UTC. From the post, falling back to the time encoded in its activity id.
textstring | nullThe post's text. null for a post with no caption (image or video only).
likesnumber | nullReactions the public page shows, when it shows a count.
authorPostAuthor | nullWho 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/profile and read recent_posts.
  • Comments and the full reaction breakdown aren't included; LinkedIn doesn't show them to logged-out visitors.