Skip to content

Start a Run

POST/v1/runs

Start a Run of a Store whose crawler is ready.

Request

application/json
Authorization
header · required
Bearer <Extralt API key>
Idempotency-Key
header · string · required

Unique key for safely retrying this request

store_id
body · string · required

The Store to read, whose crawler must be ready.

budget
body · integer · nullable
int32 · ≥ 0
scope
body · Scope

The whole store when left out.

filters
ScopeFilters

Only known products in, or not in, these categories and brands.

not_read_within_hours
integer

Only products the organization's Runs haven't read in this many hours before the Run starts; Imports don't count. Left out, the Run skips nothing.

int32 · ≥ 1 · ≤ 8784
pages
string[]

Only these pages: 1 to 100 product or category page URLs on the Store's host. The crawl reads each page's product, or the products a category page lists.

items 1–100
products
ScopeProducts

known: only the products already in the organization's data for this Store, revisited without crawling the store, even after they leave its category pages. new: only the products not in it, found anywhere in the store or on the pages given; a product the store removed and brought back is in it, and so is one only an Import brought, when the Import gave its page URL.

one of known · new

Response

202 Accepted · application/json

Run accepted

budget
integer · nullable
int32 · ≥ 0
created_at
string
date-time
finished
boolean

Whether the Run has reached a final status. A restarted Run is unfinished again.

finished_at
string · nullable

When the Run reached its final status; null while it is unfinished.

date-time
id
string
in_queue
integer
int64 · ≥ 0
name
string
new_pdps
integer

Of those, the organization's first PDP of a product, charged as new.

int64 · ≥ 0
pdps
integer

PDPs published and billed.

int64 · ≥ 0
restartable_until
string · nullable

Until when the Run can be restarted, 30 days after its creation; null when it can't be: it is unfinished or completed, or it is a stopped or failed Run whose crawl captured no product.

date-time
scope
Scope

Which of a Store's products a Run reads. Each field narrows the store and one left out narrows nothing, so {} reads the whole store. products: known takes no pages, filters need products: known, and products: new takes no not_read_within_hours.

filters
ScopeFilters

Only known products in, or not in, these categories and brands.

not_read_within_hours
integer

Only products the organization's Runs haven't read in this many hours before the Run starts; Imports don't count. Left out, the Run skips nothing.

int32 · ≥ 1 · ≤ 8784
pages
string[]

Only these pages: 1 to 100 product or category page URLs on the Store's host. The crawl reads each page's product, or the products a category page lists.

items 1–100
products
ScopeProducts

known: only the products already in the organization's data for this Store, revisited without crawling the store, even after they leave its category pages. new: only the products not in it, found anywhere in the store or on the pages given; a product the store removed and brought back is in it, and so is one only an Import brought, when the Import gave its page URL.

one of known · new
started_at
string · nullable
date-time
status
RunStatus
one of pending · starting · restarting · running · materializing · completed · stopped · failed
status_reason
string · nullable
store_id
string
triggered_by
string

Requests from the SDKs and MCP count as api.

Known values: agent, api, dashboard, schedule. Others may be added.

updated_at
string · nullable
date-time

Errors

ErrorResponse

Errors that read the same on every endpoint are in Error codes.

400

Invalid input

402

Active subscription and available credits required

404

Store not found

409

Run creation conflicts with an unfinished Run or Import of the Store, its crawler or tracking, or prior use of the idempotency key

413

The request body exceeds the API limit

415

The request body must use application/json

422

The JSON body does not match the expected schema

Request · cURL
curl -X POST 'https://api.extralt.com/v1/runs' \
  -H "Authorization: Bearer $EXTRALT_API_KEY" \
  -H 'Idempotency-Key: 0f8c6b2e-3d4a-4f9b-8c1e-5a7d9e2b4c61' \
  -H 'Content-Type: application/json' \
  -d '{
  "store_id": "example-store.com-US"
}'
Response · 202
{
  "budget": 100,
  "created_at": "2026-09-28T08:14:03Z",
  "finished": true,
  "finished_at": "2026-09-28T08:14:03Z",
  "id": "kh72p9xq4c8v1m6z3t5r0n8wbd2f4hje",
  "in_queue": 0,
  "name": "example-store.com-US_4",
  "new_pdps": 40,
  "pdps": 100,
  "restartable_until": "2026-09-28T08:14:03Z",
  "scope": {
    "filters": {
      "brands": {
        "in": [
          "Nike",
          "Jordan"
        ],
        "not_in": [
          "Converse"
        ]
      },
      "categories": {
        "in": [
          "Apparel & Accessories"
        ],
        "not_in": [
          "Shoes"
        ]
      }
    },
    "not_read_within_hours": 1,
    "pages": [
      "https://www.example-store.com/collections/running"
    ],
    "products": "known"
  },
  "started_at": "2026-09-28T08:14:03Z",
  "status": "completed",
  "status_reason": "Budget reached",
  "store_id": "example-store.com-US",
  "triggered_by": "api",
  "updated_at": "2026-09-28T08:14:03Z"
}