Open Food Facts API v2

The Open Food Facts read/write HTTP API, version 2 — product lookup by barcode, faceted and full-text search, image upload and product edit. Published by the project as an OpenAPI 3.1 document in the openfoodfacts-server repository and rendered at the v2 reference.

Operations 13

GET /api/v2/product/{code} Get Product Details #
POST /cgi/product_image_upload.pl Upload Product Image #
GET /cgi/ingredients.pl OCR on Ingredients #
POST /cgi/product_image_crop.pl Select and Crop Image #
GET /cgi/product_image_crop.pl Rotate Image #
POST /cgi/product_image_unselect.pl Unselect Image #
POST /cgi/product_jqm2.pl Edit Product #
GET /cgi/suggest.pl Get Suggestions #
GET /cgi/nutrients.pl Get Nutrients List #
GET /api/v2/attribute_groups Get Attribute Groups #
GET /api/v2/preferences Get Preferences Weights #
POST /cgi/session.pl Login Session #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/open-food-facts-api-v2"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

open-food-facts-api-v2-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Open Food Facts Open API
  description: 'As a developer, the Open Food Facts API allows you to get information

    and contribute to the products database. You can create great apps to

    help people make better food choices and also provide data to enhance the database.


    **IMPORTANT**: Please read the [API introduction](https://openfoodfacts.github.io/openfoodfacts-server/api/) before using
    this API.

    '
  termsOfService: https://world.openfoodfacts.org/terms-of-use
  contact:
    name: Open Food Facts
    url: https://slack.openfoodfacts.org/
    email: reuse@openfoodfacts.org
  license:
    name: 'data: ODbL'
    url: https://opendatacommons.org/licenses/odbl/summary/index.html
    x-identifier: ODbL-1.0
  version: '2'
externalDocs:
  description: '**IMPORTANT**: Please read the API introduction before using this API.

    '
  url: https://openfoodfacts.github.io/openfoodfacts-server/api/
servers:
- description: dev
  url: https://world.openfoodfacts.net
- description: prod
  url: https://world.openfoodfacts.org


# --- truncated at 32 KB (1194 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/open-food-facts/refs/heads/main/openapi/open-food-facts-api-v2-openapi.yml