Skip to main content
POST
Product

Request contract

  • Method and path: POST /apis/v1/world-openfoodfacts-org/foods/product
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/world-openfoodfacts-org/foods/product
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
barcode
string

Product barcode: GTIN-8/12/13/14 (EAN, UPC) as digits, leading zeros kept. Open Food Facts normalises codes, so the returned barcode may carry extra leading zeros. Exactly one of barcode or url. Pattern: ^[0-9]{8,14}$.

country
string

Two-letter country code (cc) the site uses for country-dependent computations such as the Nutri-Score comparison country; default us. Pattern: ^[a-z]{2}$.

lang
string

Two-letter language code (lc) for localised names; default en. Pattern: ^[a-z]{2}$.

url
string

A product page URL on any Open Food Facts country site, e.g. https://world.openfoodfacts.org/product/5449000000996/coca-cola or https://fr.openfoodfacts.org/produit/5449000000996. The barcode is taken from the path.

Response

One packaged food product by barcode (GTIN/EAN/UPC) from Open Food Facts: names, brand, quantity and serving, selling countries, categories, labels, stores, ingredients (text and parsed list with percent estimates and vegan/vegetarian flags), allergens, traces, additives, ingredient analysis, Nutri-Score (grade, score, version), NOVA group, Eco-Score, nutrient levels, the raw nutriments table (per 100 g and per serving, site keys), a fixed per-100g summary, image URLs, edit timestamps, the canonical product URL and the ODbL attribution.

The response contains the tool result directly.

These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.