apify-linkedin-posts-scraper
Scrape public LinkedIn posts into clean, structured JSON with the Apify LinkedIn Posts API Actor (johnvc/linkedin-posts-api).
Skill by johnisanerd
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/johnisanerd-apify-linkedin-posts-scraper
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: spreadsheets, backend, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/apify-linkedin-posts-scraper
What's inside
- Skill name
apify-linkedin-posts-scraper- Description
- Scrape public LinkedIn posts into clean, structured JSON with the Apify LinkedIn Posts API Actor (johnvc/linkedin-posts-api). Give a profile URL to discover a person's recent posts, or specific post URLs to fetch directly, and get one row per post with text, hashtags, media, author details, and engagement counts (reactions, comments, shares). Use when the user wants to scrape LinkedIn posts, export LinkedIn posts to JSON or CSV, build a LinkedIn posts dataset, pull a creator's or a competitor's recent posts, or asks for a LinkedIn posts scraper or LinkedIn posts API. Pay-per-post billing, MCP-ready for Claude and other AI agents.
- License
- MIT
- Metadata
- version: 1.0
- Instructions
- 93 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- actor-index.md · references/
- gotchas.md · references/
SKILL.md (first lines)
# LinkedIn Posts Scraper: Posts to Structured JSON
Scrape public LinkedIn posts into clean JSON with the Apify LinkedIn Posts API. Point it at a profile to pull that person's recent posts, or pass specific post URLs to fetch them directly. You get one flat row per post: text, hashtags, media, author, and engagement counts.
## When to use this skill
- The user wants to scrape or export LinkedIn posts (to JSON, CSV, a sheet, or a database).
- They want a creator's, brand's, or competitor's recent posts.
- They want to build a dataset of posts for research, monitoring, or content ideas.
- They ask for a "LinkedIn posts scraper" or "LinkedIn posts API".
Not for: private or connection-only content, profile bio data (use the LinkedIn Profile API), or company pages (use the LinkedIn Company API).
## What you get (one row per post)
`postUrl`, `postId`, `postType`, `datePosted`, `title`, `text`, `hashtags`, `authorName`, `authorHeadline`, `authorUrl`, `authorFollowers`, `authorType`, `numLikes`, `numComments`, `numShares`, `images`, `videos`, `embeddedLinks`, `taggedCompanies`, `taggedPeople`, `topComments`, `summary`. A post that cannot be collected comes back as an error row (`result_type` = "error") instead of failing the run.
## Prerequisites
- Apify account (sign up at https://apify.com?fpr=9n7kx3&fp_sid=skillrepo).
- Authentication via `apify login`, or an `APIFY_TOKEN` environment variable (Apify Console, Settings, Integrations).
## The Actor
- Store page: https://apify.com/johnvc/linkedin-posts-api?fpr=9n7kx3&fp_sid=skillrepo
- Actor ID: `johnvc/linkedin-posts-api`
- Pricing: pay per post returned (see `references/gotchas.md`).
## Run it with the Apify CLI
Discover a profile's recent posts:
```bash
apify actors call "johnvc/linkedin-posts-api" -i '{"profileUrls":["https://www.linkedin.com/in/williamhgates"],"maxPostsPerProfile":20}' \
--json \
--user-agent apify-awesome-skills/apify-linkedin-posts-scraper \
2>/dev/null
```
Fetch specific posts by URL:
```bash
apify actors call "johnvc/linkedin-posts-api" -i '{"postUrls":["https://www.linkedin.com/feed/update/urn:li:activity:7446904645010210816"]}' \
--json \
--user-agent apify-awesome-skills/apify-linkedin-posts-scraper \
2>/dev/null
```
Every call carries the three flags this repo expects: `--json`, `--user-agent apify-awesome-skills/apify-linkedin-posts-scraper`, and `2>/dev/null`.
## Run it from Claude or another AI agent (MCP)
The Actor is MCP-ready. Add the hosted server URL:
`https://mcp.apify.com/?tools=actors,docs,johnvc/linkedin-posts-api`
Then ask, for example: "Use the LinkedIn Posts API to pull Bill Gates's last 20 posts and export them as JSON." MCP setup docs: https://docs.apify.com/platform/integrations/mcp
## Workflow
1. Pick the mode. Profile URLs for discovery (up to 25 per run), or post URLs for exact fetches (up to 1000 per run). You can pass both; supply at least one.
2. Bound the volume. Set `maxPostsPerProfile` (default 20, max 200), and, for a window, `startDate` and `endDate` (YYYY-MM-DD, discovery only).
3. Estimate cost, then confirm with the user if the run is large. See `references/gotchas.md`.
4. Run the Actor and read the dataset. Deliver the rows as JSON or CSV, or hand back the dataset link.
## Inputs
- `profileUrls` (array of `/in/` profile URLs, up to 25, discovery mode)
- `postUrls` (array of post URLs, up to 1000, exact fetch)
- `maxPostsPerProfile` (integer, default 20, max 200)
- `startDate` / `endDate` (YYYY-MM-DD, discovery only)
Non-`/in/` profile URLs (company or school pages) are skipped.
## Cost
Billing is per post returned, so a discovery run costs roughly the number of profiles times `maxPostsPerProfile`. Estimate first and confirm large runs. Thresholds are in `references/gotchas.md`.
## Troubleshooting
- Empty profile: you get an error row (`result_type` "error", `error_type` "CollectionError"), not a failed run. Skip it; the rest of the batch still returns.
- Wrong URL type: only `/in/` profile URLs discover posts; company or school URLs are skipped.
- Over a limit: keep profiles at 25 or fewer and post URLs at 1000 or fewer per run; split larger jobs into batches.
See `references/gotchas.md` for cost guardrails and error recovery, and `references/actor-index.md` for the Actor routing table.
## Related LinkedIn Actors
- LinkedIn Profile API: https://apify.com/johnvc/linkedin-profile-api?fpr=9n7kx3&fp_sid=skillrepo
- LinkedIn Company API: https://apify.com/johnvc/linkedin-company-api?fpr=9n7kx3&fp_sid=skillrepo
- LinkedIn Jobs API: https://apify.com/johnvc/linkedin-jobs-api?fpr=9n7kx3&fp_sid=skillrepoFrom johnisanerd/claude-skill-linkedin-posts-scraper, MIT.
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 13, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from johnisanerd
- 0.612score
LinkedIn Company Employees
johnisanerd
Company employee lists from LinkedIn public pages, by job title and city, via a hosted MCP server.
ConnectorAFreshness: ARemote★ 2Claude Code +3 - 0.598score
US Congress Trades
johnisanerd
US Congress stock trades and financial disclosures by member, ticker, or date, hosted MCP.
ConnectorBFreshness: BRemote★ 9Claude Code +3 - 0.578score
Fuel Prices
johnisanerd
Gas and fuel prices by station and area, as structured data via a hosted MCP server.
ConnectorBFreshness: BRemote★ 3Claude Code +3 - 0.578score
Google Hotels
johnisanerd
Google Hotels prices, ratings, reviews, and photos via an Apify Actor, hosted MCP.
ConnectorBFreshness: BRemote★ 3Claude Code +3 - 0.577score
Clutch Agency API
johnisanerd
Clutch.co B2B agency directory, profiles, and reviews as JSON, via an Apify Actor, hosted MCP.
ConnectorAFreshness: ARemoteClaude Code +3 - 0.577score
Wellfound Jobs
johnisanerd
Wellfound startup jobs with salary and equity parsed, via an Apify Actor, hosted MCP.
ConnectorAFreshness: ARemoteClaude Code +3
Cite this page
apify-linkedin-posts-scraper skill. Agent Mart. https://agentmart.dev/skills/johnisanerd-apify-linkedin-posts-scraper (last updated 2026-10-24)