recently food.get.v4 started returning errors for many food items that were previously existing

35 views
Skip to first unread message

theo

unread,
Mar 10, 2025, 5:03:56 AM3/10/25
to fatsecret Platform API
Recently I can't seem to find a lot of food items by food_id using food.get.v4 that I was able to find before. For example, food_id 1338833 (Tesco Raspberries) returns

{'error': {'code': 106, 'message': "Invalid ID: food_id '1338833' does not exist"}}

whereas previously it returned { "food": { "food_id": "1338833", "food_name": "Raspberries", "brand_name": "Tesco", "food_type": "Brand", "food_url": "https://www.fatsecret.com/calories-nutrition/gb/tesco/raspberries/100g", "servings": { "serving": [ { "serving_id": "1329227", "serving_description": "100g", "serving_url": "https://www.fatsecret.com/calories-nutrition/gb/tesco/raspberries/100g", "metric_serving_amount": "100.000", "metric_serving_unit": "g", "number_of_units": "1.000", "measurement_description": "serving", "calories": "32", "carbohydrate": "4.60", "protein": "1.40", "fat": "0.30", "saturated_fat": "0.100", "sodium": "0", "fiber": "2.5", "sugar": "4.60" } ] } } }
Some food_id-s still return data as normal, e.g. 35718

Is anybody else having this problem? Could it be region specific, e.g. something wrong with the UK database?

seba...@fatsecret.com

unread,
Mar 10, 2025, 5:05:11 AM3/10/25
to fatsecret Platform API
Hi Theo,
Thanks for reaching out. All foods are region specific so you need access to the respective region/country in order to access these foods.
As part of our Free Premier tier, we provide access to the US dataset.

Reply all
Reply to author
Forward
0 new messages