Skip to content

Analyze assortment overlap

GET/v1/analyses/assortment-overlap

Compare the Variants two Stores carry.

Authorization
header · required
Bearer <Extralt API key>
reference_store_id
query · string · required
comparison_store_id
query · string · required
country
query · string · required

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

pattern ^[A-Z]{2}$
category_id
query · string
brand
query · string
max_staleness_days
query · integer

Days a Listing's latest observation may trail the newest one in its Store before it leaves this Analysis as stale; defaults to 30. Staleness is eligibility, never removal.

int32 · ≥ 1 · ≤ 365 · default 30
limit
query · integer
int32 · ≥ 1 · ≤ 1000 · default 100

Response

200 OK · application/json

Exact observed Variant overlap between two Stores, excluding stale Listings

analysis_id
string

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

coverage
AssortmentOverlapCoverage
comparison_active_listing_count
integer
int64 · ≥ 0
comparison_variant_count
integer
int64 · ≥ 0
excluded_removed_listing_count
integer
int64 · ≥ 0
reference_active_listing_count
integer

Active, fresh Listings with a matched SKU on their page.

int64 · ≥ 0
reference_variant_count
integer
int64 · ≥ 0
stale_excluded_listing_count
integer
int64 · ≥ 0
unmatched_sku_count
integer

SKUs on their page in the two Stores not matched to a Variant yet, so not compared.

int64 · ≥ 0
data
AssortmentOverlapRow[]

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

brand
string
category_id
string
category_path
string
comparison
AssortmentListingEvidence · nullable
membership
AssortmentMembership
one of shared · reference_only · comparison_only
options
map<string, string>
product_id
string
reference
AssortmentListingEvidence · nullable
title
string
variant_id
string
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
AssortmentOverlapScope
brand
string · nullable
category_id
string · nullable
comparison_store_id
string
country
string

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

pattern ^[A-Z]{2}$
match_level
AssortmentMatchLevel
one of exact_variant
max_staleness_days
integer
int32 · ≥ 0
reference_store_id
string
status
AnalysisStatus
one of eligible · limited · ineligible
summary
AssortmentOverlapSummary
comparison_coverage
number · nullable
double
comparison_only_variant_count
integer
int64 · ≥ 0
jaccard_similarity
number · nullable
double
reference_coverage
number · nullable
double
reference_only_variant_count
integer
int64 · ≥ 0
shared_variant_count
integer
int64 · ≥ 0
union_variant_count
integer
int64 · ≥ 0

Errors

ErrorResponse

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

400

Invalid analysis scope 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/assortment-overlap?reference_store_id=example-store.com-US&comparison_store_id=example-outlet.com-US&country=US' \
  -H "Authorization: Bearer $EXTRALT_API_KEY"
Response · 200
{
  "analysis_id": "price_position",
  "coverage": {
    "comparison_active_listing_count": 0,
    "comparison_variant_count": 0,
    "excluded_removed_listing_count": 0,
    "reference_active_listing_count": 0,
    "reference_variant_count": 0,
    "stale_excluded_listing_count": 0,
    "unmatched_sku_count": 0
  },
  "data": [
    {
      "brand": "Northwind",
      "category_id": "aa-8-8",
      "category_path": "Apparel & Accessories > Shoes > Sneakers",
      "comparison": {
        "active_listing_count": 0,
        "representative_listing_id": "1780130042449153771",
        "representative_url": "https://www.example-store.com/products/trail-runner-2",
        "store_id": "example-store.com-US"
      },
      "membership": "shared",
      "options": {
        "color": "Black",
        "size": "10"
      },
      "product_id": "233680273479376896",
      "reference": {
        "active_listing_count": 0,
        "representative_listing_id": "1780130042449153771",
        "representative_url": "https://www.example-store.com/products/trail-runner-2",
        "store_id": "example-store.com-US"
      },
      "title": "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",
    "comparison_store_id": "example-outlet.com-US",
    "country": "US",
    "match_level": "exact_variant",
    "max_staleness_days": 0,
    "reference_store_id": "example-store.com-US"
  },
  "status": "eligible",
  "summary": {
    "comparison_coverage": 0,
    "comparison_only_variant_count": 0,
    "jaccard_similarity": 0,
    "reference_coverage": 0,
    "reference_only_variant_count": 0,
    "shared_variant_count": 0,
    "union_variant_count": 0
  }
}