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

# Foods by nutrient

> To rank or compare foods by a nutrient, e.g. iron (FE) across ready-to-eat breakfast cereals (sub_food_group_id 30), sodium (NA) in cheeses, or the highest-protein foods overall.

## 请求规范

* **方法与路径:** POST /apis/v1/afcd-foodstandards-gov-au/foods/foods-by-nutrient
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/foods-by-nutrient`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/afcd-foodstandards-gov-au.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "afcd-foodstandards-gov-au.foods.foods-by-nutrient",
  "method": "POST",
  "path": "/apis/v1/afcd-foodstandards-gov-au/foods/foods-by-nutrient",
  "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": {
              "nutrient_id": "FE",
              "sub_food_group_id": 30
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "food_group_id": {
              "description": "Restrict to one AFCD food group (see list_food_groups); joins the food catalogue.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "include_food_groups": {
              "description": "Fill the food group fields of every row by joining the food catalogue even without a group filter (one extra request).",
              "type": "boolean",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "nutrient_id": {
              "description": "AFCD nutrient code from list_nutrients (e.g. FE, NA, PROT, ENERGY-04, 'ENERGY - AHS'); case-insensitive.",
              "type": "string"
            },
            "page": {
              "default": 1,
              "description": "1-based page of the client-side paginated result (the API returns the whole list).\n\nProvider reference: minimum 1; default 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            },
            "page_size": {
              "default": 50,
              "description": "Rows per page (1-200).\n\nProvider reference: minimum 1; maximum 200; default 50.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 200,
                "min": 1
              }
            },
            "query": {
              "description": "Case-insensitive substring matched against the food name and inclusions.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "sort": {
              "default": "value_desc",
              "description": "Row order: value_desc (default), value_asc or name (AFCD alphabetical).\n\nProvider reference: allowed values [\"value_desc\", \"value_asc\", \"name\"]; default \"value_desc\".",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body",
                "oneOf": [
                  "value_desc",
                  "value_asc",
                  "name"
                ]
              }
            },
            "sub_food_group_id": {
              "description": "Restrict to one AFCD sub food group (see list_food_groups); joins the food catalogue.\n\nProvider reference: minimum 1.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "min": 1
              }
            }
          },
          "required": [
            "nutrient_id"
          ],
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

按实际用量收费。 默认请求预估费用：\$0.0005 USD。 最终费用以实际用量为准。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/afcd-foodstandards-gov-au.json POST /apis/v1/afcd-foodstandards-gov-au/foods/foods-by-nutrient
openapi: 3.1.0
info:
  description: ''
  title: Australian Food Composition Database (AFCD, FSANZ)
  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:
    afcd-foodstandards-gov-au:
      description: ''
      title: Australian Food Composition Database (AFCD, FSANZ)
      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: bc9bb21122412b19b885ad9b857126d6cc6551524ea33bbfe22f843af24d65ee
        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/afcd-foodstandards-gov-au/foods/foods-by-nutrient
    - /apis/v1/afcd-foodstandards-gov-au/foods/get-food
    - /apis/v1/afcd-foodstandards-gov-au/foods/list-food-groups
    - /apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group
    - /apis/v1/afcd-foodstandards-gov-au/foods/list-nutrients
    - /apis/v1/afcd-foodstandards-gov-au/foods/search-foods
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:52b752bdb2c9aa0163b9211576e97373b443b25606cf0e038786f9da48fcacf4
    facts_hash: bc9bb21122412b19b885ad9b857126d6cc6551524ea33bbfe22f843af24d65ee
    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: afcd-foodstandards-gov-au
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/afcd-foodstandards-gov-au/foods/foods-by-nutrient:
    post:
      tags:
        - Australian Food Composition Database (AFCD, FSANZ)
      summary: Foods by nutrient
      description: >-
        To rank or compare foods by a nutrient, e.g. iron (FE) across
        ready-to-eat breakfast cereals (sub_food_group_id 30), sodium (NA) in
        cheeses, or the highest-protein foods overall.
      operationId: afcd-foodstandards-gov-au.foods.foods-by-nutrient
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  nutrient_id: FE
                  sub_food_group_id: 30
            schema:
              additionalProperties: true
              properties:
                food_group_id:
                  description: >-
                    Restrict to one AFCD food group (see list_food_groups);
                    joins the food catalogue.


                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                include_food_groups:
                  description: >-
                    Fill the food group fields of every row by joining the food
                    catalogue even without a group filter (one extra request).
                  type: boolean
                  x-alexandria-option-metadata:
                    in: body
                nutrient_id:
                  description: >-
                    AFCD nutrient code from list_nutrients (e.g. FE, NA, PROT,
                    ENERGY-04, 'ENERGY - AHS'); case-insensitive.
                  type: string
                page:
                  default: 1
                  description: >-
                    1-based page of the client-side paginated result (the API
                    returns the whole list).


                    Provider reference: minimum 1; default 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
                page_size:
                  default: 50
                  description: |-
                    Rows per page (1-200).

                    Provider reference: minimum 1; maximum 200; default 50.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 200
                    min: 1
                query:
                  description: >-
                    Case-insensitive substring matched against the food name and
                    inclusions.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                sort:
                  default: value_desc
                  description: >-
                    Row order: value_desc (default), value_asc or name (AFCD
                    alphabetical).


                    Provider reference: allowed values ["value_desc",
                    "value_asc", "name"]; default "value_desc".
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                    oneOf:
                      - value_desc
                      - value_asc
                      - name
                sub_food_group_id:
                  description: >-
                    Restrict to one AFCD sub food group (see list_food_groups);
                    joins the food catalogue.


                    Provider reference: minimum 1.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    min: 1
              required:
                - nutrient_id
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-14.
                  summary: Official provider example
                  value:
                    catalogue_size: 1588
                    food_group_id: null
                    foods:
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, wheat bran, flakes, added vitamins &
                          minerals (Kellogg's Bran Flakes)
                        pfk: F001818
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001818
                        value_per_100: 16.95
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, puffed or popped rice, added
                          vitamins & minerals (Kellogg's Rice Bubbles)
                        pfk: F001803
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001803
                        value_per_100: 15.5
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, whole wheat, biscuit, added vitamins
                          & minerals (Sanitarium Weet Bix)
                        pfk: F001844
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001844
                        value_per_100: 14.33
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, mixed grain (rice & wheat), flakes,
                          added vitamins & minerals (Kellogg's Special K)
                        pfk: F001720
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001720
                        value_per_100: 13.8
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, puffed or popped rice, cocoa
                          coating, added vitamins & minerals (Kellogg's Coco
                          Pops)
                        pfk: F001807
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001807
                        value_per_100: 13.8
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, wheat bran, flakes, sultanas, added
                          vitamins & minerals (Kellogg's Sultana Bran)
                        pfk: F001823
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001823
                        value_per_100: 13.53
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, wheat bran, pellets, added vitamins
                          & minerals (Kellogg's All Bran)
                        pfk: F001829
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001829
                        value_per_100: 12.2
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, mixed grain (wheat, oat & corn),
                          added vitamins & minerals (Kellogg's Nutri-grain)
                        pfk: F001767
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001767
                        value_per_100: 11.19
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, flakes of corn, added vitamins &
                          minerals (Kellogg's Cornflakes)
                        pfk: F001701
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001701
                        value_per_100: 8.6
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, mixed grain (wheat & oat), flakes,
                          apricot & sultana, added vitamins & minerals
                          (Kellogg's Just Right)
                        pfk: F001733
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001733
                        value_per_100: 8.6
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, whole wheat, biscuit, bran, added
                          vitamins & minerals (Sanitarium Weet-Bix Hi-Bran)
                        pfk: F001845
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001845
                        value_per_100: 7.5
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: Fibre plus
                        name: >-
                          Breakfast cereal, whole wheat, flakes, dried fruit &
                          nuts, added vitamins & minerals (Uncle Toby's Fibre
                          Plus)
                        pfk: F001862
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001862
                        value_per_100: 7.38
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: Vitabrits
                        name: >-
                          Breakfast cereal, whole wheat, biscuit, no added
                          sugar, unfortified
                        pfk: F001849
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001849
                        value_per_100: 6.8
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: Muesli, toasted, added dried fruit & nuts, unfortified
                        pfk: F005856
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F005856
                        value_per_100: 4.6
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: Swiss muesli, Bircher muesli
                        name: >-
                          Muesli, untoasted or natural style, added dried fruit,
                          unfortified
                        pfk: F005857
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F005857
                        value_per_100: 4.2
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Muesli, granola, non-oat based, toasted, added nuts &
                          seeds, unfortified
                        pfk: F009808
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F009808
                        value_per_100: 3.6
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, whole wheat, puffed, no added sugar
                          or salt, unfortified
                        pfk: F001871
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001871
                        value_per_100: 3.3
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, whole wheat, flakes, added vitamins
                          & minerals (Weeties style)
                        pfk: F001860
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001860
                        value_per_100: 3.1
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Muesli, granola, toasted, added nuts & seeds,
                          unfortified
                        pfk: F009807
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F009807
                        value_per_100: 3.1
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, mixed grain (wheat, rice & oat),
                          flakes, honey, unfortified (Be Natural Honey Flakes)
                        pfk: F001788
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001788
                        value_per_100: 2.6
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: Breakfast cereal, flakes of corn, unfortified
                        pfk: F001708
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001708
                        value_per_100: 0.99
                      - food_group: Cereals and cereal products
                        food_group_id: 7
                        inclusions: null
                        name: >-
                          Breakfast cereal, puffed or popped rice, no added
                          sugar or salt, unfortified
                        pfk: F001811
                        sub_food_group: Breakfast cereals, ready to eat
                        sub_food_group_id: 30
                        units: mg
                        url: >-
                          https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F001811
                        value_per_100: 0.63
                    nutrient:
                      decimal_places: 2
                      definition: >-
                        Determined largely by using inductively coupled plasma
                        mass spectrometry (ICP-MS).
                      name: Iron (Fe)
                      nutrient_id: FE
                      order_by: 60
                      units: mg
                    observed_at_ms: 1791943000899
                    page: 1
                    page_size: 50
                    query: null
                    sort: value_desc
                    source_url: >-
                      https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/nutrients/FE
                    sub_food_group_id: 30
                    total_matches: 22
                    total_pages: 1
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Every AFCD food's amount of one nutrient (GET
            https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/nutrients/{nutrient_id}):
            the nutrient's metadata and 1,588 rows of pfk, name, inclusions and
            value per 100 g, which the program sorts (by value descending by
            default), optionally narrows with a name `query` and/or a food group
            / sub food group (joining the food catalogue, GET
            /foods/alphabetical, which also fills the group fields of each row)
            and pages. Rows carry the public food page URL. An unknown nutrient
            code is `not_found` (use list_nutrients); a filter nothing matches
            is an empty list.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

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

            | `catalogue_size` | number | Foods AFCD reports this nutrient for
            before filtering. |

            | `food_group_id` | number |  |

            | `foods` | object[] |  |

            | `nutrient` | object |  |

            | `observed_at_ms` | number | Unix milliseconds when this program
            read the AFCD API. |

            | `page` | number |  |

            | `page_size` | number |  |

            | `query` | string |  |

            | `sort` | string |  |

            | `source_url` | string | The AFCD API URL this answer was read
            from. |

            | `sub_food_group_id` | number |  |

            | `total_matches` | number | Foods matching the filters across all
            pages. |

            | `total_pages` | number |  |



            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.