Docs / Comparar una canasta entre tiendasCompare a basket of products across retailersMarkdown

Comparar una canasta entre tiendas

POSThttps://pricto.dev/v1/prices/compare

Matrix of current prices for up to 50 products (by product_id or gtin) at each retailer, plus the basket total per retailer counting only retailers that have every item.

CréditosMCP
1 per price in the matrix (product × retailer with data)compare_prices

Parámetros#

ParámetroEnTipoDescripción
langquerystringResponse language as a BCP 47 tag (es, es-CL, en, en-US...). Supported today: es, en. An unsupported language falls back to English with a warning, never an error. Falls back to Accept-Language, then to the account default. The resolved value is in meta.lang.
currencyquerystringAdd converted amounts in this ISO 4217 currency. local (default) returns source currency only. Default: local.

Cuerpo#

CampoTipoDescripción
items requeridoItemRef[]
items[].product_idstring
items[].gtinstring
items[].offer_idstring
items[].quantityintegerCompare only.
retailersstring[]
locationstring
max_creditsnumber
dry_runboolean
min_confidencenumber
match_kindsstring[]
price_typestringWhich price to total. card_price falls back to price when there is no card price. Valores / values: price, card_price.

Respuesta#

200 Price matrix and basket totals.

CampoTipoDescripción
data requeridoobject
data.items requeridoobject[]
data.items[].product requeridoProductSummary
data.items[].product.id requeridostring
data.items[].product.name requeridostring
data.items[].product.brand requeridoBrandRef
data.items[].product.category requeridoCategoryRef
data.items[].product.sizeobject
data.items[].product.gtinstring[]
data.items[].product.image_urlstring | null
data.items[].product.price_summary requeridoPriceSummary
data.items[].product.scorenumberRelevance score, search only.
data.items[].quantity requeridointeger
data.items[].prices requeridoobjectMap of retailer ID to price (null when the retailer does not carry it).
data.retailers requeridoRetailerRef[]
data.retailers[].id requeridostring
data.retailers[].name requeridostring
data.totals requeridoobject[]Basket total per retailer, cheapest first.
data.totals[].retailer requeridoRetailerRef
data.totals[].retailer.id requeridostring
data.totals[].retailer.name requeridostring
data.totals[].total requeridonumber
data.totals[].items_found requeridointeger
data.totals[].complete requeridoboolean
data.totals[].converted_totalnumber | null
data.currencystring
data.not_foundItemRef[]
data.not_found[].product_idstring
data.not_found[].gtinstring
data.not_found[].offer_idstring
data.not_found[].quantityintegerCompare only.
meta requeridoMeta

meta trae el costo, la fuente para citar, el idioma, la moneda y los avisos (ver Convenciones).

Errores#

Compare a basket of products across retailers

POSThttps://pricto.dev/v1/prices/compare

Matrix of current prices for up to 50 products (by product_id or gtin) at each retailer, plus the basket total per retailer counting only retailers that have every item.

CreditsMCP
1 per price in the matrix (product × retailer with data)compare_prices

Parameters#

ParameterInTypeDescription
langquerystringResponse language as a BCP 47 tag (es, es-CL, en, en-US...). Supported today: es, en. An unsupported language falls back to English with a warning, never an error. Falls back to Accept-Language, then to the account default. The resolved value is in meta.lang.
currencyquerystringAdd converted amounts in this ISO 4217 currency. local (default) returns source currency only. Default: local.

Body#

FieldTypeDescription
items requiredItemRef[]
items[].product_idstring
items[].gtinstring
items[].offer_idstring
items[].quantityintegerCompare only.
retailersstring[]
locationstring
max_creditsnumber
dry_runboolean
min_confidencenumber
match_kindsstring[]
price_typestringWhich price to total. card_price falls back to price when there is no card price. Valores / values: price, card_price.

Response#

200 Price matrix and basket totals.

FieldTypeDescription
data requiredobject
data.items requiredobject[]
data.items[].product requiredProductSummary
data.items[].product.id requiredstring
data.items[].product.name requiredstring
data.items[].product.brand requiredBrandRef
data.items[].product.category requiredCategoryRef
data.items[].product.sizeobject
data.items[].product.gtinstring[]
data.items[].product.image_urlstring | null
data.items[].product.price_summary requiredPriceSummary
data.items[].product.scorenumberRelevance score, search only.
data.items[].quantity requiredinteger
data.items[].prices requiredobjectMap of retailer ID to price (null when the retailer does not carry it).
data.retailers requiredRetailerRef[]
data.retailers[].id requiredstring
data.retailers[].name requiredstring
data.totals requiredobject[]Basket total per retailer, cheapest first.
data.totals[].retailer requiredRetailerRef
data.totals[].retailer.id requiredstring
data.totals[].retailer.name requiredstring
data.totals[].total requirednumber
data.totals[].items_found requiredinteger
data.totals[].complete requiredboolean
data.totals[].converted_totalnumber | null
data.currencystring
data.not_foundItemRef[]
data.not_found[].product_idstring
data.not_found[].gtinstring
data.not_found[].offer_idstring
data.not_found[].quantityintegerCompare only.
meta requiredMeta

meta carries the cost, the source line to quote, the language, the currency and notices (see Conventions).

Errors#