Oassis Web Tasks API
Asynchronous batch extraction, crawling and research: /tasks/v1. Separate start, status and cancellation operations.
Asynchronous batch extraction, crawling and research: /tasks/v1. Separate start, status and cancellation operations.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/oassis-dev:oassis-dev-web-tasks-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Oassis Dev Web Tasks API
version: 1.0.2
x-refined-note:
- x-logo differs across the merged source definitions and was not carried
- x-mcp differs across the merged source definitions and was not carried
description: 'Operations tagged Web Tasks across 2 of this provider''s published API definitions: api.oassis.dev-openapi.json, oassis-dev-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.oassis.dev
- url: https://oassis.dev
tags:
- name: Web Tasks
description: 'Asynchronous batch extraction, crawling and research: /tasks/v1. Separate start, status and cancellation operations.'
paths:
/tasks/v1/research:
post:
tags:
- Web Tasks
x-task-type: research
summary: Start a research task
description: 'Answers a question by reading public pages, with sources, progress and cost. With an API key, HTTP reserves credits and settles actual cost. Without a key, x402 pays a fixed execution budget in limits.max_cost_usd. MCP start requires an API key and reserves credits, settling actual cost. With an API key, use the owning key for free status/cancel and send Idempotency-Key (required, maximum 100 characters). The x402 response returns access_token: send it as Task-Token for status/cancel. For x402 retries send the same Task-Token and Idempotency-Key (maximum 200 characters). A 202 confirms acceptance, not a completed result.'
operationId: web_task_start
security:
- apiKey: []
- {}
x-x402:
protocol: x402
pricing: fixed execution budget
defaultPrice: $0.10
price: limits.max_cost_usd (default $0.10)
parameters:
- name: Idempotency-Key
in: header
required: false
schema:
type: string
maxLength: 200
description: Required for API-key starts (1-100 characters). Optional for x402 starts (1-200 characters); reuse it with the same Task-Token and body to retry. Conflicting payloads return 409.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
task:
type: string
minLength: 10
maxLength: 2000
description: What to find out, in plain words. Be specific about what to compare.
mode:
type: string
enum:
- research
default: research
description: 'Only research is available: read public pages and answer.'
urls:
type: array
items:
type: string
format: uri
maxLength: 500
maxItems: 5
default: []
description: Pages to read first, up to 5. Public http or https urls only.
limits:
type: object
properties:
max_cost_usd:
type: number
minimum: 0.03
maximum: 1
default: 0.1
description: Most the task may cost, in USD. Execution budget. Reserved against account credits over MCP/HTTP with an API key; charged as a fixed package over HTTP/x402. No automatic on-chain refund.
max_duration_seconds:
type: integer
minimum: 30
maximum: 900
default: 180
description: Longest the task may run, in seconds.
max_steps:
type: integer
minimum: 1
maximum: 20
default: 10
description: Most decisions the planner may take.
additionalProperties: false
default: {}
description: Bounds on cost, time and steps.
required:
- task
additionalProperties: false
responses:
'202':
description: Accepted, not completed. Location points at the task. Body includes task_id, status and location; x402 also returns access_token. Poll status until a terminal outcome.
content:
application/json:
schema:
type: object
required:
- task_id
- status
- location
properties:
task_id:
type: string
description: 'Identifier of the task: GET or POST /cancel under /tasks/v1/research/{id}.'
status:
type: string
description: queued for a new task; the stored status when an earlier start is returned again.
location:
type: string
description: URL of the task.
access_token:
type: string
description: x402 starts only. Send as Task-Token for status and cancel. Not an account API key.
replayed:
type: boolean
description: 'x402 starts only: true when an earlier start with the same Task-Token and Idempotency-Key is returned.'
billing:
type: object
properties:
channel:
type: string
enum:
- credits
- x402
price:
type: number
description: 'x402 starts: the fixed execution budget in USD.'
pricing:
type: string
'400':
description: The request does not match the contract. Unknown fields and unsupported modes are refused.
'401':
description: Missing or invalid owner API key or task-scoped access token.
'402':
description: Insufficient account credits, or x402 payment required without an API key.
'409':
description: The Idempotency-Key was used with a different request.
x-mcp-tool: web_task_start
servers:
- url: https://api.oassis.dev
/tasks/v1/research/{id}:
get:
tags:
- Web Tasks
x-task-type: research
summary: Read a task
description: 'Status, progress, operations, sources with the evidence used, limitations, the result when there is one, and billing: reserved, spent, released and settlement.'
operationId: web_task_status
security:
- apiKey: []
- taskToken: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: The task.
'401':
description: Missing or invalid owner API key or task-scoped access token.
'404':
description: Task not found or task token does not match.
x-mcp-tool: web_task_status
servers:
- url: https://api.oassis.dev
/tasks/v1/research/{id}/cancel:
post:
tags:
- Web Tasks
x-task-type: research
summary: Cancel a task
description: 'Stops new operations and returns the unused budget. An operation already running cannot always be stopped remotely: it is charged as it completes. Cancelling a finished task changes nothing.'
operationId: web_task_cancel
security:
- apiKey: []
- taskToken: []
parameters:
- name: id
in: path
required: true
schema:
type: string
responses:
'200':
description: 'The task had already finished: nothing changed. The body is the task.'
'202':
description: Cancellation requested. The body is the task as it stands.
'401':
description: Missing or invalid owner API key or task-scoped access token.
'404':
description: Task not found or task token does not match.
x-mcp-tool: web_task_cancel
servers:
- url: https://api.oassis.dev
/tasks/v1/scrape/batch:
post:
summary: Read a list of urls
tags:
- Web Tasks
description: 'A batch of scrapes: queues one scrape per url you give it. Same fields as /scrape but with `urls` (2–50) and no `url`. Returns a `jobId`. It discovers nothing — for that, use /crawl. Returns a jobId for asynchronous work. A successful start is acceptance, not completion; poll the job status. Account credits can be refunded for unused work; x402 has no automatic on-chain refund.'
operationId: web_scrape_batch
security:
- apiKey: []
- {}
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
formats:
type: array
items:
type: string
enum:
- html
- markdown
- links
- elements
- json
- accessibility
- controls
default:
- markdown
description: Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`.
selectors:
type: array
items:
type: string
minLength: 1
minItems: 1
description: CSS selectors for the `elements` format.
json:
type: object
properties:
prompt:
type: string
minLength: 1
schema:
type: object
additionalProperties: {}
additionalProperties: false
description: 'For the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.'
controls:
type: object
properties:
visibleOnly:
type: boolean
limit:
type: integer
minimum: 1
maximum: 1000
additionalProperties: false
description: 'Options for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.'
links:
type: object
properties:
visibleOnly:
type: boolean
excludeExternal:
type: boolean
additionalProperties: false
description: 'Options for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.'
wait:
type: object
properties:
until:
type: string
enum:
- load
- domcontentloaded
- networkidle0
- networkidle2
selector:
type: string
minLength: 1
timeout:
type: integer
minimum: 100
maximum: 60000
additionalProperties: false
description: 'When to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.'
request:
type: object
properties:
headers:
type: object
additionalProperties:
type: string
cookies:
type: array
items:
type: object
properties:
name:
type: string
minLength: 1
value:
type: string
domain:
type: string
path:
type: string
secure:
type: boolean
httpOnly:
type: boolean
required:
- name
- value
additionalProperties: false
userAgent:
type: string
minLength: 1
auth:
type: object
properties:
username:
type: string
password:
type: string
required:
- username
- password
additionalProperties: false
additionalProperties: false
description: 'How to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.'
block:
type: object
properties:
resourceTypes:
type: array
items:
type: string
minLength: 1
urlPatterns:
type: array
items:
type: string
minLength: 1
additionalProperties: false
description: 'What not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.'
maxAge:
type: integer
minimum: 0
maximum: 604800000
description: Accept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
binaryAs:
type: string
enum:
- base64
default: base64
description: How a screenshot or a PDF comes back. `base64` is the only value today.
viewport:
type: object
properties:
width:
type: integer
minimum: 1
maximum: 4096
height:
type: integer
minimum: 1
maximum: 4096
deviceScaleFactor:
type: number
minimum: 0.1
maximum: 3
required:
- width
- height
additionalProperties: false
description: 'The window to render in: `width`, `height`, `deviceScaleFactor`.'
urls:
type: array
items:
type: string
format: uri
minItems: 2
maxItems: 50
description: 'The pages of this batch. Two to fifty, no duplicates: a batch charges per url.'
required:
- urls
responses:
'200':
description: The result.
'400':
description: Invalid request; nothing is executed.
'401':
description: Invalid or revoked API key.
'402':
description: Insufficient account credits, or x402 payment required. The wallet challenge travels in PAYMENT-REQUIRED; a 402 is not a payment or an execution.
'503':
description: Operation temporarily unavailable.
x-x402:
scheme: exact
network: eip155:8453
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
payTo: '0x23Fc725e8EAa1c58900C6507Ba89be99a6DFc75d'
price: from $0.002
note: POST a valid request unpaid to receive its exact quote. After a successful wallet settlement, PAYMENT-RESPONSE contains the facilitator receipt and transaction hash. A quote is not a payment.
x-mcp-tool: web_scrape_batch
servers:
- url: https://api.oassis.dev
/tasks/v1/crawl:
post:
summary: Follow a site's links and read it
tags:
- Web Tasks
description: Starts a crawl from `url`. Same fields as /scrape plus `limit` (pages, default 25, max 200), `maxDepth` (default 2) and the site filters. Returns a `jobId`. Returns a jobId for asynchronous work. A successful start is acceptance, not completion; poll the job status. Account credits can be refunded for unused work; x402 has no automatic on-chain refund.
operationId: web_crawl
security:
- apiKey: []
- {}
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
formats:
type: array
items:
type: string
enum:
- html
- markdown
- links
- elements
- json
- accessibility
- controls
default:
- markdown
description: Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt` or `json.schema`.
selectors:
type: array
items:
type: string
minLength: 1
minItems: 1
description: CSS selectors for the `elements` format.
json:
type: object
properties:
prompt:
type: string
minLength: 1
schema:
type: object
additionalProperties: {}
additionalProperties: false
description: 'For the `json` format: a `prompt` describing what to pull out, a JSON `schema` to fill, or both.'
controls:
type: object
properties:
visibleOnly:
type: boolean
limit:
type: integer
minimum: 1
maximum: 1000
additionalProperties: false
description: 'Options for the `controls` format: `visibleOnly`, and `limit` (1 to 1000) to cut the map.'
links:
type: object
properties:
visibleOnly:
type: boolean
excludeExternal:
type: boolean
additionalProperties: false
description: 'Options for the `links` format: `visibleOnly`, `excludeExternal` to keep only internal links.'
wait:
type: object
properties:
until:
type: string
enum:
- load
- domcontentloaded
- networkidle0
- networkidle2
selector:
type: string
minLength: 1
timeout:
type: integer
minimum: 100
maximum: 60000
additionalProperties: false
description: 'When to consider the page loaded: `until` (load, domcontentloaded, networkidle0, networkidle2), `selector` to wait for, `timeout` in ms.'
request:
type: object
properties:
headers:
type: object
additionalProperties:
type: string
cookies:
type: array
items:
type: object
properties:
name:
type: string
minLength: 1
value:
type: string
domain:
type: string
path:
type: string
secure:
type: boolean
httpOnly:
type: boolean
required:
- name
- value
additionalProperties: false
userAgent:
type: string
minLength: 1
auth:
type: object
properties:
username:
type: string
password:
type: string
required:
- username
- password
additionalProperties: false
additionalProperties: false
description: 'How to make the request: `headers`, `cookies`, `userAgent`, and `auth` for basic authentication.'
block:
type: object
properties:
resourceTypes:
type: array
items:
type: string
minLength: 1
urlPatterns:
type: array
items:
type: string
minLength: 1
additionalProperties: false
description: 'What not to load, which makes a render faster and cheaper. `resourceTypes` takes image, font, stylesheet, media… and `urlPatterns` are regular expressions, not globs: `\.svg$`, not `*.svg`.'
maxAge:
type: integer
minimum: 0
maximum: 604800000
description: Accept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.
binaryAs:
type: string
enum:
- base64
default: base64
description: How a screenshot or a PDF comes back. `base64` is the only value today.
viewport:
type: object
properties:
width:
type: integer
minimum: 1
maximum: 4096
height:
type: integer
minimum: 1
maximum: 4096
deviceScaleFactor:
type: number
minimum: 0.1
maximum: 3
required:
- width
- height
additionalProperties: false
description: 'The window to render in: `width`, `height`, `deviceScaleFactor`.'
url:
type: string
format: uri
description: Page to process.
limit:
type: integer
minimum: 1
maximum: 200
default: 25
description: Pages this crawl may read, up to 200. Charged up front; what it does not read comes back.
maxDepth:
type: integer
minimum: 0
maximum: 5
default: 2
description: How far from the starting page to follow links. 0 reads only the starting page.
includeSubdomains:
type: boolean
description: Treat subdomains of the same site as part of it.
includePaths:
type: array
items:
type: string
minLength: 1
maxItems: 20
description: Keep only urls whose path contains one of these. Up to twenty.
excludePaths:
type: array
items:
type: string
minLength: 1
maxItems: 20
description: Discard urls whose path contains one of these. Up to twenty. It wins over `includePaths`.
required:
- url
responses:
'200':
description: The result.
'400':
description: Invalid request; nothing is executed.
'401':
description: Invalid or revoked API key.
'402':
description: Insufficient account credits, or x402 payment required. The wallet challenge travels in PAYMENT-REQUIRED; a 402 is not a payment or an execution.
'503':
description: Operation temporarily unavailable.
x-x402:
scheme: exact
network: eip155:8453
asset: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913'
payTo: '0x23Fc725e8EAa1c58900C6507Ba89be99a6DFc75d'
price: from $0.002
note: POST a valid request unpaid to receive its exact quote. After a successful wallet settlement, PAYMENT-RESPONSE contains the facilitator receipt and transaction hash. A quote is not a payment.
x-mcp-tool: web_crawl
servers:
- url: https://api.oassis.dev
/tasks/v1/scrape/batch/{id}:
get:
tags:
- Web Tasks
security:
- apiKey: []
- walletPayment: []
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 50
default: 50
operationId: web_batch_status
summary: Read scrape/batch status and results
description: Free for the owner. Authenticate with the same account key or the wallet credentials used to create the job.
responses:
'200':
description: Job status and results.
'401':
description: Invalid API key.
'404':
description: Job not found or owned by another caller.
x-mcp-tool: web_batch_status
servers:
- url: https://api.oassis.dev
/tasks/v1/scrape/batch/{id}/cancel:
post:
tags:
- Web Tasks
security:
- apiKey: []
- walletPayment: []
parameters:
- name: id
in: path
required: true
schema:
type: string
operationId: web_batch_status_cancel
summary: Cancel scrape/batch
description: Stops pending work. With account credits, unused and failed reads are refunded; an in-flight page may finish and is billed normally. Settled x402 payments have no automatic on-chain refund. The result remains available to the owner.
responses:
'200':
description: Job cancellation result.
'401':
description: Invalid API key.
'404':
description: Job not found or owned by another caller.
x-mcp-tool: web_batch_status
x-mcp-arguments:
cancel: true
servers:
- url: https://api.oassis.dev
/tasks/v1/crawl/{id}:
get:
tags:
- Web Tasks
security:
- apiKey: []
- walletPayment: []
parameters:
- name: id
in: path
required: true
schema:
type: string
- name: limit
in: query
required: false
schema:
type: integer
minimum: 1
maximum: 50
default: 50
operationId: web_crawl_status
summary: Read crawl status and results
description: Free for the owner. Authenticate with the same account key or the wallet credentials used to create the job.
responses:
'200':
description: Job status and results.
'401':
description: Invalid API key.
'404':
description: Job not found or owned by another caller.
x-mcp-tool: web_crawl_status
servers:
- url: https://api.oassis.dev
/tasks/v1/crawl/{id}/cancel:
post:
tags:
- Web Tasks
security:
- apiKey: []
- walletPayment: []
parameters:
- name: id
in: path
required: true
schema:
type: string
operationId: web_crawl_status_cancel
summary: Cancel crawl
description: Stops pending work. With account credits, unused and failed reads are refunded; an in-flight page may finish and is billed normally. Settled x402 payments have no automatic on-chain refund. The result remains available to the owner.
responses:
'200':
description: Job cancellation result.
'401':
description: Invalid API key.
'404':
description: Job not found or owned by another caller.
x-mcp-tool: web_crawl_status
x-mcp-arguments:
cancel: true
servers:
- url: https://api.oassis.dev
components:
securitySchemes:
walletPayment:
type: apiKey
in: header
name: PAYMENT-SIGNATURE
description: x402 signed payment for starts and paid web operations; wallet ownership credentials for free job/session lifecycle calls. PAYMENT-REQUIRED is a quote and PAYMENT-RESPONSE is the settlement receipt. API-key users do not need this header.
apiKey:
type: http
scheme: bearer
description: Oassis API key. Shared account credits; 1 credit = $0.002.
taskToken:
type: apiKey
in: header
name: Task-Token
description: Task-scoped access_token, not a customer API key. Status/cancel only.
externalDocs:
description: oassis
url: https://oassis.dev
x-refined-from:
- api.oassis.dev-openapi.json
- oassis-dev-openapi.json
x-product-catalog:
- family: web
id: web.scrape
method: POST
path: /web/v1/scrape
mcp: web_scrape
description: Read a page or document in the requested formats.
- family: web
id: web.map
method: POST
path: /web/v1/map
mcp: web_map
description: List a site's URLs from its sitemap and optionally the page.
- family: web
id: web.search/exa
method: POST
path: /web/v1/search
mcp: web_search_exa
description: Search the web.
- family: web
id: web.session
method: POST
path: /web/v1/session
mcp: web_session_open
description: Open a browser session and inspect its controls.
- family: web
id: web.act
method: POST
path: /web/v1/act
mcp: web_act
description: Interact with an open browser session.
- family: web
id: web.session.close
method: POST
path: /web/v1/session/{id}/close
mcp: web_session_close
description: Close the browser session and settle any outstanding time.
- family: web
id: web.feedback
method: POST
path: /web/v1/feedback
mcp: web_feedback
description: Report whether a result was correct. Free.
- family: tasks
id: web.scrape/batch
method: POST
path: /tasks/v1/scrape/batch
mcp: web_scrape_batch
description: Start a batch extraction job from a supplied list of URLs.
- family: tasks
id: tasks.batch.status
method: GET
path: /tasks/v1/scrape/batch/{id}
mcp: web_batch_status
description: Read batch status and collect its results.
# --- truncated at 32 KB (33 KB total) ---
# Full source: https://artifacts.apis.io/oassis-dev/openapi/oassis-dev-web-tasks-api-openapi.yml