Skip to documentation
Browse documentation

Crawl Site

Run a bounded breadth-first crawl across same-site pages and public files with robots rules, explicit scope patterns, controlled concurrency, stateless continuation, source-completeness reconciliation, and optional non-destructive AI relevance ranking.

Capability ID web.site.crawl
Cost 1 credit per request
Maximum runtime 120 seconds
View raw

POST /execute Shared execution endpoint

Input parameters

accept_statuses array<integer> optional

Accept statuses supplied for this request.

ai string optional

Optional non-destructive relevance ranking for discovered documents. Every deterministic candidate remains in the result; auto leaves candidates unranked if AI is unavailable, while always requires ranking to succeed.

Available values neverautoalways
allow_browser_fallback boolean optional

Allow browser fallback supplied for this request.

allow_truncated boolean optional

Allow truncated supplied for this request.

concurrency integer optional

Concurrency supplied for this request.

Example 2
continuation_token string optional

Opaque stateless frontier returned by a preceding crawl slice with the same options. A transiently failed URL is retained for at most one bounded retry; permanent failures are not amplified.

delay_ms integer optional

Delay ms supplied for this request.

detail string optional

Detail supplied for this request. Allowed values: `summary`, `standard`, `full`.

Example standard
Available values summarystandardfull
document object optional

Document supplied for this request.

document.chunk_chars integer optional

Chunk chars supplied for this request.

document.continuation_token string optional

Continuation token supplied for this request.

document.ocr string optional

Ocr supplied for this request. Allowed values: `auto`, `never`, `always`.

Available values autoneveralways
document.outputs array<string> optional

Requested document outputs. source returns the originally captured bytes: inline through 5.5 MB, otherwise through a hash-verified durable store, and fails if neither delivery path is available. When source is omitted, remote_source is provenance only and contains no bytes.

document.page_end integer optional

Page end supplied for this request.

document.page_start integer optional

Page start supplied for this request.

exclude_patterns array<string> optional

Exclude patterns supplied for this request.

include_patterns array<string> optional

Include patterns supplied for this request.

include_subdomains boolean optional

When false, only the seed host is allowed. When true, hosts are still limited to the seed's registrable domain; unrelated hosts are never added.

instructions string optional

Required when ai is auto or always. Describe which documents/files are relevant. Ranking is non-destructive: every deterministic candidate remains in the result.

max_body_bytes integer optional

Max body bytes supplied for this request.

max_depth integer optional

Max depth supplied for this request.

Example 2
max_pages integer optional

Max pages supplied for this request.

Example 5
max_total_bytes integer optional

Max total bytes supplied for this request.

respect_robots boolean optional

Respect robots supplied for this request.

url string required

Public http(s) site URL to crawl.

Example https://example.com/

Response

Successful output is returned in results[0].data. Raw platform output is intentionally open-ended and may evolve with the upstream source.

Illustrative sample The full redacted fixture is shown in the response panel.

Illustrative output fields

Derived from the sample above for orientation only. These observed fields are not a fixed response schema.

PathObserved typeExample
files array 0 items
final_url string https://example.com/
pages array 1 items
pages array 1 items
stats object 26 fields
stats.ai_attempts integer 0
stats.ai_completion_tokens integer 0
stats.ai_mode string never
stats.ai_prompt_tokens integer 0
stats.ai_ranking_mode string non_destructive
stats.ai_rejected_files integer 0
stats.ai_relevant_files integer 0
stats.ai_uncertain_files integer 0
stats.ai_unselected_files integer 0
stats.ai_used boolean false
stats.concurrency integer 2
stats.crawled_pages integer 1
stats.effective_delay_ms integer 0
stats.elapsed_ms integer 2203
stats.estimated_result_bytes integer 1151
stats.failed_pages integer 0
stats.files_before_compaction integer 0
stats.files_found integer 0
stats.files_omitted_by_compaction integer 0
stats.files_returned integer 0
stats.frontier_dropped integer 0
stats.max_depth integer 2
stats.remaining_frontier integer 0
stats.response_compacted boolean false
stats.returned_pages integer 1
stats.robots_applied boolean true
url string https://example.com/
warnings array 0 items

Execution behavior

A 200 response completed inline. A 202 response was queued; poll GET /jobs/:id until the job reaches completed or failed.