Crawl a web site
BFS crawl starting from url, staying on the same origin, up to
max_pages and max_depth. Each page is stored in the local web index
and returned as Markdown.
POST
/v1/web/crawlAuthorization
AuthorizationBearer token (JWT) · headerrequiredBearer API key issued for your account. Send Authorization: Bearer <key>.
Request body
requiredapplication/jsonurlstring<uri>requiredmax_pagesintegerMaximum number of pages to fetch
default: 10
max_depthintegerMaximum link depth from the seed
default: 2
Responses
200
Crawled pages
pagesWebCrawledPage[]requiredShow propertiesHide properties
Array of
WebCrawledPageurlstring<uri>requiredtitlestringrequiredmarkdownstringrequired400
Bad request
string401
Missing or invalid bearer token
string403
Billing or plan entitlement blocked the request
string502
Upstream service (arXiv, YouTube, web page) failed
string