fatsecret Platform API Documentation

Data Types

Unless otherwise specified, the fatsecret Platform REST API currently uses and supports the following data types. For further information, please refer to the individual endpoint documentation.

Basic
TYPE DESCRIPTION
Boolean A boolean, specified as "true" or "false".
Decimal A numeric value that allows a fractional component.
Int A signed 32-bit integer.
Long A signed 64-bit integer. Usually used for IDs.
String A string of text.
Ternary Enumeration, specified as 1 (True), 0 (False) and -1 (Unknown).
Enum Parameters
NAME TYPE DESCRIPTION
brand_type String Either "manufacturer", "restaurant" or "supermarket" (default value is "manufacturer")
food_type String Takes the value "Brand" or "Generic". Indicates whether the food is a brand or generic item
height_type String Height measurement type for this user profile. Valid types are "cm" and "inch" (default value is "cm")
meal String Type of meal eaten. Valid meal types are "breakfast", "lunch", "dinner" and "other"
serving_amount_unit String The metric unit of measure for the serving size – either "g" or "ml" or "oz" – combined with metric_serving_amount to derive the total standardized quantity of the serving (default value is "g")
weight_type String Weight measurement type for this user profile. Valid types are "kg" and "lb" (default value is "kg")