Open Food Facts API
Returns food products by barcode, search, category, label, brand or Nutri-Score, with ingredients and nutrition data.
View as Markdown| GET | /openfoodfacts/product | One food product by its barcode: brands, ingredients, Nutri-Score and nutrition per 100 g. |
| GET | /openfoodfacts/search | Food products matching words, one page at a time, with barcode, brand and Nutri-Score. |
| GET | /openfoodfacts/byCategory | Products of one category, such as breakfasts or chocolate-spreads, paged. |
| GET | /openfoodfacts/byLabel | Products carrying one label, such as organic or vegan, paged. |
| GET | /openfoodfacts/byBrand | Products of one brand, such as nutella, paged. |
| GET | /openfoodfacts/byStore | Products sold in one store or chain, such as carrefour or lidl, paged. |
| GET | /openfoodfacts/byCountry | Food products sold in one country, such as france or indonesia, paged. |
| GET | /openfoodfacts/byNutriScore | Products with one Nutri-Score grade, from A (best) to E, paged. |
| GET | /openfoodfacts/taxonomy | The entries of one Open Food Facts taxonomy, such as labels or allergens, with their English names, paged. |
product
/v1/openfoodfacts/productOne food product by its barcode: brands, ingredients, Nutri-Score and nutrition per 100 g.
Parameters
barcodestring required | EAN, UPC or GTIN barcode of 8 to 14 digits, such as 3017620422003. e.g. 3017620422003 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
19 fields
barcode | string |
brands | string[] |
categories | string[] |
countries | string[] |
imageUrl | string |
ingredients | string |
name | string |
novaGroup | integer (int64) |
nutriScore | string |
nutrition | Nutrition |
carbohydrates | number (double) |
energyKcal | number (double) |
fat | number (double) |
fiber | number (double) |
proteins | number (double) |
salt | number (double) |
saturatedFat | number (double) |
sugars | number (double) |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/product?barcode=3017620422003" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/product?barcode=3017620422003", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/product?barcode=3017620422003", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "barcode": "3017620422003", "brands": [ "Nutella", "Ferrero" ], "categories": [ "breakfasts", "snacks" ], "countries": [ "belgium", "france" ], "imageUrl": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.879.400.jpg", "ingredients": "sugar, palm oil", "name": "Nutella", "novaGroup": 3, "nutriScore": "", "nutrition": { "carbohydrates": 57.5, "energyKcal": 539, "fat": 30.9, "fiber": 0, "proteins": 6.3, "salt": 0.107, "saturatedFat": 10.6, "sugars": 56.3 }, "quantity": "400 g e" }, "meta": { "cached": false, "endpoint": "product", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
search
/v1/openfoodfacts/searchFood products matching words, one page at a time, with barcode, brand and Nutri-Score.
Parameters
querystring required | Words to search for, such as nutella. e.g. nutella |
limitinteger | Items per page, 1 to 50. default 10 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/search?query=nutella" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/search?query=nutella", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/search?query=nutella", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "6111246721261", "brands": [ "Milky Food Professional", "SODIPOL" ], "imageUrl": "https://images.openfoodfacts.org/images/products/611/124/672/1261/front_fr.118.200.jpg", "name": "Fromage Blanc Nature", "nutriScore": "C", "quantity": "1 kg" }, { "barcode": "6111035000430", "brands": [ "Sidi Ali", "سيدي علي" ], "imageUrl": "https://images.openfoodfacts.org/images/products/611/103/500/0430/front_en.104.200.jpg", "name": "Sidi Ali", "nutriScore": "A", "quantity": "33 cl" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
byCategory
/v1/openfoodfacts/byCategoryProducts of one category, such as breakfasts or chocolate-spreads, paged.
Parameters
categorystring required | Category name as the database writes it, such as breakfasts. e.g. breakfasts |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 50. default 10e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/byCategory?category=breakfasts&limit=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/byCategory?category=breakfasts&limit=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/byCategory?category=breakfasts&limit=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "3168930010265", "brands": [ "Cruesli", "Quaker" ], "imageUrl": "https://images.openfoodfacts.org/images/products/316/893/001/0265/front_en.297.200.jpg", "name": "cruesly mélange de noix", "nutriScore": "B", "quantity": "450 g" }, { "barcode": "3017620422003", "brands": [ "Nutella", "Ferrero" ], "imageUrl": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.879.200.jpg", "name": "Nutella", "nutriScore": "", "quantity": "400 g e" } ], "meta": { "cached": false, "endpoint": "byCategory", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
byLabel
/v1/openfoodfacts/byLabelProducts carrying one label, such as organic or vegan, paged.
Parameters
labelstring required | Label name, such as organic or vegan. e.g. organic |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 50. default 10e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/byLabel?label=organic&limit=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/byLabel?label=organic&limit=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/byLabel?label=organic&limit=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "…", "brands": [ "…" ], "imageUrl": "https://…", "name": "…", "nutriScore": "…", "quantity": "…" } ], "meta": { "cached": false, "endpoint": "byLabel", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
byBrand
/v1/openfoodfacts/byBrandProducts of one brand, such as nutella, paged.
Parameters
brandstring required | Brand name, such as nutella. e.g. nutella |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 50. default 10e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/byBrand?brand=nutella&limit=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/byBrand?brand=nutella&limit=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/byBrand?brand=nutella&limit=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "3017620422003", "brands": [ "Nutella", "Ferrero" ], "imageUrl": "https://images.openfoodfacts.org/images/products/301/762/042/2003/front_en.879.200.jpg", "name": "Nutella", "nutriScore": "", "quantity": "400 g e" }, { "barcode": "3017620425035", "brands": [ "Nutella", "FERRERO FRANCE COMMERCIALE" ], "imageUrl": "https://images.openfoodfacts.org/images/products/301/762/042/5035/front_en.583.200.jpg", "name": "Nutella", "nutriScore": "E", "quantity": "1 kg" } ], "meta": { "cached": false, "endpoint": "byBrand", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
byStore
/v1/openfoodfacts/byStoreProducts sold in one store or chain, such as carrefour or lidl, paged.
Parameters
storestring required | Store or chain name, such as carrefour. e.g. carrefour |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 50. default 10e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/byStore?store=carrefour&limit=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/byStore?store=carrefour&limit=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/byStore?store=carrefour&limit=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "…", "brands": [ "…" ], "imageUrl": "https://…", "name": "…", "nutriScore": "…", "quantity": "…" } ], "meta": { "cached": false, "endpoint": "byStore", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
byCountry
/v1/openfoodfacts/byCountryFood products sold in one country, such as france or indonesia, paged.
Parameters
countrystring required | Country name, such as france. e.g. france |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 50. default 10e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/byCountry?country=france&limit=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/byCountry?country=france&limit=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/byCountry?country=france&limit=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "…", "brands": [ "…" ], "imageUrl": "https://…", "name": "…", "nutriScore": "…", "quantity": "…" } ], "meta": { "cached": false, "endpoint": "byCountry", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
byNutriScore
/v1/openfoodfacts/byNutriScoreProducts with one Nutri-Score grade, from A (best) to E, paged.
Parameters
gradestring required | Nutri-Score grade: a, b, c, d or e.abcdee.g. a |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
limitinteger | Items per page, 1 to 50. default 10e.g. 2 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
barcode | string |
brands | string[] |
imageUrl | string |
name | string |
nutriScore | string |
quantity | string |
curl "https://api.hoshime.com/v1/openfoodfacts/byNutriScore?grade=a&limit=2" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/byNutriScore?grade=a&limit=2", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/byNutriScore?grade=a&limit=2", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "barcode": "…", "brands": [ "…" ], "imageUrl": "https://…", "name": "…", "nutriScore": "…", "quantity": "…" } ], "meta": { "cached": false, "endpoint": "byNutriScore", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }
taxonomy
/v1/openfoodfacts/taxonomyThe entries of one Open Food Facts taxonomy, such as labels or allergens, with their English names, paged.
Parameters
namestring required | Taxonomy: labels, allergens, additives, countries or packaging.labelsallergensadditivescountriespackaginge.g. allergens |
limitinteger | Items per page, 1 to 500. default 50e.g. 5 |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
id | string |
name | string |
curl "https://api.hoshime.com/v1/openfoodfacts/taxonomy?name=allergens&limit=5" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/openfoodfacts/taxonomy?name=allergens&limit=5", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/openfoodfacts/taxonomy?name=allergens&limit=5", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "id": "en:apple", "name": "apple" }, { "id": "en:banana", "name": "banana" } ], "meta": { "cached": false, "endpoint": "taxonomy", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "openfoodfacts", "requestId": "req_2Xb9kQ…", "units": 1 } }