Open Food Facts · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Open Food Facts Products API
13 actions
13 updates
phrasing
extends
openapi/open-food-facts-products-api-openapi.yml
Generated by API Evangelist
Written by API Evangelist tooling for Open Food Facts's API. It is a proposal applied on top of the contract, not a document Open Food Facts publishes.
What the actions change
x-apievangelist-phrasing
Targets 13
$.info
$.paths['/api/v2/product/{code}'].get
$.paths['/cgi/product_jqm2.pl'].post
$.paths['/api/v3/product/{code}'].get
$.paths['/api/v3/product/{code}'].patch
$.paths['/api/v3/product_revert'].post
$.paths['/products/stats'].get
$.paths['/products'].get
$.paths['/api/v1/products'].get
$.paths['/api/v1/products/{id}'].get
$.paths['/api/v1/products/code/{code}'].get
$.paths['/api/v1/products/code/{code}/off-update'].patch
$.paths['/api/v1/products/code/{code}/off-upload-image'].patch
OpenAPI Overlay
# Generated by API Evangelist (build-phrasing.py). Our phrasing, not observed demand.
overlay: 1.0.0
info:
title: API Evangelist conversational phrasing for Open Food Facts Products API
version: 1.0.0
extends: openapi/open-food-facts-products-api-openapi.yml
actions:
- target: $.info
update:
x-apievangelist-phrasing:
method: generated
generated: '2026-11-18'
generator: build-phrasing.py
label: Generated by API Evangelist
operations: 12
- target: $.paths['/api/v2/product/{code}'].get
update:
x-apievangelist-phrasing:
intent: Get a product by barcode (legacy CGI)
effect: read
questions:
- 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?
instructions:
- text: Get the product with barcode {code} using the CGI endpoint.
slots:
code: path.code
- text: Fetch CGI product {code} returning only fields {fields}.
slots:
code: path.code
fields: query.fields
method: generated
generated: '2026-11-18'
- target: $.paths['/cgi/product_jqm2.pl'].post
update:
x-apievangelist-phrasing:
intent: Edit or create a product via CGI
effect: write
questions:
- 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?
instructions:
- text: Edit product {code} with the CGI endpoint using user {user_id} and password {password}.
slots:
code: requestBody.code
user_id: requestBody.user_id
password: requestBody.password
- text: Add a new product {code} via CGI with brands {brands} and quantity {quantity}.
slots:
code: requestBody.code
brands: requestBody.brands
quantity: requestBody.quantity
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v3/product/{code}'].get
update:
x-apievangelist-phrasing:
intent: Get a product by barcode (v3 API)
effect: read
questions:
- 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?
instructions:
- text: Get product {code} from the v3 API.
slots:
code: path.code
- text: Fetch v3 product {code} returning only {fields}.
slots:
code: path.code
fields: query.fields
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v3/product/{code}'].patch
update:
x-apievangelist-phrasing:
intent: Create or update a product (v3 API)
effect: write
questions:
- 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?
instructions:
- text: Create or update product {code} with the v3 API using user {user_id} and password {password}.
slots:
code: path.code
user_id: requestBody.user_id
password: requestBody.password
- text: Analyze product data for {code} on the v3 API without saving it.
slots:
code: path.code
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v3/product_revert'].post
update:
x-apievangelist-phrasing:
intent: Revert a product to a previous revision
effect: destructive
questions:
- How do I roll back a product to an earlier revision?
- Can a moderator undo a product edit by reverting to a specific revision?
instructions:
- text: Revert product {code} to revision {rev}.
slots:
code: requestBody.code
rev: requestBody.rev
- text: Undo the latest edit on {code} by rolling it back to revision {rev}.
slots:
code: requestBody.code
rev: requestBody.rev
method: generated
generated: '2026-11-18'
- target: $.paths['/products/stats'].get
update:
x-apievangelist-phrasing:
intent: Get product tag statistics
effect: read
questions:
- How many products carry a given tag, like vegan or gluten-free?
- Can I get tag statistics for products owned by a specific user?
instructions:
- text: Show product tag statistics for owner {owner}.
slots:
owner: query.owner
- text: Count products tagged {k} with value {v}.
slots:
k: query.k
v: query.v
method: generated
generated: '2026-11-18'
- target: $.paths['/products'].get
update:
x-apievangelist-phrasing:
intent: List products matching tags
effect: read
questions:
- Which products carry a particular tag?
- Can I list products that match a tag and value, like vegan=1?
instructions:
- text: List products tagged {k}.
slots:
k: query.k
- text: Find products where tag {k} has value {v}.
slots:
k: query.k
v: query.v
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v1/products'].get
update:
x-apievangelist-phrasing:
intent: List products (v1 API)
effect: read
questions:
- 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?
instructions:
- text: List products with brand {brands__like}.
slots:
brands__like: query.brands__like
- text: Find v1 products with nutriscore grade {nutriscore_grade} ordered by {order_by}.
slots:
nutriscore_grade: query.nutriscore_grade
order_by: query.order_by
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v1/products/{id}'].get
update:
x-apievangelist-phrasing:
intent: Get a product by v1 ID
effect: read
questions:
- How do I fetch a product record by its v1 ID?
- What does the v1 product lookup return for a single product ID?
instructions:
- text: Get v1 product {id}.
slots:
id: path.id
- text: Fetch the product record with v1 ID {id}.
slots:
id: path.id
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v1/products/code/{code}'].get
update:
x-apievangelist-phrasing:
intent: Get a product by barcode
effect: read
questions:
- Can I look up a product by its barcode?
- What information is available for a single product?
instructions:
- text: Get product {code}.
slots:
code: path.code
- text: Show the details for barcode {code}.
slots:
code: path.code
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v1/products/code/{code}/off-update'].patch
update:
x-apievangelist-phrasing:
intent: Update a product's details via v1
effect: write
questions:
- 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?
instructions:
- text: Update v1 product {code} with name {product_name}.
slots:
code: path.code
product_name: requestBody.product_name
- text: Change the quantity of v1 product {code} to {quantity}.
slots:
code: path.code
quantity: requestBody.quantity
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v1/products/code/{code}/off-upload-image'].patch
update:
x-apievangelist-phrasing:
intent: Upload an image to a product via v1
effect: write
questions:
- 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?
instructions:
- text: Upload an image to v1 product {code} with URL {image_url}.
slots:
code: path.code
image_url: requestBody.image_url
- text: Replace the image on v1 product {code} with {image_url}.
slots:
code: path.code
image_url: requestBody.image_url
method: generated
generated: '2026-11-18'
Work with this as data
Every overlay 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 openapi overlays
4 MCP tools reach this
find_overlaysBrowse and filter every overlay in the catalog.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.
Call it yourself
curl for this page
This overlay
curl "https://apis.io/api/v1/overlays/open-food-facts-products-api-phrasing-overlay"
All openapi overlays
curl "https://apis.io/api/v1/overlays?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.