Platforms · LinkedIn

LinkedIn Post Scraper API

Returns detailed information about a specific LinkedIn post including the post text, like count, comment count, share count, author info, media attachments, and publish timestamp. Do not rebuild the URL from post.id, which on some lanes is the share or ugcPost id rather than the activity id.

GET /api/v1/data/linkedin/post · 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): Full URL of the LinkedIn post. It has to carry the post's ACTIVITY id, either `https://www.linkedin.com/feed/update/urn:li:activity:<id>` or `https://www.linkedin.com/posts/<slug>-activity-<id>-<code>`.

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • source_data.computed.language (string): ISO 639-1 language code detected from the post text. Null when undetectable.
  • source_data.computed.save_rate (number): Saves divided by views, rounded to six places. Present only when the post has both a save count and a view count above zero.
  • source_data.post.author.avatar_url (string): URL to author profile picture
  • source_data.post.author.display_name (string): Author display name
  • source_data.post.author.username (string): Author username
  • source_data.post.content.duration_seconds (number): Video/clip duration in seconds (null for non-video posts)
  • source_data.post.content.text (string): Post caption, description, or text content
  • source_data.post.engagement.comments (number): Comment count. Both land on this same field.
  • source_data.post.engagement.likes (number): Like / reaction count
  • source_data.post.engagement.shares (number): Share / repost / retweet count.
  • source_data.post.ext.article.source (string): The article's publisher or domain.
  • source_data.post.ext.article.title (string): Title of the shared article.
  • source_data.post.ext.article.url (string): Link to the article.
  • source_data.post.ext.author_headline (string): The author's profile headline. LinkedIn only.
  • source_data.post.ext.author_id (string): The creator's platform-native numeric user id.
  • source_data.post.ext.author_type (string): Whether the author is a user or a company. LinkedIn only.
  • source_data.post.ext.author_urn (string): Opaque LinkedIn urn of the author.
  • source_data.post.ext.post_type (string): The activity type of a LinkedIn post, such as ugc or activity.
  • source_data.post.ext.published_at_precision (string): Absent means the time is exact.
  • source_data.post.ext.reaction_counts (array): Reaction counts by type.
  • source_data.post.flags.deleted (boolean): Whether the post is tombstoned (always present)
  • source_data.post.flags.nsfw (boolean): NSFW flag (null when platform does not surface)
  • source_data.post.flags.pinned (boolean): Pinned-to-profile flag (null when platform does not surface)
  • source_data.post.flags.spoiler (boolean): Spoiler flag (null when platform does not surface)
  • source_data.post.id (string)
  • source_data.post.published_at (any): Post creation timestamp as an ISO 8601 UTC string.
  • source_data.post.url (string)
  • 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?url=https%3A%2F%2Fwww.linkedin.com%2Ffeed%2Fupdate%2Furn%3Ali%3Aactivity%3A7501466755261820928

Questions

How much does the LinkedIn Post 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