Open Food Facts · OpenAPI Overlay 1.0.0
API Evangelist conversational phrasing for Open Food Facts Images API
7 actions
7 updates
phrasing
extends
openapi/open-food-facts-images-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 7
$.info
$.paths['/cgi/product_image_upload.pl'].post
$.paths['/cgi/product_image_crop.pl'].get
$.paths['/cgi/product_image_crop.pl'].post
$.paths['/cgi/product_image_unselect.pl'].post
$.paths['/api/v3/product/{code}/images'].post
$.paths['/api/v3/product/{code}/images/uploaded/{imgid}'].delete
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 Images API
version: 1.0.0
extends: openapi/open-food-facts-images-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: 6
- target: $.paths['/cgi/product_image_upload.pl'].post
update:
x-apievangelist-phrasing:
intent: Upload a product image via CGI
effect: write
questions:
- How do I upload a photo of a product's front label through the CGI endpoint?
- Can I upload an image and have it auto-selected as the front photo?
instructions:
- text: Upload image {imagefield} for product {code} via CGI.
slots:
imagefield: requestBody.imagefield
code: requestBody.code
- text: Send a CGI upload of {imagefield} for {code} with comment {comment}.
slots:
imagefield: requestBody.imagefield
code: requestBody.code
comment: requestBody.comment
method: generated
generated: '2026-11-18'
- target: $.paths['/cgi/product_image_crop.pl'].get
update:
x-apievangelist-phrasing:
intent: Rotate an existing product image
effect: write
questions:
- Can I rotate a product photo by 90 degrees clockwise through the CGI endpoint?
- What angles can I rotate an existing image with the CGI crop call?
instructions:
- text: Rotate image {imgid} of product {code} by {angle} degrees via CGI.
slots:
imgid: query.imgid
code: query.code
angle: query.angle
- text: Use the CGI crop endpoint to rotate {imgid} on {code} by {angle}.
slots:
imgid: query.imgid
code: query.code
angle: query.angle
method: generated
generated: '2026-11-18'
- target: $.paths['/cgi/product_image_crop.pl'].post
update:
x-apievangelist-phrasing:
intent: Crop and rotate an existing product image
effect: write
questions:
- How do I crop an existing product photo to focus on the ingredients label?
- Can I rotate an existing image and normalize it in one CGI call?
instructions:
- text: Crop image {imgid} of product {code} to {x1},{y1} to {x2},{y2} via CGI.
slots:
imgid: requestBody.imgid
code: requestBody.code
x1: requestBody.x1
y1: requestBody.y1
x2: requestBody.x2
y2: requestBody.x2
- text: Crop {imgid} on {code} with CGI, selecting field {id}, rotating {angle}.
slots:
imgid: requestBody.imgid
code: requestBody.code
id: requestBody.id
angle: requestBody.angle
method: generated
generated: '2026-11-18'
- target: $.paths['/cgi/product_image_unselect.pl'].post
update:
x-apievangelist-phrasing:
intent: Unselect a product photo
effect: destructive
questions:
- How do I unselect a photo that was chosen for a product?
- Can I remove a selected image from a product without deleting it?
instructions:
- text: Unselect image {id} for product {code} via CGI.
slots:
id: requestBody.id
code: requestBody.code
- text: Remove the selected photo {id} from {code} using the CGI unselect call.
slots:
id: requestBody.id
code: requestBody.code
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v3/product/{code}/images'].post
update:
x-apievangelist-phrasing:
intent: Upload a product image (v3 API)
effect: write
questions:
- How do I upload a product image as base64 on the v3 API?
- Can I crop the uploaded image for a specific language right away?
instructions:
- text: Upload base64 image {image_data_base64} for product {code} on v3.
slots:
image_data_base64: requestBody.image_data_base64
code: path.code
- text: Upload {image_data_base64} for {code} and select it as {selected} on v3.
slots:
image_data_base64: requestBody.image_data_base64
code: path.code
selected: requestBody.selected
method: generated
generated: '2026-11-18'
- target: $.paths['/api/v3/product/{code}/images/uploaded/{imgid}'].delete
update:
x-apievangelist-phrasing:
intent: Delete an uploaded product image
effect: destructive
questions:
- How do I delete an image I uploaded for a product?
- Are selected images deleted when their uploaded image is removed?
instructions:
- text: Delete uploaded image {imgid} for product {code} on v3.
slots:
imgid: path.imgid
code: path.code
- text: Remove image {imgid} from {code} via the v3 delete endpoint.
slots:
imgid: path.imgid
code: path.code
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-images-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.