Search the FatSecret food database. Returns food names, descriptions, and basic nutrition info. On the Basic plan only search_expression, page_number and max_results (max 50) are used.
输入参数regionlanguagefood_typemax_resultspage_numbersearch_expression必填include_food_imagesflag_default_servinginclude_sub_categoriesinclude_food_attributes
Get detailed nutritional information for a specific food by ID. Returns servings, calories, macros, and micronutrients.
输入参数regionfood_id必填languagepage_numberinclude_food_imagesflag_default_servinginclude_sub_categoriesinclude_food_attributes
Find food by barcode (GTIN-13). UPC-A, EAN-13 and EAN-8 supported. Premier exclusive.
输入参数regionbarcode必填languageinclude_food_imagesflag_default_servinginclude_sub_categoriesinclude_food_attributes
Get autocomplete suggestions for a partial food search expression. Premier exclusive.
输入参数regionlanguageexpression必填max_results
Search recipes with optional filters for calories, macros, prep time, and recipe types.
输入参数sort_bycalories.tomax_resultspage_numberprep_time.torecipe_typescalories.fromprep_time.frommust_have_imagesfat_percentage.tosearch_expressioncarb_percentage.to另有 5 个
Get detailed recipe information by ID including ingredients, directions, and nutrition.
输入参数recipe_id必填max_resultspage_number
Get the full list of food categories. Premier exclusive.
输入参数regionlanguage
Get food sub categories for a given food category. Premier exclusive.
输入参数regionlanguagefood_category_id必填
Get the list of food brands, optionally filtered by starting letter and type. Premier exclusive.
输入参数regionlanguagebrand_typestarts_with
Get the full list of supported recipe type names.
无需输入参数。
Get food diary entries for a date or a specific entry by ID. Requires profile auth (check_auth_status first).
输入参数datefood_entry_id
Get daily nutrition summary for a month. Returns calories and macros per day. Requires profile auth (check_auth_status first).
输入参数date
Add a food diary entry. Requires food_id, serving_id, and meal type. Requires profile auth (check_auth_status first).
输入参数datemeal必填food_id必填serving_id必填food_entry_name必填number_of_units必填
Edit an existing food diary entry. Cannot change the date. Requires profile auth (check_auth_status first).
输入参数mealserving_idfood_entry_id必填food_entry_namenumber_of_units
Delete a food diary entry by ID. Requires profile auth (check_auth_status first).
输入参数food_entry_id必填
Copy food entries from one date to another, optionally filtered by meal. Requires profile auth (check_auth_status first).
输入参数mealto_date必填from_date必填
Copy entries from a saved meal to a meal on a specific date. Requires profile auth (check_auth_status first).
输入参数datemeal必填saved_meal_id必填
Get the user's favorite foods. Requires profile auth (check_auth_status first).
无需输入参数。
Remove a food from the user's favorites. Requires profile auth (check_auth_status first).
输入参数food_id必填serving_idnumber_of_units
Get the user's most eaten foods, optionally filtered by meal. Requires profile auth (check_auth_status first).
输入参数meal
Get the user's recently eaten foods, optionally filtered by meal. Requires profile auth (check_auth_status first).
输入参数meal
Get the user's favorite recipes. Requires profile auth (check_auth_status first).
无需输入参数。
Add a recipe to the user's favorites. Requires profile auth (check_auth_status first).
输入参数recipe_id必填
Remove a recipe from the user's favorites. Requires profile auth (check_auth_status first).
输入参数recipe_id必填
Get the user's saved meals, optionally filtered by meal type. Requires profile auth (check_auth_status first).
输入参数meal
Create a new saved meal. Requires profile auth (check_auth_status first).
输入参数mealssaved_meal_name必填saved_meal_description
Edit a saved meal name, description, or associated meals. Requires profile auth (check_auth_status first).
输入参数mealssaved_meal_id必填saved_meal_namesaved_meal_description
Delete a saved meal. Requires profile auth (check_auth_status first).
输入参数saved_meal_id必填
Get all food items in a saved meal. Requires profile auth (check_auth_status first).
输入参数saved_meal_id必填
Add a food item to a saved meal. Requires profile auth (check_auth_status first).
输入参数food_id必填serving_id必填saved_meal_id必填number_of_units必填saved_meal_item_name必填
Edit a food item in a saved meal (name or units). Cannot change serving_id. Requires profile auth (check_auth_status first).
输入参数number_of_unitssaved_meal_item_id必填saved_meal_item_name
Remove a food item from a saved meal. Requires profile auth (check_auth_status first).
输入参数saved_meal_item_id必填
Record the user's weight for a date. First weigh-in requires goal_weight_kg and current_height_cm. Requires profile auth (check_auth_status first).
输入参数datecommentheight_typeweight_typegoal_weight_kgcurrent_height_cmcurrent_weight_kg必填
Get the user's weight entries for a month. Requires profile auth (check_auth_status first).
输入参数date
Get the full list of supported exercise types and their IDs. Requires profile auth (check_auth_status first).
无需输入参数。
Shift exercise time between activities for a date. Moves minutes from one exercise to another. Requires profile auth (check_auth_status first).
输入参数datekcalminutes必填shift_to_id必填shift_from_id必填shift_to_nameshift_from_name
get_exercise_entries_month
Get daily calories expended from exercise for a month. Requires profile auth (check_auth_status first).
输入参数date
Save the current day's exercise entries as a template for specified days of the week. Requires profile auth (check_auth_status first).
输入参数datedays必填
Get profile status information for the authenticated user. Requires profile auth (check_auth_status first).
无需输入参数。
Create a custom food with nutrition info. Premier exclusive. Requires profile auth (check_auth_status first).
输入参数fat必填ironfibersugarsodiumcalciumprotein必填calories必填food_name必填potassiumtrans_fatvitamin_a另有 13 个
Check if API credentials and profile authentication are configured. Call this first to understand what setup is needed.
无需输入参数。
Configure FatSecret API credentials. Get them at https://platform.fatsecret.com/ → My Account → API Keys. Saves to persistent config file.
输入参数client_id必填client_secret必填consumer_secret必填
Start the OAuth 1.0 authorization flow for profile access. Returns an authorization URL the user must visit. Requires API credentials (setup_credentials first).
无需输入参数。
Complete the OAuth 1.0 flow with the verifier code from the authorization page.
输入参数verifier必填