POST /user-templates/create-routine
Creates the routine record that makes a config runnable.
curl -X POST https://api.jetscrape.com/user-templates/create-routine \
-H "Content-Type: application/json" \
-H "x-api-key: js_YOUR_API_KEY" \
-d '{
"configId": 42,
"name": "Daily Scrape"
}'configId(number, required) — the config to run.name(string, required) — the routine name.
Keep the routine_id from the response; that is what you trigger.
Running it
curl -X POST https://api.jetscrape.com/webhook/run-routine \
-H "Content-Type: application/json" \
-H "x-api-key: js_YOUR_API_KEY" \
-d '{ "routine_id": 34, "max_items": 50 }'See Running Routines for the details and for one-time URL overrides.
Several routines on one config
A config can carry more than one routine. A common split:
Daily Scrape— sweeps the whole URL list on a schedule.Spot Check— a lowmax_itemsrun for quick verification.Ad-hoc— used with one-timeurlsfor temporary lists.
You never need to recreate a routine when selectors or URLs change — it reads the current state of the config on every run.
To run several configs in sequence, use POST /webhook/chain-request rather than triggering routines one by one. Note that one-time URL overrides are not supported on chain routines.