Brio Nutritional Scoring API Tester

Test the nutritional scoring API with single products or bulk processing

API Health Check

Single Product Scoring

Required for added fat ratio adjustments
Official Nutri-Score category
Applies +4 penalty for beverages
BrioScorePlus (Optional) - Additives & Processing Assessment

Add these fields to calculate total score (0-100). Leave empty for basic BrioScore only (0-60).

Copy from CSV. Risk levels: "Riesgoso" (-10), "Riesgo Posible (Debate)" (-5), "Sin riesgo conocido" (0)
Copy from CSV. Each component includes its penaltyScore
Adds +10 bonus points to BrioScorePlus

Bulk File Upload Scoring

Upload a JSON file containing product nutritional data for bulk processing

Upload a JSON file with product data. The file should contain an array of products with nutritional information.
Expected JSON Format:
[ { "id": "optional_product_id", "name": "optional_product_name", "energy_kcal": 350, "sugars_g": 2, "saturated_fat_g": 1.5, "total_fat_g": 3.0, "sodium_mg": 300, "fvln_pct": 85, "fiber_g": 5.2, "protein_g": 10, "has_sweetener": false, "nutriscore_category": "solid" } ]
Field Mapping Options:

If your JSON uses different field names, specify the mapping:

Note: Using total fat as approximation if saturated fat unavailable
solid, beverage, cheese, added fat
For saturated fat ratio calculations
Boolean field for beverage penalties
Pre-calculated fruits/nuts/vegetables/legumes %
BrioScorePlus Field Mapping (Optional):
JSON field with additive risk levels
JSON field with penalty scores
Boolean field (0/1 or true/false)

API Configuration