/v1/product
Product by barcode
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/food-api/v1/product" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/food-api/v1/product", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/food-api/v1/product");
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/product",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"url": "https://world.openfoodfacts.org/product/3017620422003",
"image": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.820.400.jpg",
"brands": "Nutella",
"labels": [
"no-gluten",
"triman",
"Sans colorants",
"Sans conservateurs",
"Sans gluten",
"Sans matière grasse hydrogénée",
"Végétarien"
],
"barcode": "3017620422003",
"quantity": null,
"allergens": [
"milk",
"nuts",
"soybeans"
],
"countries": [
"france",
"italy",
"luxembourg",
"philippines",
"Allemagne",
"Belgique",
"Espagne",
"Inde",
"Maroc",
"Pays-Bas",
"Pologne",
"Roumanie",
"Royaume-Uni",
"Suisse",
"Turquie",
"États-Unis"
],
"categories": [
"Petit-déjeuners",
"Produits à tartiner",
"Produits à tartiner sucrés",
"Pâtes à tartiner"
],
"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,
"ecoscore_grade": "unknown",
"ingredients_text": "Sucre, huile de palme, NOISETTES 13%, cacao maigre 7,4%, LAIT écrémé en poudre 6,6%, LACTOSERUM en poudre, émulsifiants: lécithines [SOJA), vanilline. Sans gluten.",
"nutriscore_grade": "e"
},
"meta": {
"timestamp": "2026-05-30T03:53:22.755Z",
"request_id": "133b125a-bd17-470e-a258-f2d4ad64a7cc"
},
"status": "ok",
"message": "Product retrieved successfully",
"success": true
}