---
title: "API reference"
url: https://www.datawebot.com/docs/api/reference
description: "Reference for the datawebot REST API: authentication, Jobs and request endpoints, the Job request body, statuses, errors and limits."
author: datawebot team
---

Find documentation[Documentation home](https://www.datawebot.com/docs)

Concepts

[Products, variants and fields](https://www.datawebot.com/docs/data)

Developers

[Connect your agent](https://www.datawebot.com/docs/agents) · [API quickstart](https://www.datawebot.com/docs/api/quickstart) · [API reference](https://www.datawebot.com/docs/api/reference) · [Run datawebot on a schedule](https://www.datawebot.com/docs/schedule) · [Where datawebot is listed](https://www.datawebot.com/docs/directory)

Account

[Credits and billing](https://www.datawebot.com/docs/billing) · [Troubleshooting](https://www.datawebot.com/docs/troubleshooting)

Machine-readable

[OpenAPI specification ↗](https://www.datawebot.com/openapi.json) · [Documentation index ↗](https://www.datawebot.com/llms.txt)

Developers

# API reference

Reference for the datawebot REST API: authentication, Jobs and request endpoints, the Job request body, statuses, errors and limits.

## Authentication and base URL

Base URL: https://api.datawebot.com. Send a dwb_ API key as Authorization: Bearer <key> on every request. Every response carries an X-Request-Id header. The machine-readable contract is /openapi.json.

Agents on the MCP server at https://mcp.datawebot.com/mcp ask by intent (search_products, get_product) instead; find_endpoints there returns the endpoint ids these Jobs take. Scripts can ask by intent too, with POST /v1/requests below.

## Endpoints

| Method and path | Purpose |
| --- | --- |
| GET /v1/job-blueprints | Discover blueprints. q searches store, domain or operation; site filters by hostname; blueprint_id alone returns one contract. page_size up to 100 (default 30); follow next_cursor with the same filters |
| GET /v1/job-blueprints/search | Compact store search (q), or resolve a target URL to its store's blueprints, without fetching the source. page_size up to 50 |
| POST /v1/requests | Ask by intent: capability search (query, optional site and country), product (url or product_id) or endpoint (one blueprint_id and url, up to max_pages). Answers in common product fields, or status working |
| GET /v1/requests/{id} | Finish a request that answered working, or read its next page with cursor. Free |
| GET /v1/sites | What a site supports (search, product, catalogue) and the most each costs, by site and country. Free |
| POST /v1/jobs | Submit one URL as one Job. Requires Idempotency-Key |
| GET /v1/jobs | Your Jobs, newest first. page_size up to 100 (default 25) |
| GET /v1/jobs/{id} | Status, original request, credits and poll_after_seconds |
| GET /v1/jobs/{id}/results | A page of records. page_size up to 100; follow next_cursor. format raw (default), structured or both |
| GET /v1/account | Credits available and held |
| GET /v1/usage | Jobs, results and credits charged by blueprint, this UTC month or from=YYYY-MM-DD&to=YYYY-MM-DD (up to 366 days); group=day adds daily rows |

## Job request body

| Field | Required | Meaning |
| --- | --- | --- |
| blueprint_id | Yes | An ID returned by discovery; never construct one |
| url | Yes | The public URL to extract, up to 2,048 characters, matching the blueprint's input_schema |
| parameters | No | Blueprint-specific limits such as max_pages or max_products, within the blueprint's input_schema. Default is one page |
| blueprint_version | No | Always "1" |

## Job statuses

| Status | Meaning |
| --- | --- |
| PENDING / INITIATED | Accepted or running. Poll after poll_after_seconds |
| COMPLETED | Finished; results are available |
| PARTIAL_COMPLETE | Finished with some pages missing; available results are returned and only fetched pages are charged |
| FAILED | Finished without results, including a Job no worker finished in time (DISPATCH_TIMEOUT, EXECUTION_TIMEOUT). Not charged |
| UNAVAILABLE | The blueprint is not accepting Jobs right now. Not charged |

## Errors

| Code | HTTP | What to do |
| --- | --- | --- |
| unauthorized | 401 | Check the key; it may be missing, expired or revoked |
| insufficient_credits | 402 | The balance can't cover the credit hold. Ask for fewer pages |
| price_exceeds_max | 402 | /v1/requests: the quote is more than max_credits. Nothing ran; raise the budget or check GET /v1/sites |
| not_found | 404 | No such Job for this account |
| idempotency_conflict | 409 | The key was used for a different request. Use a new key for a new Job |
| request_key_conflict | 409 | /v1/requests: the request_key belongs to a different request |
| results_expired | 410 | Results were kept for seven days. Run a new Job |
| invalid_input / idempotency_key_required | 422 | Fix the request against the blueprint's input_schema |
| invalid_target / invalid_cursor / format_unsupported | 422 | Shape the url like the blueprint's example; pass next_cursor back unchanged with the same page_size; use format raw for that Job |
| unknown_site / unknown_endpoint / site_unsupported / too_many_pages / raw_unavailable | 422 | /v1/requests: give the shop's domain; use an id from GET /v1/job-blueprints; search that shop instead; lower max_pages; use format structured |
| invalid_content_type | 415 | Send Content-Type: application/json |
| rate_limited / job_limit | 429 | Wait for Retry-After, or for active Jobs to finish |
| internal_error | 500 | Saved work is kept. Retry with the same Idempotency-Key |
| wallet_busy / catalogue_unavailable / scraping_unavailable / endpoint_unavailable | 503 | Temporary. Retry after Retry-After with the same Idempotency-Key |

## Limits

- 20 Job submissions a minute and 20 active Jobs per account; 30 POST /v1/requests a minute.
- A Job that no worker starts fails after 10 to 30 minutes, and one that started but never reports after 30 minutes to 2 hours, depending on the endpoint's expected time. Both are free.
- Request bodies up to 8 KB, sent as application/json.
- Page limits come from each blueprint's input_schema and price (max_units).
- Results are kept for seven days after a Job finishes.

[← API quickstart](https://www.datawebot.com/docs/api/quickstart) · [Run datawebot on a schedule →](https://www.datawebot.com/docs/schedule)

Need help? [Contact support](https://www.datawebot.com/support).
