Analyze assortment overlap
/v1/analyses/assortment-overlapCompare the Variants two Stores carry.
Authorizationheader · requiredBearer <Extralt API key>reference_store_ id query · string · requiredcomparison_store_ id query · string · requiredcountryquery · string · requiredAn assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.
pattern ^[A-Z]{2}$category_id query · stringbrandquery · stringmax_staleness_ days query · integerDays 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 30limitquery · integer- int32 · ≥ 1 · ≤ 1000 · default 100
Response
Exact observed Variant overlap between two Stores, excluding stale Listings
analysis_id stringKnown values:
price_position,price_movements,assortment_overlap,availability_changes. Others may be added.coverageAssortmentOverlapCoveragecomparison_active_ listing_ count integer- int64 · ≥ 0
comparison_variant_ count integer- int64 · ≥ 0
excluded_removed_ listing_ count integer- int64 · ≥ 0
reference_active_ listing_ count integerActive, fresh Listings with a matched SKU on their page.
int64 · ≥ 0reference_variant_ count integer- int64 · ≥ 0
stale_excluded_ listing_ count integer- int64 · ≥ 0
unmatched_sku_ count integerSKUs on their page in the two Stores not matched to a Variant yet, so not compared.
int64 · ≥ 0
dataAssortmentOverlapRow[]At most
limitrows of evidence, sorted; the summary and coverage span the whole scope.brandstringcategory_id stringcategory_path stringcomparisonAssortmentListingEvidence · nullableactive_listing_ count integer- int64 · ≥ 0
representative_listing_ id stringrepresentative_url stringstore_id string
membershipAssortmentMembership- one of shared · reference_only · comparison_only
optionsmap<string, string>product_id stringreferenceAssortmentListingEvidence · nullableactive_listing_ count integer- int64 · ≥ 0
representative_listing_ id stringrepresentative_url stringstore_id string
titlestringvariant_id string
freshnessAnalysisFreshnessnewest_observed_ at string · nullable- date-time
oldest_observed_ at string · nullable- date-time
generated_at string- date-time
issuesAnalysisIssue[]codestringKnown 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.messagestring
scopeAssortmentOverlapScopebrandstring · nullablecategory_id string · nullablecomparison_store_ id stringcountrystringAn 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
statusAnalysisStatus- one of eligible · limited · ineligible
summaryAssortmentOverlapSummarycomparison_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
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