Skip to content
Get it free

REST routes

Every route svipall serve answers, with the body it takes. This page is generated from the code by crates/svipall/tests/reference_docs.rs; edit the routes, not this file. How to start the server and authenticate is in the REST API guide.

There are 21 operation routes. Each takes POST with a JSON body.

Runs the web_act operation.

ParameterTypeRequiredWhat it does
actionsarray of objectyesSteps, in order, e.g. [{"do":"type","ref":"e3","text":"shoes"},{"do":"press","key": "Enter"},{"do":"wait","selector":".results"}].
extractionstringmarkdown (default), text, or html for the final page.
profilestringProfile saved by web_login whose cookies to use.
proxystringProxy URL for this run only; web_route sets one per domain.
tierstringBrowser tier: browser, stealth, real (default), warm.
timeoutintegerTimeout in ms for the whole interaction. Default 90000.
urlstringyesThe page to open first.

Runs the browser_setup operation.

ParameterTypeRequiredWhat it does
actionstringstatus (default) | install | update | remove.
artifactstringchrome (default, supports the headful real/warm tiers) | chrome-headless-shell (smaller, but cannot run headful and is more detectable).

Runs the web_capture operation.

ParameterTypeRequiredWhat it does
bodiesbooleanReturn the response bodies too, once pattern names the endpoint. Default false.
max_bodyintegerPer-body character cap. Default 20000.
patternstringOnly responses whose URL contains this, e.g. “/api/”. Omit it the first time.
profilestringProfile saved by web_login whose cookies to use.
settle_msintegerHow long to keep recording after the page loads, in ms. Default 3000.
tierstringBrowser tier: browser, stealth, real (default), warm.
urlstringyesThe page whose requests to record.

Runs the web_crawl operation.

ParameterTypeRequiredWhat it does
alsoarray of stringMore sites to crawl alongside url; each domain gets an equal share of the budget.
crawl_idstringResume an interrupted crawl by the crawl_id it returned; web_status lists those with work left.
dedupbooleanSkip near-duplicate pages, naming what they duplicate. Default true.
extractionstringmarkdown (default), text, or html.
includestringOnly follow URLs containing this substring (e.g. “/docs/”).
max_chars_per_pageintegerPer-page content cap in chars. Default 8000.
max_depthintegerLink depth from the start URL. Default 2.
max_duration_msintegerGive up after this long regardless. Default 120000.
max_pagesintegerMaximum pages to fetch. Default 20, max 200.
max_tokens_totalintegerWhole-crawl token cap. Default 60000.
modestringLeave unset: auto learns the tier per domain.
out_filestringWrite the pages to this .csv, .json or .jsonl file; a path and a count come back.
outputstringOutput shape: pages (default), llms.txt, llms-full.txt.
querystringRank pages by relevance to these words, keep the relevant blocks, stop when new pages add nothing.
robotsstringrobots.txt policy: obey (default for crawling), warn, ignore.
schemaanyRows from every page, as on web_fetch; with out_file, one row per item with its url.
scrollstringScroll every page until it stops growing (“auto” or a round count). Implies browser tiers.
since_last_crawlbooleanFetch only what the sitemap’s lastmod says changed since the last crawl; undated pages are always fetched.
stop_when_saturatedbooleanStop once new pages add nothing about query. Default true with a query.
strategystringbest_first (default with a query), bfs, or dfs: one branch to its end, for a manual or a paginated listing.
tablesbooleanEvery page’s data tables as typed rows, as on web_fetch.
timeoutintegerTimeout in ms per page. Default 45000.
urlstringyesStart URL. Crawl stays on this domain.

Runs the web_diff operation.

ParameterTypeRequiredWhat it does
refetchbooleanFetch a fresh copy first. Default true; false compares stored versions only.
urlstringyesURL to compare against its previously cached copy.

Runs the web_fetch operation.

ParameterTypeRequiredWhat it does
bodystringRequest body for POST/PUT (http tier only).
cachestringauto (default: serve a fresh copy, revalidate a stale one), read, write, bypass, refresh.
css_selectorstringKeep only the elements this CSS selector matches, e.g. “article” or “#prices”.
cursorstringThe cursor of a truncated result, to continue it.
extractionstringmarkdown (default), text, or html (the raw markup, many times the tokens).
freshbooleanWalk the ladder again though it failed on this site in the last 10 minutes.
headersobjectExtra request headers (http tier only).
include_linksbooleanAdd links (internal and external, absolute) and images.
include_metadatabooleanAdd metadata: canonical URL, language, author, dates, OpenGraph, JSON-LD, feeds.
include_qualitybooleanAdd quality_detail: verdict with reasons, near-duplicates, provenance.
isolatedbooleanA throwaway browser profile: no cookies in, none left behind.
json_pathstringOnly these fields of a JSON answer, e.g. items[:5].{name, owner.login} (.a, [0], [1:5], [*], {a, b}).
main_content_onlybooleanDrop navigation, footers and sidebars. Default true.
max_tierstringHighest tier to climb to: http, browser, stealth, real, warm (default).
max_tokensintegerCap on the content, cut on block boundaries. Default 25000; a cut result carries a cursor.
methodstringGET (default), POST, PUT, DELETE, HEAD (http tier only).
mobilebooleanAsk as a phone. Most sites send the same bytes, and it costs a browser page of its own.
modestringLeave unset: auto learns the tier per domain. A forced tier is slower or weaker.
out_filestringWrite to this file and return the path, not the content. A .md .txt .json .csv .html name gets the text (rows with schema/tables); any other name, or a binary body, gets the bytes as served, resumed by calling again. Relative paths land in ~/.svipall/out/.
profilestringProfile saved by web_login whose cookies to use. Implies a browser tier.
proxystringProxy URL for this fetch only; web_route sets one per domain.
querystringKeep only the blocks relevant to these words, e.g. “shipping costs”: the cheapest way to one fact. Name the fact, not the topic: a specific query left 6% of a long page, a broad one 88%.
robotsstringrobots.txt: warn (default: fetch and say if disallowed), obey, ignore.
schemaanyRows instead of prose, as extracted. “auto”, or e.g. {"name": "products", "base_selector": "div.product", "fields": [{"name": "title", "selector": "h2 a"}, {"name": "url", "selector": "a", "type": "attribute", "attribute": "href"}]}; types text, attribute, number, exists, list, html, markdown. “auto” returns the schema it used as induced_schema; a selector a redesign broke is relocated and reported as healed.
scrollstringScroll a page that loads as you go: “auto” until it stops growing, or a number of rounds. Implies a browser tier.
tablesbooleanThe page’s data tables as typed rows, {caption, header, rows}, instead of prose.
text_onlybooleanSkip images, fonts, stylesheets and video in browser tiers. Faster; some anti-bot scripts notice it.
timeoutintegerTimeout in ms for the whole ladder. Default 60000.
urlstringyesThe page. Also raw:<html> (no request) or file:///path under ~/.svipall/in or local_roots.
use_site_templatebooleanStrip what this site repeats on every page, learned from earlier fetches. Off by default: it can take real content with it.
waitintegerSeconds to wait out a full visit window or a hold, up to 900. Unset: up to half the timeout; 0 never waits.

Runs the web_fetch_many operation.

ParameterTypeRequiredWhat it does
extractionstringmarkdown (default), text, or html.
json_pathstringOnly these fields of every JSON answer, as on web_fetch.
max_tierstringHighest tier the ladder may climb to. Default warm.
max_tokensintegerCap per page. Default: an equal share of max_tokens_total.
max_tokens_totalintegerCap on all pages together. Default 8000; a cut page carries a cursor for web_fetch.
modestringLeave unset: auto learns the tier per domain.
out_dirstringWrite each page whole to a file in this directory; return paths.
out_filestringWrite the whole set to this .json/.jsonl file; return a summary.
querystringKeep only the blocks relevant to these words, on every page.
schemaanyRows instead of prose from every page, as on web_fetch.
tablesbooleanEvery page’s data tables as typed rows, as on web_fetch.
timeoutintegerTimeout in ms per URL. Default 60000.
urlsarray of stringyesThe pages to fetch, in the order the results come back.
waitintegerAs on web_fetch, per URL.

Runs the web_log operation.

ParameterTypeRequiredWhat it does
domainstringOnly this domain.
idintegercalls: one call by its id, with the content it returned.
limitintegerMaximum lines for recent. Default 50.
since_secsintegerHow far back to look, in seconds. Default 3600.
textstringcalls: words to find, and client: tool: reason: ok:false attempts>=N to narrow.
viewstringrecent (default), summary, or calls (the journal: every call, who asked, its attempts).

Runs the web_map operation.

ParameterTypeRequiredWhat it does
includestringOnly URLs containing this substring.
limitintegerMaximum URLs to return. Default 1000.
sourcesarray of stringSources to use: robots, sitemap, llms, feeds, links. Default: all of them.
urlstringyesAny URL on the site; the whole origin is mapped.

Runs the web_notes operation.

ParameterTypeRequiredWhat it does
actionstringget (default), set, list or delete.
keystringThe note’s name. A path-like key (“shop/last_id”) groups notes for list.
prefixstringFor list: only notes whose key starts with this. Empty lists everything.
valuestringWhat to remember. Required for set; a string, so pass JSON if it has structure.

Runs the web_probe operation.

ParameterTypeRequiredWhat it does
timeoutintegerTimeout in ms per URL. Default 15000.
urlsarray of stringyesThe addresses, answered in this order.

Runs the web_profile operation.

ParameterTypeRequiredWhat it does
actionstringlist (default), export or import.
filestringWhere the archive goes, or comes from. Relative paths land in ~/.svipall/out/.
namestringThe profile name, as used by web_login and profile on web_fetch.
passwordstringRequired for export and import. The archive is the session; there is no unencrypted form.

Runs the web_route operation.

ParameterTypeRequiredWhat it does
checkbooleanTest domain’s exits instead of changing them: answered, latency, DNS leak.
check_urlstringThe URL a check fetches. Default: a small neutral page.
countriesarray of stringISO country of each entry in proxies, by position; country covers the rest.
countrystringISO country the proxy exits from, e.g. “DE”, for a matching timezone and language.
domainstringThe domain to route; subdomains inherit. Omit everything to list the routes.
proxiesarray of stringSeveral exits: the domain sticks to the first that works, moving on when it is blocked twice.
proxystringProxy URL, e.g. “socks5h://user:pass@host:1080” (socks5h resolves DNS at the exit).
removebooleanRemove the route for domain.

Runs the web_screenshot operation.

ParameterTypeRequiredWhat it does
full_pagebooleanCapture the whole scrollable page. Default false (viewport only).
inlinebooleanReturn the PNG inline as image content too. Default true, skipped above 3 MB.
mobilebooleanRender the page as a phone would: phone user agent and viewport.
profilestringProfile saved by web_login whose cookies to use.
proxystringProxy URL for this run only; web_route sets one per domain.
tierstringBrowser tier: browser, stealth, real (default), warm.
timeoutintegerTimeout in ms. Default 60000.
urlstringyesThe page to render.

Runs the web_search operation.

ParameterTypeRequiredWhat it does
enginestringauto (default: the first engine that answers), all (every engine, merged by agreement), or one of ddg, ddg-html, bing, brave, news (recent articles).
langstringResult language, e.g. es. Default: the query’s.
limitintegerResults to return. Default 10, max 50.
querystringyesWhat to search for, as you would type it into a search box.
regionstringCountry, e.g. MX.

Runs the web_site_search operation.

ParameterTypeRequiredWhat it does
fetchbooleanFetch the results too, rather than only reporting the pattern. Default true.
querystringyesWhat to search for.
timeoutintegerTimeout in ms. Default 60000.
urlstringyesAny page of the site — usually the home page. Its search box is what gets used.

Runs the web_snapshot operation.

ParameterTypeRequiredWhat it does
findstringOnly nodes whose name or role contains this, e.g. “add to cart” or “button”.
limitintegerCap on nodes returned. Default 200.
max_depthintegerHow deep to look; 3 or 4 usually reaches the controls.
profilestringProfile saved by web_login whose cookies to use.
tierstringBrowser tier: browser, stealth, real (default), warm.
timeoutintegerTimeout in ms. Default 60000.
urlstringyesThe page to read.

Runs the solve_and_continue operation.

ParameterTypeRequiredWhat it does
extractionstringExtraction for the unblocked page: markdown (default), text, html.
max_tokensintegerCap on the content returned, as in web_fetch. Default 25000.
profilestringProfile whose cookies to reuse and update. Defaults to the domain’s automatic profile.
timeout_sintegerSeconds to wait for the challenge to clear. Default 120.
urlstringyesThe blocked page. The challenge is solved on this very page, not a copy of it.

Runs the web_status operation.

ParameterTypeRequiredWhat it does
clear_budgetstringDomain whose reputation spend should be forgotten, for every exit that spent on it.
clear_cacheanyEmpty the page cache: true for everything, or a domain name for just that site.
clear_cooldownstringDomain to clear on every exit: hard-block cooldown, server holds and strikes, visit window, remembered failure. Not clear_budget’s standing.
configureanySave browser and session policy settings for later calls; open sessions keep theirs.
forget_tierstringDomain whose learned tier should be forgotten.
sectionsstringMore of the report: “all”, or names from the summary’s sections, comma-separated.

Runs the web_video operation.

ParameterTypeRequiredWhat it does
atarray of stringExact moments to capture.
cropstringThe part of each frame to return, as fractions of it: x,y,w,h.
cursorstringThe cursor of a truncated result.
endstringWhere it ends.
framesintegerMoments to capture from the video itself, spread over the part asked for, up to 120. Left out, the number follows the length; 0 turns the picture off.
langstringCaption language to prefer, e.g. “es”.
max_tokensintegerCap on the timeline returned. Default 25000.
out_filestringWrite the timeline here and return the path.
profilestringProfile saved by web_login whose cookies to use.
querystringFind where this is said, written on screen, or shown.
startstringWhere the part to look at starts: seconds, or m:ss.
urlstringyesA video page, a page embedding a player, or a player address.
waitintegerAs on web_fetch.

Runs the web_watch operation.

ParameterTypeRequiredWhat it does
actionstringadd (default), list, remove or check.
css_selectorstringWatch only the part of the page this CSS selector finds. Changes elsewhere are ignored, and if a redesign breaks the selector the region is relocated by fingerprint.
interval_secsintegerHow often it is worth looking, in seconds. Default 3600, floor 60.
labelstringA name to recognise it by in the list.
urlstringThe page. Required for add, remove and a single check.

How a caller follows a long operation without holding a connection open.

  • /v1/jobs
  • /v1/jobs/{id}
  • /v1/jobs/{id}/stream
OperationWhy
browser_opena session is a resource HTTP cannot bound: a client that dies between open and close leaks a real browser with no TTL and no cap. web_act covers the single-shot case
browser_dobelongs to a session; see browser_open
browser_closebelongs to a session; see browser_open
web_loginopens a visible window on the operator’s desktop and waits up to an hour for a person; an HTTP request must not be able to do that
solve_image_captchathe solver API on dashboard_port already answers this in the 2captcha wire shape
solve_recaptcha_v2the solver API on dashboard_port already answers this in the 2captcha wire shape
solve_turnstilethe solver API on dashboard_port already answers this in the 2captcha wire shape
solve_hcaptchathe solver API on dashboard_port already answers this in the 2captcha wire shape
captcha_statusthe solver API on dashboard_port already answers this in the 2captcha wire shape
report_captchathe solver API on dashboard_port already answers this in the 2captcha wire shape

Written from docs/reference/rest.md at v2.11.0.