Food waste tracking in FridgeRadar turns every discarded item into a data point. When a product is thrown away — because it expired, spoiled, or was left over — you record a waste event (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EstefanoARG/FridgeRadar/llms.txt
Use this file to discover all available pages before exploring further.
desperdicio) that links back to the original inventory item. Over time, these events accumulate into household metrics that reveal patterns: which products are wasted most often, how much is typically discarded, and whether waste is trending up or down. All waste endpoints require a valid bearer token.
What counts as a waste event
A waste event should be logged whenever a pantry item is removed from inventory without being fully consumed. Common motives include:vencido— product passed its expiry datedañado— product was physically damaged or spoiled before expirysobrante— leftover after cooking that will not be used- Any other free-text reason you want to record in
motivo
FridgeRadar also has a scheduled task that automatically creates waste events for items whose
estado_caducidad is "vencido" — so even if you forget to log it manually, expired items will appear in your metrics. See the Scheduled Tasks guide for details.Logging a waste event
POST /api/v1/desperdicio
Send a DesperdicioCreate body referencing the inventory item being discarded.
| Field | Type | Required | Description |
|---|---|---|---|
id_inventario | int | ✅ | ID of the inventory item being discarded |
cantidad | float | ❌ | How much was discarded (uses inventory unit) |
motivo | str | ❌ | Reason for disposal ("vencido", "dañado", "sobrante", etc.) |
comentario | str | ❌ | Free-text additional context |
201 Created with a DesperdicioResponse:
| Field | Type | Description |
|---|---|---|
id_desperdicio | int | Auto-assigned waste event ID |
id_inventario | int | Linked inventory item |
cantidad | float | null | Amount discarded |
motivo | str | null | Reason for disposal |
comentario | str | null | Additional free-text notes |
fecha_desperdicio | datetime | Timestamp the event was recorded |
Listing waste events for a household
GET /api/v1/desperdicio?id_hogar={id}
Retrieves all waste events for the specified household, ordered by most recent first.
DesperdicioResponse objects.
Viewing waste metrics
GET /api/v1/desperdicio/metricas/{id_hogar}
Returns aggregate statistics for a household — total events, total quantity discarded, breakdown by motive, and trends over time. Use these metrics to understand where waste is happening and take corrective action.
Reducing waste over time
Monitor the semáforo
Regularly check
amarillo and rojo items in the inventory. Act on them before they reach vencido.Review metrics weekly
Use
GET /api/v1/desperdicio/metricas/{id_hogar} to spot which products your household wastes most and adjust buying habits.Record honest motives
Filling in
motivo consistently (e.g. "sobrante" vs "vencido") makes metrics more actionable — you can tell whether the problem is over-buying or poor rotation.Lean on automation
The nightly task at 02:00 auto-logs expired inventory as waste events so nothing slips through, even if no one manually records it.