locations

GET /api/v1/locations/compare

Changed on

Compare two locations by their IDs. Returns shared product prices with the latest price per location, the date of that price, and the total sum.

Request

  • Base URL
    https://prices.openfoodfacts.org (the document declares no server; this is the origin it was published from)
  • URL
    https://prices.openfoodfacts.org/api/v1/locations/compare
  • Auth
    none declared

Query parameters

date__gtestring date

Filter prices with date greater than or equal to this date (YYYY-MM-DD)

date__ltestring date

Filter prices with date less than or equal to this date (YYYY-MM-DD)

location_id_ainteger required
location_id_binteger required
price_is_discountedboolean

Filter to keep only discounted or non-discounted prices

Response

shared_productsunknown required
total_sum_location_anumber double required
total_sum_location_bnumber double required

Changes

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status

    • info

      added the optional property / to the response with the status