Web scraping API: any page to Markdown
Any public web page as clean Markdown, HTML, text, links or images, with its metadata (title, description, language, canonical, Open Graph, status code), fetched through a residential pool.
GET /v1/web/scrapeBeta1 credit per callRefunded on failureimport 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()Response
200 · 1 credit{ "data": { "markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it …", "links": [], "metadata": { "title": "Example Domain", "language": "en", "sourceURL": "https://example.com/", "url": "https://example.com/", "statusCode": 200, "contentType": "text/html; charset=utf-8", "fetchedAt": "2026-11-27T00:25:35.671Z" } }}Parameters
| Name | Type | Description |
|---|---|---|
urlquery · required | string | A public http(s) URL. Example: https://example.com/. |
formatsquery | string | Comma-separated: markdown, html, rawHtml, links, text, images (default markdown). Example: markdown,links. |
only_main_contentquery | "true" | "false" | Drop navigation, headers, footers and asides (default true). One of true, false. |
include_tagsquery | string | Comma-separated CSS selectors to keep (only those). |
exclude_tagsquery | string | Comma-separated CSS selectors to drop. |
accept_languagequery | string | Accept-Language header, e.g. de-DE,de;q=0.9. |
block_adsquery | "true" | "false" | One of true, false. |
remove_base64_imagesquery | "true" | "false" | One of true, false. |
mobilequery | "true" | "false" | Accepted for compatibility; pages are fetched as desktop. One of true, false. |
timeoutquery | integer | |
wait_forquery | integer | null | Accepted for compatibility; no JavaScript runs, so there is nothing to wait for. |
max_agequery | integer | null | |
location_countryquery | string | |
proxyquery | "basic" | "auto" | "enhanced" | One of basic, auto, enhanced. |
Status codes
| Status | Meaning |
|---|---|
200 | The page. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | That host does not resolve or the page does not exist. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Web is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Does it run JavaScript?
No: it reads the HTML the server sends. Pages that only render in a browser come back thin.
What about a 404?
You get the page with metadata.statusCode 404.
Web is a trademark of its owner. We are not affiliated with or endorsed by it.