/v1/nutrition
Nutrition facts by barcode
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/food-api/v1/nutrition" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/food-api/v1/nutrition", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/food-api/v1/nutrition");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/food-api/v1/nutrition",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"barcode": "3017620422003",
"allergens": [
"milk",
"nuts",
"soybeans"
],
"nova_group": 4,
"nutriments": {
"fat_100g": 30.9,
"salt_100g": 0.107,
"fiber_100g": null,
"sodium_100g": 0.0428,
"sugars_100g": 56.3,
"proteins_100g": 6.3,
"energy_kcal_100g": 539,
"carbohydrates_100g": 57.5,
"saturated_fat_100g": 10.6
},
"product_name": "Nutella",
"serving_size": null,
"nutriscore_grade": "e"
},
"meta": {
"timestamp": "2026-05-30T03:53:22.258Z",
"request_id": "c88a38cd-c469-4638-911e-41c979d328bd"
},
"status": "ok",
"message": "Nutrition retrieved successfully",
"success": true
}