Skip to content

Add a Store

POST/v1/stores

Add the Store of a page's host and country, or return the organization's existing one. A new Store starts its crawler's build; an untracked one is tracked again, and a crawler that was never built or failed is built again.

Request

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

Unique key for safely retrying this request

country
body · string · required

An assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.

pattern ^[A-Z]{2}$
url
body · string · required

A page of the store. Its host and country name the Store; its crawler's build checks the store from this page.

own
body · boolean · nullable

true marks the Store as one of the organization's own stores. Clear the mark with PATCH /v1/stores/{store_id}.

Response

application/json

The existing Store; a crawler that was never built or failed is building again

country
string

An assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.

pattern ^[A-Z]{2}$
crawler
StoreCrawler

What reads the Store's pages for its Runs.

redirected_to
string · nullable

With a redirected refusal, the host the store's page landed on.

refusal
string · nullable

Set when the build refused the store; the crawler is then failed.

Known values: not_store, unreachable, redirected, needs_scale, shared_host, unavailable. Others may be added.

status
CrawlerStatus

Where a Store's crawler stands. Runs and Schedules take only a Store whose crawler is ready.

one of none · pending · building · ready · failed
status_reason
string · nullable

What the crawler waits for, or why it failed, in words.

created_at
string
date-time
host
string

The store's host, lower case and without www..

id
string

{host}-{COUNTRY}, the store_id every Run, PDP and analytics answer names it by. It never changes.

language
string · nullable

The language of the store's page, as its check read it; null until checked.

pattern ^[a-z]{2}$
own
OwnStore · nullable

Set when the Store is one of the organization's own stores.

source
OwnStoreSource

Who marked the Store as one of the organization's own stores.

one of user · connector
platform
string · nullable

Null until the store is checked.

Known values: shopify, woocommerce, wix, salesforce, other. Others may be added.

run_count
integer
int64 · ≥ 0
state
StoreState · nullable

The Store's current Listings, offers, freshness and cheapest-price share, which GET /v1/stores and GET /v1/stores/{store_id} read. Null in the responses of changes and in webhooks, and before a first read of the store's pages.

active_listings
integer
int64 · ≥ 0
available_offers
integer
int64 · ≥ 0
cheapest_share
number · nullable

Cheapest Variants over comparable ones; null without a comparable Variant.

double
cheapest_variant_count
integer

Comparable Variants where this Store's lowest price is the lowest observed; ties count for every Store at the lowest price.

int64 · ≥ 0
comparable_variant_count
integer

Variants this Store and at least one other Store of the same country and currency both offer new and available, from Listings that are not stale.

int64 · ≥ 0
currencies
string[]
pattern ^[A-Z]{3}$
current_offers
integer
int64 · ≥ 0
latest_observed_at
string · nullable

Latest read of an active Listing.

date-time
stale_listings
integer
int64 · ≥ 0
unavailable_offers
integer
int64 · ≥ 0
unknown_offers
integer
int64 · ≥ 0
unmatched_sku_count
integer

SKUs on their page not matched to a Variant yet, so not in the cheapest share.

int64 · ≥ 0
tracked
boolean

Whether the Store is in the Stores list. Untracking hides it and keeps its data; adding it again tracks it again.

updated_at
string
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

409

The Idempotency-Key was already used for a different request

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/stores' \
  -H "Authorization: Bearer $EXTRALT_API_KEY" \
  -H 'Idempotency-Key: 0f8c6b2e-3d4a-4f9b-8c1e-5a7d9e2b4c61' \
  -H 'Content-Type: application/json' \
  -d '{
  "country": "US",
  "url": "https://www.example-store.com"
}'
Response · 200
{
  "country": "US",
  "crawler": {
    "redirected_to": null,
    "refusal": null,
    "status": "ready",
    "status_reason": null
  },
  "created_at": "2026-09-28T08:14:03Z",
  "host": "example-store.com",
  "id": "example-store.com-US",
  "language": "en",
  "own": {
    "source": "user"
  },
  "platform": "shopify",
  "run_count": 4,
  "state": {
    "active_listings": 0,
    "available_offers": 0,
    "cheapest_share": 0,
    "cheapest_variant_count": 0,
    "comparable_variant_count": 0,
    "currencies": [
      "USD"
    ],
    "current_offers": 0,
    "latest_observed_at": "2026-09-28T08:14:03Z",
    "stale_listings": 0,
    "unavailable_offers": 0,
    "unknown_offers": 0,
    "unmatched_sku_count": 0
  },
  "tracked": true,
  "updated_at": "2026-09-28T08:14:03Z"
}