LinkedIn

Get the comments on a LinkedIn post

Fetch the comments on one post, up to 100 a page: each comment's text, author (name, headline, profile), published_at, like_count, reply_count and its own url, which opens the post at that comment. With comment_url, the replies to one comment. Use this to see who engages with a post and what they say.

Give exactly one of url or comment_url to identify the subject.

Costs 7 credits, whether the answer is fetched or served from cache. A failed call is refunded automatically.

get/linkedin/comments

Request

  • Base URL: https://api.scrapefield.com/v1
  • URL: https://api.scrapefield.com/v1/linkedin/comments
  • Auth: one of:
    • HTTP bearer
    • none

Query parameters

urlstring
Example:https://www.linkedin.com/feed/update/urn:li:activity:7243000000000000000

The post's URL, as for linkedin/post.

comment_urlstring
Example:https://www.linkedin.com/feed/update/urn:li:activity:7243000000000000000?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7243000000000000000%2C7243000000000000001%29

A comment's URL, as LinkedIn's "Copy link to comment" gives it: the replies to that comment.

sort'relevance' | 'newest'

Most relevant first, or newest first.

cursorstring

The meta.next_cursor from the previous page. Omit for the first page.

freshboolean

Skip the cache and fetch now. Charged normally. Not available on trial credits — buy any pack to unlock it.

demoboolean

With no key: a fixed demo answer in the same shape, charged nothing.

Response

The request succeeded.

Changes

No recorded changes to this operation across all 1 revision of this API.