Platforms · LinkedIn

LinkedIn Post With Comments Scraper API

Returns one post packed with its comments. Pass an activity URL.

GET /api/v1/data/linkedin/post-with-comments · 5 credits per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Inputs

  • url (required): Activity URL of the LinkedIn post.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.comments (array): The post's comments.
  • source_data.comments.author (object): Who left the comment.
  • source_data.comments.author.LastName (string): The commenter's last name.
  • source_data.comments.author.firstName (string): The commenter's first name.
  • source_data.comments.author.id (string): The commenter's LinkedIn id.
  • source_data.comments.author.linkedinUrl (string): The commenter's profile link.
  • source_data.comments.author.title (string): The commenter's headline.
  • source_data.comments.author.urn (string): The commenter's LinkedIn urn.
  • source_data.comments.author.username (string): The commenter's profile handle.
  • source_data.comments.createdAt (number): When the comment was left, as a Unix time in milliseconds.
  • source_data.comments.createdAtString (string): When the comment was left, as LinkedIn words it.
  • source_data.comments.entityUrn (string): The comment's entity id.
  • source_data.comments.isEdited (boolean): Whether the commenter edited it.
  • source_data.comments.isPinned (boolean): Whether the post's author pinned the comment.
  • source_data.comments.permalink (string): The comment's link.
  • source_data.comments.text (string): The comment text.
  • source_data.comments.totalSocialActivityCounts (object): The comment's reaction and reply counts.
  • source_data.comments.totalSocialActivityCounts.InterestCount (number): Interest (Insightful) reactions.
  • source_data.comments.totalSocialActivityCounts.appreciationCount (number): Appreciation (Celebrate) reactions.
  • source_data.comments.totalSocialActivityCounts.empathyCount (number): Empathy (Support) reactions.
  • source_data.comments.totalSocialActivityCounts.funnyCount (number): Funny reactions.
  • source_data.comments.totalSocialActivityCounts.likeCount (number): Like reactions.
  • source_data.comments.totalSocialActivityCounts.maybeCount (number): Maybe reactions.
  • source_data.comments.totalSocialActivityCounts.numComments (number): How many replies the comment has.
  • source_data.comments.totalSocialActivityCounts.numShares (number): How many times the comment was shared.
  • source_data.comments.totalSocialActivityCounts.praiseCount (number): Praise (Love) reactions.
  • source_data.comments.totalSocialActivityCounts.totalReactionCount (number): All reactions added together.
  • source_data.comments.urn (string): The comment's id.
  • source_data.post (object): The post.
  • source_data.post.InterestCount (number): Interest (Insightful) reactions.
  • source_data.post.appreciationCount (number): Appreciation (Celebrate) reactions.
  • source_data.post.article (object): The article the post shares.
  • source_data.post.article.link (string): The article link.
  • source_data.post.article.newsletter (any): An empty object when there is none.
  • source_data.post.article.subtitle (string): The article's publisher or subtitle.
  • source_data.post.article.title (string): The article title.
  • source_data.post.author (object): Who wrote the post.
  • source_data.post.author.firstName (string): The author's first name.
  • source_data.post.author.headline (string): The author's headline.
  • source_data.post.author.id (number): The author's numeric LinkedIn id.
  • source_data.post.author.lastName (string): The author's last name.
  • source_data.post.author.profilePictures (array): The author's profile photo in several sizes.
  • source_data.post.author.profilePictures.height (number): The image height in pixels.
  • source_data.post.author.profilePictures.url (string): The image link.
  • source_data.post.author.profilePictures.width (number): The image width in pixels.
  • source_data.post.author.url (string): The author's profile link.
  • source_data.post.author.urn (string): The author's LinkedIn urn.
  • source_data.post.author.username (string): The author's profile handle.
  • source_data.post.celebration (any): An empty object when there is none.
  • source_data.post.commentsCount (number): How many comments the post has.
  • source_data.post.company (any): An empty object otherwise.
  • source_data.post.contentType (string): The kind of post. Empty for a plain text post.
  • source_data.post.document (any): An empty object when there is none.
  • source_data.post.empathyCount (number): Empathy (Support) reactions.
  • source_data.post.entity (any): An empty object when there is none.
  • source_data.post.funnyCount (number): Funny reactions.
  • source_data.post.isBrandPartnership (boolean): Whether the post is marked as a paid partnership.
  • source_data.post.likeCount (number): Like reactions.
  • source_data.post.poll (any): An empty object when there is none.
  • source_data.post.postedAt (string): How long ago it was posted, as LinkedIn words it, such as `4w`.
  • source_data.post.postedDate (string): When it was posted, as a timestamp string in UTC.
  • source_data.post.postedDateTimestamp (number): The same moment as a Unix time in milliseconds.
  • source_data.post.praiseCount (number): Praise (Love) reactions.
  • source_data.post.repostsCount (number): How many times the post was reposted.
  • source_data.post.text (string): The post text.
  • source_data.post.totalReactionCount (number): All reactions added together.
  • source_data.post.urn (string): The post's id.
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 5 credits. A call that finds nothing, or fails, is free.
  • The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Example call

GET /api/v1/data/linkedin/post-with-comments?url=https%3A%2F%2Fwww.linkedin.com%2Ffeed%2Fupdate%2Furn%3Ali%3Aactivity%3A7501466755261820928

Questions

How much does the LinkedIn Post With Comments API cost?

Each call costs 5 credits. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.

Do I need a LinkedIn account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related LinkedIn endpoints

More LinkedIn scraper APIs