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 pathPurpose
GET /v1/job-blueprintsDiscover 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/searchCompact store search (q), or resolve a target URL to its store's blueprints, without fetching the source. page_size up to 50
POST /v1/requestsAsk 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/sitesWhat a site supports (search, product, catalogue) and the most each costs, by site and country. Free
POST /v1/jobsSubmit one URL as one Job. Requires Idempotency-Key
GET /v1/jobsYour 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}/resultsA page of records. page_size up to 100; follow next_cursor. format raw (default), structured or both
GET /v1/accountCredits available and held
GET /v1/usageJobs, 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

FieldRequiredMeaning
blueprint_idYesAn ID returned by discovery; never construct one
urlYesThe public URL to extract, up to 2,048 characters, matching the blueprint's input_schema
parametersNoBlueprint-specific limits such as max_pages or max_products, within the blueprint's input_schema. Default is one page
blueprint_versionNoAlways "1"

Job statuses

StatusMeaning
PENDING / INITIATEDAccepted or running. Poll after poll_after_seconds
COMPLETEDFinished; results are available
PARTIAL_COMPLETEFinished with some pages missing; available results are returned and only fetched pages are charged
FAILEDFinished without results, including a Job no worker finished in time (DISPATCH_TIMEOUT, EXECUTION_TIMEOUT). Not charged
UNAVAILABLEThe blueprint is not accepting Jobs right now. Not charged

Errors

CodeHTTPWhat to do
unauthorized401Check the key; it may be missing, expired or revoked
insufficient_credits402The balance can't cover the credit hold. Ask for fewer pages
price_exceeds_max402/v1/requests: the quote is more than max_credits. Nothing ran; raise the budget or check GET /v1/sites
not_found404No such Job for this account
idempotency_conflict409The key was used for a different request. Use a new key for a new Job
request_key_conflict409/v1/requests: the request_key belongs to a different request
results_expired410Results were kept for seven days. Run a new Job
invalid_input / idempotency_key_required422Fix the request against the blueprint's input_schema
invalid_target / invalid_cursor / format_unsupported422Shape 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_unavailable422/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_type415Send Content-Type: application/json
rate_limited / job_limit429Wait for Retry-After, or for active Jobs to finish
internal_error500Saved work is kept. Retry with the same Idempotency-Key
wallet_busy / catalogue_unavailable / scraping_unavailable / endpoint_unavailable503Temporary. 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.

Need help? Contact support.