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

# Search

> Find products by name, brand or category, e.g. 'oat milk' sold in France, then call `product` with a hit's barcode for the full record. Use `suggest` to turn a typed category or brand into the taxonomy id the filters expect.

## Request contract

* **Method and path:** POST /apis/v1/world-openfoodfacts-org/foods/search
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/world-openfoodfacts-org/foods/search`

[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.search",
  "method": "POST",
  "path": "/apis/v1/world-openfoodfacts-org/foods/search",
  "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": {
              "country": "france",
              "page_size": 5,
              "query": "oat milk"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "brand": {
              "description": "Brand tag (`coca-cola`, `oatly`); lower-case slug, `en:` prefix accepted and stripped.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "category": {
              "description": "Category taxonomy id (`en:oat-milks`) or bare slug (`oat-milks`); `suggest` returns these ids.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "country": {
              "description": "Selling country as a taxonomy id (`en:france`) or bare slug (`france`, `united-states`). Matched against `countries_tags`.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "facets": {
              "description": "When true, return facet counts for `brands_tags`, `nutrition_grades` and `countries_tags` (default false).",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "lang": {
              "description": "Language the text is matched in and names are returned in; default `en`. Pattern: ^[a-z]{2}$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "nova_group": {
              "description": "nova_group\n\nProvider reference: minimum 1; maximum 4.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 4,
                "min": 1
              }
            },
            "nutriscore_grade": {
              "description": "nutriscore_grade\n\nProvider reference: allowed values [\"a\", \"b\", \"c\", \"d\", \"e\", \"unknown\", \"not-applicable\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "a",
                  "b",
                  "c",
                  "d",
                  "e",
                  "unknown",
                  "not-applicable"
                ]
              }
            },
            "page": {
              "description": "1-based page; the service refuses to page past 10000 hits, so page * page_size must stay within 10000.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "page_size": {
              "description": "Hits per page, default 24.\n\nProvider reference: minimum 1; maximum 100.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 100,
                "min": 1
              }
            },
            "query": {
              "description": "Free text, e.g. `oat milk`. At least one of `query`, `country`, `category`, `brand`, `nutriscore_grade`, `nova_group` is required.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort": {
              "description": "`relevance` (default; score order), `popularity` (unique scans, descending) or `recent` (last edit, descending).\n\nProvider reference: allowed values [\"relevance\", \"popularity\", \"recent\"].",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "relevance",
                  "popularity",
                  "recent"
                ]
              }
            }
          },
          "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/search
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/search:
    post:
      tags:
        - Open Food Facts
      summary: Search
      description: >-
        Find products by name, brand or category, e.g. 'oat milk' sold in
        France, then call `product` with a hit's barcode for the full record.
        Use `suggest` to turn a typed category or brand into the taxonomy id the
        filters expect.
      operationId: world-openfoodfacts-org.foods.search
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  country: france
                  page_size: 5
                  query: oat milk
            schema:
              additionalProperties: true
              properties:
                brand:
                  description: >-
                    Brand tag (`coca-cola`, `oatly`); lower-case slug, `en:`
                    prefix accepted and stripped.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                category:
                  description: >-
                    Category taxonomy id (`en:oat-milks`) or bare slug
                    (`oat-milks`); `suggest` returns these ids.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                country:
                  description: >-
                    Selling country as a taxonomy id (`en:france`) or bare slug
                    (`france`, `united-states`). Matched against
                    `countries_tags`.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                facets:
                  description: >-
                    When true, return facet counts for `brands_tags`,
                    `nutrition_grades` and `countries_tags` (default false).
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                lang:
                  description: >-
                    Language the text is matched in and names are returned in;
                    default `en`. Pattern: ^[a-z]{2}$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                nova_group:
                  description: |-
                    nova_group

                    Provider reference: minimum 1; maximum 4.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 4
                    min: 1
                nutriscore_grade:
                  description: >-
                    nutriscore_grade


                    Provider reference: allowed values ["a", "b", "c", "d", "e",
                    "unknown", "not-applicable"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - a
                      - b
                      - c
                      - d
                      - e
                      - unknown
                      - not-applicable
                page:
                  description: >-
                    1-based page; the service refuses to page past 10000 hits,
                    so page * page_size must stay within 10000.


                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                page_size:
                  description: |-
                    Hits per page, default 24.

                    Provider reference: minimum 1; maximum 100.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 100
                    min: 1
                query:
                  description: >-
                    Free text, e.g. `oat milk`. At least one of `query`,
                    `country`, `category`, `brand`, `nutriscore_grade`,
                    `nova_group` is required.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort:
                  description: >-
                    `relevance` (default; score order), `popularity` (unique
                    scans, descending) or `recent` (last edit, descending).


                    Provider reference: allowed values ["relevance",
                    "popularity", "recent"].
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - relevance
                      - popularity
                      - recent
              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:
                    attribution:
                      data_license: ODbL 1.0
                      images_license: CC BY-SA 3.0
                      source_url: https://world.openfoodfacts.org/
                      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.
                    count: 10000
                    count_is_exact: false
                    facets: []
                    filters:
                      brand: null
                      category: null
                      country: en:france
                      nova_group: null
                      nutriscore_grade: null
                    hits:
                      - allergens_tags:
                          - en:gluten
                        barcode: '00972321'
                        brands:
                          - M&S
                        brands_tags:
                          - m-s
                        categories_tags:
                          - en:beverages-and-beverages-preparations
                          - en:plant-based-foods-and-beverages
                          - en:beverages
                          - en:plant-based-foods
                          - en:cereals-and-potatoes
                          - en:dairy-substitutes
                          - en:cereals-and-their-products
                          - en:milk-substitutes
                          - en:plant-based-beverages
                          - en:plant-based-milk-alternatives
                          - en:cereal-based-drinks
                          - en:oat-based-drinks
                          - en:plant-based-milk
                        countries_tags:
                          - en:france
                          - en:united-kingdom
                        ecoscore_grade: b
                        generic_name: null
                        image_small_url: >-
                          https://images.openfoodfacts.org/images/products/00972321/front_en.76.200.jpg
                        image_url: >-
                          https://images.openfoodfacts.org/images/products/00972321/front_en.76.400.jpg
                        last_modified_t: 1727277643
                        name: M&S Semi Oat milk
                        nova_group: 4
                        nutriments_100g:
                          carbohydrates: 57.1
                          energy_kcal: 357
                          energy_kj: null
                          fat: 14.3
                          fiber: 3.57
                          proteins: 7.14
                          salt: 0.892
                          saturated_fat: 5.36
                          sodium: 0.357
                          sugars: 28.6
                        nutriscore_grade: e
                        quantity: 1 l
                        unique_scans_n: 9
                        url: https://world.openfoodfacts.org/product/00972321
                      - allergens_tags: []
                        barcode: '0371195005331'
                        brands:
                          - Superfood Overnight Oat Milk
                        brands_tags:
                          - superfood-overnight-oat-milk
                        categories_tags: []
                        countries_tags:
                          - en:france
                        ecoscore_grade: unknown
                        generic_name: null
                        image_small_url: >-
                          https://images.openfoodfacts.org/images/products/037/119/500/5331/front_en.3.200.jpg
                        image_url: >-
                          https://images.openfoodfacts.org/images/products/037/119/500/5331/front_en.3.400.jpg
                        last_modified_t: 1724246483
                        name: Superfood oat mix
                        nova_group: null
                        nutriments_100g:
                          carbohydrates: 57.1
                          energy_kcal: 371
                          energy_kj: null
                          fat: 12.9
                          fiber: 8.57
                          proteins: 17.1
                          salt: 0.286
                          saturated_fat: 1.43
                          sodium: 0.114
                          sugars: 10
                        nutriscore_grade: unknown
                        quantity: null
                        unique_scans_n: null
                        url: https://world.openfoodfacts.org/product/0371195005331
                      - allergens_tags: []
                        barcode: '0316027871401'
                        brands: []
                        brands_tags: []
                        categories_tags: []
                        countries_tags:
                          - en:france
                        ecoscore_grade: unknown
                        generic_name: null
                        image_small_url: null
                        image_url: null
                        last_modified_t: 1734002826
                        name: Oat milk
                        nova_group: null
                        nutriments_100g:
                          carbohydrates: 8
                          energy_kcal: 44
                          energy_kj: null
                          fat: 0.6
                          fiber: 0.8
                          proteins: 1.6
                          salt: 0.125
                          saturated_fat: 0.12
                          sodium: 0.05
                          sugars: 2.8
                        nutriscore_grade: unknown
                        quantity: null
                        unique_scans_n: null
                        url: https://world.openfoodfacts.org/product/0316027871401
                      - allergens_tags: []
                        barcode: '8801155722661'
                        brands:
                          - Denmark
                        brands_tags:
                          - denmark
                        categories_tags: []
                        countries_tags:
                          - en:france
                        ecoscore_grade: unknown
                        generic_name: null
                        image_small_url: null
                        image_url: null
                        last_modified_t: 1734247603
                        name: Green Denmark Oat
                        nova_group: null
                        nutriments_100g:
                          carbohydrates: 5
                          energy_kcal: 25
                          energy_kj: null
                          fat: 0.6
                          fiber: null
                          proteins: 0.1
                          salt: null
                          saturated_fat: 0.1
                          sodium: null
                          sugars: 3
                        nutriscore_grade: unknown
                        quantity: null
                        unique_scans_n: null
                        url: https://world.openfoodfacts.org/product/8801155722661
                      - allergens_tags:
                          - en:gluten
                          - en:organic-whole-oats
                        barcode: '9312231222023'
                        brands:
                          - pure-harvest
                          - ' pureharvest'
                        brands_tags:
                          - pure-harvest
                          - pureharvest
                        categories_tags:
                          - en:plant-based-foods-and-beverages
                          - en:beverages
                          - en:dairies
                          - en:plant-based-foods
                          - en:cereals-and-potatoes
                          - en:dairy-substitutes
                          - en:cereals-and-their-products
                          - en:milk-substitutes
                          - en:plant-based-beverages
                          - en:milks
                          - en:plant-based-milk-alternatives
                          - en:cereal-based-drinks
                          - en:unsweetened-beverages
                          - en:oat-based-drinks
                        countries_tags:
                          - en:australia
                          - en:france
                          - en:mauritius
                          - en:sri-lanka
                        ecoscore_grade: c
                        generic_name: null
                        image_small_url: >-
                          https://images.openfoodfacts.org/images/products/931/223/122/2023/front.3.200.jpg
                        image_url: >-
                          https://images.openfoodfacts.org/images/products/931/223/122/2023/front.3.400.jpg
                        last_modified_t: 1732014415
                        name: Oat Milk it's Organic Unsweetened Original imp
                        nova_group: 3
                        nutriments_100g:
                          carbohydrates: 7.7
                          energy_kcal: null
                          energy_kj: 237
                          fat: 1.8
                          fiber: null
                          proteins: 2.1
                          salt: 0.0379999999999999
                          saturated_fat: 0.3
                          sodium: 0.0152
                          sugars: 3.7
                        nutriscore_grade: c
                        quantity: 1 L
                        unique_scans_n: 6
                        url: https://world.openfoodfacts.org/product/9312231222023
                    lang: en
                    observed_at_ms: 1791942135434
                    page: 1
                    page_count: 2000
                    page_size: 5
                    query: oat milk
                    sort: relevance
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Search Open Food Facts products through the Search-a-licious
            service: free text (matched on product name, generic name,
            categories, labels and brands in `lang`) and/or structured filters
            (selling country, category, brand, Nutri-Score grade, NOVA group),
            sorted by relevance, popularity or last edit, paginated. Each hit
            carries barcode, product URL, name, brands, quantity, categories,
            countries, Nutri-Score, NOVA, Eco-Score, allergens, a per-100g
            nutrient summary, image URLs and the edit timestamp. Optional facet
            counts for brands, Nutri-Score grades and countries.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

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

            | `count` | number | Matching products as the service reports it;
            capped at 10000 when `count_is_exact` is false. |

            | `count_is_exact` | boolean |  |

            | `facets` | object[] | Empty unless `facets` was requested. |

            | `filters` | object |  |

            | `hits` | object[] |  |

            | `lang` | string |  |

            | `observed_at_ms` | number |  |

            | `page` | number |  |

            | `page_count` | number | Pages available within the service's
            10000-hit window; 0 when nothing matched. |

            | `page_size` | number |  |

            | `query` | string | The free text sent, trimmed; null for a
            filter-only search. |

            | `sort` | string |  |



            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.