LinkedIn company posts API
The latest public posts and reposts on a company page (up to 10).
- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
- Status
- Betashape may still gain fields
URL, id, date, full text, media, reactions and comment counts. LinkedIn shows signed-out visitors only this block; the posts tab and later pages need a login, so the cursor is always null.
You send url.
Request
Send your key in the x-api-key header.
curl -G "https://api.socialscrape.io/v1/linkedin/company/posts" \
-H "x-api-key: $SOCIALSCRAPE_API_KEY" \
--data-urlencode 'url=https://www.linkedin.com/company/microsoft'import os
import requests
params = {
"url": "https://www.linkedin.com/company/microsoft",
}
res = requests.get(
"https://api.socialscrape.io/v1/linkedin/company/posts",
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"])const url = new URL("https://api.socialscrape.io/v1/linkedin/company/posts");
url.search = new URLSearchParams({
url: "https://www.linkedin.com/company/microsoft",
}).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);
}{
"nodes": [
{
"name": "SocialScrape LinkedIn company posts",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 4.2,
"position": [
0,
0
],
"parameters": {
"method": "GET",
"url": "https://api.socialscrape.io/v1/linkedin/company/posts",
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "url",
"value": "https://www.linkedin.com/company/microsoft"
}
]
},
"sendHeaders": true,
"headerParameters": {
"parameters": [
{
"name": "x-api-key",
"value": "={{ $env.SOCIALSCRAPE_API_KEY }}"
}
]
}
}
}
],
"connections": {}
}Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | url | yes | Company page URL (linkedin.com/company/<slug>). |
cursor | string | Opaque cursor from the previous page; pass it back unchanged. Also accepted as continuationToken, continuation_token, next_max_id, max_id, max_cursor, min_time, after, page_token, pageToken, paginationToken, next_page_id, page. |
Every request also accepts trim, raw and max_age_days.
Response
Sample from a recorded response, shortened. Values are public data, not yours.
{
"ok": true,
"credits_charged": 1,
"credits_remaining": 4999,
"cached": false,
"cached_at": null,
"request_id": "req_c2a9549407c4fc6e60c04ea1",
"data": {
"object": "list",
"items": [
{
"object": "post",
"platform": "linkedin",
"id": "7521597347424915456",
"url": "https://www.linkedin.com/feed/update/urn:li:activity:7521597347424915456",
"type": "video",
"author": {
"id": null,
"handle": "bradsmi",
"name": "Brad Smith",
"url": "https://www.linkedin.com/in/bradsmi",
"avatar_url": "https://media.licdn.com/dms/image/v2/C5603AQGnYfaUI8S0zQ/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1516342848914?e=2147483647...",
"verified": null
},
"title": null,
"text": "We spend a lot of time talking about artificial intelligence. But we can’t lose sight of human intelligence and the judgment, perspective, and different ways...",
"published_at": "2026-10-29T15:42:32.147000Z",
"duration_seconds": null,
"language": null,
"hashtags": null,
"mentions": null,
"stats": {
"views": null,
"likes": 395,
"comments": 33,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": "https://media.licdn.com/dms/image/v2/D4E05AQEmd6fHNU_gfQ/videocover-high/B4EaGHojEWK8BI-/0/1793276919237?e=2147483647&v=beta&t=qXlUNwsh3M_GrrUyAJgxp8CM1qx6mm...",
"video_url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEmd6fHNU_gfQ/mp4-720p-30fp-crf28/B4EaGHojEWK8B4-/0/1793276927596?e=2147483647&v=beta&t=PB1SnwLdbdFKo1tFsst9jEPPE...",
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"age_label": "11h",
"author_headline": "Vice Chair and President at Microsoft Corporation",
"captions_url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEmd6fHNU_gfQ/video-auto-caption-srt-acs-singleton/B4EaGHojEWK8D4-/0/1793276960559?e=2147483647&v=beta&t=y83f636B...",
"published_at_source": "activity_id",
"reposted_by": "Microsoft",
"source": "logged_out_public_view"
}
},
{
"object": "post",
"platform": "linkedin",
"id": "7521355928982634496",
"url": "https://www.linkedin.com/posts/microsoft_msignite-activity-7521355928982634496-cbcv",
"type": "live",
"author": {
"id": null,
"handle": "microsoft",
"name": "Microsoft",
"url": "https://www.linkedin.com/company/microsoft",
"avatar_url": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_100_100/B56ZYQ0mrGGoAU-/0/1744038948046/microsoft_logo?e=2147483647&v=beta&t=rr_7_bFRKp...",
"verified": null
},
"title": null,
"text": "Ready for what's next? Microsoft Chairman and CEO Satya Nadella will take the stage at Microsoft Ignite to share the latest innovations shaping what's possib...",
"published_at": "2026-10-28T23:43:13.504000Z",
"duration_seconds": null,
"language": null,
"hashtags": [
"MSIgnite"
],
"mentions": null,
"stats": {
"views": null,
"likes": 270,
"comments": 10,
"shares": null,
"saves": null,
"dislikes": null
},
"media": {
"thumbnail_url": null,
"video_url": null,
"audio_url": null,
"image_urls": null,
"width": null,
"height": null
},
"song": null,
"location": null,
"is_pinned": null,
"is_sponsored": null,
"extra": {
"age_label": "1d",
"author_headline": "29,402,101 followers",
"edited": true,
"published_at_source": "page",
"source": "logged_out_public_view",
"urn": "urn:li:activity:7521355928982634496"
}
}
],
"cursor": null,
"has_more": false,
"parent": null
},
"cursor": null,
"has_more": false
}Fields
A page of results. Each entry in items is a Post. cursor and has_more page through the rest.
A field the platform does not give is null, never made up. Extra platform details are in extra.
| Field | Type | Always | Notes |
|---|---|---|---|
object | "post" | ||
platform | Platform | yes | |
id | string | yes | |
url | string 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" | ||
author | Author or null | ||
title | string or null | ||
text | string or null | ||
published_at | string (ISO 8601 date-time) or null | ||
duration_seconds | number or null | ||
language | string or null | ||
hashtags | string[] or null | ||
mentions | string[] or null | ||
stats | Stats |
Show the other 6 fields
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.
How do I get more than one page?
Send the same request with cursor set to the cursor you received, until has_more is false. Each page costs its own price. See pagination.
Is there an SDK call for it?
The preview Python client has client.linkedin.company_posts(...) and the TypeScript client client.linkedin.companyPosts(). 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.