Food Log
Fetch a FatSecret food by id (servings for unit-aware edit)
get/api/food-log/fatsecret-food/{foodId}
Request
- Base URLhttps://api.rewritelifestyle.ai (the document declares no server; this is the origin it was published from)
- URLhttps://api.rewritelifestyle.ai/api/food-log/fatsecret-food/{foodId}
- AuthHTTP bearer
Path parameters
foodIdstring required
Response
unknown required
Example response
{
"success": true,
"food": {
"id": "33691",
"name": "Chicken Breast",
"brand": null,
"image_url": null,
"servingDescription": "100 g",
"servings": [
{
"serving_id": "57972",
"serving_description": "100 g",
"number_of_units": "100",
"measurement_description": "g",
"metric_serving_amount": "100",
"metric_serving_unit": "g",
"calories": "195",
"protein": "29.55",
"fat": "7.72",
"carbohydrate": "0"
},
{
"serving_id": "57969",
"serving_description": "1 oz boneless, cooked",
"number_of_units": "1",
"measurement_description": "oz",
"metric_serving_amount": "28.35",
"metric_serving_unit": "g",
"calories": "55",
"protein": "8.38",
"fat": "2.19",
"carbohydrate": "0"
}
]
}
}Changes
No recorded changes to this operation across all 34 revisions of this API.