Open Food Facts Products API

Endpoints for managing product data and information.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Master Data Management BC-610.20

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

0 of 12 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 5 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /api/v2/product/{code} Get a product by barcode (legacy CGI) · Get Product Details observed #
Ask an LLM
“How do I fetch a product's details by barcode using the older CGI endpoint?”
“Can the legacy CGI product lookup return only certain fields like knowledge panels?”
Tell an agent
Get the product with barcode {code} using the CGI endpoint.
Fetch CGI product {code} returning only fields {fields}.
POST /cgi/product_jqm2.pl Edit or create a product via CGI · Edit Product #
Ask an LLM
“How do I add a new product or edit an existing one with the CGI form endpoint?”
“Does the CGI endpoint create a product if its barcode doesn't exist yet?”
Tell an agent
Edit product {code} with the CGI endpoint using user {user_id} and password {password}.
Add a new product {code} via CGI with brands {brands} and quantity {quantity}.
GET /api/v3/product/{code} Get a product by barcode (v3 API) · Get Product Data observed #
Ask an LLM
“What does the v3 API return for a product when I pass its barcode?”
“Can I limit the v3 product lookup to just the ingredients or nutrition fields?”
Tell an agent
Get product {code} from the v3 API.
Fetch v3 product {code} returning only {fields}.
PATCH /api/v3/product/{code} Create or update a product (v3 API) · Create or Update Product #
Ask an LLM
“How do I create a product with the v3 API by sending structured JSON?”
“Can I analyze product data without creating a product by using the test code?”
Tell an agent
Create or update product {code} with the v3 API using user {user_id} and password {password}.
Analyze product data for {code} on the v3 API without saving it.
POST /api/v3/product_revert Revert a product to a previous revision · Revert Product to Previous Revision #
Ask an LLM
“How do I roll back a product to an earlier revision?”
“Can a moderator undo a product edit by reverting to a specific revision?”
Tell an agent destructive · confirm first
Revert product {code} to revision {rev}.
Undo the latest edit on {code} by rolling it back to revision {rev}.
GET /products/stats Get product tag statistics · Product Stats #
Ask an LLM
“How many products carry a given tag, like vegan or gluten-free?”
“Can I get tag statistics for products owned by a specific user?”
Tell an agent
Show product tag statistics for owner {owner}.
Count products tagged {k} with value {v}.
GET /products List products matching tags · Product List #
Ask an LLM
“Which products carry a particular tag?”
“Can I list products that match a tag and value, like vegan=1?”
Tell an agent
List products tagged {k}.
Find products where tag {k} has value {v}.
GET /api/v1/products List products (v1 API) · Products list observed #
Ask an LLM
“How do I list products with a given brand or nutriscore grade?”
“Can I sort the v1 product list by number of scans or price count?”
Tell an agent
List products with brand {brands__like}.
Find v1 products with nutriscore grade {nutriscore_grade} ordered by {order_by}.
GET /api/v1/products/{id} Get a product by v1 ID · Products retrieve observed #
Ask an LLM
“How do I fetch a product record by its v1 ID?”
“What does the v1 product lookup return for a single product ID?”
Tell an agent
Get v1 product {id}.
Fetch the product record with v1 ID {id}.
GET /api/v1/products/code/{code} Get a product by barcode · Products code retrieve observed #
Ask an LLM
“Can I look up a product by its barcode?”
“What information is available for a single product?”
Tell an agent
Get product {code}.
Show the details for barcode {code}.
PATCH /api/v1/products/code/{code}/off-update Update a product's details via v1 · Products code off update partial update #
Ask an LLM
“How do I update a product's name or quantity through the v1 API?”
“Can I change a product's nutriscore grade using the v1 product update endpoint?”
Tell an agent
Update v1 product {code} with name {product_name}.
Change the quantity of v1 product {code} to {quantity}.
PATCH /api/v1/products/code/{code}/off-upload-image Upload an image to a product via v1 · Products code off upload image partial update #
Ask an LLM
“How do I upload a new image for a product through the v1 API?”
“Can I replace a product's image URL using the v1 upload endpoint?”
Tell an agent
Upload an image to v1 product {code} with URL {image_url}.
Replace the image on v1 product {code} with {image_url}.

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:open-food-facts-products-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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-products-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open Food Facts Products API
  version: '1.0'
  description: 'Operations tagged Products across 4 of this provider''s published API definitions: open-food-facts-api-v2-openapi.yml, open-food-facts-api-v3-openapi.yml, open-food-facts-folksonomy-openapi.json, open-food-facts-open-prices-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- description: dev
  url: https://world.openfoodfacts.net
- description: prod
  url: https://world.openfoodfacts.org
- description: proxy (for doc purpose)
  url: http://localhost:8080
- url: https://api.folksonomy.openfoodfacts.org
  description: Production server
- url: http://localhost:8000
  description: Local development server
tags:


# --- truncated at 32 KB (1471 KB total) ---
# Full source: https://artifacts.apis.io/open-food-facts/openapi/open-food-facts-products-api-openapi.yml