Title: Create a routine for a config Upstream: POST /user-templates/create-routine

Creates a new scraping routine on a config and returns its routineId. A config created by scrape_unblocker already has one routine; this tool adds another, for example a low max_items "spot check" routine next to the full sweep.

Parameters

  • apiKey (string, required).
  • configId (integer ≥ 1, required) — must appear in the user's activity logs.
{ "name": "create_template_routine", "arguments": { "apiKey": "js_YOUR_API_KEY", "configId": 4412 } }
{ "routineId": 5121, "configId": 4412 }

Then run it

get_routine_concurrency(routineId)          →  1 by default
set_routine_concurrency(routineId, 3)       →  before the first long run
run_routine(routineId, max_items?)          →  dispatch_id
get_job_status(dispatch_id)                 →  progress, ETA
check_job(dispatch_id)                      →  results + diagnostics

Several routines on one config

A config can carry more than one routine, each with its own concurrency:

  • Full sweep — the whole URL list, concurrency tuned after the first wave.
  • Spot check — run with a small max_items for quick verification.
  • Careful — concurrency 3 for a site that fights back, kept separate from the fast one.

A routine reads the current state of its config on every run. Changing selectors or URLs never requires recreating it.

Last updated: September 22, 2026