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

Website crawl API

Crawl a site from a start URL, breadth-first, up to 10 pages and 5 link hops with path include/exclude rules, answered within about 25 s; a partial answer carries a cursor to go on.

POST /v1/web/crawlBeta5 credits per callRefunded on failure
import os, requests

res = requests.post(
    "https://api.groundsocial.dev/v1/web/crawl",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
    json={"url":"https://example.com/","limit":2,"max_depth":1},
)
res.raise_for_status()
data = res.json()
Response
200 · 5 credits
{
"status": "completed",
"total": 1,
"data": [
{
"markdown": "This domain is for use in documentation examples without needing permission. This is not a service; avoid relying on it …",
"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:44.792Z"
}
}
],
"failed": [],
"partial": false,
"next_cursor": null
}
Status codes
StatusMeaning
200The pages crawled.
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

Is it a job I poll?

No: the call answers within about 25 s; if pages were left, partial is true and next_cursor continues.

Web is a trademark of its owner. We are not affiliated with or endorsed by it.