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
- 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"
}
]
}{
"url": "https://www.linkedin.com/company/microsoft",
"mode": "auto",
"extract": "auto"
}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.
| Field | What it holds | Example |
|---|---|---|
company. |
Company name as shown on the page | Microsoft |
company. |
LinkedIn's industry label | Software Development |
company. |
The headcount band the company selected | 10,001+ employees |
company. |
Members who list the company as their employer | 231136 |
company. |
Followers of the company page | 29327719 |
company. |
Public, private, nonprofit and similar | public_company |
company. |
The specialties list, as one string | Business Software, Developer Tools… |
company. |
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_ |
The "Similar pages" rail: name, industry, location, URL | { "name": "Google", … } |
job_ (job search) |
Title, company, location, posted date, job ID and URL per card | { "title": "Data Engineer", … } |
search_ (job search) |
LinkedIn's result count for the query | 5,000+ |
member. (profile) |
Name on a public profile | Bill Gates |
member. (profile) |
Location shown on the profile | Seattle, Washington, United States |
current_ (profile) |
The current company in the profile header | Gates Foundation |
post. (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
- Create a free Zenrows account and copy your API key from the dashboard.
- 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. - 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.
- Read
parsedfrom the response. To keep only some fields, list their paths and the response returns just those. - 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))// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.linkedin.com/company/microsoft",
mode: "auto",
extract: "auto",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
console.log(parsed.company.name, parsed.company.employee_count_on_linkedin);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fmicrosoft&mode=auto&extract=auto"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.linkedin.com%2Fcompany%2Fmicrosoft&mode=auto&extract=auto&extract_fields=company.name%2Ccompany.industry%2Ccompany.company_size%2Ccompany.follower_count"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
response = client.get(
"https://www.linkedin.com/jobs/search?keywords=data%20engineer&location=London",
params={"mode": "auto", "extract": "auto"},
)
for job in response.json()["parsed"]["job_listings"]:
print(job["posted_date"], job["title"], "|", job["company_name"], "|", job["location"])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.
| Parameter | Type | Default | Description |
|---|---|---|---|
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_ |
string | all fields | Comma-separated paths to keep, such as company.name,company.company_size,locations |
proxy_ |
string | any | Two-letter country code, optional. Set it when you want the request to come from a specific country |
wait_ |
string | none | A CSS selector to wait for before the page is read |
{
"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" }
]
}{
"search_context": {
"keywords": "Data Engineer",
"location": "London",
"total_results": "5,000+"
},
"job_listings": [
{
"job_id": "4467786531",
"title": "Senior Data Engineer (UK)",
"company_name": "Firstup",
"company_url": "https://www.linkedin.com/company/firstup-io?trk=public_jobs_jserp-result_job-search-card-subtitle",
"location": "London, England, United Kingdom",
"posted_date": "2026-10-07",
"applicant_signal": "early_applicant",
"job_url": "https://uk.linkedin.com/jobs/view/senior-data-engineer-uk-at-firstup-4467786531?position=1&pageNum=0…"
},
{
"job_id": "4468656126",
"title": "Staff Data Engineer",
"company_name": "Oviva",
"company_url": "https://ch.linkedin.com/company/oviva?trk=public_jobs_jserp-result_job-search-card-subtitle",
"location": "London, England, United Kingdom",
"posted_date": "2026-10-08",
"applicant_signal": null,
"job_url": "https://uk.linkedin.com/jobs/view/staff-data-engineer-at-oviva-4468656126?position=3&pageNum=0…"
}
]
}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"# companies.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create companies.jsonl --wait
zenrows batch results <job-id> --out linkedin-companies.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.linkedin.com/company/microsoft",
"depth": 1,
"max_pages": 50,
"include_patterns": ["/company/"]
}'# Runs every day on Zenrows' side; each run keeps its own results
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": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{
"url": "https://www.linkedin.com/company/microsoft",
"external_id": "linkedin"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with LinkedIn data
| Use case | Data they pull | Who 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_sizeis the band the company chose;employee_count_on_linkedinis 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_urlin search results carries position and tracking parameters that change on every request.job_idis stable, andhttps://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=r86400for 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 emptyexperiencelist. Write your code to treat both as "not shown".
More LinkedIn and social media scrapers
-
linkedin.com
LinkedIn jobs scraper
Job title, company, location, seniority and posted date from public LinkedIn job listings.
-
linkedin.com
LinkedIn profile scraper
Public professional profile fields: headline, current role, company, location and work history.
-
linkedin.com
LinkedIn company scraper
Company name, industry, employee count, headquarters, website and follower count from public LinkedIn pages.
-
linkedin.com
LinkedIn post scraper
Post text, publish date and reaction counts from public LinkedIn company and creator posts.
-
reddit.com
Reddit scraper
Posts, comments, scores and comment counts from public subreddits.
-
tiktok.com
TikTok scraper
Public videos with captions, creators, views, likes, shares and hashtags.
-
x.com
Twitter (X) scraper
Public posts, profiles and engagement counts like likes, reposts and replies from X.
-
snapchat.com
Snapchat scraper
Public creator profiles and Spotlight videos with captions, views and subscriber counts.
-
pinterest.com
Pinterest scraper
Public pins, boards and profiles with images, descriptions, save counts and outbound links.
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'sparsedkey holds the record as a Python dictionary. Thezenrowspackage 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
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.