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必填