Posts of a LinkedIn member
crawl4ai.linkedin.user.postsThe posts of one LinkedIn member, newest first, one row per post: link, text (500 chars), time, likes (all reactions), comments, reposts, kind (post, repost or article) and one media link. `profile` = the public identifier (williamhgates) or the linkedin.com/in/ URL; `limit` up to 50. `session` (your `li_at` and `JSESSIONID` cookies, from the Crawl4AI Session extension) is optional, used for this run only and never stored. Without it you get the member's recent public posts and reposts (about 10), without repost counts and media; LinkedIn's internal id (ACoAA…) needs a session. Columns: url, text, posted_at, likes, comments, reposts, kind, media.
- Price
- $0.0009/successAt provider cost
- Success rate
- 86.3%Last 30 days · 4,909 calls
- Latency p50
- 25 sp95 78 s
- Last verified
- Oct 11, 2026Verified working
POSThttps://toolswitch.dev/v1/tools/crawl4ai.linkedin.user.postsPreview- Uses platform quota
- Synchronous response
- Reads public data
Parameters
This tool has no parameters. See provider docs ↗ Provider docs
Code samples
Replace $TOOLSWITCH_KEY with the key you created in the console.
curl -X POST 'https://toolswitch.dev/v1/tools/crawl4ai.linkedin.user.posts' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY" \
-H "Content-Type: application/json" \
--data-raw '{"profile":"williamhgates"}'import os
import json
import requests
response = requests.request(
"POST",
"https://toolswitch.dev/v1/tools/crawl4ai.linkedin.user.posts",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
json=json.loads("{\"profile\":\"williamhgates\"}"),
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/crawl4ai.linkedin.user.posts", {
method: "POST",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
"Content-Type": "application/json",
},
body: JSON.stringify(JSON.parse("{\"profile\":\"williamhgates\"}")),
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());This gateway API is in preview; its URL and authentication may change. The example parameters are sample data. Calls are billed at $0.0009/success, including the service fee.