Skip to content

Structured LinkedIn data: send urls. Cursor-paginated, 1 credit per successful call.

GET · POST1 credit / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/linkedin-posts/Open in Playground

Call GET /api/v2/linkedin-posts/ with urls. The results are in data.posts; send data.next_cursor back as cursor to get the next page. 2 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/linkedin-posts/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "urls=https://www.linkedin.com/company/google/" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
urlsstringyese.g. https://www.linkedin.com/company/google/LinkedIn profile, company, or feed URL.
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
scrape_untilstringno—Optional ISO date — stop at older posts.
locked in cursor
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"urls": "https://www.linkedin.com/company/google/",
"page": 1,
"page_size": 10,
"posts": [
{
"urn": "urn:li:activity:7512992144878616578",
"activity_id": "7512992144878616578",
"text": "Catch up on our biggest AI announcements you may have missed in September. From Gemini 4 Argon to Project Suncatcher, here are the key headlines you need to know.",
"url": "https://www.linkedin.com/posts/google_the-latest-ai-news-we-announced-in-september-activity-7512992144878616578-evSv",
"post_url": "https://www.linkedin.com/posts/google_the-latest-ai-news-we-announced-in-september-activity-7512992144878616578-evSv",
"postedAtTimestamp": 1791236911982,
"postedAtISO": "2026-10-05T21:48:31.982000Z",
"timeSincePosted": "11h",
"activityTimestamp": 1791236911983,
"isRepost": false,
"repostedBy": null,
"authorType": "Company",
"authorProfileUrl": "https://www.linkedin.com/company/google/",
"authorProfileId": "1441",
"authorHeadline": "A problem isn't truly solved until it's solved for all. ...",
"authorFullName": "Google",
"image": "",
"type": "article",
"images": [],
"video": null,
"article": {
"url": "https://www.linkedin.com/pulse/latest-ai-news-we-announced-september-2026-google-suomc",
"title": "The latest AI news we announced in September 2026",
"subtitle": "Google on LinkedIn",
"image": ""
},
"resharedPost": null,
"hashtags": [],
"author": {
"firstName": null,
"lastName": null,
"occupation": "A problem isn't truly solved until it's solved for all. ...",
"id": "1441",
"publicId": "google",
"trackingId": "",
"profileId": "1441",
"picture": "https://media.licdn.com/dms/image/v2/D4E0BAQGv3cqOuUMY7g/company-logo_100_100/...",
"backgroundImage": ""
},
"authorName": "Google",
"authorTitle": "A problem isn't truly solved until it's solved for all. ...",
"attributes": [],
"comments": [],
"reactions": [],
"numShares": 0,
"numLikes": 740,
"numComments": 52,
"commentsTruncated": true,
"commentsComplete": false,
"reactionsTruncated": true,
"canReact": true,
"canPostComments": true,
"canShare": true,
"commentingDisabled": false,
"allowedCommentersScope": "ALL",
"rootShare": true,
"shareAudience": "PUBLIC",
"input_url": "https://www.linkedin.com/company/google/",
"scraped_at": "2026-10-06T09:20:48.575Z"
}
],
"next_cursor": "eyJvIjoiMTQ0MSIsInAiOjIsInMiOjEwLCJ0IjoiMC0xNzkxMjc3ODE2NjQwLWRhOGEyNmUxZjgyZDAwMzc4NDBlODU4MTQzYmMyOGY5IiwidSI6ImNvbXBhbnkvZ29vZ2xlIiwieCI6Inp4eHFhZ20ifQ"
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.posts.

FieldTypeExampleDescription
urlsstringhttps://www.linkedin.com/company/google/—
pageinteger1—
page_sizeinteger10—
postsarray[1 item]The results.
next_cursorstringeyJvIjoiMTQ0MSIsInAiOjIsInMiOjEwLCJ0IjoiMC0xN…Pass back as cursor for the next page. null on the last page.
posts[].urnstringurn:li:activity:7512992144878616578—
posts[].activity_idstring7512992144878616578—
posts[].textstringCatch up on our biggest AI announcements you …—
posts[].urlstringhttps://www.linkedin.com/posts/google_the-lat…—
posts[].post_urlstringhttps://www.linkedin.com/posts/google_the-lat…—
posts[].postedAtTimestampinteger1791236911982—
posts[].postedAtISOstring2026-10-05T21:48:31.982000Z—
posts[].timeSincePostedstring11h—
posts[].activityTimestampinteger1791236911983—
posts[].isRepostbooleanfalse—
posts[].repostedBynullnull—
posts[].authorTypestringCompany—
posts[].authorProfileUrlstringhttps://www.linkedin.com/company/google/—
posts[].authorProfileIdstring1441—
posts[].authorHeadlinestringA problem isn't truly solved until it's solve…—
posts[].authorFullNamestringGoogle—
posts[].imagestring—
posts[].typestringarticle—
posts[].imagesarray[]—
posts[].videonullnull—
posts[].articleobject{…}—
posts[].resharedPostnullnull—
posts[].hashtagsarray[]—
posts[].authorobject{…}—
posts[].authorNamestringGoogle—
posts[].authorTitlestringA problem isn't truly solved until it's solve…—
posts[].attributesarray[]—
posts[].commentsarray[]—
posts[].reactionsarray[]—
posts[].numSharesinteger0—
posts[].numLikesinteger740—
posts[].numCommentsinteger52—
posts[].commentsTruncatedbooleantrue—
posts[].commentsCompletebooleanfalse—
posts[].reactionsTruncatedbooleantrue—
posts[].canReactbooleantrue—
posts[].canPostCommentsbooleantrue—
posts[].canSharebooleantrue—
posts[].commentingDisabledbooleanfalse—
posts[].allowedCommentersScopestringALL—
posts[].rootSharebooleantrue—
posts[].shareAudiencestringPUBLIC—
posts[].input_urlstringhttps://www.linkedin.com/company/google/—
posts[].scraped_atstring2026-10-06T09:20:48.575Z—

Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.

const url = "https://api.scrapier.io/api/v2/linkedin-posts/";
let params = { urls: "https://www.linkedin.com/company/google/" };
const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call
const res = await fetch(`${url}?${new URLSearchParams(params)}`, {
headers: { "X-API-Key": "YOUR_API_KEY" },
signal: AbortSignal.timeout(210_000),
});
const body = await res.json();
if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
const data = body.data;
items.push(...(data.posts ?? []));
if (!data.next_cursor) break; // null = last page
params = { cursor: data.next_cursor };
}

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • Locked into the cursor: scrape_until. Set them on the first call; later pages reuse them.
  • LinkedIn Ads — Structured LinkedIn data: send urls. Cursor-paginated, 1 credit per successful call.
  • LinkedIn Company About — Structured LinkedIn data: send urls. Cursor-paginated, 1 credit per successful call.
  • LinkedIn Jobs Search — Structured LinkedIn data: every input is optional. Cursor-paginated, 1 credit per successful call.
  • LinkedIn Search Posts By Keyword — Structured LinkedIn data: send queries. Cursor-paginated, 1 credit per successful call.