curl --request POST \
--url https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"food_group_id": 2,
"sub_food_group_id": 11
}
'import requests
url = "https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group"
payload = {
"food_group_id": 2,
"sub_food_group_id": 11
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({food_group_id: 2, sub_food_group_id: 11})
};
fetch('https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'food_group_id' => 2,
'sub_food_group_id' => 11
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group"
payload := strings.NewReader("{\n \"food_group_id\": 2,\n \"sub_food_group_id\": 11\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"food_group_id\": 2,\n \"sub_food_group_id\": 11\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"food_group_id\": 2,\n \"sub_food_group_id\": 11\n}"
response = http.request(request)
puts response.read_body{
"food_group_id": 2,
"foods": [
{
"analysed_portion": "100%",
"classification_id": 31102,
"classification_name": "Yeast extracts",
"derivation": "Analysed",
"description": "Commercial thick, dark brown concentrated yeast extract spread. Contains added salt, and vitamins B1, B2 and B3.",
"fat_factor": 0.8,
"food_group": "Miscellaneous",
"food_group_id": 2,
"inclusions": null,
"name": "Spread, yeast, marmite",
"nitrogen_factor": 5.7,
"pfk": "F008783",
"sampling_details": "The majority of nutrient data were from Sanitarium industry data (2008). Other nutrient data were derived from a composite of 6 samples of Sanitarium Marmite purchased in Adelaide in 1990. Folate and folic acid were borrowed from NZ Food Composition Database, ID P1004 Spread, yeast extract, Marmite, Sanitarium, fortified vitamins B1, B2, B3, B12 & folate, & Fe. Fe was from NZFSA 2005. Note high fibre content which should be used with caution. The analysed nitrogen value was reduced by 10% to account for purine nitrogen. Alpha-tocopherol and I were imputed from vegemite. Fatty acids were borrowed from USDA SR Legacy, FDC ID 175043 - Leavening agents, yeast, baker's, active dry. Vitamins (C, D, retinol), alcohol and caffeine were imputed zero.",
"scientific_name": null,
"specific_gravity": 0,
"sub_food_group": "Yeast, and yeast vegetable or meat extracts",
"sub_food_group_id": 11,
"unanalysed_portion": "0%",
"url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F008783"
},
{
"analysed_portion": "100%",
"classification_id": 31102,
"classification_name": "Yeast extracts",
"derivation": "Analysed",
"description": "Commercial, thick dark brown, salty concentrated yeast extract spread made by treating yeast with acid. Contains added salt, and vitamins B1, B2 and B3.",
"fat_factor": 0.8,
"food_group": "Miscellaneous",
"food_group_id": 2,
"inclusions": null,
"name": "Spread, yeast, vegemite",
"nitrogen_factor": 5.7,
"pfk": "F008785",
"sampling_details": "The majority of nutrient data were derived from individual and composite samples of 8 purchases of Kraft Vegemite purchased nationally in each state and territory capital city in 2008. Some proximates, vitamins and minerals were also derived from a composite of 5 samples of Kraft Vegemite purchased from five states across Australia in 2010. Folate and folic acid were determined in the 5 individual samples from the 2010 analysis. Retinol, vitamin D and cholesterol were imputed zero. Note that sample is likely to contain carbohydrates not detected with analytical techniques used and were represented by an estimated starch value in this profile.",
"scientific_name": null,
"specific_gravity": 0,
"sub_food_group": "Yeast, and yeast vegetable or meat extracts",
"sub_food_group_id": 11,
"unanalysed_portion": "0%",
"url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F008785"
},
{
"analysed_portion": "100%",
"classification_id": 31101,
"classification_name": "Yeast",
"derivation": "Analysed",
"description": "A cream or pale grey powder with a fine, smooth texture. Active raising agent used domestically to leaven a wide range of breads, cakes and pastries.",
"fat_factor": 0.8,
"food_group": "Miscellaneous",
"food_group_id": 2,
"inclusions": null,
"name": "Yeast, dry powder",
"nitrogen_factor": 6.25,
"pfk": "F009606",
"sampling_details": "The majority of nutrient data were derived from a composite 6 samples of Supercook dry yeast purchased in Adelaide in 1990. The analysed nitrogen value was reduced by 10% to account for purine nitrogen. Folate, alpha-tocopherol, fibre and fatty acids were borrowed from USDA SR Legacy, FDC ID 175043 - Leavening agents, yeast, baker's, active dry. Iodine was borrowed from NZ Food Composition Database, ID P13 Yeast, baker's, dried. Alcohol, vitamins (B12, C, D, folic acid, retinol), caffeine and cholesterol were imputed zero. Note low sum of proximates likely due to potential difficulties in the analysis of complex carbohydrates - data should be used with caution.",
"scientific_name": null,
"specific_gravity": 0,
"sub_food_group": "Yeast, and yeast vegetable or meat extracts",
"sub_food_group_id": 11,
"unanalysed_portion": "0%",
"url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F009606"
}
],
"name": "Yeast, and yeast vegetable or meat extracts",
"observed_at_ms": 1791942993356,
"page": 1,
"page_size": 50,
"source_url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/food-groups/2/11",
"sub_food_group_id": 11,
"total_foods": 3,
"total_pages": 1
}List foods in group
To enumerate every food in a category with its provenance notes, e.g. all yeast extract spreads (2/11) or all ready-to-eat breakfast cereals (7/30). Ids come from list_food_groups.
curl --request POST \
--url https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"food_group_id": 2,
"sub_food_group_id": 11
}
'import requests
url = "https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group"
payload = {
"food_group_id": 2,
"sub_food_group_id": 11
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({food_group_id: 2, sub_food_group_id: 11})
};
fetch('https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'food_group_id' => 2,
'sub_food_group_id' => 11
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group"
payload := strings.NewReader("{\n \"food_group_id\": 2,\n \"sub_food_group_id\": 11\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"food_group_id\": 2,\n \"sub_food_group_id\": 11\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"food_group_id\": 2,\n \"sub_food_group_id\": 11\n}"
response = http.request(request)
puts response.read_body{
"food_group_id": 2,
"foods": [
{
"analysed_portion": "100%",
"classification_id": 31102,
"classification_name": "Yeast extracts",
"derivation": "Analysed",
"description": "Commercial thick, dark brown concentrated yeast extract spread. Contains added salt, and vitamins B1, B2 and B3.",
"fat_factor": 0.8,
"food_group": "Miscellaneous",
"food_group_id": 2,
"inclusions": null,
"name": "Spread, yeast, marmite",
"nitrogen_factor": 5.7,
"pfk": "F008783",
"sampling_details": "The majority of nutrient data were from Sanitarium industry data (2008). Other nutrient data were derived from a composite of 6 samples of Sanitarium Marmite purchased in Adelaide in 1990. Folate and folic acid were borrowed from NZ Food Composition Database, ID P1004 Spread, yeast extract, Marmite, Sanitarium, fortified vitamins B1, B2, B3, B12 & folate, & Fe. Fe was from NZFSA 2005. Note high fibre content which should be used with caution. The analysed nitrogen value was reduced by 10% to account for purine nitrogen. Alpha-tocopherol and I were imputed from vegemite. Fatty acids were borrowed from USDA SR Legacy, FDC ID 175043 - Leavening agents, yeast, baker's, active dry. Vitamins (C, D, retinol), alcohol and caffeine were imputed zero.",
"scientific_name": null,
"specific_gravity": 0,
"sub_food_group": "Yeast, and yeast vegetable or meat extracts",
"sub_food_group_id": 11,
"unanalysed_portion": "0%",
"url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F008783"
},
{
"analysed_portion": "100%",
"classification_id": 31102,
"classification_name": "Yeast extracts",
"derivation": "Analysed",
"description": "Commercial, thick dark brown, salty concentrated yeast extract spread made by treating yeast with acid. Contains added salt, and vitamins B1, B2 and B3.",
"fat_factor": 0.8,
"food_group": "Miscellaneous",
"food_group_id": 2,
"inclusions": null,
"name": "Spread, yeast, vegemite",
"nitrogen_factor": 5.7,
"pfk": "F008785",
"sampling_details": "The majority of nutrient data were derived from individual and composite samples of 8 purchases of Kraft Vegemite purchased nationally in each state and territory capital city in 2008. Some proximates, vitamins and minerals were also derived from a composite of 5 samples of Kraft Vegemite purchased from five states across Australia in 2010. Folate and folic acid were determined in the 5 individual samples from the 2010 analysis. Retinol, vitamin D and cholesterol were imputed zero. Note that sample is likely to contain carbohydrates not detected with analytical techniques used and were represented by an estimated starch value in this profile.",
"scientific_name": null,
"specific_gravity": 0,
"sub_food_group": "Yeast, and yeast vegetable or meat extracts",
"sub_food_group_id": 11,
"unanalysed_portion": "0%",
"url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F008785"
},
{
"analysed_portion": "100%",
"classification_id": 31101,
"classification_name": "Yeast",
"derivation": "Analysed",
"description": "A cream or pale grey powder with a fine, smooth texture. Active raising agent used domestically to leaven a wide range of breads, cakes and pastries.",
"fat_factor": 0.8,
"food_group": "Miscellaneous",
"food_group_id": 2,
"inclusions": null,
"name": "Yeast, dry powder",
"nitrogen_factor": 6.25,
"pfk": "F009606",
"sampling_details": "The majority of nutrient data were derived from a composite 6 samples of Supercook dry yeast purchased in Adelaide in 1990. The analysed nitrogen value was reduced by 10% to account for purine nitrogen. Folate, alpha-tocopherol, fibre and fatty acids were borrowed from USDA SR Legacy, FDC ID 175043 - Leavening agents, yeast, baker's, active dry. Iodine was borrowed from NZ Food Composition Database, ID P13 Yeast, baker's, dried. Alcohol, vitamins (B12, C, D, folic acid, retinol), caffeine and cholesterol were imputed zero. Note low sum of proximates likely due to potential difficulties in the analysis of complex carbohydrates - data should be used with caution.",
"scientific_name": null,
"specific_gravity": 0,
"sub_food_group": "Yeast, and yeast vegetable or meat extracts",
"sub_food_group_id": 11,
"unanalysed_portion": "0%",
"url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/food/F009606"
}
],
"name": "Yeast, and yeast vegetable or meat extracts",
"observed_at_ms": 1791942993356,
"page": 1,
"page_size": 50,
"source_url": "https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/food-groups/2/11",
"sub_food_group_id": 11,
"total_foods": 3,
"total_pages": 1
}Request contract
- Method and path: POST /apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group
{
"operationId": "afcd-foodstandards-gov-au.foods.list-foods-in-group",
"method": "POST",
"path": "/apis/v1/afcd-foodstandards-gov-au/foods/list-foods-in-group",
"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": {
"food_group_id": 2,
"sub_food_group_id": 11
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"food_group_id": {
"description": "AFCD food group id (1-22).\n\nProvider reference: minimum 1.",
"type": "number"
},
"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
}
},
"sub_food_group_id": {
"description": "AFCD sub food group id belonging to that group.\n\nProvider reference: minimum 1.",
"type": "number"
}
},
"required": [
"food_group_id",
"sub_food_group_id"
],
"type": "object"
}
}
},
"required": true
},
"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.Authorizations
Body
Response
The foods AFCD files under one sub food group (GET https://www.foodstandards.gov.au/science-data/food-nutrient-databases/afcd/search/api/food-groups/{food_group_id}/{sub_food_group_id}), with each food's description, inclusions, scientific name, classification, derivation, sampling notes and conversion factors (no nutrient values: use get_food). Paged client-side; the API returns the whole group. An existing sub group with no foods returns an empty list; an unknown group / sub group pair is not_found.
The response contains the tool result directly.
| Documented field | Provider type | Description |
|---|---|---|
food_group_id | number | |
foods | object[] | |
name | string | Sub food group name. |
observed_at_ms | number | Unix milliseconds when this program read the AFCD API. |
page | number | |
page_size | number | |
source_url | string | The AFCD API URL this answer was read from. |
sub_food_group_id | number | |
total_foods | number | Foods in the sub group 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.