Namirnice — grocery prices and product catalogue

Namirnice API ("namirnice" is Croatian for groceries) is a unified REST service that combines the worldwide OpenFoodFacts product catalogue (about 4.3 million products, with nutrition data) with prices in Croatian retail chains and store locations.

Why?

Grocery prices are published publicly, but in formats that are hard to compare. This project collects them, normalises them and links them to the product catalogue — making it possible to answer questions like "where is this product cheapest today?" or "how has its price changed over time?".

How it works

  • MongoDB stores the OpenFoodFacts catalogue (products, ingredients, nutrition facts);
  • PostgreSQL stores prices and store locations collected by our crawlers (cijene-api);
  • a Flask API exposes a single interface: product search, price comparison and geolocation-based store search.

The service degrades gracefully by design: if the price database is unavailable, the catalogue keeps working and price-dependent endpoints return a clean 503 status.

The price data also powers QED's nutrition and price connector.