Open Food Facts Images API

Endpoints for uploading, cropping, rotating, and managing product images.

GitHub OpenAPI

Operations 6

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

1 of 6 operations are conformant: apis.io called them with no credentials and the responses matched this contract. Checked 2026-11-12. how this works · status file

POST /cgi/product_image_upload.pl Upload a product image via CGI · Upload Product Image #
Ask an LLM
“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?”
Tell an agent
Upload image {imagefield} for product {code} via CGI.
Send a CGI upload of {imagefield} for {code} with comment {comment}.
POST /cgi/product_image_crop.pl Crop and rotate an existing product image · Select and Crop Image #
Ask an LLM
“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?”
Tell an agent
Crop image {imgid} of product {code} to {x1},{y1} to {x2},{y2} via CGI.
Crop {imgid} on {code} with CGI, selecting field {id}, rotating {angle}.
GET /cgi/product_image_crop.pl Rotate an existing product image · Rotate Image conformant #
Ask an LLM
“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?”
Tell an agent
Rotate image {imgid} of product {code} by {angle} degrees via CGI.
Use the CGI crop endpoint to rotate {imgid} on {code} by {angle}.
POST /cgi/product_image_unselect.pl Unselect a product photo · Unselect Image #
Ask an LLM
“How do I unselect a photo that was chosen for a product?”
“Can I remove a selected image from a product without deleting it?”
Tell an agent destructive · confirm first
Unselect image {id} for product {code} via CGI.
Remove the selected photo {id} from {code} using the CGI unselect call.
POST /api/v3/product/{code}/images Upload a product image (v3 API) · Upload Product Image #
Ask an LLM
“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?”
Tell an agent
Upload base64 image {image_data_base64} for product {code} on v3.
Upload {image_data_base64} for {code} and select it as {selected} on v3.
DELETE /api/v3/product/{code}/images/uploaded/{imgid} Delete an uploaded product image · Delete Product Image #
Ask an LLM
“How do I delete an image I uploaded for a product?”
“Are selected images deleted when their uploaded image is removed?”
Tell an agent destructive · confirm first
Delete uploaded image {imgid} for product {code} on v3.
Remove image {imgid} from {code} via the v3 delete endpoint.

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-images-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-images-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open Food Facts Images API
  contact:
    name: Open Food Facts
    url: https://slack.openfoodfacts.org/
    email: reuse@openfoodfacts.org
  termsOfService: https://world.openfoodfacts.org/terms-of-use
  version: '1.0'
  description: 'Operations tagged Images across 2 of this provider''s published API definitions: open-food-facts-api-v2-openapi.yml, open-food-facts-api-v3-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
security:
- userAgentAuth: []
tags:


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