Skip to main content

LinkedIn scraper API: 149 lines of markdown

Spider is a web scraping API for developers and agent builders. One /scrape call turned the linkedin.com home page into 149 lines of markdown. On this site, that call cost $0.000386. We measured it once, on Nov 17, 2026. Cost varies by site. An attempt bills only the bandwidth it used and the time it ran. Public company pages, job listings and profiles take the same call. The examples here use no LinkedIn account, so they see what a logged-out visitor sees.

Get an API key See the code Pay as you go, from $1 per GB of bandwidth plus $0.0001 per minute a request runs.

POST /scrape

HTTP 200 · 11.3 KB of markdown · 149 lines {"url": "https://linkedin.com/", "request": "http", "return_format": "markdown", "metadata": true, "cache": false}

LinkedIn is better on the appDon't have the app? Get it in the Microsoft Store.Welcome to your professional communityDiscover relevant posts and expert insights - curated by topic and in one place.* Soft Skills & Emotional Intelligence* Program and Project Management* Community and Social Services* Military and Protective ServicesConnect with buyers who have first-hand experience to find the best products for you.* Human Resources Management Systems* Sales Intelligence Software* Project Management Software* Social Networking Software* Desktop Publishing SoftwareTake a break and reconnect with your network through quick daily games.With the Open To Work feature, you can privately tell recruiters or publicly share with the LinkedIn community that you are looking for new job opportunities.Sending messages to people you know is a great way to strengthen relationships as you take the next step in your career.From live videos, to stories, to newsletters and more, LinkedIn is full of ways to stay up to date on the latest discussions in your industry.Anyone looking to navigate their professional life.* Find a coworker or classmate
linkedin.com/index.md, source page: LinkedIn: Log In or Sign Up markdown · Showing 20 of 149 lines · captured Nov 17, 2026
target profile from the capture
Request mode
http
Response
HTTP 200
/scrape call
43.3 s
Page size
11.3 KB of markdown, 149 lines
Fields
Name, Industry, Employee count, Description and 4 more
Captured
Nov 17, 2026

2,500 free credits, worth $0.25, if your signup passes our checks. No card required.

What Spider does on linkedin.com

/scrape returned the captured page as 149 lines of markdown. The same key runs the other four, which we have not measured on linkedin.com.

  • /scrape Page to markdown. Clean text for RAG and LLM context, boilerplate removed. The lane that runs without a key. 149 lines · HTTP 200
  • /fetch Page to JSON. Spider reads the page and names the fields. Pass your own schema when you need exact keys. not measured
  • /crawl Whole site. Follows linkedin.com's own links, respects robots, streams pages as they land. not measured
  • /links Link graph. Every internal and external URL on a page, before you decide what to fetch. not measured
  • /screenshot Rendered capture. Real Chromium, full-page PNG. The same call also returns the rendered HTML. not measured
Browser when needed · Rendering
Smart mode, the default, tries a plain request first and moves to a real browser only when the page needs one.
CSS selectors to JSON · Fields
Name the fields you want in css_extraction_map and they come back under css_extracted, next to the markdown.
Pick the exit country · Country
Set country_code, for example gb, to send the request through a proxy in that country.

LinkedIn scraper API example

This call scrapes a public company page and reads the page h1 with a CSS selector. Swap in a job or profile URL and change the selectors to get other fields.

request scrape.sh
curl -X POST https://api.spider.cloud/scrape \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://www.linkedin.com/company/linkedin/",
    "return_format": "markdown",
    "metadata": true,
    "css_extraction_map": {
      "/": [{"name": "name", "selectors": ["h1"]}]
    }
  }'
smart mode · the default: a plain request first, a browser only when the page needs one

What this linkedin.com page cost

This is one /scrape call on linkedin.com, measured on Nov 17, 2026. Cost varies by site.

cost measured
This page, once one /scrape call on Nov 17, 2026, 11.3 KB of markdown returned $0.000386

Transfer starts at $1 per GB, plus $0.0001 per minute a request runs. Crawling daily? The Unlimited plan is a flat monthly rate.

What the response holds

The fields the example reads, named as the API returns them.

url
The page that was scraped.
status
The page's own HTTP status, which can differ from the status of the API call.
content
The page in the return_format you asked for, markdown here.
css_extracted
Each field you named in css_extraction_map, as a list of the text it matched.
metadata
The title, description, keywords and og:image, present when you send metadata: true.
costs
What the call billed.

The same API scrapes any site. The web scraper page shows it on other targets, and the scrape API page lists every parameter.

What teams build with linkedin.com data

  • Lead Generation. Build targeted prospect lists from company pages, employee directories, and job postings for outbound sales.
  • Market Research. Track competitor hiring patterns, headcount changes, and expansion signals from company profiles.
  • Recruiting Intelligence. Monitor job postings across companies and industries to identify talent market trends.
  • Company Enrichment. Enrich your CRM from public LinkedIn pages with industry, size, location, and specialties.

Common questions

What is a LinkedIn scraper API?

It is an HTTP endpoint that takes a LinkedIn URL and returns the page as data. With Spider you POST a public company, job or profile URL to /scrape and get markdown back, plus named fields when you pass CSS selectors in css_extraction_map.

Can I use LinkedIn's official API instead?

LinkedIn's own API serves apps that LinkedIn approves, and it covers what those programs allow. A scraper API reads the public page a logged-out visitor sees. Check which one fits your use and LinkedIn's terms before you build on either.

Can I scrape LinkedIn profiles?

Only what a public profile shows to a visitor who is not signed in. The examples here send no LinkedIn account. Personal data carries duties under privacy law, so check the rules where you and the people in the data live.

Is it legal to scrape LinkedIn?

It depends on your jurisdiction, the data and how you use it. LinkedIn's terms of service restrict automated access, so read them and get legal advice for your case. Keep to public pages and collect only what you need.

How do I scrape many LinkedIn pages?

Send /scrape calls in parallel, one URL each. Pay as you go starts at 10,000 requests per minute and rises through four levels to 80,000 as the account uses more. On a 429, wait for the Retry-After header before you send more.

What does it cost?

Pay as you go from $1 per GB of bandwidth plus $0.0001 per minute a request runs. No subscription. Top up from $5. Each response says what it billed in costs. An attempt bills for the bandwidth and compute it used, whatever status the page returns. A failed page is not free.

Point this at the rest of linkedin.com.

The same call takes any URL on linkedin.com.

The web scraping guide covers what each fetch does and what it costs.

Get an API key