LinkedIn Scraper Skill

Download the public posts of any LinkedIn profile or company page. This skill pulls each post with its text, author, date, reactions, comments, reposts and media, or reads single posts by link. It delivers one clean file.

By , Co-founder and CEO, Porter Metrics

Install skill

Setup

Pick the app you use. Every route starts by connecting Porter Metrics, because the skill reads all its data through it.

  1. 1
    Connect Porter Metrics to your AI app: add this MCP server and sign in with Google. It is what runs the scraper and returns the data, with no other account or key.
    MCP SERVER URL
    https://mcp.portermetrics.com/mcp
  2. 2
  3. 3
    Open claude.ai or Claude Desktop, go to Customize › Skills, click +, then Upload a skill and pick the zip.
  4. 4
    Ask: Use the LinkedIn Scraper skill to pull the latest posts of [LinkedIn profiles or company pages].

Prompt

Once the skill and Porter Metrics are connected, paste this and replace the company name.

PROMPT
Use the LinkedIn Scraper skill to pull the latest posts of [LinkedIn profiles or company pages].

Example output

The cleaned file the skill hands over, one row per LinkedIn post from a company page. Shown with sample data for a fictional brand, Acme CRM.

ACME-CRM-POSTS.JSONSample data
{
  "sources": ["https://www.linkedin.com/company/acme-crm/"],
  "run_date": "2026-12-03",
  "posts": [
    {
      "url": "https://www.linkedin.com/posts/acme-crm_activity-7000000000000000001",
      "author": "Acme CRM",
      "author_headline": "The CRM small sales teams update in two clicks",
      "posted_at": "2026-12-01",
      "text": "We asked 200 sales reps when they update their CRM. 61% said Friday afternoon. Here is what that costs a team of five.",
      "type": "document",
      "reactions": 842,
      "comments": 67,
      "reposts": 39,
      "media_url": "https://acme.example/media/crm-friday-report.pdf"
    },
    {
      "url": "https://www.linkedin.com/posts/acme-crm_activity-7000000000000000002",
      "author": "Acme CRM",
      "author_headline": "The CRM small sales teams update in two clicks",
      "posted_at": "2026-11-24",
      "text": "New: log a call from your phone and Acme CRM fills the deal stage for you.",
      "type": "video",
      "reactions": 315,
      "comments": 22,
      "reposts": 11,
      "media_url": "https://acme.example/media/call-logging.mp4"
    }
  ]
}
The full skillEverything below is the skill file itself: its summary, its Index and every step. Copy it, download it or read it here.

name: linkedin-scraper

  • objective: One file with public LinkedIn posts: text, author, date, reactions, comments, reposts and media.
  • trigger: Ask to scrape, download or list LinkedIn posts, by profile, company page or post link.
  • parameters: Profile, company page or post links. Optional: posts per source and the oldest date.
  • output: A posts JSON file and the raw result in a run folder, plus the count in the chat.
  • reference: Every step runs through the Porter Metrics MCP (https://mcp.portermetrics.com/mcp).

Index

Item Part Use it when
Connect Porter Metrics Start Starting any run
Shared rules Start Applying the scope, cost and run folder rules to every step
Ask for the input Setup Listing the profiles, pages or posts
Run the scraper Scrape Running the LinkedIn scraper that fits the input
Clean the output Scrape Turning the raw result into one row per item
Hand over Finish Giving the user the file and the summary
Tools Reference Finding the Porter Metrics action for each job

Connect Porter Metrics

Index ↑

Run this before any other step.

Rule What to do
Check Call the Porter Metrics MCP whoami tool. A reply with an account means the connection works.
Not connected Stop the task and help the user connect: add the MCP server https://mcp.portermetrics.com/mcp to their AI app, sign in with Google, then run the check again.
Resume Continue with Ask for the input once the check passes.
Porter first Every job in the Tools table runs through the Porter Metrics MCP, so no other tool or key is needed.

Shared rules

Index ↑

These rules apply to every step.

Rule What to do
Public data only Read only what anyone sees logged out. Never sign in, never use the user’s cookies or accounts.
Extract, never judge Every field holds what the source shows. Scores, winners and advice stay out; they belong to the skills in Part of these skills on this page.
Start small The first run uses the default limit. Tell the user the count before raising it, because every result is billed.
Dropped call A dropped call may already be billed. Run it again with a smaller input, never the same heavy call twice.
Empty field A field the source does not show stays empty. Never fill it from a guess.
Run folder Save what the action returned, untouched, in linkedin-scraper/[date]/[target]/raw/, and the cleaned file next to it.
LinkedIn’s terms LinkedIn’s terms forbid automated collection. Tell the user once, before the first run, and keep runs small and for research.
No people lists Pull posts, never lists of people, emails or contact details.

Ask for the input

Index ↑

Ask only for the links; take the defaults for the rest.

Input Required Default
Profile, company page or post links Yes none
Posts per source No 20
Oldest date No No limit

Run the scraper

Index ↑

Pick the scraper that fits each link: a profile, a company page or a single post.

Rule What to do
Profiles Run web_scraping.call_actor with actor harvestapi/linkedin-profile-posts, the links in targetUrls and maxPosts.
Company pages Run it with actor harvestapi/linkedin-company-posts, same input.
Single posts Run it with actor apimaestro/linkedin-post-detail and the links in post_urls, a list even for one link.
Date limit Pass postedLimitDate when the user names an oldest date.
Wait and read Poll web_scraping.get_actor_run until it finishes, then read the items with web_scraping.get_dataset_items.
Followers The follower count often comes back empty; leave it empty.

Clean the output

Index ↑

Keep one row per post with these fields, in this order.

Field What it holds
url The post link
author The person or page
author_headline The author’s headline
posted_at Publish date
text The post text as published
type text, image, video, document or poll
reactions Total reactions
comments Comment count
reposts Repost count
media_url The image, video or document
Output (JSON)
{"sources": [], "run_date": "", "posts": [{"url": "", "author": "", "author_headline": "", "posted_at": "", "text": "", "type": "", "reactions": 0, "comments": 0, "reposts": 0, "media_url": ""}]}
Rule What to do
Files Give the user the path of the cleaned file and the raw folder.
Summary Say in the chat how many items came back, the date range they cover and any field that came back empty for every item.
Next step When the user wants analysis, name the full skill that reads this file (Part of these skills on this page).

Porter Metrics MCP actions run through execute_action.

Use Tool Parameters
Connection check whoami none
Profile posts web_scraping.call_actor actor harvestapi/linkedin-profile-posts · input targetUrls · maxPosts · postedLimitDate
Company page posts web_scraping.call_actor actor harvestapi/linkedin-company-posts · input targetUrls · maxPosts · postedLimitDate
Single posts web_scraping.call_actor actor apimaestro/linkedin-post-detail · input post_urls
Run status web_scraping.get_actor_run runId; call again while the run is still going
Read the results web_scraping.get_dataset_items datasetId from the run · limit · offset to read in pages

FAQ

Yes. The skill is free to copy, download and change. It reads data through the Porter Metrics MCP, which you can connect for free.

Yes. Every step reads or publishes data through the Porter Metrics MCP. Without it the skill stops at its first step, Connect Porter Metrics, and walks you through connecting.

Claude (web, desktop and Claude Code), ChatGPT, Codex, Cursor and any app that reads skill files or lets you paste instructions, as long as the Porter Metrics MCP is connected there.

The skill is free. The Porter connection is free.

Start free