Run a task or a capability
Routes the task to the best capability (or runs the one named), fills its inputs and replays the site's API. Answers with the run: succeeded with a verified result, input_required with requirements to answer (POST /api/v1/runs/{runId}/responses), or failed with an error.
With egress: "client" the site requests are sent by you, from your own IP: the answer is egress_required with the next request(s) to send (method, URL, headers, body, and a ready curl). Send each one and post the raw response to /api/v1/egress/{egressId}; Unbrowse reads it and answers with the next request, or the finished run. Unbrowse decides every request and reads every response; it never contacts the site itself in such a run (no cloud browser, no proxy).
Request
- Base URL: https://unbrowse.ai
- URL: https://unbrowse.ai/api/v1/runs
- Auth: one of:
- OAuth 2 (authorization code, authorization URL https://unbrowse.ai/authorize, token URL https://unbrowse.ai/oauth/token, scopes: unbrowse)
- HTTP bearer
Query parameters
Same as the x-unbrowse-deadline-ms header (the header wins).
Headers
Answer within this many ms (clamped to 5,000–300,000; default 60,000). Past it the answer is 504 run_timeout; the run keeps going.
Request body
Example request
{
"select": [
"results[].{id,title,price}",
"total"
]
}Response
The run
Changes
No recorded changes to this operation across all 1 revision of this API.