Spicrawl MCP
An official MCP server provided by Spicrawl that allows AI agents to interact with the Spicrawl web scraping API. It enables agents to scrape URLs into Markdown or JSON, execute batch jobs for multiple URLs, manage browser sessions for logged-in states, perform browser actions like clicking and scrolling, and monitor usage and credits.
Endpoint and access
No sign-in to connect and list tools. Individual tools may still need a vendor account, credentials, or permissions; check the documented prerequisites.
https://mcp.spicrawl.com/mcpWhat its tools do
29 tools, grouped by the hints the server advertises. Hints are self-declared, not verified behavior.
Read-only (16)
spicrawl_brandspicrawl_batch_listspicrawl_batch_statusspicrawl_batch_resultsspicrawl_batch_task_contentspicrawl_session_listspicrawl_session_getspicrawl_session_contextspicrawl_usagespicrawl_usage_summaryspicrawl_usage_reconciliationspicrawl_requests_listspicrawl_request_getspicrawl_docs_searchspicrawl_docs_readspicrawl_docs_index
Can change data (13)
Checks and signals
Each line is separate evidence, not a trust score.
- Passed Endpoint answered the live check ·
- Passed Endpoint and vendor documentation share a domain
- Uptime 100% over 90 days
- Availability 3 of 3 checks passed in 30 days
- Popularity 1 GitHub star
What you can do with it
- Scrape any URL to clean Markdown or structured JSON
- Run batch jobs for up to 10,000 URLs simultaneously
- Manage browser sessions to stay logged in across requests
- Inspect API usage and credit consumption
Source and maintenance
- Last repository push
- Latest release
- v0.1.8
- Maintenance checked
Protocol and capabilities
- Server
- spicrawl-mcp-server 0.4.3
- MCP protocol negotiated in check
- 2025-11-25
- Tools
- 29 advertised
- Resources
- Not advertised
- Resource templates
- Not advertised
- Prompts
- Not advertised
{
"tools": {}
}Server-provided instructions
Untrusted server output shown for inspection. It is not Koskamo guidance and is excluded from knowledge search.
Tools
29 advertised
spicrawl_scrape — Scrape a URL
Retrieve a web page and return its content as markdown (default), text, HTML, a JSON envelope, or a printed PDF. Handles the fetch vs. browser decision, charset decoding, and PDF-to-text for you. Optionally extract structured data with CSS selectors (`extract`) or `autoparse`, return discovered `links`, take a `screenshot`, or scope the DOM with `include_tags`/`exclude_tags`. Each successful call is billed in credits (a failure costs 0). Results are cached by default, and a cache hit is billed like the fetch that stored it (the cache saves time, not credits); set `cache=false` for time-sensitive pages. With the defaults it only reads the page. A `method` other than GET, HEAD or OPTIONS, and the `actions` that click, fill or run scripts on the page, can change state on the target site: set them only when the user asks for that. `body` sends a request body with POST, PUT, PATCH or DELETE over a plain fetch; the workspace must have it enabled. For markdown, text and HTML it returns `{ content }`. With `format: "json"`, or when `extract`, `autoparse`, `links`, `screenshot` or `network_capture` is set, it returns the JSON envelope: `content`, the site's `status`, `credits`, `engine` (the rendering tier: `fetch`, `js` or `browser`), `warnings` and `data` for extraction. Screenshots come back as image content blocks; each `screenshots` entry in the JSON keeps its metadata and says which block holds it. A PDF comes back as a resource content block, with its size, the rendering tier and the credits in the JSON.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The absolute URL to retrieve."
},
"body": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "array"
},
{
"type": "string"
}
],
"description": "Request body for a POST, PUT, PATCH or DELETE `method`, over a plain fetch (no render, actions or screenshots). Use it to call a site's JSON or GraphQL API, submit a POST search form, or reach a JSON-RPC/MCP endpoint. An object or array is sent as JSON; a string is sent as-is. Up to 64 KB. The workspace must have it enabled. With a `body` and no `format`, the response comes back raw (format html), since API answers are usually JSON."
},
"mode": {
"enum": [
"auto"
],
"type": "string",
"description": "Routing mode. `auto` lets the platform escalate fetch -> browser as needed, billing only the rung that worked."
},
"wait": {
"type": "integer",
"minimum": 0,
"description": "Milliseconds to wait after load before capturing (render only)."
},
"cache": {
"type": "boolean",
"description": "Serve a recent cached result if fresh (on by default). A hit is billed at the same price as the fetch that stored it: the cache saves time, not credits. Set false only when you need live data."
},
"links": {
"type": "boolean",
"default": false,
"description": "Also return the page's discovered links as an absolute, de-duplicated list."
},
"proxy": {
"type": "string",
"description": "Your own proxy URL to egress through. Takes precedence over the pool; no surcharge."
},
"format": {
"enum": [
"markdown",
"text",
"html",
"json",
"pdf"
],
"type": "string",
"description": "Output format. 'markdown' (default for a page) is best for feeding to an LLM; with a `body` the default is 'html', the raw response, because API answers are usually JSON. 'html' returns the raw document; 'json' returns the main content as markdown in `content` plus `sections` ([{level, heading, text}], split on headings); 'pdf' prints the page in a full browser (routed there for you) and returns the file as a resource content block."
},
"method": {
"type": "string",
"description": "HTTP method sent to the target: GET (default), HEAD, OPTIONS, or POST, PUT, PATCH, DELETE with `body`. Anything but GET, HEAD or OPTIONS can change state on the target site: use it only when the user asks."
},
"render": {
"type": "boolean",
"default": false,
"description": "Render with a real browser (executes JavaScript). Use for single-page apps or pages whose content is painted client-side. Costs more than the default fetch tier. A plain fetch that gets only a near-empty script page (a bot challenge) fails with ERR::UPSTREAM::CHALLENGE and bills nothing; retry with `render: true` or your own `proxy`."
},
"actions": {
"type": "array",
"items": {
"anyOf": [
{
"type": "object",
"required": [
"type",
"selector"
],
"properties": {
"type": {
"type": "string",
"const": "click"
},
"label": {
"type": "string",
"description": "Name echoed in the response's `actions` and `screenshots`."
},
"until": {
"enum": [
"load",
"domcontentloaded",
"networkidle"
],
"type": "string",
"description": "Load state the new document must reach. Default load."
},
"on_error": {
"enum": [
"fail",
"skip"
],
"type": "string",
"description": "fail (default) aborts the workflow; skip records the failure and continues."
},
"selector": {
"type": "string",
"minLength": 1,
"description": "CSS selector of the element to click."
},
"timeout_ms": {
"type": "integer",
"minimum": 1,
"description": "Budget for this step in ms. The step fails (or is skipped) when it runs out."
},
"wait_for_navigation": {
"type": "boolean",
"description": "The click navigates: finish the step only once the new page has loaded."
}
},
"description": "Click an element. On a checkbox or radio this toggles it (there is no 'set checked'); read its state with evaluate if it matters.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type",
"selector",
"value"
],
"properties": {
"type": {
"type": "string",
"const": "fill"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"value": {
"type": "string"
},
"secret": {
"type": "boolean",
"description": "A credential: redacted from logs and the request log."
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"selector": {
"type": "string",
"minLength": 1
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
}
},
"description": "Type a value into an input.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"ms": {
"type": "integer",
"minimum": 1,
"description": "Or: sleep this many ms."
},
"type": {
"type": "string",
"const": "wait_for"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"selector": {
"type": "string",
"minLength": 1,
"description": "CSS selector to wait for."
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
}
},
"description": "Wait for a selector to appear, or sleep `ms`.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"const": "wait_for_navigation"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"until": {
"$ref": "#/properties/actions/items/anyOf/0/properties/until",
"description": "Load state the new document must reach. Default load."
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
}
},
"description": "Wait for a navigation started by the previous step (a click, a form submit, a redirect) to load.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"y": {
"type": "integer",
"description": "Pixels to scroll down (negative scrolls up)."
},
"type": {
"type": "string",
"const": "scroll"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"selector": {
"type": "string",
"minLength": 1,
"description": "Scroll this element into view."
},
"to_bottom": {
"type": "boolean",
"description": "Scroll to the bottom repeatedly until the page stops growing (infinite scroll)."
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
}
},
"description": "Scroll the page: give exactly one of y, to_bottom or selector.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type",
"selector"
],
"properties": {
"type": {
"type": "string",
"const": "select"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"value": {
"type": "string"
},
"values": {
"type": "array",
"items": {
"type": "string"
},
"description": "Several options, for a multi-select."
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"selector": {
"type": "string",
"minLength": 1,
"description": "CSS selector of the <select>."
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
}
},
"description": "Choose option(s) in a <select> by value.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type",
"expression"
],
"properties": {
"type": {
"type": "string",
"const": "evaluate"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"expression": {
"type": "string",
"minLength": 1,
"description": "JavaScript expression evaluated in the page."
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
},
"return_value": {
"type": "boolean",
"description": "Return the value under `actions` in the response (forces format json)."
},
"await_promise": {
"type": "boolean"
}
},
"description": "Run JavaScript in the page.",
"additionalProperties": false
},
{
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string",
"const": "screenshot"
},
"label": {
"$ref": "#/properties/actions/items/anyOf/0/properties/label"
},
"format": {
"enum": [
"png",
"jpeg",
"webp"
],
"type": "string"
},
"quality": {
"type": "integer",
"maximum": 100,
"minimum": 1
},
"on_error": {
"$ref": "#/properties/actions/items/anyOf/0/properties/on_error"
},
"selector": {
"type": "string",
"minLength": 1,
"description": "Capture only this element."
},
"full_page": {
"type": "boolean"
},
"timeout_ms": {
"$ref": "#/properties/actions/items/anyOf/0/properties/timeout_ms"
}
},
"description": "Capture the page at this point. The image is returned as an image block; the response becomes the JSON envelope whatever `format` says.",
"additionalProperties": false
}
]
},
"description": "Browser steps run in order before capture (render only). Each step is {type, ...fields}. Examples: [{\"type\":\"click\",\"selector\":\"#load-more\"},{\"type\":\"wait_for\",\"selector\":\".item:nth-child(20)\",\"timeout_ms\":5000}] · infinite scroll: [{\"type\":\"scroll\",\"to_bottom\":true},{\"type\":\"wait_for\",\"ms\":1000}] · login: [{\"type\":\"fill\",\"selector\":\"#user\",\"value\":\"me\"},{\"type\":\"fill\",\"selector\":\"#pass\",\"value\":\"…\",\"secret\":true},{\"type\":\"click\",\"selector\":\"button[type=submit]\",\"wait_for_navigation\":true}]. A screenshot step switches the response to the JSON envelope (a FORMAT_COERCED warning says so)."
},
"extract": {
"type": "object",
"description": "Selector-based extraction: a map of field -> CSS/XPath selector, e.g. {\"title\":\"h1\",\"price\":\".amount\"}. Returns structured `data`. A trailing `[]` returns every match as an array, e.g. {\"titles\":\".titleline > a[]\",\"links\":\"a[]@href\"}; without it only the first match is returned. The full form {\"selector\":\"...\",\"kind\":\"list\"} also works. Precise and cheap when you know the page structure.",
"additionalProperties": {}
},
"max_cost": {
"type": "integer",
"minimum": 0,
"description": "Refuse (rather than run) a request that would cost more than this many credits."
},
"wait_for": {
"type": "string",
"description": "CSS selector to wait for before capturing (render only)."
},
"autoparse": {
"type": "boolean",
"description": "Return the structured data the page publishes about itself (JSON-LD, OpenGraph, Twitter Card, microdata). No selectors; survives redesigns."
},
"cache_ttl": {
"type": "integer",
"minimum": 0,
"description": "Max age in seconds of a cached copy to accept (0 forces a fresh fetch; capped at 48h). Freshness only: a hit is billed like a fetch."
},
"parse_pdf": {
"type": "boolean",
"description": "Turn a PDF target into text/markdown (default true). false refuses PDFs."
},
"screenshot": {
"type": "boolean",
"default": false,
"description": "Capture a screenshot. Turns on `render`, since a screenshot needs a browser."
},
"session_id": {
"type": "string",
"description": "Run inside a session from spicrawl_session_create: same exit IP and browser state (cookies, localStorage) across calls."
},
"impersonate": {
"type": "boolean",
"description": "Fetch tier only: present a real browser's TLS/JA3 + HTTP/2 fingerprint to clear passive bot gates. On by default; set false to send a plain client handshake."
},
"exclude_tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "CSS selectors to remove (e.g. ['nav','.ad','#cookie'])."
},
"include_tags": {
"type": "array",
"items": {
"type": "string"
},
"description": "CSS selectors to KEEP (everything else is dropped)."
},
"proxy_verify": {
"type": "boolean",
"description": "Verify `proxy` is reachable before using it."
},
"scroll_pages": {
"type": "integer",
"maximum": 20,
"minimum": 0,
"description": "Before capture, scroll to the bottom up to this many times, stopping once the page stops growing: loads infinite-scroll feeds, search results and timelines. Needs full-browser rendering and costs as such (like `actions`). Default 0 (off); typical value 3-10."
},
"custom_headers": {
"type": "object",
"description": "Extra request headers sent to the target, e.g. {\"Accept-Language\":\"de\"}. With a string `body`, set Content-Type here.",
"additionalProperties": {
"type": "string"
}
},
"block_resources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Resource types the browser should not load, e.g. [\"fonts\",\"media\",\"images\"] (render only). Faster and cheaper."
},
"network_capture": {
"type": "object",
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string"
},
"description": "URL patterns of the page's own requests to record."
},
"max_responses": {
"type": "integer",
"description": "Cap on recorded responses."
},
"include_bodies": {
"type": "boolean",
"description": "Include response bodies."
},
"max_body_bytes": {
"type": "integer",
"description": "Per-response body cap."
},
"resource_types": {
"type": "array",
"items": {
"type": "string"
},
"description": "Resource types to record, e.g. [\"xhr\",\"fetch\"]."
}
},
"description": "Record the API responses the PAGE fetched while rendering — often cleaner JSON than the DOM. Render only.",
"additionalProperties": false
},
"original_status": {
"type": "boolean",
"description": "Return the target's own HTTP status instead of 200 for a successful scrape."
},
"wait_for_timeout": {
"type": "integer",
"minimum": 0,
"description": "Max milliseconds to wait for `wait_for`."
},
"main_content_only": {
"type": "boolean",
"description": "Strip the page to its main article, dropping nav/footer/aside. Defaults on for markdown and json."
},
"screenshot_format": {
"type": "string",
"description": "Screenshot image format."
},
"screenshot_quality": {
"type": "integer",
"maximum": 100,
"minimum": 1,
"description": "Screenshot quality 1-100 (lossy formats)."
},
"screenshot_fullpage": {
"type": "boolean",
"description": "Capture the whole page, not just the viewport."
},
"screenshot_selector": {
"type": "string",
"description": "Capture only the element matching this CSS selector."
},
"allowed_status_codes": {
"type": "array",
"items": {
"type": "integer"
},
"description": "Target statuses to treat as success instead of an error (e.g. [404] to capture a not-found page)."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"pdf": {
"type": "object",
"properties": {
"size_bytes": {
"type": "number"
},
"attached_as": {
"type": "string",
"description": "Which resource content block holds the PDF."
},
"content_type": {
"type": "string"
},
"not_attached": {
"type": "string",
"description": "Why the PDF is not attached, and how to get it."
}
},
"description": "Present for format=pdf: the file itself is a resource content block.",
"additionalProperties": true
},
"url": {
"type": "string",
"description": "The requested URL."
},
"data": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "Output of `extract` or `autoparse`."
},
"links": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "The page's links, absolute and de-duplicated, when `links` was set."
},
"notes": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Advice on this call: why a page was refused or came back empty, and what to change. Also sent as the X-Note header."
},
"engine": {
"type": "string",
"description": "Rendering tier that produced the page: fetch, js or browser."
},
"status": {
"type": "number",
"description": "The target site's HTTP status (not this call's). Anything but 200/404/410 is charged 0."
},
"content": {
"type": "string",
"description": "The page in the requested format (markdown, text or html); absent for a PDF."
},
"credits": {
"type": "number",
"description": "Credits charged for this call."
},
"headers": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "The target's response headers."
},
"network": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": {}
}
},
{
"type": "null"
}
],
"description": "Responses the page fetched, when `network_capture` was set."
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Advisories about the call, e.g. an ignored option."
},
"final_url": {
"type": "string",
"description": "URL after redirects; may be empty."
},
"truncated": {
"type": "boolean",
"description": "The target body exceeded the size cap and was cut."
},
"diagnostics": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "Which rendering tiers were tried, after an escalation."
},
"screenshots": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"label": {
"type": "string"
},
"width": {
"type": "number"
},
"format": {
"type": "string"
},
"height": {
"type": "number"
},
"size_bytes": {
"type": "number"
},
"attached_as": {
"type": "string",
"description": "Which image content block holds this screenshot."
},
"not_attached": {
"type": "string",
"description": "Why the image is not attached, and how to get it."
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "Metadata of each screenshot; the images are separate image content blocks."
},
"empty_fields": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "`extract` rules that matched nothing: usually a broken selector."
},
"proxy_source": {
"type": "string",
"description": "Whose exit carried the request: pool, custom or direct."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_brand — Extract a site's brand
Read a site's brand from one rendered page load: the name, description, tagline and calls to action (`identity`), logo links (`logos`, with a small logo's inline SVG), icons, brand colours with their roles (`colors`), fonts with their files (`fonts`), images such as the Open Graph image (`images`), video links with poster images (`videos`, never direct video files) and social profile links (`socials`). Use it when you need a company's logo, colours or fonts for a design or a summary of how it presents itself. Every value is a link or a plain value; nothing is downloaded. Pass `include` to ask for only some sections, since each section is capped. It is charged like a JavaScript-rendered scrape (3 credits typically), and a failed call costs 0. A cache hit is billed too. Each call bills again. Read-only.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The page to read, http or https. Usually the site's home page. Private addresses are refused."
},
"include": {
"type": "array",
"items": {
"enum": [
"identity",
"logos",
"icons",
"colors",
"fonts",
"images",
"videos",
"socials"
],
"type": "string"
},
"maxItems": 8,
"minItems": 1,
"description": "Sections to return, without repeats. Omit to get all of them. Only these appear in the response."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"url": {
"type": [
"string",
"null"
],
"description": "The URL requested."
},
"fonts": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"role": {
"type": [
"string",
"null"
]
},
"files": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
]
},
"family": {
"type": [
"string",
"null"
]
},
"source": {
"type": [
"string",
"null"
]
},
"weights": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "null"
}
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"icons": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"rel": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"type": {
"type": [
"string",
"null"
]
},
"sizes": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"logos": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"svg": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"theme": {
"type": [
"string",
"null"
]
},
"format": {
"type": [
"string",
"null"
]
},
"source": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"colors": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"hex": {
"type": [
"string",
"null"
]
},
"role": {
"type": [
"string",
"null"
]
},
"source": {
"type": [
"string",
"null"
]
},
"confidence": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"engine": {
"type": [
"string",
"null"
],
"description": "The rendering tier used: fetch, js or browser."
},
"images": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"alt": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"role": {
"type": [
"string",
"null"
]
},
"width": {
"type": [
"number",
"null"
]
},
"height": {
"type": [
"number",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"videos": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": [
"string",
"null"
]
},
"url": {
"type": [
"string",
"null"
]
},
"poster": {
"type": [
"string",
"null"
]
},
"provider": {
"type": [
"string",
"null"
]
},
"embed_url": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"credits": {
"type": [
"number",
"null"
],
"description": "Credits this call cost."
},
"socials": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"network": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"identity": {
"anyOf": [
{
"type": "object",
"properties": {
"cta": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"url": {
"type": [
"string",
"null"
]
},
"text": {
"type": [
"string",
"null"
]
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "Up to two hero calls to action."
},
"name": {
"type": [
"string",
"null"
]
},
"domain": {
"type": [
"string",
"null"
]
},
"tagline": {
"type": [
"string",
"null"
],
"description": "The hero headline. Empty when there is none."
},
"language": {
"type": [
"string",
"null"
]
},
"subtitle": {
"type": [
"string",
"null"
],
"description": "The line under the hero headline. Empty when there is none."
},
"description": {
"type": [
"string",
"null"
]
},
"theme_color": {
"type": [
"string",
"null"
],
"description": "Hex colour of the theme-color meta tag, or null."
}
},
"additionalProperties": true
},
{
"type": "null"
}
]
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Sections that failed on the page. They are empty and the request still succeeded."
},
"final_url": {
"type": [
"string",
"null"
],
"description": "The URL the page loaded from, after redirects."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_batch_submit — Submit a batch scrape job
Submit many URLs to be scraped as one asynchronous job, with shared settings applied to every URL. Give EITHER `urls` or `items`, not both (at least one URL, unless `open` is true). Returns the job object (id, status, estimated_credits, progress). Poll with `spicrawl_batch_status`, read with `spicrawl_batch_results` or `spicrawl_batch_task_content`. Use this instead of many `spicrawl_scrape` calls when you have tens or thousands of URLs. Set `open: true` to keep the job accepting more URLs via `spicrawl_batch_add_items`; an open job never finishes until you call `spicrawl_batch_close`.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"name": {
"type": "string",
"description": "A human label for the job."
},
"open": {
"type": "boolean",
"description": "Keep the job accepting items after submission (append with spicrawl_batch_add_items, finish with spicrawl_batch_close)."
},
"urls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "Shorthand: URLs scraped with the shared settings and no per-item overrides. Mutually exclusive with `items`."
},
"wait": {
"type": "integer",
"minimum": 0,
"description": "Milliseconds to wait after load (rendered scrapes)."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The URL of this item."
},
"external_id": {
"type": "string",
"description": "Your own correlation id, echoed back on this item's result record."
},
"response_format": {
"enum": [
"markdown",
"text",
"html"
],
"type": "string",
"description": "Output format for this item only (markdown, text or html; batch has no json)."
}
},
"additionalProperties": true
},
"description": "Long form: one /v1/scrape request object per item. Besides `url` and `external_id`, any /v1/scrape field (e.g. `js_render`, `wait_for`, `response_format`) overrides the shared setting for that item only. Mutually exclusive with `urls`."
},
"format": {
"enum": [
"markdown",
"text",
"html"
],
"type": "string",
"description": "Output format for every item (`response_format`): markdown, text or raw html. spicrawl_batch_submit defaults to 'markdown', the same as spicrawl_scrape; an item's own `response_format` overrides it. Batch does not return the JSON envelope; for `json` (markdown `content` and `sections`) use spicrawl_scrape."
},
"render": {
"type": "boolean",
"description": "Render every URL with a browser (`js_render`)."
},
"max_cost": {
"type": "integer",
"minimum": 1,
"description": "Ceiling in credits for ONE item (not the whole job — see credit_budget)."
},
"priority": {
"type": "integer",
"description": "Scheduling priority of the job relative to your other jobs."
},
"wait_for": {
"type": "string",
"description": "CSS selector to wait for before capturing (rendered scrapes)."
},
"concurrency": {
"type": "integer",
"minimum": 1,
"description": "Max items in flight at once for this job (may be capped by the server; see warnings)."
},
"max_attempts": {
"type": "integer",
"maximum": 10,
"minimum": 1,
"description": "Per-item retry attempts on failure."
},
"credit_budget": {
"type": "integer",
"minimum": 1,
"description": "Ceiling on the WHOLE job, in credits; the run aborts when it would exceed this."
},
"custom_headers": {
"type": "object",
"description": "Extra request headers sent with every URL.",
"additionalProperties": {
"type": "string"
}
},
"block_resources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Resource types to block while rendering, e.g. [\"image\",\"font\",\"media\"]."
},
"failure_threshold": {
"type": "integer",
"minimum": 1,
"description": "Abort the job once this many items have failed."
},
"main_content_only": {
"type": "boolean",
"description": "Strip each page to its main article."
},
"webhook_endpoint_id": {
"type": "string",
"description": "Id of a registered webhook endpoint notified (with the job object) when the job completes."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_batch_list — List batch jobs
List this API key's project's batch jobs, newest first, with status and progress. Returns `{ batches: [...], next_cursor? }`; pass `next_cursor` back as `cursor` for the next page.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"minimum": 1,
"description": "Page size (default 50, max 200)."
},
"cursor": {
"type": "string",
"description": "`next_cursor` from a previous page, verbatim."
},
"status": {
"enum": [
"queued",
"running",
"paused",
"cancelling",
"completed",
"failed",
"cancelled"
],
"type": "string",
"description": "Only jobs in this status."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"batches"
],
"properties": {
"batches": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"additionalProperties": true
},
"description": "Jobs, newest first (empty when there are none)."
},
"next_cursor": {
"type": [
"string",
"null"
],
"description": "Pass back as `cursor` for the next page; absent on the last page."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_batch_status — Check a batch job's status
Return one batch job with its status and progress (total/completed/succeeded/failed/remaining, credits charged). Poll this after `spicrawl_batch_submit`; once status is `completed`, `failed` or `cancelled`, read `spicrawl_batch_results`.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_batch_results — Read a batch job's results
Return a page of FINISHED items of a batch job (one record per item: seq, url, external_id, status, error, and content, or a `result_url` API path (GET /v1/batch/{id}/tasks/{seq}/content, same key) for large bodies). Unfinished items are not listed yet. Returns `{ results: [...], next_cursor? }`; pass `next_cursor` back as `cursor` for the next page. Results expire after the job's retention window (410 Gone).
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 5000,
"minimum": 1,
"description": "Page size (default 500, max 5000)."
},
"cursor": {
"type": "string",
"description": "`next_cursor` from a previous page, verbatim."
},
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
},
"status": {
"enum": [
"succeeded",
"failed",
"cancelled",
"skipped"
],
"type": "string",
"description": "Only items that finished with this status."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"results"
],
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"seq"
],
"properties": {
"seq": {
"type": "number",
"description": "0-based position in submission order; use it with spicrawl_batch_task_content."
},
"url": {
"type": "string",
"description": "The target URL as submitted."
},
"bytes": {
"type": "number",
"description": "Response size recorded for this item."
},
"error": {
"anyOf": [
{
"type": "object",
"properties": {
"code": {
"type": "string",
"description": "Stable machine error code; switch on this, not on text."
},
"retryable": {
"type": "boolean",
"description": "True when running the item again may succeed."
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Why the item failed. Absent on success."
},
"result": {
"anyOf": [
{
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Full size of the stored payload in bytes."
},
"content": {
"type": [
"string",
"null"
],
"description": "The item's document as raw JSON text (JSON-decode once to get the markdown, text or html). A prefix when truncated."
},
"omitted": {
"type": [
"boolean",
"null"
],
"description": "True when no content was included because the page's size budget was spent; use a smaller `limit`."
},
"truncated": {
"type": [
"boolean",
"null"
],
"description": "True when `content` is only a prefix."
},
"unavailable": {
"type": [
"string",
"null"
],
"description": "Why the payload could not be read at all."
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "The payload inline. Absent while the job is running or when the item has none."
},
"status": {
"type": "string",
"description": "Terminal item status: succeeded, failed, cancelled or skipped."
},
"attempts": {
"type": "number",
"description": "How many times the item was tried."
},
"request_id": {
"type": [
"string",
"null"
],
"description": "Id of the underlying request, for request history."
},
"result_url": {
"type": [
"string",
"null"
],
"description": "API path to fetch this item's content on its own."
},
"duration_ms": {
"type": "number",
"description": "Time spent on the item's final attempt, in milliseconds."
},
"external_id": {
"type": [
"string",
"null"
],
"description": "The external_id supplied for this item, if any."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the item reached its terminal status."
},
"http_status": {
"type": [
"number",
"null"
],
"description": "The target site's HTTP status (absent when no response was received)."
},
"credits_micro": {
"type": "number",
"description": "Micro-credits charged for this item (0 unless succeeded)."
}
},
"additionalProperties": true
},
"description": "Finished items of the job, in seq order."
},
"next_cursor": {
"type": [
"string",
"null"
],
"description": "Pass back as `cursor` for the next page; absent on the last page."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_batch_task_content — Read one batch item's content
Return the full payload one item of a batch job produced, by its `seq` (items are numbered from 0 in submission order). Cheaper than paging results when you need one URL's output. A CONFLICT error means either the item has not finished yet (poll `spicrawl_batch_status` and ask again) or it finished as failed (it will never produce content; the message says which). NOT_FOUND means no such seq.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id",
"seq"
],
"properties": {
"seq": {
"type": "integer",
"minimum": 0,
"description": "The item's sequence number (0-based, submission order)."
},
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"content": {
"description": "The item's document when it is text (markdown, text or html) or any non-object JSON value. An item whose payload is a JSON object is returned as that object's own fields instead."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_batch_cancel — Cancel a batch job
Cancel a batch job: items not yet started are cancelled and will never run; items already finished keep their results; items already running finish first, so the job comes back `cancelling` and moves to `cancelled` when they drain. Cannot be undone — resubmit to run the URLs again. Returns the job object.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}spicrawl_batch_retry — Retry a batch job's failed items
Re-queue every FAILED item of a batch job so it runs again (succeeded items are untouched; a job with no failures is returned unchanged). Returns `{ job, items_reset, items_dispatched }`.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"job": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"description": "The job as it stands after the call.",
"additionalProperties": true
},
"items_reset": {
"type": "number",
"description": "Failed items reset to queued (0 means nothing had failed)."
},
"items_dispatched": {
"type": "number",
"description": "Of those, how many reached the dispatch queue now; the rest are recovered automatically."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_batch_add_items — Add URLs to an open batch job
Append URLs to a batch job that was submitted with `open: true`. Same item vocabulary as `spicrawl_batch_submit` (EITHER `urls` or `items`, not both, plus shared settings for these new items). Fails with CONFLICT if the job is closed or finished. Not idempotent: calling twice adds the URLs twice. Returns `{ job, items_added, items_dispatched }`.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id"
],
"properties": {
"urls": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "Shorthand: URLs scraped with the shared settings and no per-item overrides. Mutually exclusive with `items`."
},
"wait": {
"type": "integer",
"minimum": 0,
"description": "Milliseconds to wait after load (rendered scrapes)."
},
"items": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "The URL of this item."
},
"external_id": {
"type": "string",
"description": "Your own correlation id, echoed back on this item's result record."
},
"response_format": {
"enum": [
"markdown",
"text",
"html"
],
"type": "string",
"description": "Output format for this item only (markdown, text or html; batch has no json)."
}
},
"additionalProperties": true
},
"description": "Long form: one /v1/scrape request object per item. Besides `url` and `external_id`, any /v1/scrape field (e.g. `js_render`, `wait_for`, `response_format`) overrides the shared setting for that item only. Mutually exclusive with `urls`."
},
"format": {
"enum": [
"markdown",
"text",
"html"
],
"type": "string",
"description": "Output format for every item (`response_format`): markdown, text or raw html. spicrawl_batch_submit defaults to 'markdown', the same as spicrawl_scrape; an item's own `response_format` overrides it. Batch does not return the JSON envelope; for `json` (markdown `content` and `sections`) use spicrawl_scrape."
},
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
},
"render": {
"type": "boolean",
"description": "Render every URL with a browser (`js_render`)."
},
"max_cost": {
"type": "integer",
"minimum": 1,
"description": "Ceiling in credits for ONE item (not the whole job — see credit_budget)."
},
"wait_for": {
"type": "string",
"description": "CSS selector to wait for before capturing (rendered scrapes)."
},
"custom_headers": {
"type": "object",
"description": "Extra request headers sent with every URL.",
"additionalProperties": {
"type": "string"
}
},
"block_resources": {
"type": "array",
"items": {
"type": "string"
},
"description": "Resource types to block while rendering, e.g. [\"image\",\"font\",\"media\"]."
},
"main_content_only": {
"type": "boolean",
"description": "Strip each page to its main article."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"job": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"description": "The job as it stands after the call.",
"additionalProperties": true
},
"items_added": {
"type": "number",
"description": "Items written to the job."
},
"items_dispatched": {
"type": "number",
"description": "Of those, how many reached the dispatch queue now; do not re-add the rest."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_batch_close — Close an open batch job
Stop an open batch job accepting items, so it completes once its queued work drains. Idempotent (closing a closed job succeeds). Returns the job object.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"job_id"
],
"properties": {
"job_id": {
"type": "string",
"minLength": 1,
"description": "The batch job id returned by spicrawl_batch_submit or spicrawl_batch_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Job id. Pass it as `job_id` to the other spicrawl_batch_* tools."
},
"name": {
"type": [
"string",
"null"
],
"description": "The label given at submission, if any."
},
"open": {
"type": [
"boolean",
"null"
],
"description": "True while the job accepts appended items (it will not complete until closed)."
},
"params": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "The job-level scrape settings as stored."
},
"status": {
"type": "string",
"description": "Lifecycle: queued, running, paused, cancelling, completed, failed or cancelled. Keep polling while queued/running/paused/cancelling; stop at completed, failed or cancelled."
},
"priority": {
"type": "number",
"description": "Effective scheduling priority."
},
"progress": {
"type": "object",
"properties": {
"bytes": {
"type": "number",
"description": "Total response bytes of finished items."
},
"total": {
"type": "number",
"description": "Items in the job (grows when items are appended to an open job)."
},
"failed": {
"type": "number",
"description": "Items that failed after all attempts; re-run them with spicrawl_batch_retry."
},
"skipped": {
"type": "number",
"description": "Items skipped (for example after failure_threshold or credit_budget stopped the run)."
},
"cancelled": {
"type": "number",
"description": "Items not run because the job was cancelled."
},
"completed": {
"type": "number",
"description": "Items in any terminal status (succeeded + failed + cancelled + skipped)."
},
"remaining": {
"type": "number",
"description": "Items not yet finished (total - completed)."
},
"succeeded": {
"type": "number",
"description": "Items that succeeded. Only these are charged."
},
"credits_charged": {
"type": "number",
"description": "Credits actually charged so far (whole credits, rounded down)."
},
"percent_complete": {
"type": "number",
"description": "completed / total x 100."
},
"credits_charged_micro": {
"type": "number",
"description": "Same as credits_charged in micro-credits (1 credit = 1,000,000)."
}
},
"description": "Live item counters and the credits charged so far.",
"additionalProperties": true
},
"warnings": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Decisions made on the caller's behalf at submission (a clamped concurrency, items not yet queued)."
},
"error_code": {
"type": [
"string",
"null"
],
"description": "Machine code of a job-level failure."
},
"project_id": {
"type": "string",
"description": "Project the API key belongs to."
},
"started_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the first item started."
},
"status_url": {
"type": "string",
"description": "API path to poll for this job: /v1/batch/{id}."
},
"concurrency": {
"type": "number",
"description": "Effective per-job concurrency after the server's clamping."
},
"finished_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time the job reached a terminal status."
},
"results_url": {
"type": "string",
"description": "API path of the job's results: /v1/batch/{id}/results."
},
"total_items": {
"type": "number",
"description": "Number of items in the job."
},
"max_attempts": {
"type": "number",
"description": "Effective attempts per item."
},
"submitted_at": {
"type": "string",
"description": "ISO-8601 time the job was accepted."
},
"error_message": {
"type": [
"string",
"null"
],
"description": "Human-readable job-level failure reason."
},
"estimated_credits": {
"type": "number",
"description": "Credits reserved at submission (a hold, not a charge; compare with progress.credits_charged)."
},
"failure_threshold": {
"type": [
"number",
"null"
],
"description": "Failed-item count that aborts the job, when set."
},
"results_expire_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 deadline after which results answer 410 Gone."
},
"cancel_requested_at": {
"type": [
"string",
"null"
],
"description": "ISO-8601 time a cancel was accepted."
},
"estimated_credits_micro": {
"type": "number",
"description": "Same as estimated_credits in micro-credits."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_session_create — Create a browsing session
Create a session: a persistent browser identity (cookie jar, localStorage, a fixed rendering tier and, by default, a sticky exit IP) that survives across scrapes. Use it for multi-step flows — log in, then fetch pages behind the login — by passing the returned `id` as `session_id` to every `spicrawl_scrape` call that should share the state. The rendering tier is fixed for the session's lifetime and every scrape on the session runs on it. Leave `engine` out and one is chosen for you. Release the session with `spicrawl_session_release` when done. Returns the session object (id, engine, status, sticky_key, proxy, expires_at).
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"engine": {
"enum": [
"fetch",
"js",
"browser"
],
"type": "string",
"description": "Rendering tier fixed for the session's lifetime. Optional: leave it out and one is chosen for you. `fetch` is plain HTTP; `js` is JavaScript rendering and refuses `actions`, `block_resources`, screenshots and PDFs; `browser` is a full browser."
},
"ttl_seconds": {
"type": "integer",
"minimum": 30,
"description": "Idle lifetime in seconds (min 30, default 1800; the organization's maximum is enforced, not clamped)."
},
"domain_scores": {
"type": "object",
"description": "Seed per-domain error scores (usually copied from a spicrawl_session_context dump).",
"additionalProperties": {
"type": "object",
"required": [
"score",
"good",
"bad",
"last_updated"
],
"properties": {
"bad": {
"type": "integer"
},
"good": {
"type": "integer"
},
"score": {
"type": "number"
},
"last_updated": {
"type": "integer"
}
},
"additionalProperties": true
}
},
"session_context": {
"type": "object",
"description": "Seed the session's state (cookies, storage) — e.g. the `session_context` object from spicrawl_session_context, to clone a session.",
"additionalProperties": {}
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Session id; pass it as `session_id` to spicrawl_scrape."
},
"lease": {
"type": "object",
"properties": {
"holder": {
"type": "string"
},
"expires_at": {
"type": "string",
"description": "When the lease lapses at the latest, RFC 3339 UTC."
}
},
"description": "Present only while a scrape holds the session; release and delete are refused until it lapses unless `force`.",
"additionalProperties": true
},
"proxy": {
"type": "object",
"properties": {
"tier": {
"type": "string",
"description": "Exit tier: datacenter or residential."
},
"country": {
"type": "string",
"description": "Lowercase alpha-2 exit country, when one was requested."
},
"region_pool": {
"type": "string",
"description": "Regional pool requested at creation."
}
},
"description": "The session's exit intent (never an IP or endpoint).",
"additionalProperties": true
},
"engine": {
"type": "string",
"description": "Rendering tier the session is bound to: fetch, js or browser."
},
"status": {
"type": "string",
"description": "active, released or expired; derived from the clock, and only `active` sessions can be used."
},
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"bytes": {
"type": "integer",
"description": "Serialised size of the stored context."
},
"cookies": {
"type": "integer",
"description": "Cookies stored."
},
"origins": {
"type": "integer",
"description": "Distinct origins with stored web storage."
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Size summary of the stored context (counts only, no secrets); null once the session is not active."
},
"retired": {
"type": "string",
"description": "Why the session was taken out of service (expired, usage_exhausted, explicit); absent while usable."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Decisions made on your behalf at creation, e.g. a TTL reduced to the organization maximum."
},
"created_at": {
"type": "string",
"description": "Creation time, RFC 3339 UTC."
},
"expires_at": {
"type": "string",
"description": "Current expiry (slides on use), RFC 3339 UTC."
},
"project_id": {
"type": "string",
"description": "Project the session belongs to."
},
"sticky_key": {
"type": "string",
"description": "Exit pin in use (empty when rotate_ip was set)."
},
"fingerprint": {
"type": "object",
"description": "Browser fingerprint, as stored.",
"additionalProperties": {}
},
"released_at": {
"type": "string",
"description": "Release time, on released sessions, RFC 3339 UTC."
},
"usage_count": {
"type": "integer",
"description": "Successful scrapes that used the session."
},
"last_used_at": {
"type": [
"string",
"null"
],
"description": "Last successful scrape, RFC 3339 UTC; null if never used."
},
"domain_scores": {
"type": "object",
"description": "Per-domain standing, keyed by domain. Omitted when empty.",
"additionalProperties": {
"type": "object",
"properties": {
"bad": {
"type": "integer",
"description": "Failed requests counted."
},
"good": {
"type": "integer",
"description": "Successful requests counted."
},
"score": {
"type": "number",
"description": "Error score; rises on failures, decays on successes. Blocked at 3."
},
"retired": {
"type": "boolean",
"description": "Hard block for this domain; use a new session for it."
},
"last_updated": {
"type": "number",
"description": "Last update, Unix milliseconds."
}
},
"additionalProperties": true
}
},
"hard_expires_at": {
"type": "string",
"description": "Fixed ceiling the expiry never passes, RFC 3339 UTC."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_session_list — List sessions
List this API key's project's sessions, newest first. Returns `{ sessions: [...], next_cursor? }`; pass `next_cursor` back as `cursor` for the next page. Never includes the stored credentials.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"minimum": 1,
"description": "Page size (default 50, max 200)."
},
"cursor": {
"type": "string",
"description": "`next_cursor` from a previous page, verbatim."
},
"engine": {
"enum": [
"fetch",
"js",
"browser"
],
"type": "string",
"description": "Only sessions on this rendering tier."
},
"status": {
"enum": [
"active",
"released",
"expired"
],
"type": "string",
"description": "Only sessions in this state."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"sessions"
],
"properties": {
"sessions": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Session id; pass it as `session_id` to spicrawl_scrape."
},
"lease": {
"type": "object",
"properties": {
"holder": {
"type": "string"
},
"expires_at": {
"type": "string",
"description": "When the lease lapses at the latest, RFC 3339 UTC."
}
},
"description": "Present only while a scrape holds the session; release and delete are refused until it lapses unless `force`.",
"additionalProperties": true
},
"proxy": {
"type": "object",
"properties": {
"tier": {
"type": "string",
"description": "Exit tier: datacenter or residential."
},
"country": {
"type": "string",
"description": "Lowercase alpha-2 exit country, when one was requested."
},
"region_pool": {
"type": "string",
"description": "Regional pool requested at creation."
}
},
"description": "The session's exit intent (never an IP or endpoint).",
"additionalProperties": true
},
"engine": {
"type": "string",
"description": "Rendering tier the session is bound to: fetch, js or browser."
},
"status": {
"type": "string",
"description": "active, released or expired; derived from the clock, and only `active` sessions can be used."
},
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"bytes": {
"type": "integer",
"description": "Serialised size of the stored context."
},
"cookies": {
"type": "integer",
"description": "Cookies stored."
},
"origins": {
"type": "integer",
"description": "Distinct origins with stored web storage."
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Size summary of the stored context (counts only, no secrets); null once the session is not active."
},
"retired": {
"type": "string",
"description": "Why the session was taken out of service (expired, usage_exhausted, explicit); absent while usable."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Decisions made on your behalf at creation, e.g. a TTL reduced to the organization maximum."
},
"created_at": {
"type": "string",
"description": "Creation time, RFC 3339 UTC."
},
"expires_at": {
"type": "string",
"description": "Current expiry (slides on use), RFC 3339 UTC."
},
"project_id": {
"type": "string",
"description": "Project the session belongs to."
},
"sticky_key": {
"type": "string",
"description": "Exit pin in use (empty when rotate_ip was set)."
},
"fingerprint": {
"type": "object",
"description": "Browser fingerprint, as stored.",
"additionalProperties": {}
},
"released_at": {
"type": "string",
"description": "Release time, on released sessions, RFC 3339 UTC."
},
"usage_count": {
"type": "integer",
"description": "Successful scrapes that used the session."
},
"last_used_at": {
"type": [
"string",
"null"
],
"description": "Last successful scrape, RFC 3339 UTC; null if never used."
},
"domain_scores": {
"type": "object",
"description": "Per-domain standing, keyed by domain. Omitted when empty.",
"additionalProperties": {
"type": "object",
"properties": {
"bad": {
"type": "integer",
"description": "Failed requests counted."
},
"good": {
"type": "integer",
"description": "Successful requests counted."
},
"score": {
"type": "number",
"description": "Error score; rises on failures, decays on successes. Blocked at 3."
},
"retired": {
"type": "boolean",
"description": "Hard block for this domain; use a new session for it."
},
"last_updated": {
"type": "number",
"description": "Last update, Unix milliseconds."
}
},
"additionalProperties": true
}
},
"hard_expires_at": {
"type": "string",
"description": "Fixed ceiling the expiry never passes, RFC 3339 UTC."
}
},
"additionalProperties": true
},
"description": "Sessions on this page, newest first; may be short or empty under a `status` filter."
},
"next_cursor": {
"type": "string",
"description": "Pass back as `cursor` for the next page; absent on the last page."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_session_get — Get a session
Return one session's metadata: status, `engine` (its rendering tier), proxy/exit, usage count, expiry, lease holder, and a summary of its stored context. Never returns the credentials themselves (use spicrawl_session_context for that).
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"session_id": {
"type": "string",
"minLength": 1,
"description": "The session id returned by spicrawl_session_create or spicrawl_session_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Session id; pass it as `session_id` to spicrawl_scrape."
},
"lease": {
"type": "object",
"properties": {
"holder": {
"type": "string"
},
"expires_at": {
"type": "string",
"description": "When the lease lapses at the latest, RFC 3339 UTC."
}
},
"description": "Present only while a scrape holds the session; release and delete are refused until it lapses unless `force`.",
"additionalProperties": true
},
"proxy": {
"type": "object",
"properties": {
"tier": {
"type": "string",
"description": "Exit tier: datacenter or residential."
},
"country": {
"type": "string",
"description": "Lowercase alpha-2 exit country, when one was requested."
},
"region_pool": {
"type": "string",
"description": "Regional pool requested at creation."
}
},
"description": "The session's exit intent (never an IP or endpoint).",
"additionalProperties": true
},
"engine": {
"type": "string",
"description": "Rendering tier the session is bound to: fetch, js or browser."
},
"status": {
"type": "string",
"description": "active, released or expired; derived from the clock, and only `active` sessions can be used."
},
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"bytes": {
"type": "integer",
"description": "Serialised size of the stored context."
},
"cookies": {
"type": "integer",
"description": "Cookies stored."
},
"origins": {
"type": "integer",
"description": "Distinct origins with stored web storage."
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Size summary of the stored context (counts only, no secrets); null once the session is not active."
},
"retired": {
"type": "string",
"description": "Why the session was taken out of service (expired, usage_exhausted, explicit); absent while usable."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Decisions made on your behalf at creation, e.g. a TTL reduced to the organization maximum."
},
"created_at": {
"type": "string",
"description": "Creation time, RFC 3339 UTC."
},
"expires_at": {
"type": "string",
"description": "Current expiry (slides on use), RFC 3339 UTC."
},
"project_id": {
"type": "string",
"description": "Project the session belongs to."
},
"sticky_key": {
"type": "string",
"description": "Exit pin in use (empty when rotate_ip was set)."
},
"fingerprint": {
"type": "object",
"description": "Browser fingerprint, as stored.",
"additionalProperties": {}
},
"released_at": {
"type": "string",
"description": "Release time, on released sessions, RFC 3339 UTC."
},
"usage_count": {
"type": "integer",
"description": "Successful scrapes that used the session."
},
"last_used_at": {
"type": [
"string",
"null"
],
"description": "Last successful scrape, RFC 3339 UTC; null if never used."
},
"domain_scores": {
"type": "object",
"description": "Per-domain standing, keyed by domain. Omitted when empty.",
"additionalProperties": {
"type": "object",
"properties": {
"bad": {
"type": "integer",
"description": "Failed requests counted."
},
"good": {
"type": "integer",
"description": "Successful requests counted."
},
"score": {
"type": "number",
"description": "Error score; rises on failures, decays on successes. Blocked at 3."
},
"retired": {
"type": "boolean",
"description": "Hard block for this domain; use a new session for it."
},
"last_updated": {
"type": "number",
"description": "Last update, Unix milliseconds."
}
},
"additionalProperties": true
}
},
"hard_expires_at": {
"type": "string",
"description": "Fixed ceiling the expiry never passes, RFC 3339 UTC."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_session_context — Dump a session's stored context
Return the full stored state of a LIVE session — cookies, localStorage and other credentials — plus its fingerprint and domain scores. The `session_context` object can be passed to spicrawl_session_create to clone the session. The result contains secrets (login cookies): do not echo it to the user or logs unless asked.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"session_id": {
"type": "string",
"minLength": 1,
"description": "The session id returned by spicrawl_session_create or spicrawl_session_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"retired": {
"type": "string",
"description": "Why the session was retired; absent while usable."
},
"warning": {
"type": "string",
"description": "The API's reminder that this state dies with the session."
},
"created_at": {
"type": "string",
"description": "Creation time, RFC 3339 UTC."
},
"expires_at": {
"type": "string",
"description": "Current expiry, RFC 3339 UTC."
},
"session_id": {
"type": "string",
"description": "The session id."
},
"fingerprint": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
],
"description": "Stored browser fingerprint; null when none."
},
"usage_count": {
"type": "integer"
},
"last_used_at": {
"type": [
"string",
"null"
],
"description": "Last use, RFC 3339 UTC; null if never used."
},
"domain_scores": {
"type": "object",
"description": "Per-domain standing, keyed by domain. Omitted when empty.",
"additionalProperties": {
"type": "object",
"properties": {
"bad": {
"type": "integer",
"description": "Failed requests counted."
},
"good": {
"type": "integer",
"description": "Successful requests counted."
},
"score": {
"type": "number",
"description": "Error score; rises on failures, decays on successes. Blocked at 3."
},
"retired": {
"type": "boolean",
"description": "Hard block for this domain; use a new session for it."
},
"last_updated": {
"type": "number",
"description": "Last update, Unix milliseconds."
}
},
"additionalProperties": true
}
},
"schema_version": {
"type": "integer"
},
"session_context": {
"type": "object",
"properties": {
"cookies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
},
"domain": {
"type": "string"
}
},
"additionalProperties": true
}
},
"indexed_db": {
"type": "object",
"description": "Origin to databases; opaque.",
"additionalProperties": {}
},
"local_storage": {
"type": "object",
"description": "Origin to key/value map.",
"additionalProperties": {}
},
"session_storage": {
"type": "object",
"description": "Origin to key/value map.",
"additionalProperties": {}
}
},
"description": "Cookies and storage: secrets. Pass it as `session_context` to spicrawl_session_create to clone the session.",
"additionalProperties": true
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_session_release — Release a session
End a session when you are done with it: frees its exit IP and browser state; it can no longer be used with spicrawl_scrape. Its stored cookies and storage are purged and cannot be recovered; start a new session and log in again to continue. The record stays visible (status `released`) so its history can still be inspected. Refused while a scrape holds the session's lease unless `force` is true. Returns the session object.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"force": {
"type": "boolean",
"description": "Break an active lease (a scrape currently using the session). Only set when you know it is safe."
},
"session_id": {
"type": "string",
"minLength": 1,
"description": "The session id returned by spicrawl_session_create or spicrawl_session_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "Session id; pass it as `session_id` to spicrawl_scrape."
},
"lease": {
"type": "object",
"properties": {
"holder": {
"type": "string"
},
"expires_at": {
"type": "string",
"description": "When the lease lapses at the latest, RFC 3339 UTC."
}
},
"description": "Present only while a scrape holds the session; release and delete are refused until it lapses unless `force`.",
"additionalProperties": true
},
"proxy": {
"type": "object",
"properties": {
"tier": {
"type": "string",
"description": "Exit tier: datacenter or residential."
},
"country": {
"type": "string",
"description": "Lowercase alpha-2 exit country, when one was requested."
},
"region_pool": {
"type": "string",
"description": "Regional pool requested at creation."
}
},
"description": "The session's exit intent (never an IP or endpoint).",
"additionalProperties": true
},
"engine": {
"type": "string",
"description": "Rendering tier the session is bound to: fetch, js or browser."
},
"status": {
"type": "string",
"description": "active, released or expired; derived from the clock, and only `active` sessions can be used."
},
"context": {
"anyOf": [
{
"type": "object",
"properties": {
"bytes": {
"type": "integer",
"description": "Serialised size of the stored context."
},
"cookies": {
"type": "integer",
"description": "Cookies stored."
},
"origins": {
"type": "integer",
"description": "Distinct origins with stored web storage."
},
"schema_version": {
"type": "integer"
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Size summary of the stored context (counts only, no secrets); null once the session is not active."
},
"retired": {
"type": "string",
"description": "Why the session was taken out of service (expired, usage_exhausted, explicit); absent while usable."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Decisions made on your behalf at creation, e.g. a TTL reduced to the organization maximum."
},
"created_at": {
"type": "string",
"description": "Creation time, RFC 3339 UTC."
},
"expires_at": {
"type": "string",
"description": "Current expiry (slides on use), RFC 3339 UTC."
},
"project_id": {
"type": "string",
"description": "Project the session belongs to."
},
"sticky_key": {
"type": "string",
"description": "Exit pin in use (empty when rotate_ip was set)."
},
"fingerprint": {
"type": "object",
"description": "Browser fingerprint, as stored.",
"additionalProperties": {}
},
"released_at": {
"type": "string",
"description": "Release time, on released sessions, RFC 3339 UTC."
},
"usage_count": {
"type": "integer",
"description": "Successful scrapes that used the session."
},
"last_used_at": {
"type": [
"string",
"null"
],
"description": "Last successful scrape, RFC 3339 UTC; null if never used."
},
"domain_scores": {
"type": "object",
"description": "Per-domain standing, keyed by domain. Omitted when empty.",
"additionalProperties": {
"type": "object",
"properties": {
"bad": {
"type": "integer",
"description": "Failed requests counted."
},
"good": {
"type": "integer",
"description": "Successful requests counted."
},
"score": {
"type": "number",
"description": "Error score; rises on failures, decays on successes. Blocked at 3."
},
"retired": {
"type": "boolean",
"description": "Hard block for this domain; use a new session for it."
},
"last_updated": {
"type": "number",
"description": "Last update, Unix milliseconds."
}
},
"additionalProperties": true
}
},
"hard_expires_at": {
"type": "string",
"description": "Fixed ceiling the expiry never passes, RFC 3339 UTC."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}spicrawl_session_delete — Delete a session
Permanently delete a session and its stored state, including the record itself (prefer spicrawl_session_release if you only want to stop using it). Idempotent: deleting an already-deleted session succeeds. Refused while a scrape holds the session's lease unless `force` is true.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"force": {
"type": "boolean",
"description": "Break an active lease (a scrape currently using the session). Only set when you know it is safe."
},
"session_id": {
"type": "string",
"minLength": 1,
"description": "The session id returned by spicrawl_session_create or spicrawl_session_list."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"deleted",
"session_id"
],
"properties": {
"deleted": {
"type": "boolean",
"description": "Always true on success (deleting an already-deleted session succeeds)."
},
"session_id": {
"type": "string",
"description": "The id that was deleted."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": true
}spicrawl_usage — Usage breakdown
Billing-grade usage for your org over a date window, from the daily rollup (usage_daily), grouped by day, project, engine, feature or key. group_by=key returns per API key (key_id, name, prefix, project_id) counters per metric per day, from usage_key_daily; keyless (dashboard) usage is not in it, and a project-scoped key sees only its own project's keys. Use it to answer 'how many requests/credits did I use, and where'. The window defaults to the last 30 days including today; `to` is EXCLUSIVE (a single day 2026-08-01 is from=2026-08-01, to=2026-08-02) and the window may not exceed 400 days. The response carries stale_seconds (age of the newest rollup row; null when the window is empty). Requires the key to have the `read` scope.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"to": {
"$ref": "#/properties/from",
"description": "EXCLUSIVE end date, YYYY-MM-DD (UTC). Default: tomorrow, so today is included."
},
"from": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "Inclusive start date, YYYY-MM-DD (UTC). Default: 29 days before today."
},
"metrics": {
"type": "array",
"items": {
"enum": [
"requests",
"credits",
"engine_ms",
"bytes_egress",
"bytes_ingress",
"proxy_bytes_dc",
"proxy_bytes_resi",
"extractions",
"ai_extractions",
"batch_items",
"requests_failed",
"requests_timeout",
"feature_actions",
"feature_ai_extract",
"feature_autoparse",
"feature_extract",
"feature_extract_preset",
"feature_js_render",
"feature_links",
"feature_network_capture",
"feature_pdf",
"feature_proxy_country",
"feature_proxy_custom",
"feature_screenshot",
"feature_session",
"client_cli",
"client_mcp",
"client_sdk",
"client_other"
],
"type": "string"
},
"description": "Metrics to return. Omit for all of them."
},
"group_by": {
"enum": [
"day",
"project",
"engine",
"feature",
"key"
],
"type": "string",
"description": "How to group the rows. Default 'day'."
},
"project_id": {
"type": "string",
"description": "Restrict to one project id (must be a valid Spicrawl identifier)."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"keys": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"key_id"
],
"properties": {
"days": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"day"
],
"properties": {
"day": {
"type": "string"
},
"metrics": {
"$ref": "#/properties/groups/anyOf/0/items/properties/metrics"
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
]
},
"name": {
"type": "string"
},
"key_id": {
"type": "string"
},
"prefix": {
"type": "string",
"description": "Display prefix of the API key, never the secret."
},
"totals": {
"$ref": "#/properties/groups/anyOf/0/items/properties/metrics",
"description": "Metric name -> quantity. credits are micro-credits (1 credit = 1000000), engine_ms milliseconds, bytes_* bytes, the rest counts."
},
"revoked": {
"type": "boolean"
},
"project_id": {
"type": "string"
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "group_by=key only: one entry per API key, with its counters per UTC day."
},
"groups": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"required": [
"key"
],
"properties": {
"key": {
"type": "string",
"description": "The bucket: a YYYY-MM-DD day, a project id, an engine tier (fetch, js or browser) or a feature (extract, ai_extract, proxy_datacenter, proxy_residential, batch)."
},
"label": {
"type": "string",
"description": "Human label for an engine tier."
},
"metrics": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "number"
}
},
{
"type": "null"
}
],
"description": "Metric name -> quantity. credits are micro-credits (1 credit = 1000000), engine_ms milliseconds, bytes_* bytes, the rest counts."
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "The buckets, sorted by key. Empty (or missing for group_by=key) does not mean no usage: read totals."
},
"period": {
"type": "object",
"properties": {
"end": {
"type": "string",
"description": "End UTC day, EXCLUSIVE (YYYY-MM-DD)."
},
"days": {
"type": "number"
},
"start": {
"type": "string",
"description": "First UTC day, inclusive (YYYY-MM-DD)."
},
"bounds": {
"type": "string",
"description": "Always '[start, end)'."
}
},
"description": "The window, as a half-open range of UTC days.",
"additionalProperties": true
},
"totals": {
"$ref": "#/properties/groups/anyOf/0/items/properties/metrics",
"description": "Billed quantities for the whole window. Authoritative; use these, not the sum of groups."
},
"group_by": {
"type": "string",
"description": "The dimension used: day, project, engine, feature or key."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Caveats the numbers would otherwise hide."
},
"usage_as_of": {
"type": [
"string",
"null"
],
"description": "When the newest rollup row in the window was written; null when the window is empty."
},
"unattributed": {
"$ref": "#/properties/groups/anyOf/0/items/properties/metrics",
"description": "The part of each total the groups do not explain."
},
"stale_seconds": {
"type": [
"number",
"null"
],
"description": "Age of usage_as_of in seconds; null when the window is empty. A large value means the rollup is behind."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_usage_summary — Usage summary
A compact current-period summary of your org's usage (totals as of now, from the daily rollup). No parameters. Use for a quick 'how much have I used so far'; use spicrawl_usage for a windowed breakdown. Requires the `read` scope.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"plan": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"version": {
"type": "number"
},
"period_source": {
"type": "string",
"description": "'subscription' (billing period) or 'allowance_month'."
},
"subscription_status": {
"type": "string",
"description": "'none' when no subscription covers now (the free plan)."
}
},
"additionalProperties": true
},
"period": {
"type": "object",
"properties": {
"end": {
"type": "string",
"description": "End UTC day, EXCLUSIVE (YYYY-MM-DD)."
},
"days": {
"type": "number"
},
"start": {
"type": "string",
"description": "First UTC day, inclusive (YYYY-MM-DD)."
},
"bounds": {
"type": "string",
"description": "Always '[start, end)'."
}
},
"description": "The window, as a half-open range of UTC days.",
"additionalProperties": true
},
"credits": {
"anyOf": [
{
"type": "object",
"properties": {
"used_micro": {
"type": "number",
"description": "Credits spent so far, from the usage rollup; excludes credits held for in-flight work."
},
"overage_micro": {
"type": "number"
},
"included_micro": {
"type": "number"
},
"remaining_micro": {
"type": "number"
},
"used_basis_points": {
"type": [
"number",
"null"
],
"description": "Used / included in basis points (10000 = 100%); null when nothing is included."
},
"overage_micro_cents_per_credit": {
"type": "number"
}
},
"additionalProperties": true
},
{
"type": "null"
}
],
"description": "Metered usage against the plan's included credits. Micro-credits: 1 credit = 1000000."
},
"metrics": {
"anyOf": [
{
"type": "object",
"additionalProperties": {
"type": "number"
}
},
{
"type": "null"
}
],
"description": "Every billed metric for the period."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Caveats the numbers would otherwise hide."
},
"allowance": {
"type": "object",
"properties": {
"resets_at": {
"type": "string",
"description": "When the allowance is restored in full."
},
"unlimited": {
"type": "boolean"
},
"used_micro": {
"type": "number",
"description": "Spent plus credits held for in-flight work."
},
"limit_micro": {
"type": "number"
},
"limit_source": {
"type": "string",
"description": "'default' or 'override'."
},
"window_start": {
"type": "string"
},
"limit_credits": {
"type": "number"
},
"remaining_micro": {
"type": "number",
"description": "Credits left under the monthly limit: the number to show."
}
},
"description": "The monthly allowance the API enforces. Omitted when it cannot be read (warnings says so).",
"additionalProperties": true
},
"usage_as_of": {
"type": [
"string",
"null"
],
"description": "When the newest rollup row in the window was written; null when the window is empty."
},
"unattributed": {
"$ref": "#/properties/metrics",
"description": "Metric name -> quantity. credits are micro-credits (1 credit = 1000000), engine_ms milliseconds, bytes_* bytes, the rest counts."
},
"stale_seconds": {
"type": [
"number",
"null"
],
"description": "Age of usage_as_of in seconds; null when the window is empty. A large value means the rollup is behind."
},
"period_elapsed_days": {
"type": "number",
"description": "Whole days of the period elapsed; use it to pace consumption."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_usage_reconciliation — Usage reconciliation
Drift report for ONE day: re-derives usage from that day's request log and compares it with the billed daily rollup, so you can see whether the rollup missed or double-counted anything. Defaults to yesterday (UTC); today is still accumulating and would always show drift. Requires the `read` scope.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"day": {
"type": "string",
"pattern": "^\\d{4}-\\d{2}-\\d{2}$",
"description": "The UTC day to reconcile, YYYY-MM-DD. Default: yesterday."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"day": {
"type": "string",
"description": "The UTC day reconciled."
},
"drift": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"properties": {
"delta": {
"type": "number"
},
"action": {
"type": "string",
"description": "The verdict: missing_in_usage_daily, absent_from_request_log, undercounted or overcounted."
},
"metric": {
"type": "string"
},
"project_id": {
"type": "string"
},
"stored_qty": {
"type": "number",
"description": "The billed quantity."
},
"observed_qty": {
"type": "number",
"description": "The quantity re-derived from the request log."
}
},
"additionalProperties": true
}
},
{
"type": "null"
}
],
"description": "Disagreements; empty means no drift."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Caveats the numbers would otherwise hide."
},
"repairable": {
"type": "boolean",
"description": "Always false; nothing is repaired."
},
"interpretation": {
"type": "string",
"description": "What the drift can and cannot prove. Read it before acting on drift."
},
"request_log_rows": {
"type": "number",
"description": "Rows in the request log for the day; 0 means there was nothing to compare against."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_requests_list — List recent requests
Recent API calls in your key's project, newest first, each with project_id, status, engine, http_status, error_code/error_detail, attempts, URL, proxy used, latency spans (queue/engine/upstream/total ms), block detection and credits. Use it to find failing calls (only_errors=true) or to spot patterns across a target. all_projects=true lists every project in your organization instead (needs a key with the `read` scope; 403 ERR::AUTH::INSUFFICIENT_SCOPE otherwise). Records only exist within the retention window reported in page.retention_hours / page.retained_since; an empty page means nothing in that window. Paginate by passing page.next_before and page.next_before_id back as before and before_id while page.has_more is true, keeping all_projects the same. Not billing-grade: use spicrawl_usage for totals.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"limit": {
"type": "integer",
"maximum": 200,
"minimum": 1,
"description": "Rows per page, 1-200. Default 50."
},
"before": {
"type": "string",
"description": "Cursor: RFC 3339 timestamp, exactly as returned in page.next_before. Pass together with before_id."
},
"status": {
"enum": [
"success",
"failed",
"timeout",
"blocked",
"rejected",
"cancelled"
],
"type": "string",
"description": "Only requests with this outcome."
},
"before_id": {
"type": "string",
"description": "Cursor: request id, exactly as returned in page.next_before_id."
},
"only_errors": {
"type": "boolean",
"description": "Only requests whose status is anything other than 'success'."
},
"all_projects": {
"type": "boolean",
"description": "Every project in your organization, not just the key's own. Needs the `read` scope. Keep it the same across pages."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"data": {
"type": "array",
"items": {
"type": "object",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The request id (X-Request-Id)."
},
"url": {
"type": "string",
"description": "The target URL as requested."
},
"proxy": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"source": {
"type": "string",
"description": "pool, custom or direct."
},
"sticky": {
"type": "boolean"
},
"country": {
"type": "string",
"description": "Where the exit actually served from; compare with requested_country."
},
"provider": {
"type": "string"
},
"endpoints": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Every exit touched, in attempt order."
},
"endpoint_id": {
"type": "string"
},
"requested_tier": {
"type": "string"
},
"requested_country": {
"type": "string"
}
},
"description": "What proxy was asked for versus what served. Never an exit IP or credentials.",
"additionalProperties": true
},
"spans": {
"type": "object",
"properties": {
"queue_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms",
"description": "Wait for a slot; high means capacity shortage, not a slow page."
},
"total_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms"
},
"engine_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms"
},
"worker_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms"
},
"extract_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms"
},
"dispatch_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms"
},
"upstream_ms": {
"$ref": "#/properties/data/items/properties/spans/properties/admission_ms"
},
"admission_ms": {
"type": [
"number",
"null"
]
}
},
"description": "Latency in milliseconds per stage; null means not measured. Stages do not sum to total_ms.",
"additionalProperties": true
},
"engine": {
"type": "string",
"description": "The rendering tier that served it: fetch, js or browser. Absent when refused before a tier was chosen."
},
"status": {
"type": "string",
"description": "Terminal outcome: success, failed, timeout, blocked, rejected or cancelled. Only success is charged."
},
"blocked": {
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"signal": {
"type": "string"
},
"vendor": {
"type": "string"
}
},
"description": "Present only when a bot challenge was detected.",
"additionalProperties": true
},
"attempts": {
"type": "number",
"description": "Dispatch attempts including retries."
},
"bytes_in": {
"type": "number"
},
"features": {
"type": "object",
"description": "Features the request used; free-form.",
"additionalProperties": {}
},
"url_host": {
"type": "string"
},
"bytes_out": {
"type": "number"
},
"created_at": {
"type": "string",
"description": "When the request arrived, RFC 3339 UTC."
},
"error_code": {
"type": "string",
"description": "The problem code the caller got, e.g. ERR::UPSTREAM::CHALLENGE. Absent on success."
},
"project_id": {
"type": "string"
},
"http_status": {
"type": "number",
"description": "The target's HTTP status; absent when no response was received."
},
"proxy_bytes": {
"type": "number"
},
"error_detail": {
"type": "string"
},
"credits_micro": {
"type": "number",
"description": "Credits charged in micro-credits (1 credit = 1000000); 0 unless success."
}
},
"additionalProperties": true
},
"description": "Request records, newest first. Can be shorter than limit while page.has_more is true."
},
"page": {
"type": "object",
"properties": {
"has_more": {
"type": "boolean",
"description": "True when more records may exist; continue with next_before and next_before_id."
},
"next_before": {
"type": "string",
"description": "Send back as before. Present only when has_more."
},
"next_before_id": {
"type": "string",
"description": "Send back as before_id. Present only when has_more."
},
"retained_since": {
"type": "string",
"description": "The oldest instant still readable."
},
"retention_hours": {
"type": "number",
"description": "How long records are kept; an empty data means nothing in this window."
}
},
"description": "Paging cursor and the retention window.",
"additionalProperties": true
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_request_get — Get one request
The full log record of one past API call by its request id. Every response carries its id in the X-Request-Id header (and error bodies carry it too), so this is the tool for debugging a failed or slow scrape: it shows status, error_code/error_detail, attempts, the engine and proxy (tier, country, provider, sticky) actually used, whether and how the target blocked it (vendor/signal/rule), per-stage latency spans and credits charged. Returns not_found both for unknown ids and for ones older than your retention window, and for another project's request unless your key has the `read` scope.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"minLength": 1,
"description": "The request id (a ULID, from X-Request-Id or a spicrawl_requests_list row's `id`)."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"description": "The request id (X-Request-Id)."
},
"url": {
"type": "string",
"description": "The target URL as requested."
},
"proxy": {
"type": "object",
"properties": {
"reason": {
"type": "string"
},
"source": {
"type": "string",
"description": "pool, custom or direct."
},
"sticky": {
"type": "boolean"
},
"country": {
"type": "string",
"description": "Where the exit actually served from; compare with requested_country."
},
"provider": {
"type": "string"
},
"endpoints": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"description": "Every exit touched, in attempt order."
},
"endpoint_id": {
"type": "string"
},
"requested_tier": {
"type": "string"
},
"requested_country": {
"type": "string"
}
},
"description": "What proxy was asked for versus what served. Never an exit IP or credentials.",
"additionalProperties": true
},
"spans": {
"type": "object",
"properties": {
"queue_ms": {
"$ref": "#/properties/spans/properties/admission_ms",
"description": "Wait for a slot; high means capacity shortage, not a slow page."
},
"total_ms": {
"$ref": "#/properties/spans/properties/admission_ms"
},
"engine_ms": {
"$ref": "#/properties/spans/properties/admission_ms"
},
"worker_ms": {
"$ref": "#/properties/spans/properties/admission_ms"
},
"extract_ms": {
"$ref": "#/properties/spans/properties/admission_ms"
},
"dispatch_ms": {
"$ref": "#/properties/spans/properties/admission_ms"
},
"upstream_ms": {
"$ref": "#/properties/spans/properties/admission_ms"
},
"admission_ms": {
"type": [
"number",
"null"
]
}
},
"description": "Latency in milliseconds per stage; null means not measured. Stages do not sum to total_ms.",
"additionalProperties": true
},
"engine": {
"type": "string",
"description": "The rendering tier that served it: fetch, js or browser. Absent when refused before a tier was chosen."
},
"status": {
"type": "string",
"description": "Terminal outcome: success, failed, timeout, blocked, rejected or cancelled. Only success is charged."
},
"blocked": {
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"signal": {
"type": "string"
},
"vendor": {
"type": "string"
}
},
"description": "Present only when a bot challenge was detected.",
"additionalProperties": true
},
"attempts": {
"type": "number",
"description": "Dispatch attempts including retries."
},
"bytes_in": {
"type": "number"
},
"features": {
"type": "object",
"description": "Features the request used; free-form.",
"additionalProperties": {}
},
"url_host": {
"type": "string"
},
"bytes_out": {
"type": "number"
},
"created_at": {
"type": "string",
"description": "When the request arrived, RFC 3339 UTC."
},
"error_code": {
"type": "string",
"description": "The problem code the caller got, e.g. ERR::UPSTREAM::CHALLENGE. Absent on success."
},
"project_id": {
"type": "string"
},
"http_status": {
"type": "number",
"description": "The target's HTTP status; absent when no response was received."
},
"proxy_bytes": {
"type": "number"
},
"error_detail": {
"type": "string"
},
"credits_micro": {
"type": "number",
"description": "Credits charged in micro-credits (1 credit = 1000000); 0 unless success."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_browser_connect_url — Browser (CDP) connect URL
Mints a single-use connect URL for Spicrawl's remote browser (GET /v1/browser, a DevTools Protocol (CDP) WebSocket) so YOUR code can drive it with any CDP client, using the URL as the browser WebSocket endpoint. It calls POST /v1/browser/token and returns a ws:// or wss:// URL carrying a short-lived token, never the API key: the URL works ONCE, within 60 seconds, and only with the options given here (editing them in the URL is refused), so call this right before connecting and again for every new session. Prefer sending the key as an Authorization header when the client supports headers on the WebSocket upgrade: then connect to the plain /v1/browser URL with 'Authorization: Bearer <key>' and no token is needed. The key must carry the `browser` scope. Parameter errors are reported when minting. The result's `session_id` names the session once connected: when a page needs a person (a login, a one-time code, a captcha), pass it to spicrawl_browser_live_view for a link they can open, and to spicrawl_browser_control to see when they hand control back.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"proxy": {
"type": "string",
"description": "Your own proxy, as http://user:pass@host:port. Replaces our pool, so proxy_country, proxy_region and sticky_key cannot be combined with it. Kept out of the returned URL."
},
"engine": {
"enum": [
"browser",
"js"
],
"type": "string",
"description": "Rendering tier of the remote browser: `browser` (full browser, full protocol; the default) or `js` (lighter JavaScript rendering with a smaller protocol surface). A tier your plan does not include is refused."
},
"sticky_key": {
"type": "string",
"pattern": "^[A-Za-z0-9-]{2,64}$",
"description": "Keep one exit IP for the session under this key (2-64 letters, digits, hyphens). Omit to rotate (the default)."
},
"session_ttl": {
"type": "integer",
"maximum": 900,
"minimum": 60,
"description": "Session lifetime in seconds, 60-900. Default 180."
},
"proxy_region": {
"type": "string",
"description": "Broader exit region/pool name; 'global' means no constraint. Mutually exclusive with proxy_country."
},
"proxy_country": {
"type": "string",
"pattern": "^[a-z]{2}$",
"description": "Exit country, ISO-3166 alpha-2 lowercase (e.g. 'de'). Mutually exclusive with proxy_region."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"url",
"single_use"
],
"properties": {
"url": {
"type": "string",
"description": "ws:// or wss:// connect URL carrying a single-use token (never the API key); use it as the CDP browser WebSocket endpoint."
},
"notes": {
"type": "array",
"items": {
"type": "string"
},
"description": "Usage notes for the connect URL."
},
"expires_at": {
"type": "string",
"description": "When the token expires, RFC 3339 UTC (60 s after minting)."
},
"session_id": {
"type": "string",
"description": "Names the session once connected; for spicrawl_browser_live_view and spicrawl_browser_control."
},
"single_use": {
"type": "boolean",
"description": "Always true: the URL works for one connection."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_browser_live_view — Live view link for a remote browser
Gets a link a person can open to watch the remote browser your CDP connection is driving, and take control of it: the same tabs, cookies and page. Use it when a page needs a human: a login, a one-time code, a captcha. Send them `live_view_url`; they press "Take control", do the step, and give control back. While they have it, your connection's input and navigation commands fail with error -32001 (reading the page still works); poll spicrawl_browser_control (action `status`) until `controller` is `agent`, then carry on. The link works once and must be opened within 60 seconds; ask again for a new one. The session must still be connected. Watching costs nothing beyond the session itself.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"session_id": {
"type": "string",
"pattern": "^bs[0-9a-f]{24}$",
"description": "The remote browser session, as `session_id` from spicrawl_browser_connect_url. It exists while that connection is open."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id",
"live_view_url"
],
"properties": {
"live_url": {
"type": "string",
"description": "The bare live-view WebSocket, for building your own viewer."
},
"expires_in": {
"type": "integer",
"description": "Seconds the link stays valid if not opened (60)."
},
"session_id": {
"type": "string",
"description": "The remote browser session."
},
"single_use": {
"type": "boolean",
"description": "Always true."
},
"live_view_url": {
"type": "string",
"description": "A page a person opens in their browser to watch and take control. Single use, open within 60 s."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": true,
"idempotentHint": false,
"destructiveHint": false
}spicrawl_browser_control — Who controls a remote browser
Reads or changes who drives a connected remote browser: `agent` (your CDP connection) or `human` (a person in its live view, see spicrawl_browser_live_view). `status` reads it: poll it after sending a live-view link, and continue once `controller` is `agent` again. `takeover` hands control to the person before they ask (your input and navigation then fail with error -32001); `release` takes it back. The person can also take and give back control from the live view themselves.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id"
],
"properties": {
"action": {
"enum": [
"status",
"takeover",
"release"
],
"type": "string",
"description": "`status` (default) reads; `takeover` gives control to the person; `release` gives it back to the agent."
},
"session_id": {
"type": "string",
"pattern": "^bs[0-9a-f]{24}$",
"description": "The remote browser session, as `session_id` from spicrawl_browser_connect_url. It exists while that connection is open."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"session_id",
"controller"
],
"properties": {
"status": {
"type": "string",
"description": "`running` while the connection is open."
},
"controller": {
"type": "string",
"description": "Who drives the browser: `agent` (your CDP connection) or `human` (a person in the live view)."
},
"expires_at": {
"type": "string",
"description": "When the session ends at the latest, RFC 3339 UTC."
},
"session_id": {
"type": "string",
"description": "The remote browser session."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_docs_search — Search the Spicrawl docs
Full-text search over the Spicrawl documentation (guides, API reference, errors, limits). Use it to look up a parameter name, value or combination for a spicrawl_* tool, or to explain an error a spicrawl_* tool returned: search the error code itself (e.g. `ERR::UPSTREAM::CHALLENGE`) and the result also carries a direct link to that code's entry on the errors page. Returns the best-matching pages, each with its title, the matching sections (heading, a short snippet, URL) and md_url; then call spicrawl_docs_read with a page's md_url or url to read it in full.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query"
],
"properties": {
"limit": {
"type": "integer",
"maximum": 20,
"minimum": 1,
"description": "Maximum pages to return, 1-20. Default 8."
},
"query": {
"type": "string",
"maxLength": 200,
"minLength": 1,
"description": "What to look for: a feature, parameter, error code or question, e.g. 'wait_for selector' or 'ERR::AUTH::INSUFFICIENT_SCOPE'."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"query",
"results"
],
"properties": {
"hint": {
"type": "string",
"description": "What to try when there are no results."
},
"query": {
"type": "string",
"description": "The search text, as sent."
},
"results": {
"type": "array",
"items": {
"type": "object",
"required": [
"title",
"url",
"md_url",
"matches"
],
"properties": {
"url": {
"type": "string",
"description": "The page on the docs site."
},
"title": {
"type": "string"
},
"md_url": {
"type": "string",
"description": "The page as Markdown; pass it to spicrawl_docs_read."
},
"matches": {
"type": "array",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"description": "Link to the section, with its #anchor."
},
"heading": {
"type": "string",
"description": "The section the match is in."
},
"snippet": {
"type": "string",
"description": "A short plain-text excerpt around the match."
}
},
"additionalProperties": true
}
},
"breadcrumbs": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": true
},
"description": "Matching pages, most relevant first. Empty when nothing matched."
},
"error_code": {
"type": "object",
"required": [
"code",
"url",
"md_url"
],
"properties": {
"url": {
"type": "string",
"description": "The code's entry on the errors page."
},
"code": {
"type": "string"
},
"note": {
"type": "string"
},
"md_url": {
"type": "string",
"description": "The errors page as Markdown; read it with spicrawl_docs_read."
}
},
"description": "Present when the query is an error code (ERR::AREA::NAME).",
"additionalProperties": true
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_docs_read — Read a Spicrawl docs page
Fetches one Spicrawl documentation page as Markdown. `path` may be a page path (`guides/anti-bot`), a docs URL from spicrawl_docs_search (url or md_url), or either with a `#anchor` (the whole page is returned; the anchor names the section to look at). Only pages on the Spicrawl docs (https://docs.spicrawl.com/docs) can be read. Pages over 60000 characters are truncated, and the text says so. Don't know the path? Use spicrawl_docs_search, or spicrawl_docs_index (llms.txt) for the list of every page.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"path"
],
"properties": {
"path": {
"type": "string",
"maxLength": 500,
"minLength": 1,
"description": "Page path (`guides/anti-bot`, `errors#AUTH_INVALID_KEY`) or a full docs URL, as returned by spicrawl_docs_search."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"url",
"truncated",
"content"
],
"properties": {
"url": {
"type": "string",
"description": "Where the document lives on the docs site."
},
"title": {
"type": "string",
"description": "The page's first heading, when it has one."
},
"md_url": {
"type": "string",
"description": "The Markdown source it was read from."
},
"content": {
"type": "string",
"description": "The document as Markdown."
},
"section": {
"type": "string",
"description": "The #anchor that was asked for, without the #. The whole page is returned."
},
"truncated": {
"type": "boolean",
"description": "True when the content was cut at the size cap; the content says so at its end."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_docs_index — List the Spicrawl docs
The docs' llms.txt: every Spicrawl documentation page with its title, a one-line description and its Markdown URL. Use it to find the right page when a search does not, or to get an overview of what is documented; read a page with spicrawl_docs_read. No parameters.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"url",
"truncated",
"content"
],
"properties": {
"url": {
"type": "string",
"description": "Where the document lives on the docs site."
},
"content": {
"type": "string",
"description": "The index (llms.txt): one line per page with its title, description and Markdown URL."
},
"truncated": {
"type": "boolean",
"description": "True when the content was cut at the size cap; the content says so at its end."
}
},
"additionalProperties": true
}{
"readOnlyHint": true,
"openWorldHint": true,
"idempotentHint": true,
"destructiveHint": false
}spicrawl_feedback — Report a Spicrawl problem
Report to Spicrawl a request that failed in a way you could not fix, or that returned wrong or missing content. Call it once per problem per task, with the request_id of the failed call (from the error text, or the X-Request-Id header) and intent: what you were trying to get. Rate it down (the default) for a problem, up if the result was right. The report is free. A thumbs-down on a charged request refunds its credits, up to a daily cap per account. Never include secrets, API keys or cookies, and keep page content out: a short description is enough.
{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"required": [
"request_id"
],
"properties": {
"kind": {
"enum": [
"broken",
"wrong_result",
"missing",
"confusing",
"other"
],
"type": "string",
"description": "broken: an error or crash; wrong_result: the content was wrong; missing: content was absent; confusing: unclear output; other."
},
"impact": {
"enum": [
"blocked",
"worked_around",
"friction"
],
"type": "string",
"description": "blocked: you could not finish the task; worked_around: you found another way; friction: it cost time but did not block."
},
"intent": {
"type": "string",
"maxLength": 300,
"description": "What you were trying to get, in a few words, e.g. 'the prices on the category page'. No secrets."
},
"rating": {
"enum": [
"up",
"down"
],
"type": "string",
"default": "down",
"description": "down for a problem (the default); up when the result was right."
},
"comment": {
"type": "string",
"maxLength": 4000,
"description": "What you saw and what you expected, briefly. No secrets; no page content beyond a short description."
},
"request_id": {
"type": "string",
"minLength": 1,
"description": "The request id of the call being reported: from the error text, or the X-Request-Id header."
}
},
"additionalProperties": false
}{
"type": "object",
"$schema": "http://json-schema.org/draft-07/schema#",
"properties": {
"feedback_id": {
"type": "string",
"description": "The id of the recorded feedback."
},
"credits_refunded": {
"type": "number",
"description": "Credits refunded for this report."
},
"already_submitted": {
"type": "boolean",
"description": "True when this request already had feedback; nothing new was recorded."
},
"refund_cap_reached": {
"type": "boolean",
"description": "True when the account's daily refund cap is used up."
}
},
"additionalProperties": true
}{
"readOnlyHint": false,
"openWorldHint": false,
"idempotentHint": true,
"destructiveHint": false
}Prompts
Not advertised
Resources
Not advertised
90-day uptime
A lightweight connection check about every six hours, sampled on hosts with many listings. It shows the server answered, not that its tools work.
- 2026-11-02: 3 of 3 checks answered
- 2026-11-03: 4 of 4 checks answered
- 2026-11-04: 4 of 4 checks answered
- 2026-11-05: 4 of 4 checks answered
- 2026-11-06: 4 of 4 checks answered
- 2026-11-07: 2 of 2 checks answered
- 2026-11-09: 1 of 1 checks answered
- 2026-11-10: 2 of 2 checks answered
- 2026-11-11: 1 of 1 checks answered
- 2026-11-12: 1 of 1 checks answered
- 2026-11-14: 1 of 1 checks answered
- 2026-11-15: 2 of 2 checks answered
- 2026-11-16: 4 of 4 checks answered
- 2026-11-17: 5 of 5 checks answered
- 2026-11-18: 5 of 5 checks answered
- 2026-11-19: 4 of 4 checks answered
- 2026-11-20: 3 of 3 checks answered
- 2026-11-21: 4 of 4 checks answered
- 2026-11-22: 4 of 4 checks answered
- 2026-11-23: 3 of 3 checks answered
- 2026-11-24: 4 of 4 checks answered
- 2026-11-25: 4 of 4 checks answered
- 2026-11-26: 4 of 4 checks answered
- 2026-11-27: 4 of 4 checks answered
- 2026-11-28: 3 of 3 checks answered
- 2026-11-29: 4 of 4 checks answered
- 2026-11-30: 4 of 4 checks answered
- 2026-12-01: 4 of 4 checks answered
- 2026-12-02: 4 of 4 checks answered
- 2026-12-03: 1 of 1 checks answered
30-day availability
Aggregated from read-only remote checks; this is not a tool-execution or security guarantee.
- Successful checks
- 3 of 3 (100%)
- Average latency
- 2155 ms
- 95th percentile latency
- 2217 ms
Maintenance history
Public check and source-refresh events. Editorial and ownership records remain private.
- · probe · passed · 2135 ms · metadata changed · 29 tool(s)
- · probe · passed · 2103 ms · metadata changed · 27 tool(s)
- · probe · passed · 2226 ms · metadata changed · 27 tool(s)
- · repository · passed · updated
- · repository · passed · metadata changed · unchanged
- · repository · passed · metadata changed · updated
- · registry · passed · metadata changed · Source metadata updated
- · backfill · recorded · Pre-expansion baseline; unobserved rich metadata remains unknown
Connect from your client
Each snippet registers the same endpoint; pick the client you use.
Claude Code
claude mcp add --transport http spicrawl-mcp https://mcp.spicrawl.com/mcpCodex
codex mcp add spicrawl-mcp --url https://mcp.spicrawl.com/mcpCursor
{
"mcpServers": {
"spicrawl-mcp": {
"url": "https://mcp.spicrawl.com/mcp"
}
}
}Cline
{
"mcpServers": {
"spicrawl-mcp": {
"type": "streamableHttp",
"url": "https://mcp.spicrawl.com/mcp",
"disabled": false
}
}
}VS Code
{
"servers": {
"spicrawl-mcp": {
"type": "http",
"url": "https://mcp.spicrawl.com/mcp"
}
}
}Gemini CLI
gemini mcp add --transport http spicrawl-mcp https://mcp.spicrawl.com/mcpClaude Desktop
https://mcp.spicrawl.com/mcpWindsurf
{
"mcpServers": {
"spicrawl-mcp": {
"serverUrl": "https://mcp.spicrawl.com/mcp"
}
}
}Let your agent find its tools
Find servers like Spicrawl MCP from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.
Other developer tools servers
Do you run Spicrawl MCP?
Prove ownership with a DNS record, a well-known file, or your Official MCP Registry entry, and your edits publish immediately. Proofs are re-checked weekly; admins can still hide or remove a listing.