100 free credits. No credit card required. Get a key

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 failure
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()
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

NameTypeDescription
urlquery · requiredstringA public http(s) URL. Example: https://example.com/.
formatsquerystringComma-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_tagsquerystringComma-separated CSS selectors to keep (only those).
exclude_tagsquerystringComma-separated CSS selectors to drop.
accept_languagequerystringAccept-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.
timeoutqueryinteger
wait_forqueryinteger | nullAccepted for compatibility; no JavaScript runs, so there is nothing to wait for.
max_agequeryinteger | null
location_countryquerystring
proxyquery"basic" | "auto" | "enhanced"One of basic, auto, enhanced.
Status codes
StatusMeaning
200The page.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404That host does not resolve or the page does not exist.
429Too many requests. Wait for Retry-After seconds.
503Web 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.