GroundsocialDocs

API · Web

GET /web/scrape

Any public web page as Markdown, HTML, text, links and metadata.

RequestGET /v1/web/scrape
Operation idweb.scrape.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Any public web page as Markdown, HTML, text, links and metadata.

Query parameters

NameTypeRequiredDescription
urlstringyesA public http(s) URL. Example: https://example.com/.
formatsstringnoComma-separated: markdown, html, rawHtml, links, text, images (default markdown). Example: markdown,links.
only_main_content"true" | "false"noDrop navigation, headers, footers and asides (default true). One of true, false.
include_tagsstringnoComma-separated CSS selectors to keep (only those).
exclude_tagsstringnoComma-separated CSS selectors to drop.
accept_languagestringnoAccept-Language header, e.g. de-DE,de;q=0.9.
block_ads"true" | "false"noOne of true, false.
remove_base64_images"true" | "false"noOne of true, false.
mobile"true" | "false"noAccepted for compatibility; pages are fetched as desktop. One of true, false.
timeoutintegerno
wait_forinteger | nullnoAccepted for compatibility; no JavaScript runs, so there is nothing to wait for.
max_ageinteger | nullno
location_countrystringno
proxy"basic" | "auto" | "enhanced"noOne of basic, auto, enhanced.

Responses

StatusMeaningSchema
200The page.
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404That host does not resolve or the page does not exist.Error
429Too many requests. Wait for Retry-After seconds.Error
503Web is temporarily unavailable. Retryable; nothing was charged.Error

Errors use one shape everywhere; see Errors for every code and what to do.