---
title: "How do I scrape LinkedIn legally?"
description: "What the hiQ and Meta v. Bright Data cases say about scraping public profiles, where the risk is, and the practical rules to follow."
canonical_url: https://groundsocial.dev/answers/how-to-scrape-linkedin-legally
---
# How do I scrape LinkedIn legally?

> What the hiQ and Meta v. Bright Data cases say about scraping public profiles, where the risk is, and the practical rules to follow.

_Updated 2026-11-27._

> **Short answer** Stay logged out, read only public pages, collect only what you need and have a lawful basis for any personal data. Logging in, fake accounts and getting around blocks are where the legal risk is: in hiQ v. LinkedIn the court found hiQ breached LinkedIn’s User Agreement, and hiQ conceded liability tied to fake accounts. This is not legal advice.

## What the cases say

- **hiQ v. LinkedIn**: the Ninth Circuit twice said scraping public pages likely isn’t “unauthorized access” under the CFAA. In November 2022 the district court found hiQ breached the User Agreement; the December 2022 settlement included a $500,000 judgment, deleting the data, and hiQ stipulating liability based on fake accounts. A settlement sets no precedent.
- **Meta v. Bright Data** (January 2024): the court held Meta’s terms did not bar scraping public data while logged off. Meta later dropped the case.

## Practical rules

- Never log in to scrape, never use fake or rented accounts, never get past a block or challenge.
- Public pages only, at a polite rate.
- Personal data (names, profiles) falls under privacy law such as GDPR: have a lawful basis, minimise, honour deletion requests.
- For anything at scale, ask your own lawyer.

## How to do it with Groundsocial

Groundsocial reads LinkedIn’s public, logged-out pages only: profiles, company pages and posts, job listings and the LinkedIn Ad Library, at 5 credits a call. People search is not offered because LinkedIn shows it only to signed-in members. A credit costs $1.00 to $0.40 per 1,000 depending on the pack, failed calls are refunded, and there are 100 free credits on signup, no card.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/linkedin/companies/microsoft" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/linkedin/companies/microsoft', {
  headers: { Authorization: `Bearer ${process.env.GROUNDSOCIAL_API_KEY}` },
})
if (!res.ok) throw new Error((await res.json()).error.hint)
const data = await res.json()
```

Python:

```python
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/linkedin/companies/microsoft",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

| Endpoint | Route | Credits |
| --- | --- | --- |
| [LinkedIn company page API](https://groundsocial.dev/endpoints/linkedin-company-api) | `/v1/linkedin/companies/{company}` | 5 |
| [LinkedIn profile API](https://groundsocial.dev/endpoints/linkedin-profile-api) | `/v1/linkedin/profiles/{profile}` | 5 |
| [LinkedIn jobs search API](https://groundsocial.dev/endpoints/linkedin-jobs-search-api) | `/v1/linkedin/jobs` | 5 |
| [LinkedIn company posts API](https://groundsocial.dev/endpoints/linkedin-company-posts-api) | `/v1/linkedin/companies/{company}/posts` | 5 |

## More questions

### Does LinkedIn’s official API give profile data?

Only the signed-in member’s own name, headline, photo and email through Sign In with LinkedIn. Everything else needs a partner programme.

## Related

- [Does LinkedIn have a public API?](https://groundsocial.dev/answers/does-linkedin-have-a-public-api)
- [Is web scraping legal?](https://groundsocial.dev/answers/is-web-scraping-legal)
- [Proxycurl alternatives](https://groundsocial.dev/alternatives/proxycurl)
- [Lead generation API](https://groundsocial.dev/use-cases/lead-generation-api)

## Sources

- [Proskauer, “hiQ and LinkedIn reach proposed settlement in landmark scraping case”, Dec 2022](https://newmedialaw.proskauer.com/2022/12/08/hiq-and-linkedin-reach-proposed-settlement-in-landmark-scraping-case/)
- [TechCrunch, “Court rules in favor of a web scraper, Bright Data, which Meta had used and then sued”, 24 Jan 2024](https://techcrunch.com/2024/01/24/court-rules-in-favor-of-a-web-scraper-bright-data-which-meta-had-used-and-then-sued)
- [Microsoft Learn: Getting access to LinkedIn APIs (updated 3 Jun 2026)](https://learn.microsoft.com/en-us/linkedin/shared/authentication/getting-access)

Checked 27 Nov 2026. Follow the links for the latest.

LinkedIn is a trademark of LinkedIn Corporation. We are not affiliated with or endorsed by LinkedIn.

_Canonical HTML: https://groundsocial.dev/answers/how-to-scrape-linkedin-legally_

## Site Navigation

### Global Hub
- [Home](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Endpoints](https://groundsocial.dev/endpoints.md)
- [For agents](https://groundsocial.dev/agents.md)
- [Docs](https://groundsocial.dev/docs.md)
- [Compare](https://groundsocial.dev/compare.md)
- [Blog](https://groundsocial.dev/blog.md)
- [Tutorials](https://groundsocial.dev/tutorials.md)
- [Changelog](https://groundsocial.dev/changelog.md)
- [llms.txt](https://groundsocial.dev/llms.txt)
- [Agent skill](https://groundsocial.dev/SKILL.md)

### On This Topic
- [Groundsocial: Social data in one API call](https://groundsocial.dev/index.md)
- [Pricing](https://groundsocial.dev/pricing.md)
- [Playground](https://groundsocial.dev/playground.md)
- [Use cases](https://groundsocial.dev/use-cases.md)
- [Brand monitoring API](https://groundsocial.dev/use-cases/brand-monitoring-api.md)
- [Social listening API](https://groundsocial.dev/use-cases/social-listening-api.md)
- [Comment scraping API](https://groundsocial.dev/use-cases/comment-scraping-api.md)
- [Influencer discovery API](https://groundsocial.dev/use-cases/influencer-discovery-api.md)
- [Video transcript API](https://groundsocial.dev/use-cases/video-transcript-api.md)
- [Ad library API](https://groundsocial.dev/use-cases/ad-library-api.md)
- [Review monitoring API](https://groundsocial.dev/use-cases/review-monitoring-api.md)
- [Trend detection API](https://groundsocial.dev/use-cases/trend-detection-api.md)
- [Social lead generation API](https://groundsocial.dev/use-cases/lead-generation-api.md)
- [Market research API](https://groundsocial.dev/use-cases/market-research-api.md)

## Structured data

```json
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://groundsocial.dev/"},{"@type":"ListItem","position":2,"name":"Answers","item":"https://groundsocial.dev/answers"},{"@type":"ListItem","position":3,"name":"How do I scrape LinkedIn legally?","item":"https://groundsocial.dev/answers/how-to-scrape-linkedin-legally"}]}
```
