LinkedIn public post API

A public post: full text, author, date, reactions and comment counts, media.

GETapi.socialscrape.io/v1/linkedin/post
Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits
Status
Betashape may still gain fields

Video, images, shared article and the top public comments. Also reads /feed/update/urn:li:activity:... and Pulse (/pulse/...) article URLs.

You send url.

Request

Send your key in the x-api-key header.

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,
    timeout=60,
)
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": {}
}

Parameters

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

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are public data, not yours.

Status 200Sample
{
  "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...",
      "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...",
    "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=nmcyX8WnAPYbyktHjuHRQ6XUI...",
      "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=nmcyX8WnAPYbyktHjuHRQ6XUI..."
      ],
      "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"
    }
  },
  "cursor": null,
  "has_more": null
}

Fields

One Post in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"post"
platformPlatformyes
idstringyes
urlstring or null
type"video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown"
authorAuthor or null
titlestring or null
textstring or null
published_atstring (ISO 8601 date-time) or null
duration_secondsnumber or null
languagestring or null
hashtagsstring[] or null
mentionsstring[] or null
statsStats
Show the other 6 fields
FieldTypeAlwaysNotes
mediaMedia
songSongRef or null
locationPlace or null
is_pinnedboolean or null
is_sponsoredboolean or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The preview Python client has client.linkedin.post(...) and the TypeScript client client.linkedin.post(). Both return the same envelope as the HTTP API. The packages are not published yet; plain HTTP works today in any language.

Can an AI agent call it?

Yes. The MCP server reaches every built endpoint, with the same prices.

Build on social data early.

Developers and agent builders get the first keys.

Get early access