Docs menu

LinkedIn public post

Beta GET /v1/linkedin/post

GET /v1/linkedin/post

A public post: full text, author, date, reactions and comment counts, media (video, images, shared article) and the top public comments. Also reads /feed/update/urn:li:activity:... and Pulse (/pulse/...) article URLs.

  • Cost: 1 credit
  • Status: Beta. Built and tested against recorded responses; the shape may still gain fields.
  • Cache: Results are kept up to 30 days; send max_age_days to reuse them for free.
  • Timeout: A request still running after about 25 seconds answers 202 with a job to poll (Batch and jobs).

Parameters#

NameTypeRequiredDescription
urlURLyesPost URL (linkedin.com/posts/... or /feed/update/urn:li:activity:...). Accepted hosts: linkedin.com.

Every request also accepts:

  • trim: true for a smaller response without null fields and extra.
  • raw: true to also get the platform's original object as raw.
  • max_age_days: accept a cached result up to this many days old, for 0 credits (Caching).

Example request#

Set your key in the environment first (see Authentication).

curl
curl -G "https://api.socialscrape.io/v1/linkedin/post" \
  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \
  --data-urlencode "url=https://www.linkedin.com/posts/jeffweiner08_seeing-lots-of-content-about-dolly-parton-activity-7499148115615350784-j-4g"
Python
import os
import requests

params = {
    "url": "https://www.linkedin.com/posts/jeffweiner08_seeing-lots-of-content-about-dolly-parton-activity-7499148115615350784-j-4g",
}
res = requests.get(
    "https://api.socialscrape.io/v1/linkedin/post",
    headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},
    params=params,
)
body = res.json()

if body["ok"]:
    print(body["data"])
else:
    print(body["error"]["code"], body["error"]["message"])
TypeScript
const url = new URL("https://api.socialscrape.io/v1/linkedin/post");
url.search = new URLSearchParams({
  "url": "https://www.linkedin.com/posts/jeffweiner08_seeing-lots-of-content-about-dolly-parton-activity-7499148115615350784-j-4g"
}).toString();
const res = await fetch(url, {
  headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },
});
const body = await res.json();

if (body.ok) {
  console.log(body.data);
} else {
  console.error(body.error.code, body.error.message);
}
n8n
{
  "nodes": [
    {
      "name": "SocialScrape LinkedIn public post",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "GET",
        "url": "https://api.socialscrape.io/v1/linkedin/post",
        "sendQuery": true,
        "queryParameters": {
          "parameters": [
            {
              "name": "url",
              "value": "https://www.linkedin.com/posts/jeffweiner08_seeing-lots-of-content-about-dolly-parton-activity-7499148115615350784-j-4g"
            }
          ]
        },
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "x-api-key",
              "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
            }
          ]
        }
      }
    }
  ],
  "connections": {}
}

Example response#

This is a sample from a recorded response, lists and long text are shortened. Status 200.

{
  "ok": true,
  "credits_charged": 1,
  "credits_remaining": 4999,
  "cached": false,
  "cached_at": null,
  "request_id": "req_3768a1a3b6231426babb47c5",
  "data": {
    "object": "post",
    "platform": "linkedin",
    "id": "7499148115615350784",
    "url": "https://www.linkedin.com/posts/jeffweiner08_seeing-lots-of-content-about-dolly-parton-activity-7499148115615350784-j-4g",
    "type": "image",
    "author": {
      "id": null,
      "handle": "jeffweiner08",
      "name": "Jeff Weiner",
      "url": "https://www.linkedin.com/in/jeffweiner08",
      "avatar_url": "https://media.licdn.com/dms/image/v2/C4D03AQFM3Y2r-OEStw/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1515623804984?e=2147483647&v=beta&t=9BXYWdroJNhdb44lqKQb2RWzGPQ6llRqiNu730v62Ag",
      "verified": null
    },
    "title": null,
    "text": "Seeing lots of content about Dolly Parton across multiple channels over the last few days and rightfully so. She was an extraordinary human being who touched millions of people in countless ways.\n\nI’ve long been interested in helping expand...",
    "published_at": "2026-08-28T16:57:18.173000Z",
    "duration_seconds": null,
    "language": null,
    "hashtags": null,
    "mentions": null,
    "stats": {
      "views": null,
      "likes": 1517,
      "comments": 92,
      "shares": null,
      "saves": null,
      "dislikes": null
    },
    "media": {
      "thumbnail_url": "https://media.licdn.com/dms/image/v2/D4D22AQGsur-TYHOG2A/feedshare-shrink_800/B4DaBJTeTNHcAg-/0/1787936237012?e=2147483647&v=beta&t=nmcyX8WnAPYbyktHjuHRQ6XUIA6WBwm4SpcQJiH0bvE",
      "video_url": null,
      "audio_url": null,
      "image_urls": [
        "https://media.licdn.com/dms/image/v2/D4D22AQGsur-TYHOG2A/feedshare-shrink_800/B4DaBJTeTNHcAg-/0/1787936237012?e=2147483647&v=beta&t=nmcyX8WnAPYbyktHjuHRQ6XUIA6WBwm4SpcQJiH0bvE"
      ],
      "width": null,
      "height": null
    },
    "song": null,
    "location": null,
    "is_pinned": null,
    "is_sponsored": null,
    "extra": {
      "age_label": "2mo",
      "author_followers": 10353618,
      "author_headline": "Founding Partner Next Play Ventures; Former CEO / Executive Chairman at LinkedIn",
      "headline": "Seeing lots of content about Dolly Parton across multiple channels over the last few days and rightfully so.",
      "published_at_source": "page",
      "source": "logged_out_public_view",
      "top_comments": [
        {
          "author": "Cheryl Gurner",
          "likes": 19,
          "published_at": "2026-08-28T17:00:15.488000Z",
          "text": "What a legacy to leave behind. Proof that kindness, wisdom and success were never mutually exclusive, and they shouldn't be."
        },
        {
          "author": "Rohit Roy",
          "likes": 16,
          "published_at": "2026-08-28T17:03:37.050000Z",
          "text": "The wisdom-compassion combination you're pointing to is rare because they usually get separated in how we build careers, wisdom gets rewarded as expertise, compassion gets dismissed as soft. Dolly proved they compound instead of trading off..."
        },
        {
          "author": "Ira Divinsky",
          "likes": 3,
          "published_at": "2026-08-28T17:05:58.343000Z",
          "text": "Watch Here I Am: Dolly Parton what a life she led, and gave so much. Lets all be like Dolly! She taught us how!"
        }
      ],
      "urn": "urn:li:activity:7499148115615350784"
    }
  },
  "cursor": null,
  "has_more": null
}

Response#

A Post object in data.

See Data models for every field. The envelope around data is described in Responses.

Errors#

Failures are free: credits_charged is 0. Branch on error.code, never on the message.

CodeHTTPRetryMeaning
invalid_params400noA parameter is missing, unknown or has the wrong type.
unsupported_url400noThe URL is not one this endpoint accepts (wrong platform or form).
not_found404noThe platform says this profile, post or item does not exist.

Every request can also fail with the account and platform errors listed on the Errors page.

Example error:

{
  "ok": false,
  "error": {
    "code": "not_found",
    "message": "The platform says this profile, post or item does not exist.",
    "retryable": false
  },
  "credits_charged": 0,
  "request_id": "req_2272c79d2f66d2b90ec4fce8"
}