- Cost
- 1 credit
- Cached repeats
- 0 creditssend max_age_days, results kept 30 days
- Failed requests
- 0 credits
URL, id, date, full text, media, reactions and comment counts. LinkedIn shows only this block; the posts tab and later pages need a login, so the cursor is always null.
You send url.
Part of the LinkedIn Scraper API: 8 LinkedIn endpoints on one key.
Request
Send your key in the x-api-key header.
1curl -G "https://api.socialscrape.dev/v1/linkedin/company/posts" \2 -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3 --data-urlencode 'url=https://www.linkedin.com/company/microsoft'1import os2import requests34params = {5 "url": "https://www.linkedin.com/company/microsoft",6}7res = requests.get(8 "https://api.socialscrape.dev/v1/linkedin/company/posts",9 headers={"x-api-key": os.environ["SOCIALSCRAPE_API_KEY"]},10 params=params,11 timeout=60,12)13body = res.json()1415if body["ok"]:16 print(body["data"])17else:18 print(body["error"]["code"], body["error"]["message"])1const url = new URL("https://api.socialscrape.dev/v1/linkedin/company/posts");2url.search = new URLSearchParams({3 url: "https://www.linkedin.com/company/microsoft",4}).toString();5const res = await fetch(url, {6 headers: { "x-api-key": process.env.SOCIALSCRAPE_API_KEY! },7});8const body = await res.json();910if (body.ok) {11 console.log(body.data);12} else {13 console.error(body.error.code, body.error.message);14}1{2 "nodes": [3 {4 "name": "SocialScrape LinkedIn company posts",5 "type": "n8n-nodes-base.httpRequest",6 "typeVersion": 4.2,7 "position": [8 0,9 010 ],11 "parameters": {12 "method": "GET",13 "url": "https://api.socialscrape.dev/v1/linkedin/company/posts",14 "sendQuery": true,15 "queryParameters": {16 "parameters": [17 {18 "name": "url",19 "value": "https://www.linkedin.com/company/microsoft"20 }21 ]22 },23 "sendHeaders": true,24 "headerParameters": {25 "parameters": [26 {27 "name": "x-api-key",28 "value": "={{ $env.SOCIALSCRAPE_API_KEY }}"29 }30 ]31 }32 }33 }34 ],35 "connections": {}36}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 examples, not your data.
1{2 "ok": true,3 "credits_charged": 1,4 "credits_remaining": 4999,5 "cached": false,6 "cached_at": null,7 "request_id": "req_c2a9549407c4fc6e60c04ea1",8 "data": {9 "object": "list",10 "items": [11 {12 "object": "post",13 "platform": "linkedin",14 "id": "7521597347424915456",15 "url": "https://www.linkedin.com/feed/update/urn:li:activity:7521597347424915456",16 "type": "video",17 "author": {18 "id": null,19 "handle": "bradsmi",20 "name": "Brad Smith",21 "url": "https://www.linkedin.com/in/bradsmi",22 "avatar_url": "https://media.licdn.com/dms/image/v2/C5603AQGnYfaUI8S0zQ/profile-displayphoto-shrink_400_400/profile-displayphoto-shrink_400_400/0/1516342848914?e=2147483647...",23 "verified": null24 },25 "title": null,26 "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...",27 "published_at": "2026-10-29T15:42:32.147000Z",28 "duration_seconds": null,29 "language": null,30 "hashtags": null,31 "mentions": null,32 "stats": {33 "views": null,34 "likes": 395,35 "comments": 33,36 "shares": null,37 "saves": null,38 "dislikes": null39 },40 "media": {41 "thumbnail_url": "https://media.licdn.com/dms/image/v2/D4E05AQEmd6fHNU_gfQ/videocover-high/B4EaGHojEWK8BI-/0/1793276919237?e=2147483647&v=beta&t=qXlUNwsh3M_GrrUyAJgxp8CM1qx6mm...",42 "video_url": "https://dms.licdn.com/playlist/vid/v2/D4E05AQEmd6fHNU_gfQ/mp4-720p-30fp-crf28/B4EaGHojEWK8B4-/0/1793276927596?e=2147483647&v=beta&t=PB1SnwLdbdFKo1tFsst9jEPPE...",43 "audio_url": null,44 "image_urls": null,45 "width": null,46 "height": null47 },48 "song": null,49 "location": null,50 "is_pinned": null,51 "is_sponsored": null,52 "extra": {53 "age_label": "11h",54 "author_headline": "Vice Chair and President at Microsoft Corporation",55 "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...",56 "published_at_source": "activity_id",57 "reposted_by": "Microsoft",58 "source": "logged_out_public_view"59 }60 },61 {62 "object": "post",63 "platform": "linkedin",64 "id": "7521355928982634496",65 "url": "https://www.linkedin.com/posts/microsoft_msignite-activity-7521355928982634496-cbcv",66 "type": "live",67 "author": {68 "id": null,69 "handle": "microsoft",70 "name": "Microsoft",71 "url": "https://www.linkedin.com/company/microsoft",72 "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...",73 "verified": null74 },75 "title": null,76 "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...",77 "published_at": "2026-10-28T23:43:13.504000Z",78 "duration_seconds": null,79 "language": null,80 "hashtags": [81 "MSIgnite"82 ],83 "mentions": null,84 "stats": {85 "views": null,86 "likes": 270,87 "comments": 10,88 "shares": null,89 "saves": null,90 "dislikes": null91 },92 "media": {93 "thumbnail_url": null,94 "video_url": null,95 "audio_url": null,96 "image_urls": null,97 "width": null,98 "height": null99 },100 "song": null,101 "location": null,102 "is_pinned": null,103 "is_sponsored": null,104 "extra": {105 "age_label": "1d",106 "author_headline": "29,402,101 followers",107 "edited": true,108 "published_at_source": "page",109 "source": "logged_out_public_view",110 "urn": "urn:li:activity:7521355928982634496"111 }112 }113 ],114 "cursor": null,115 "has_more": false,116 "parent": null117 },118 "cursor": null,119 "has_more": false120}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 Python client has client.linkedin.company_posts(...) and the TypeScript client client.linkedin.companyPosts(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.
Can an AI agent call it?
Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.