Add a Store
/v1/storesAdd 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
Authorizationheader · requiredBearer <Extralt API key>Idempotency-Keyheader · string · requiredUnique key for safely retrying this request
countrybody · string · requiredAn assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.
pattern ^[A-Z]{2}$urlbody · string · requiredA page of the store. Its host and
countryname the Store; its crawler's build checks the store from this page.ownbody · boolean · nullabletruemarks the Store as one of the organization's own stores. Clear the mark withPATCH /v1/stores/{store_id}.
Response
The existing Store; a crawler that was never built or failed is building again
countrystringAn assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.
pattern ^[A-Z]{2}$crawlerStoreCrawlerWhat reads the Store's pages for its Runs.
redirected_to string · nullableWith a
redirectedrefusal, the host the store's page landed on.refusalstring · nullableSet 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.statusCrawlerStatusWhere a Store's crawler stands. Runs and Schedules take only a Store whose crawler is
ready.one of none · pending · building · ready · failedstatus_reason string · nullableWhat the crawler waits for, or why it failed, in words.
created_at string- date-time
hoststringThe store's host, lower case and without
www..idstring{host}-{COUNTRY}, thestore_idevery Run, PDP and analytics answer names it by. It never changes.languagestring · nullableThe language of the store's page, as its check read it; null until checked.
pattern ^[a-z]{2}$ownOwnStore · nullableSet when the Store is one of the organization's own stores.
sourceOwnStoreSourceWho marked the Store as one of the organization's own stores.
one of user · connector
platformstring · nullableNull until the store is checked.
Known values:
shopify,woocommerce,wix,salesforce,other. Others may be added.run_count integer- int64 · ≥ 0
stateStoreState · nullableThe Store's current Listings, offers, freshness and cheapest-price share, which
GET /v1/storesandGET /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 · nullableCheapest Variants over comparable ones; null without a comparable Variant.
doublecheapest_variant_ count integerComparable Variants where this Store's lowest price is the lowest observed; ties count for every Store at the lowest price.
int64 · ≥ 0comparable_variant_ count integerVariants 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 · ≥ 0currenciesstring[]- pattern ^[A-Z]{3}$
current_offers integer- int64 · ≥ 0
latest_observed_ at string · nullableLatest read of an active Listing.
date-timestale_listings integer- int64 · ≥ 0
unavailable_offers integer- int64 · ≥ 0
unknown_offers integer- int64 · ≥ 0
unmatched_sku_ count integerSKUs on their page not matched to a Variant yet, so not in the cheapest share.
int64 · ≥ 0
trackedbooleanWhether 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
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