Skip to content

Open Food Facts API

9 endpointsCommerce & MarketplacesGlobalsocial:read5 real examples

Returns food products by barcode, search, category, label, brand or Nutri-Score, with ingredients and nutrition data.

View as Markdown
GET/openfoodfacts/productOne food product by its barcode: brands, ingredients, Nutri-Score and nutrition per 100 g.
GET/openfoodfacts/searchFood products matching words, one page at a time, with barcode, brand and Nutri-Score.
GET/openfoodfacts/byCategoryProducts of one category, such as breakfasts or chocolate-spreads, paged.
GET/openfoodfacts/byLabelProducts carrying one label, such as organic or vegan, paged.
GET/openfoodfacts/byBrandProducts of one brand, such as nutella, paged.
GET/openfoodfacts/byStoreProducts sold in one store or chain, such as carrefour or lidl, paged.
GET/openfoodfacts/byCountryFood products sold in one country, such as france or indonesia, paged.
GET/openfoodfacts/byNutriScoreProducts with one Nutri-Score grade, from A (best) to E, paged.
GET/openfoodfacts/taxonomyThe entries of one Open Food Facts taxonomy, such as labels or allergens, with their English names, paged.

product

GET/v1/openfoodfacts/product

One food product by its barcode: brands, ingredients, Nutri-Score and nutrition per 100 g.

scope social:read1 unitcached 24 h

Parameters

barcode
string
required
EAN, UPC or GTIN barcode of 8 to 14 digits, such as 3017620422003.
e.g. 3017620422003
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
categoriesstring[]
countriesstring[]
imageUrlstring
ingredientsstring
namestring
novaGroupinteger (int64)
nutriScorestring
nutritionNutrition
carbohydratesnumber (double)
energyKcalnumber (double)
fatnumber (double)
fibernumber (double)
proteinsnumber (double)
saltnumber (double)
saturatedFatnumber (double)
sugarsnumber (double)
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/product?barcode=3017620422003" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}

byCategory

GET/v1/openfoodfacts/byCategory

Products of one category, such as breakfasts or chocolate-spreads, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

category
string
required
Category name as the database writes it, such as breakfasts.
e.g. breakfasts
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 50.
default 10e.g. 2
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
imageUrlstring
namestring
nutriScorestring
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/byCategory?category=breakfasts&limit=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/openfoodfacts/byLabel

Products carrying one label, such as organic or vegan, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

label
string
required
Label name, such as organic or vegan.
e.g. organic
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 50.
default 10e.g. 2
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
imageUrlstring
namestring
nutriScorestring
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/byLabel?label=organic&limit=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/openfoodfacts/byBrand

Products of one brand, such as nutella, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

brand
string
required
Brand name, such as nutella.
e.g. nutella
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 50.
default 10e.g. 2
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
imageUrlstring
namestring
nutriScorestring
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/byBrand?brand=nutella&limit=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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

GET/v1/openfoodfacts/byStore

Products sold in one store or chain, such as carrefour or lidl, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

store
string
required
Store or chain name, such as carrefour.
e.g. carrefour
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 50.
default 10e.g. 2
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
imageUrlstring
namestring
nutriScorestring
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/byStore?store=carrefour&limit=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/openfoodfacts/byCountry

Food products sold in one country, such as france or indonesia, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

country
string
required
Country name, such as france.
e.g. france
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 50.
default 10e.g. 2
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
imageUrlstring
namestring
nutriScorestring
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/byCountry?country=france&limit=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/openfoodfacts/byNutriScore

Products with one Nutri-Score grade, from A (best) to E, paged.

scope social:read1 unitcached 1 hpaginated

Parameters

grade
string
required
Nutri-Score grade: a, b, c, d or e.
abcde
e.g. a
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
limit
integer
Items per page, 1 to 50.
default 10e.g. 2
tunnel
string
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.
proxy
string
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.
profileId
string
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
barcodestring
brandsstring[]
imageUrlstring
namestring
nutriScorestring
quantitystring
curl "https://api.hoshime.com/v1/openfoodfacts/byNutriScore?grade=a&limit=2" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "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

GET/v1/openfoodfacts/taxonomy

The entries of one Open Food Facts taxonomy, such as labels or allergens, with their English names, paged.

scope social:read1 unitcached 24 hpaginated

Parameters

name
string
required
Taxonomy: labels, allergens, additives, countries or packaging.
labelsallergensadditivescountriespackaging
e.g. allergens
limit
integer
Items per page, 1 to 500.
default 50e.g. 5
cursor
string
meta.pagination.nextCursor of the previous page. Omit it for the first page.
tunnel
string
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.
proxy
string
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.
profileId
string
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
idstring
namestring
curl "https://api.hoshime.com/v1/openfoodfacts/taxonomy?name=allergens&limit=5" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Real response
{
  "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
  }
}
esc
↑↓ move↵ open