Skip to content

Stop a Run

POST/v1/runs/{id}/stop
Authorization
header · required
Bearer <Extralt API key>
id
path · string · required

Run ID

Response

200 OK · application/json

The Run, stopping or stopped

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

The request is invalid

404

Run not found

Request · cURL
curl -X POST 'https://api.extralt.com/v1/runs/kh72p9xq4c8v1m6z3t5r0n8wbd2f4hje/stop' \
  -H "Authorization: Bearer $EXTRALT_API_KEY"
Response · 200
{
  "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"
}