Analyze price position
/v1/analyses/price-positionCompare a Store's prices with its competitors'.
Authorizationheader · requiredBearer <Extralt API key>reference_store_ id query · string · requiredcountryquery · string · requiredAn assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.
pattern ^[A-Z]{2}$currencyquery · string · required- pattern ^[A-Z]{3}$
conditionquery · OfferCondition- one of unknown · new · used · refurbished · like_new · very_good · good · acceptable
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 · integerMost evidence rows returned; defaults to 100.
int32 · ≥ 1 · ≤ 1000 · default 100
Response
Current competitive price position for a reference Store, excluding stale Listings
analysis_id stringKnown values:
price_position,price_movements,assortment_overlap,availability_changes. Others may be added.coveragePricePositionCoverageavailable_reference_ variant_ count integer- int64 · ≥ 0
comparable_share number · nullable- double
comparable_variant_ count integer- int64 · ≥ 0
insufficient_comparison_ variant_ count integer- int64 · ≥ 0
price_index_ variant_ count integer- int64 · ≥ 0
reference_variant_ count integer- int64 · ≥ 0
stale_excluded_ listing_ count integerListings of the scoped Variants' offers excluded as stale, in any Store.
int64 · ≥ 0unavailable_reference_ variant_ count integer- int64 · ≥ 0
unknown_reference_ variant_ count integer- int64 · ≥ 0
unmatched_sku_ count integerSKUs on their page in the country not matched to a Variant yet, so not compared.
int64 · ≥ 0zero_median_ variant_ count integer- int64 · ≥ 0
dataPricePositionRow[]At most
limitrows of evidence, sorted; the summary and coverage span the whole scope.brandstringcategory_id stringcategory_path stringcomparison_evidence PricePositionStoreEvidence[]evidencePricePositionEvidenceThe offer behind a Store's price: its SKU's Listing and the read that observed it.
listing_id stringobserved_at string- date-time
pdp_id stringseller_name stringsku_id stringurlstring
pricestringExact non-negative price amount with up to four fractional digits. Serialization uses the canonical decimal string representation.
pattern ^(0|[1-9][0-9]{0,13})(\.[0-9]{1,4})?$store_host stringstore_id string
comparison_highest_ price stringExact non-negative price amount with up to four fractional digits. Serialization uses the canonical decimal string representation.
pattern ^(0|[1-9][0-9]{0,13})(\.[0-9]{1,4})?$comparison_median_ price stringExact decimal; an even Store count can require five fractional digits.
pattern ^(0|[1-9][0-9]{0,13})(\.[0-9]{1,5})?$currencystring- pattern ^[A-Z]{3}$
delta_to_ lowest string- pattern ^-?(0|[1-9][0-9]{0,13})(\.[0-9]{1,5})?$
delta_to_ lowest_ percent string · nullable- pattern ^-?(0|[1-9][0-9]{0,20})(\.[0-9]{1,6})?$
delta_to_ median string- pattern ^-?(0|[1-9][0-9]{0,13})(\.[0-9]{1,5})?$
delta_to_ median_ percent string · nullableDecimal percentage truncated to six fractional digits; null for a zero median.
pattern ^-?(0|[1-9][0-9]{0,20})(\.[0-9]{1,6})?$freshnessAnalysisFreshnessnewest_observed_ at string · nullable- date-time
oldest_observed_ at string · nullable- date-time
lowest_comparison_ evidence PricePositionEvidenceThe offer behind a Store's price: its SKU's Listing and the read that observed it.
listing_id stringobserved_at string- date-time
pdp_id stringseller_name stringsku_id stringurlstring
lowest_comparison_ price stringExact non-negative price amount with up to four fractional digits. Serialization uses the canonical decimal string representation.
pattern ^(0|[1-9][0-9]{0,13})(\.[0-9]{1,4})?$lowest_comparison_ store_ host stringlowest_comparison_ store_ id stringoptionsmap<string, string>product_id stringreference_evidence PricePositionEvidenceThe offer behind a Store's price: its SKU's Listing and the read that observed it.
listing_id stringobserved_at string- date-time
pdp_id stringseller_name stringsku_id stringurlstring
reference_price stringExact non-negative price amount with up to four fractional digits. Serialization uses the canonical decimal string representation.
pattern ^(0|[1-9][0-9]{0,13})(\.[0-9]{1,4})?$reference_rank integer- int64 · ≥ 0
reference_store_ host stringreference_store_ id stringstore_count integer- int64 · ≥ 0
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
scopePricePositionScopebrandstring · nullablecategory_id string · nullableconditionstringKnown values:
unknown,new,used,refurbished,like_new,very_good,good,acceptable. Others may be added.countrystringAn assigned ISO 3166-1 alpha-2 country code, in its canonical upper case.
pattern ^[A-Z]{2}$currencystring- pattern ^[A-Z]{3}$
max_staleness_ days integer- int32 · ≥ 0
reference_store_ id string
statusAnalysisStatus- one of eligible · limited · ineligible
summaryPricePositionSummaryabove_median_ count integer- int64 · ≥ 0
above_median_ share number · nullable- double
at_median_ count integer- int64 · ≥ 0
at_median_ share number · nullable- double
below_median_ count integer- int64 · ≥ 0
below_median_ share number · nullable- double
price_index string · nullableMedian of six-place reference/competitor price ratios; null without a nonzero competitor median.
pattern ^(0|[1-9][0-9]{0,20})(\.[0-9]{1,6})?$
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