GroundsocialDocs

API · Web

POST /web/crawl

Crawl a site from a URL: up to 10 pages as Markdown in about 25 s, with a cursor.

RequestPOST /v1/web/crawl
Operation idweb.crawl.get
Cost5 credits, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

Crawl a site from a URL: up to 10 pages as Markdown in about 25 s, with a cursor.

Request body

FieldTypeRequiredDescription
urlstringyesA public http(s) URL.
limitintegerno
max_depthintegerno
include_pathsstring[]no
exclude_pathsstring[]no
allow_backward_linksbooleanno
allow_external_linksbooleanno
formatsstring[]noAny of markdown, html, rawHtml, links, text, images (default ["markdown"]).
only_main_contentbooleanno
cursorstringnoA partial answer’s next_cursor, to continue the same crawl.

Responses

StatusMeaningSchema
200The pages crawled.
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.