---
title: "Is web scraping legal?"
description: "What the main cases say about scraping public data, where the legal risk really is, and a short checklist."
canonical_url: https://groundsocial.dev/answers/is-web-scraping-legal
---
# Is web scraping legal?

> What the main cases say about scraping public data, where the legal risk really is, and a short checklist.

_Updated 2026-11-27._

> **Short answer** Scraping public pages is generally lawful in the US when you stay logged out and don’t get around technical barriers, but contracts, copyright and privacy law still apply. US courts have said public data isn’t “unauthorized access” under the CFAA (hiQ) and that Meta’s terms didn’t cover logged-off scraping (Bright Data). This is not legal advice.

- **Logged in** means you agreed to the site’s terms; breaking them is breach of contract (hiQ lost on this).
- **Fake accounts or getting past blocks** move you towards unauthorized access.
- **Personal data** is regulated (GDPR in the EU and UK, state laws in the US) however you collect it.
- **Copyright** covers what you republish, not facts you extract.

## How to do it with Groundsocial

Groundsocial reads only public, logged-out pages, never solves CAPTCHAs, is read-only, and honours [data removal requests](https://groundsocial.dev/legal/data-removal). For anything at scale, ask your own lawyer.

cURL:

```bash
curl "https://api.groundsocial.dev/v1/web/scrape?url=https%3A%2F%2Fexample.com%2F&formats=markdown,links" \
  -H "Authorization: Bearer $GROUNDSOCIAL_API_KEY"
```

TypeScript:

```ts
const res = await fetch('https://api.groundsocial.dev/v1/web/scrape?url=https%3A%2F%2Fexample.com%2F&formats=markdown,links', {
  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/web/scrape?url=https%3A%2F%2Fexample.com%2F&formats=markdown,links",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
```

| Endpoint | Route | Credits |
| --- | --- | --- |
| [Web scraping API: any page to Markdown](https://groundsocial.dev/endpoints/web-scrape-api) | `/v1/web/scrape` | 1 |
| [Website crawl API](https://groundsocial.dev/endpoints/website-crawl-api) | `/v1/web/crawl` | 5 |

## More questions

### Does robots.txt make scraping illegal?

Not by itself, but ignoring it weakens your position and is bad manners. Respect it.

## Related

- [How to scrape LinkedIn legally](https://groundsocial.dev/answers/how-to-scrape-linkedin-legally)
- [Data removal](https://groundsocial.dev/legal/data-removal)

## 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)

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

Reddit, X and every other platform named here are trademarks of their owners. We are not affiliated with or endorsed by any of them.

_Canonical HTML: https://groundsocial.dev/answers/is-web-scraping-legal_

## 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":"Is web scraping legal?","item":"https://groundsocial.dev/answers/is-web-scraping-legal"}]}
```
