Platforms · LinkedIn

LinkedIn Profile Comments Scraper API

Lists the comments a LinkedIn member has left on posts, newest first, as one fixed window of up to 20: each with the comment text, its time and reactions, and the post it was left on (text, media, author and engagement). A company author's post.author.public_identifier is its page handle.

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

Inputs

  • url (required): Full URL of the LinkedIn profile, company, or post.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • items[].activity (object): The comment's own reaction, comment and share counts.
  • items[].activity.num_comments (number): How many comments the item has.
  • items[].activity.num_likes (number): How many reactions the item has.
  • items[].activity.num_shares (number): How many times the item was shared.
  • items[].activity.reaction_counts (array): Reactions broken down by type.
  • items[].activity.reaction_counts.count (number): How many reactions of this type.
  • items[].activity.reaction_counts.type (string): The reaction type, such as `LIKE`, `APPRECIATION`, `EMPATHY`, `INTEREST` or `PRAISE`.
  • items[].comment (string): The comment text.
  • items[].created_at (string): When the comment was left, as an ISO 8601 timestamp.
  • items[].is_contribution (boolean): Whether the comment was a contribution to a LinkedIn collaborative article.
  • items[].is_edited (boolean): Whether the member edited the comment after posting it.
  • items[].post (object): The post the comment was left on.
  • items[].post.activity (object): The post's reaction, comment and share counts.
  • items[].post.activity.num_comments (number): How many comments the item has.
  • items[].post.activity.num_likes (number): How many reactions the item has.
  • items[].post.activity.num_shares (number): How many times the item was shared.
  • items[].post.activity.reaction_counts (array): Reactions broken down by type.
  • items[].post.activity.reaction_counts.count (number): How many reactions of this type.
  • items[].post.activity.reaction_counts.type (string): The reaction type, such as `LIKE`, `APPRECIATION`, `EMPATHY`, `INTEREST` or `PRAISE`.
  • items[].post.author (object): Who wrote the post. A company author's `public_identifier` is its page handle.
  • items[].post.author.account_type (string): What kind of account it is, such as `user` or `company`.
  • items[].post.author.avatar (array): The member's profile photo in several sizes.
  • items[].post.author.avatar.expires_at (number): When the image link stops working, as a Unix time in milliseconds. Null when the link carries no expiry.
  • items[].post.author.avatar.height (number): The image height in pixels.
  • items[].post.author.avatar.url (string): The image link. LinkedIn image links expire, see `expires_at`.
  • items[].post.author.avatar.width (number): The image width in pixels.
  • items[].post.author.description (string): The member's headline.
  • items[].post.author.first_name (string): The member's first name.
  • items[].post.author.full_name (string): The member's full name.
  • items[].post.author.id (string): The member's LinkedIn id.
  • items[].post.author.last_name (string): The member's last name.
  • items[].post.author.public_identifier (string): The member's profile handle, the last part of their profile link.
  • items[].post.author.url (string): The member's profile link.
  • items[].post.author.urn (string): The member's LinkedIn urn.
  • items[].post.author.website (string): The link on the button in the author's profile header, such as their website or newsletter.
  • items[].post.author.website_label (string): The label on that button, such as `Visit my website`. Null when there is none.
  • items[].post.content (object): What the post carries besides its text. Each kind is null except the one the post has.
  • items[].post.content.article (any): Null when there is none.
  • items[].post.content.celebration (any): Null when there is none.
  • items[].post.content.document (any): Null when there is none.
  • items[].post.content.event (any): Null when there is none.
  • items[].post.content.images (any): Null when the post has none.
  • items[].post.content.poll (any): Null when there is none.
  • items[].post.content.video (object): The post's video, or null when it has none.
  • items[].post.content.video.aspect_ratio (string)
  • items[].post.content.video.duration (string)
  • items[].post.content.video.streams (array): The video files, one per quality.
  • items[].post.content.video.streams.bit_rate (number): The video bit rate in bits per second.
  • items[].post.content.video.streams.expires_at (number): When the link stops working, as a Unix time in milliseconds.
  • items[].post.content.video.streams.height (number): The video height in pixels.
  • items[].post.content.video.streams.size (number): The file size in bytes.
  • items[].post.content.video.streams.url (string): The video file link. It expires, see `expires_at`.
  • items[].post.content.video.streams.width (number): The video width in pixels.
  • items[].post.content.video.thumbnail (array): The video's still image in several sizes.
  • items[].post.content.video.thumbnail.expires_at (number): When the image link stops working, as a Unix time in milliseconds. Null when the link carries no expiry.
  • items[].post.content.video.thumbnail.height (number): The image height in pixels.
  • items[].post.content.video.thumbnail.url (string): The image link. LinkedIn image links expire, see `expires_at`.
  • items[].post.content.video.thumbnail.width (number): The image width in pixels.
  • items[].post.created_at (string): When the post was published, as an ISO 8601 timestamp.
  • items[].post.id (string): The post's id.
  • items[].post.post_type (string): The kind of LinkedIn post, such as `ugc` or `share`.
  • items[].post.reshared_post (object): The post this post quotes, when it is a quote post.
  • items[].post.reshared_post.author (object): Who wrote the quoted post.
  • items[].post.reshared_post.author.display_name (string): The quoted post author's name.
  • items[].post.reshared_post.author.id (string): The quoted post author's LinkedIn id.
  • items[].post.reshared_post.author.username (string): The quoted post author's profile or page handle.
  • items[].post.reshared_post.engagement (object): The quoted post's counts.
  • items[].post.reshared_post.engagement.comments (number): Comments on the quoted post.
  • items[].post.reshared_post.engagement.likes (number): Reactions on the quoted post.
  • items[].post.reshared_post.engagement.shares (number): Reposts of the quoted post.
  • items[].post.reshared_post.id (string): The quoted post's activity id.
  • items[].post.reshared_post.media_urls (array): The quoted post's images, or its video file. Null when it has none.
  • items[].post.reshared_post.published_at (string): When the quoted post was published, as an ISO 8601 timestamp.
  • items[].post.reshared_post.text (string): The quoted post's text.
  • items[].post.reshared_post.thumbnail_url (string): The quoted post's video still or first image. Null when it has none.
  • items[].post.reshared_post.url (string): The quoted post's link.
  • items[].post.share_urn (string): The post's share urn.
  • items[].post.text (string): The post text.
  • items[].post.url (string): The post's link.
  • items[].url (string): The comment's own link on LinkedIn.
  • items[].urn (string): The comment's LinkedIn urn.
  • 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 5 minutes may get the same answer, so data can be up to 5 minutes old.

Example call

GET /api/v1/data/linkedin/profile-comments?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Fwilliamhgates%2F

Questions

How much does the LinkedIn Profile 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 5 minutes may get the same answer, so data can be up to 5 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

  • Profile: Get LinkedIn user profile. 5 credits a call
  • Profile About: Get a member's account freshness signals (NOT the profile About section). 5 credits a call
  • Profile Activity: Get when a LinkedIn member was last active. 5 credits a call
  • Profile All: Get a member's entire profile, counts included, in one call. 5 credits a call
  • Profile Articles: List Pulse articles a LinkedIn member published. 5 credits a page
  • Profile Certifications: List a member's licenses and certifications. 5 credits a page
  • Profile Complete: Get a member's profile, experience, education, skills and recommendations. 10 credits a call
  • Profile Contact: Get a member's public contact info. 5 credits a call

More LinkedIn scraper APIs