Fetch one Rappi Mexico product. The city on the page is Ciudad de México and the host is rappi.com.mx.
GET https://api.piloterr.com/v2/rappi/product?query=https://www.rappi.com.mx/p/santa-clara-leche-deslactosada-semidescremada-1-l-14069
Header: x-api-key.
query is required. Pass url from search, or the numeric master id, for example 14069.
The price on this page is the primary store. It can differ from a search card because that card is another store. For master id 14069, search showed Turbo Fresh-Angel Independencia at $35.90, and this page showed City Market at $33.00. name and master_product_id still match. offers lists the stores, including the search store at $35.90.
price and price_display on this object agree with each other. The same is true inside each offer.
query is required. Example: https://www.rappi.com.mx/p/santa-clara-leche-deslactosada-semidescremada-1-l-14069, or 14069.
product_id is the primary store's listing id. It can differ from product_id on a search row for another store. master_product_id is the catalog id and matches search. name, url, image, description, category, and presentation describe the product. This milk is category Leche natural and presentation 1 X 1 L.
price, price_display, currency (MXN), original_price, has_discount, and in_stock describe the primary offer. unit_type and unit_price are the unit fields. The unit string on this page can differ in format from the search card, for example $0.0330/ml here and 0.0359/ml on the search row.
requires_prescription, has_age_restriction, and alcoholic_beverage are booleans. min_quantity and max_quantity are integers.
store_id, store_name, and store_url are the primary store. city is Ciudad de México.
offers is a list. Each item has store_id, store_name, store_url, price, price_display, currency, in_stock, has_discount, and original_price. The first offer is the primary store.
- A shopping app shows the primary store price and the
offers list for the same 1 L carton.
- A catalog check reads
requires_prescription and has_age_restriction before it lists a SKU.
- A marketplace compares the search-card price at Turbo with the product-page price at City Market for master id
14069.
- 400:
query is not a rappi.com.mx product URL or a numeric master id.
- 404: the product page has no primary store.
- 401: missing API key.