Crawl: the most reliable web crawler APISee what’s new
Zenrows
Talk to sales Start free

LinkedIn scraper

The Zenrows LinkedIn scraper turns public LinkedIn company, job search, profile and post URLs into JSON: company name, industry, company size, follower count, headquarters, specialties, job titles and posted dates. Fetch in Adaptive Stealth Mode opens the page as a logged-out visitor sees it, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.

Site
linkedin.com
Returns
Company pages, job listings, public profiles and posts
Runs on
Fetch, Extract, Batch, Crawl
Updated
{
  "company": {
    "name": "Microsoft",
    "industry": "Software Development",
    "company_size": "10,001+ employees",
    "employee_count_on_linkedin": 231136,
    "follower_count": 29327719,
    "organization_type": "public_company",
    "website": "https://news.microsoft.com/",
    "linkedin_url": "https://www.linkedin.com/company/microsoft",
    "specialties": "Business Software, Developer Tools, Home & Educational Software, Tablets, Search, Advertising, Servers…",
    "description": "Every company has a mission. What's ours?…"
  },
  "locations": [
    {
      "street_address": "1 Microsoft Way",
      "city": "Redmond",
      "region": "Washington",
      "postal_code": "98052",
      "country": "US",
      "is_primary": true
    }
  ],
  "posts": [
    {
      "text": "Today we are announcing our biggest bet yet on our own silicon…",
      "reaction_count": 19469,
      "comment_count": 768
    }
  ],
  "similar_companies": [
    {
      "name": "Google",
      "industry": "Software Development",
      "location": "Mountain View, CA",
      "linkedin_url": "https://www.linkedin.com/company/google?trk=similar-pages"
    }
  ]
}

Request and output of a live call to a public LinkedIn company page on Oct 20, 2026, trimmed for length. A field is returned when the page shows it to a logged-out visitor.

What data can you scrape from LinkedIn?

LinkedIn has four kinds of public page worth collecting: company pages, job searches, member profiles and posts.

Each comes back as its own set of fields. These are the ones teams use most, with the path where each lives in the JSON.

FieldWhat it holdsExample
company.name Company name as shown on the page Microsoft
company.industry LinkedIn's industry label Software Development
company.company_size The headcount band the company selected 10,001+ employees
company.employee_count_on_linkedin Members who list the company as their employer 231136
company.follower_count Followers of the company page 29327719
company.organization_type Public, private, nonprofit and similar public_company
company.specialties The specialties list, as one string Business Software, Developer Tools…
company.website The website link on the page https://news.microsoft.com/
locations[] Every office listed: street, city, region, postal code, country, primary flag { "city": "Redmond", … }
posts[] Recent company posts with text, reactions and comments { "reaction_count": 19469, … }
similar_companies[] The "Similar pages" rail: name, industry, location, URL { "name": "Google", … }
job_listings[] (job search) Title, company, location, posted date, job ID and URL per card { "title": "Data Engineer", … }
search_context.total_results (job search) LinkedIn's result count for the query 5,000+
member.full_name (profile) Name on a public profile Bill Gates
member.location (profile) Location shown on the profile Seattle, Washington, United States
current_position.company_name (profile) The current company in the profile header Gates Foundation
post.body (post page) Text of a single public post, with date and engagement Some of the fuel powering future flights…

Each page type has its own page with the full field list: LinkedIn jobs scraper, LinkedIn profile scraper and LinkedIn post scraper.

How to scrape LinkedIn with Zenrows

  1. Create a free Zenrows account and copy your API key from the dashboard.
  2. Pick a public LinkedIn URL. Company pages (/company/<slug>), job searches (/jobs/search?keywords=…&location=…), member profiles (/in/<vanity>) and single posts (/posts/…) all work. Use the URL a logged-out browser can open.
  3. Send it with the default configuration: Adaptive Stealth Mode to open the page and Extract to return the fields. A country is optional: the job search reads its location from the URL.
  4. Read parsed from the response. To keep only some fields, list their paths and the response returns just those.
  5. Move your full company list to Batch once one URL comes back the way you want.
# pip install requests
import json
import requests

params = {
    "apikey": "YOUR_ZENROWS_API_KEY",
    "url": "https://www.linkedin.com/company/microsoft",
    "mode": "auto",      # Adaptive Stealth Mode
    "extract": "auto",   # structured JSON
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()

data = response.json()["parsed"]
company = data["company"]
print(company["name"], company["industry"], company["company_size"], company["follower_count"])
print(json.dumps(data["locations"][:3], indent=2))

Input

The scraper takes one LinkedIn URL per request, plus the options below.

A Batch job applies the same options to every URL in it, so the input for a list of 5,000 companies is the list of page URLs and these settings.

ParameterTypeDefaultDescription
url string required A public LinkedIn page: company (/company/<slug>), job search, profile (/in/<vanity>) or post (/posts/…)
mode string auto Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them
extract string auto Returns the page's fields as JSON in parsed, next to the raw html
extract_fields string all fields Comma-separated paths to keep, such as company.name,company.company_size,locations
proxy_country string any Two-letter country code, optional. Set it when you want the request to come from a specific country
wait_for string none A CSS selector to wait for before the page is read
Batch input
{
  "type": "regular",
  "status": "closed",
  "zenrows_params": {
    "mode": "auto",
    "extract": "auto"
  },
  "tasks": [
    { "url": "https://www.linkedin.com/company/microsoft", "external_id": "microsoft" },
    { "url": "https://www.linkedin.com/company/stripe", "external_id": "stripe" },
    { "url": "https://www.linkedin.com/jobs/search?keywords=python&location=United%20States", "external_id": "jobs-python-us" }
  ]
}

Output

Every response is JSON with two keys: html, the page as LinkedIn served it, and parsed, the structured record. The groups in parsed follow the page type. Both samples below are trimmed outputs of live requests.

Need a spreadsheet? Load parsed into pandas with pd.json_normalize(...) and write CSV or Excel. Need the page for an LLM? Ask for Markdown instead of JSON.

{
  "company": {
    "name": "Microsoft",
    "industry": "Software Development",
    "company_size": "10,001+ employees",
    "employee_count_on_linkedin": 231136,
    "follower_count": 29327719,
    "founded_year": null,
    "organization_type": "public_company",
    "tagline": null,
    "website": "https://news.microsoft.com/",
    "logo_url": "https://media.licdn.com/dms/image/v2/D560BAQH32RJQCl3dDQ/company-logo_200_200/…/microsoft_logo"
  },
  "locations": [
    { "street_address": "1 Microsoft Way", "city": "Redmond", "region": "Washington", "postal_code": "98052", "country": "US", "is_primary": true },
    { "street_address": "Thames Valley Park Drive", "city": "Reading", "region": null, "postal_code": null, "country": "GB", "is_primary": null }
  ],
  "posts": [
    {
      "text": "What makes the perfect prompt? Ask the Microsoft team in New York, it's all about building context over time.",
      "reaction_count": 186,
      "comment_count": 23,
      "is_repost": null
    }
  ],
  "similar_companies": [
    { "name": "Amazon", "industry": "Software Development", "location": null, "linkedin_url": "https://www.linkedin.com/company/amazon?trk=similar-pages" },
    { "name": "Apple", "industry": "Computers and Electronics Manufacturing", "location": "Cupertino, California", "linkedin_url": "https://www.linkedin.com/company/apple?trk=similar-pages" }
  ]
}

Connect the MCP server (Claude Code)

claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp

MCP config (Cursor, Claude Desktop, Windsurf)

{
  "mcpServers": {
    "zenrows": {
      "command": "npx",
      "args": ["-y", "@zenrows/mcp"],
      "env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
    }
  }
}

Or run the CLI

npx -y @zenrows/cli init
zenrows extract "https://www.linkedin.com/company/microsoft"

Then ask your agent

Use Zenrows to read these LinkedIn company pages and give me a table
with name, industry, company size, employees on LinkedIn, followers
and headquarters city:
https://www.linkedin.com/company/microsoft
https://www.linkedin.com/company/stripe

Scrape LinkedIn from your coding agent

Claude Code, Cursor, Codex and any MCP client can pull public LinkedIn company and job data from a prompt.

The agent sends the same Fetch and Extract request shown above, so it reads the same JSON. Connect the Zenrows MCP server once, or install the CLI and let the agent call it in the terminal.

Scrape LinkedIn at scale with Batch and Crawl

Batch runs a list of LinkedIn URLs as one job, in parallel, with your own ID on each result. Teams use it to refresh firmographics for an account list every week, or to rerun the same set of job searches each morning.

Crawl finds pages for you. Start it on a company page, keep the links that contain /company/, and it follows the "Similar pages" rail to the companies next to yours in LinkedIn's graph. Send the URLs it finds to Batch with Extract to get each one as JSON.

Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.

curl -X POST "https://async.api.zenrows.com/v1/jobs" \
  -H "X-API-Key: YOUR_ZENROWS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "regular",
    "status": "closed",
    "zenrows_params": { "mode": "auto", "extract": "auto" },
    "tasks": [
      { "url": "https://www.linkedin.com/company/microsoft", "external_id": "microsoft" },
      { "url": "https://www.linkedin.com/company/stripe", "external_id": "stripe" }
    ]
  }'

# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
  -H "X-API-Key: YOUR_ZENROWS_API_KEY"

What teams do with LinkedIn data

Use caseData they pullWho runs it
Account enrichment for CRM Industry, company size, employees on LinkedIn, website, headquarters Sales ops and RevOps teams
Hiring signals Open roles per company, titles, locations and posted dates from job searches Sales, investors and market analysts
Labor market research Job counts and titles by keyword and city, tracked over time Economists, recruiters and HR analytics teams
Competitor tracking Follower growth, headcount change and post engagement on rival pages Marketing and strategy teams
Total addressable market sizing Industry, size band and locations across lists of companies Go-to-market and finance teams
AI research agents The company record or the page as Markdown, read in the middle of a task AI and data teams

Tips for scraping LinkedIn

  • Use the company slug URL. https://www.linkedin.com/company/<slug> is the stable form. Strip ?trk= and other tracking parameters before you store or request a URL.
  • Track headcount with two numbers. company_size is the band the company chose; employee_count_on_linkedin is the live count of members who list it. The second one moves week to week, so it is the better growth signal.
  • Keep job IDs, not job URLs. The job_url in search results carries position and tracking parameters that change on every request. job_id is stable, and https://www.linkedin.com/jobs/view/<job_id> opens the same posting.
  • Narrow job searches in the URL. LinkedIn's own search filters live in the query string, such as f_TPR=r86400 for the past 24 hours. Set the filters in a browser, copy the URL, and send that.
  • Store the company URL with every record. Company names repeat across countries and subsidiaries; the /company/<slug> URL is the key that joins company pages, job cards and profiles.
  • Expect empty groups on some pages. A company without a tagline returns null, and a profile that hides its history returns an empty experience list. Write your code to treat both as "not shown".

Frequently asked questions

  • Collecting data that LinkedIn shows to any logged-out visitor, such as company pages and public job listings, is generally fine to collect. Profiles and posts contain personal data, which the GDPR in the EU and the CCPA in California protect, so collect only what you have a lawful basis for and never anything behind a login. LinkedIn's User Agreement also restricts automated collection. Check its terms for your use case and ask your lawyer if you are unsure.

  • Yes, but it does not serve public company or job data on demand. LinkedIn's APIs (Marketing, Talent, Sales Navigator and Community Management) need approval into a partner program and cover your own pages, ads or integrations. "Sign In with LinkedIn" returns only the signed-in member's basic profile. To read any public company page or job search, teams use a scraper.

  • Public company pages, job search results, public member profiles and single public posts, on linkedin.com and its country subdomains such as uk.linkedin.com. Anything that needs a LinkedIn login, such as Sales Navigator, full connection lists or private messages, is out of scope.

  • No. Zenrows opens each page as a logged-out visitor, so you never share an account, a session cookie or a password, and none of your accounts is at risk. The data is what LinkedIn shows the public.

  • No. LinkedIn does not show members' emails or phone numbers on public pages, and Zenrows does not look for them. The scraper returns public company and professional data only.

  • Send a GET request to https://api.zenrows.com/v1/ with your API key, the LinkedIn URL, Adaptive Stealth Mode and Extract turned on, as in the Python example above. The response's parsed key holds the record as a Python dictionary. The zenrows package on PyPI wraps the same request.

  • Send one URL per request, or a list as a Batch job that runs the URLs in parallel and keeps your own ID on each result. One Batch job accepts more than 10,000 URLs, sent inline or as a CSV file.

  • Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the companies or job searches you want in plain language and the agent calls Fetch and Extract for you.

  • Yes. Create a scheduled Batch job with your LinkedIn URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.

  • Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. A common setup is a Clay table that enriches each account with its LinkedIn company record. See the integrations page for the full list.

  • JSON by default, with the structured record in parsed and the original page in html. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.

Turn the live web into usable data.

Start building free 5,000 credits/month, always