Skip to content

Analyze availability changes

GET/v1/analyses/availability-changes

Measure availability and its net changes since a date.

Authorization
header · required
Bearer <Extralt API key>
from
query · string · required

Window start. The window ends at the request time and spans at most 90 days; results report net change since this start.

date-time
country
query · string · required

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

pattern ^[A-Z]{2}$
condition
query · OfferCondition
one of unknown · new · used · refurbished · like_new · very_good · good · acceptable
store_id
query · string
category_id
query · string
brand
query · string
limit
query · integer
int32 · ≥ 1 · ≤ 1000 · default 100

Response

200 OK · application/json

Current availability by offer series and its net change since the window start; the window ends at the request time and spans at most 90 days

analysis_id
string

Known values: price_position, price_movements, assortment_overlap, availability_changes. Others may be added.

coverage
AvailabilityChangesCoverage

State coverage includes every current series, including evidence carried from before the window; transitions use only series with evidence inside the window.

comparable_series_count
integer

Current series with a baseline and evidence inside the window.

int64 · ≥ 0
comparable_share
number · nullable
double
current_series_count
integer
int64 · ≥ 0
removed_listing_count
integer
int64 · ≥ 0
scoped_listing_count
integer
int64 · ≥ 0
scoped_series_count
integer
int64 · ≥ 0
single_observation_series_count
integer

Current series whose only evidence inside the window is the offer they reappeared with; they have no baseline to compare, as in Price movements.

int64 · ≥ 0
unobserved_series_count
integer

Current series whose latest evidence predates the window.

int64 · ≥ 0
data
AvailabilityChangeRow[]

At most limit rows of evidence, sorted; the summary and coverage span the whole scope.

baseline
AnalysisBaseline

Where a series' comparison starts: its state at the window start, or its first observation after a reappearance inside the window.

one of window_start · reappeared
brand
string
category_id
string
category_path
string
condition
string

Known values: unknown, new, used, refurbished, like_new, very_good, good, acceptable. Others may be added.

current_evidence
AvailabilityEvidence

The evidence of a state: the read of the series' representative offer, else the read or check that ended the series. An offer resolves as the row's SKU, seller and condition at that read.

current_state
AvailabilityState

The stock state of an offer series, or of a Variant at a Store from all its SKUs and offers there.

one of available · unavailable · unknown · preorder · backorder · preorder_backorder · no_offer · off_page · removed · absent
listing_id
string
options
map<string, string>
previous_evidence
AvailabilityEvidence · nullable

The evidence of a state: the read of the series' representative offer, else the read or check that ended the series. An offer resolves as the row's SKU, seller and condition at that read.

previous_state
AvailabilityState

The stock state of an offer series, or of a Variant at a Store from all its SKUs and offers there.

one of available · unavailable · unknown · preorder · backorder · preorder_backorder · no_offer · off_page · removed · absent
product_id
string · nullable
seller_key
string
seller_name
string
series_level
OfferSeriesLevel

Who an offer series is from: the Store itself, whose own series has the Store's id as its seller_key, or another seller.

one of store · seller
sku_id
string
store_host
string
store_id
string
title
string
transition
string

Known values: out_of_stock, restocked, offer_removed, sku_removed, listing_removed, state_changed. Others may be added.

url
string
variant_id
string · nullable

Null while the SKU is not matched to a Variant; the row then shows its Listing's own title and brand.

freshness
AnalysisFreshness
newest_observed_at
string · nullable
date-time
oldest_observed_at
string · nullable
date-time
generated_at
string
date-time
issues
AnalysisIssue[]
code
string

Known values: no_reference_variants, no_available_reference_offers, insufficient_comparison_stores, partial_reference_availability, partial_comparison_coverage, zero_comparison_median, no_offer_series, no_repeated_offer_series, partial_repeated_coverage, no_reference_assortment, no_comparison_assortment, no_current_availability_evidence, no_repeated_availability_series, partial_repeated_availability_coverage. Others may be added.

message
string
scope
AvailabilityChangesScope
brand
string · nullable
category_id
string · nullable
condition
string

Known values: unknown, new, used, refurbished, like_new, very_good, good, acceptable. Others may be added.

country
string

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

pattern ^[A-Z]{2}$
from
string
date-time
store_id
string · nullable
status
AnalysisStatus
one of eligible · limited · ineligible
summary
AvailabilityChangesSummary
available_store_variant_count
integer
int64 · ≥ 0
backorder_store_variant_count
integer
int64 · ≥ 0
changed_state_series_count
integer
int64 · ≥ 0
current_available_series_count
integer
int64 · ≥ 0
current_backorder_series_count
integer
int64 · ≥ 0
current_preorder_backorder_series_count
integer
int64 · ≥ 0
current_preorder_series_count
integer
int64 · ≥ 0
current_unavailable_series_count
integer
int64 · ≥ 0
current_unknown_series_count
integer
int64 · ≥ 0
newly_observed_series_count
integer
int64 · ≥ 0
no_offer_store_variant_count
integer
int64 · ≥ 0
off_page_store_variant_count
integer
int64 · ≥ 0
out_of_stock_series_count
integer
int64 · ≥ 0
preorder_backorder_store_variant_count
integer
int64 · ≥ 0
preorder_store_variant_count
integer
int64 · ≥ 0
reappeared_series_count
integer
int64 · ≥ 0
removed_listing_series_count
integer
int64 · ≥ 0
removed_offer_series_count
integer
int64 · ≥ 0
removed_sku_series_count
integer
int64 · ≥ 0
removed_store_variant_count
integer
int64 · ≥ 0
restocked_series_count
integer
int64 · ≥ 0
unavailable_store_variant_count
integer
int64 · ≥ 0
unknown_store_variant_count
integer
int64 · ≥ 0

Errors

ErrorResponse

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

400

Invalid analysis scope, time window, or limit

422

scope_too_large: the scope exceeds a query budget; narrow the country, Store, category, brand or time window

Request · cURL
curl -X GET 'https://api.extralt.com/v1/analyses/availability-changes?from=2026-09-01T00%3A00%3A00Z&country=US' \
  -H "Authorization: Bearer $EXTRALT_API_KEY"
Response · 200
{
  "analysis_id": "price_position",
  "coverage": {
    "comparable_series_count": 0,
    "comparable_share": 0,
    "current_series_count": 0,
    "removed_listing_count": 0,
    "scoped_listing_count": 0,
    "scoped_series_count": 0,
    "single_observation_series_count": 0,
    "unobserved_series_count": 0
  },
  "data": [
    {
      "baseline": "window_start",
      "brand": "Northwind",
      "category_id": "aa-8-8",
      "category_path": "Apparel & Accessories > Shoes > Sneakers",
      "condition": "new",
      "current_evidence": {
        "check_id": null,
        "newest_offer_observed_at": "2026-09-28T08:14:03Z",
        "observation_id": "8130567201457302311",
        "observed_at": "2026-09-28T08:14:03Z",
        "observed_at_basis": "acquired",
        "oldest_offer_observed_at": "2026-09-28T08:14:03Z",
        "pdp_id": "234070802181193728"
      },
      "current_state": "available",
      "listing_id": "1780130042449153771",
      "options": {
        "color": "Black",
        "size": "10"
      },
      "previous_evidence": {
        "check_id": null,
        "newest_offer_observed_at": "2026-09-28T08:14:03Z",
        "observation_id": "8130567201457302311",
        "observed_at": "2026-09-28T08:14:03Z",
        "observed_at_basis": "acquired",
        "oldest_offer_observed_at": "2026-09-28T08:14:03Z",
        "pdp_id": "234070802181193728"
      },
      "previous_state": "available",
      "product_id": "233680273479376896",
      "seller_key": "example-store.com-US",
      "seller_name": "Example Store",
      "series_level": "store",
      "sku_id": "6718083383825458800",
      "store_host": "www.example-store.com",
      "store_id": "example-store.com-US",
      "title": "Trail Runner 2",
      "transition": "out_of_stock",
      "url": "https://www.example-store.com/products/trail-runner-2",
      "variant_id": "233680273479376902"
    }
  ],
  "freshness": {
    "newest_observed_at": "2026-09-28T08:14:03Z",
    "oldest_observed_at": "2026-09-28T08:14:03Z"
  },
  "generated_at": "2026-09-28T08:14:03Z",
  "issues": [
    {
      "code": "no_reference_variants",
      "message": "The reference Store has no Variants in this scope."
    }
  ],
  "scope": {
    "brand": "Northwind",
    "category_id": "aa-8-8",
    "condition": "new",
    "country": "US",
    "from": "2026-09-28T08:14:03Z",
    "store_id": "example-store.com-US"
  },
  "status": "eligible",
  "summary": {
    "available_store_variant_count": 0,
    "backorder_store_variant_count": 0,
    "changed_state_series_count": 0,
    "current_available_series_count": 0,
    "current_backorder_series_count": 0,
    "current_preorder_backorder_series_count": 0,
    "current_preorder_series_count": 0,
    "current_unavailable_series_count": 0,
    "current_unknown_series_count": 0,
    "newly_observed_series_count": 0,
    "no_offer_store_variant_count": 0,
    "off_page_store_variant_count": 0,
    "out_of_stock_series_count": 0,
    "preorder_backorder_store_variant_count": 0,
    "preorder_store_variant_count": 0,
    "reappeared_series_count": 0,
    "removed_listing_series_count": 0,
    "removed_offer_series_count": 0,
    "removed_sku_series_count": 0,
    "removed_store_variant_count": 0,
    "restocked_series_count": 0,
    "unavailable_store_variant_count": 0,
    "unknown_store_variant_count": 0
  }
}