> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Product

> You have a barcode (or a world.openfoodfacts.org product URL) and want its nutrition facts, ingredients, allergens or scores. Use `search` first when you only know a name or brand.

## 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](https://aisa.one/docs/openapi/world-openfoodfacts-org.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "world-openfoodfacts-org.foods.product",
  "method": "POST",
  "path": "/apis/v1/world-openfoodfacts-org/foods/product",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "barcode": "5449000000996"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "barcode": {
              "description": "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}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "country": {
              "description": "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}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "lang": {
              "description": "Two-letter language code (`lc`) for localised names; default `en`. Pattern: ^[a-z]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "url": {
              "description": "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.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 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.


## OpenAPI

````yaml openapi/world-openfoodfacts-org.json POST /apis/v1/world-openfoodfacts-org/foods/product
openapi: 3.1.0
info:
  description: ''
  title: Open Food Facts
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    world-openfoodfacts-org:
      description: ''
      title: Open Food Facts
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 999ee360d9cfb78f64b4f96165c941af33297a7c12352baf674acdb4a509ca9f
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/world-openfoodfacts-org/foods/product
    - /apis/v1/world-openfoodfacts-org/foods/search
    - /apis/v1/world-openfoodfacts-org/foods/suggest
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:da8d36fb1651d9a587cf07b6b371e27db7dd282f9c926e2aaf812d1b5c21ae1e
    facts_hash: 999ee360d9cfb78f64b4f96165c941af33297a7c12352baf674acdb4a509ca9f
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: world-openfoodfacts-org
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/world-openfoodfacts-org/foods/product:
    post:
      tags:
        - Open Food Facts
      summary: Product
      description: >-
        You have a barcode (or a world.openfoodfacts.org product URL) and want
        its nutrition facts, ingredients, allergens or scores. Use `search`
        first when you only know a name or brand.
      operationId: world-openfoodfacts-org.foods.product
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  barcode: '5449000000996'
            schema:
              additionalProperties: true
              properties:
                barcode:
                  description: >-
                    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}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                country:
                  description: >-
                    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}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                lang:
                  description: >-
                    Two-letter language code (`lc`) for localised names; default
                    `en`. Pattern: ^[a-z]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                url:
                  description: >-
                    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.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-14.
                  summary: Official provider example
                  value:
                    additives_tags:
                      - en:e150d
                      - en:e338
                    allergens_tags: []
                    attribution:
                      data_license: ODbL 1.0
                      images_license: CC BY-SA 3.0
                      source_url: https://world.openfoodfacts.org/product/5449000000996
                      text: >-
                        Data from Open Food Facts
                        (https://world.openfoodfacts.org), licensed under the
                        Open Database License (ODbL) with contents under the
                        Database Contents License (DbCL); product images are CC
                        BY-SA 3.0.
                    barcode: '5449000000996'
                    brands: COCA-COLA SERVICES SA/NV
                    brands_tags:
                      - COCA-COLA SERVICES SA/NV
                    categories_tags:
                      - en:beverages-and-beverages-preparations
                      - en:beverages
                      - en:non-alcoholic-beverages
                      - en:carbonated-drinks
                      - en:soft-drinks
                      - en:sodas
                      - en:colas
                      - pt:bebidas cafeína
                    completeness: 0.8875
                    countries_tags:
                      - en:albania
                      - en:austria
                      - en:belgium
                      - en:bulgaria
                      - en:canada
                      - en:czech-republic
                      - en:france
                      - en:georgia
                      - en:germany
                      - en:ghana
                      - en:iceland
                      - en:india
                      - en:italy
                      - en:latvia
                      - en:lithuania
                      - en:mexico
                      - en:morocco
                      - en:poland
                      - en:romania
                      - en:senegal
                      - en:spain
                      - en:switzerland
                      - en:turkey
                      - en:ukraine
                      - en:united-kingdom
                      - en:united-states
                    created_t: 1339313745
                    ecoscore_grade: not-applicable
                    generic_name: Bebida refrescante aromatizada
                    images:
                      front: >-
                        https://images.openfoodfacts.org/images/products/544/900/000/0996/front_en.1129.400.jpg
                      front_small: >-
                        https://images.openfoodfacts.org/images/products/544/900/000/0996/front_en.1129.200.jpg
                      ingredients: >-
                        https://images.openfoodfacts.org/images/products/544/900/000/0996/ingredients_en.1172.400.jpg
                      nutrition: >-
                        https://images.openfoodfacts.org/images/products/544/900/000/0996/nutrition_en.1173.400.jpg
                    ingredients:
                      - id: en:carbonated-water
                        percent: null
                        percent_estimate: 83.4
                        sub_ingredient_count: 0
                        text: Agua carbonatada
                        vegan: 'yes'
                        vegetarian: 'yes'
                      - id: en:sugar
                        percent: null
                        percent_estimate: 10.6
                        sub_ingredient_count: 0
                        text: azúcar
                        vegan: maybe
                        vegetarian: 'yes'
                      - id: en:e150d
                        percent: null
                        percent_estimate: 2
                        sub_ingredient_count: 0
                        text: e150d
                        vegan: 'yes'
                        vegetarian: 'yes'
                      - id: en:e338
                        percent: null
                        percent_estimate: 2
                        sub_ingredient_count: 0
                        text: ácido fosfórico
                        vegan: 'yes'
                        vegetarian: 'yes'
                      - id: en:natural-flavouring
                        percent: null
                        percent_estimate: 2
                        sub_ingredient_count: 1
                        text: aromas naturales
                        vegan: maybe
                        vegetarian: maybe
                    ingredients_analysis_tags:
                      - en:palm-oil-free
                      - en:maybe-vegan
                      - en:vegetarian
                    ingredients_text: >-
                      Agua carbonatada, azúcar, colorante (E-150d), acidulante
                      (ácido fosfórico), aromas naturales (contiene cafeína).
                    labels_tags:
                      - en:made-in-the-eu
                      - fr:triman
                    language: es
                    last_modified_t: 1791648906
                    name: Coca-Cola Original
                    nova_group: 4
                    nutrient_levels:
                      fat: low
                      salt: low
                      saturated-fat: low
                      sugars: high
                    nutriments:
                      added-sugars: 10.6
                      added-sugars_100g: 10.6
                      added-sugars_modifier: '~'
                      added-sugars_serving: 35
                      added-sugars_unit: g
                      added-sugars_value: 10.6
                      carbohydrates: 10.6
                      carbohydrates_100g: 10.6
                      carbohydrates_serving: 35
                      carbohydrates_unit: g
                      carbohydrates_value: 10.6
                      energy: 180
                      energy-kcal: 42.4
                      energy-kcal_100g: 42.4
                      energy-kcal_modifier: '~'
                      energy-kcal_serving: 140
                      energy-kcal_unit: kcal
                      energy-kcal_value: 42.4
                      energy-kj: 180
                      energy-kj_100g: 180
                      energy-kj_serving: 594
                      energy-kj_unit: kJ
                      energy-kj_value: 180
                      energy_100g: 180
                      energy_serving: 594
                      energy_unit: kJ
                      energy_value: 180
                      fat: 0
                      fat_100g: 0
                      fat_serving: 0
                      fat_unit: g
                      fat_value: 0
                      fruits-vegetables-legumes-estimate-from-ingredients_100g: 0
                      fruits-vegetables-nuts-estimate-from-ingredients_100g: 0
                      nova-group: 4
                      nova-group_100g: 4
                      nova-group_serving: 4
                      nova-group_unit: ''
                      nova-group_value: 4
                      proteins: 0
                      proteins_100g: 0
                      proteins_serving: 0
                      proteins_unit: g
                      proteins_value: 0
                      salt: 0
                      salt_100g: 0
                      salt_serving: 0
                      salt_unit: g
                      salt_value: 0
                      saturated-fat: 0
                      saturated-fat_100g: 0
                      saturated-fat_serving: 0
                      saturated-fat_unit: g
                      saturated-fat_value: 0
                      sodium: 0
                      sodium_100g: 0
                      sodium_modifier: '~'
                      sodium_serving: 0
                      sodium_unit: g
                      sodium_value: 0
                      sugars: 10.6
                      sugars_100g: 10.6
                      sugars_serving: 35
                      sugars_unit: g
                      sugars_value: 10.6
                    nutriments_100g:
                      carbohydrates: 10.6
                      energy_kcal: 42.4
                      energy_kj: 180
                      fat: 0
                      fiber: null
                      proteins: 0
                      salt: 0
                      saturated_fat: 0
                      sodium: 0
                      sugars: 10.6
                    nutriscore:
                      grade: e
                      score: 12
                      version: '2023'
                    nutrition_data_per: 100g
                    observed_at_ms: 1791942128594
                    obsolete: false
                    product_quantity: 330
                    product_quantity_unit: ml
                    quantity: 330 ml
                    serving_quantity: 330
                    serving_quantity_unit: ml
                    serving_size: 1 portion (330 ml)
                    stores_tags:
                      - Michus Supermercados
                      - ahorramas
                      - carrefour
                      - greggs
                      - maxima
                      - mercadona
                    traces_tags: []
                    unique_scans_n: 671
                    url: https://world.openfoodfacts.org/product/5449000000996
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            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.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `additives_tags` | string[] | Additives as taxonomy ids, e.g.
            `en:e150d`. |

            | `allergens_tags` | string[] |  |

            | `attribution` | object | Licence attribution the site requires:
            database ODbL, images CC BY-SA 3.0, with the source URL. |

            | `barcode` | string | The product code as Open Food Facts stores it
            (normalised, may carry leading zeros). |

            | `brands` | string | Comma-separated brand names as entered. |

            | `brands_tags` | string[] |  |

            | `categories_tags` | string[] |  |

            | `completeness` | number | The site's data completeness score 0..1.
            |

            | `countries_tags` | string[] | Selling countries as taxonomy ids,
            e.g. `en:france`. |

            | `created_t` | number | Unix seconds the product was created. |

            | `ecoscore_grade` | string |  |

            | `generic_name` | string |  |

            | `images` | object | Image URLs on images.openfoodfacts.org (CC
            BY-SA 3.0), 400 px wide; `front_small` is 200 px. |

            | `ingredients` | object[] | Top-level parsed ingredients in label
            order; nested sub-ingredients are counted, not expanded. |

            | `ingredients_analysis_tags` | string[] | e.g. `en:palm-oil-free`,
            `en:vegan`, `en:maybe-vegetarian`. |

            | `ingredients_text` | string |  |

            | `labels_tags` | string[] |  |

            | `language` | string | The product's main language code (`lang`). |

            | `last_modified_t` | number | Unix seconds of the last edit. |

            | `name` | string | `product_name` resolved in the requested
            language (falls back to the product's main language); null when
            contributors have not entered one. |

            | `nova_group` | number | NOVA food processing group 1-4. |

            | `nutrient_levels` | object | The site's `nutrient_levels` map
            (`fat`, `salt`, `saturated-fat`, `sugars` to
            `low`/`moderate`/`high`), passed through. |

            | `nutriments` | object | The site's `nutriments` table verbatim:
            `{nutrient}_100g`, `{nutrient}_serving`, `{nutrient}_unit`,
            `{nutrient}_value`, `{nutrient}_modifier` keys with the site's
            hyphenated nutrient names (`saturated-fat`, `energy-kcal`, ...).
            Empty when the product has no nutrition data. |

            | `nutriments_100g` | object | Core nutrients per 100 g (or 100 ml)
            in grams, energy in kJ and kcal; null when the label does not give
            the value. |

            | `nutriscore` | object |  |

            | `nutrition_data_per` | string | `100g` or `serving`: the basis the
            label values were entered on. |

            | `observed_at_ms` | number |  |

            | `obsolete` | boolean | True when the product is flagged as no
            longer sold. |

            | `product_quantity` | number | Parsed net quantity in
            `product_quantity_unit`. |

            | `product_quantity_unit` | string |  |

            | `quantity` | string | Net quantity as printed, e.g. `330 ml`. |

            | `serving_quantity` | number |  |

            | `serving_quantity_unit` | string |  |

            | `serving_size` | string |  |

            | `stores_tags` | string[] |  |

            | `traces_tags` | string[] |  |

            | `unique_scans_n` | number | Popularity: unique scans counted by
            the site. |

            | `url` | string | Canonical product page,
            https://world.openfoodfacts.org/product/{barcode}; the site
            redirects to the slugged form. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.