The Meals resource contains detailed data about nutrition consumed by the human separated by date and type: breakfast/lunch/dinner/other/morning_snack/afternoon_snack/after_dinner.

Get a list of meals the user has
GET https://api.humanapi.co/v1/human/food/meals

Returns a single meal
GET https://api.humanapi.co/v1/human/food/meals/{id}

Query Parameters

ParameterDescription
updated_sinceDate in YYYYMMDDTHHmmssZ format

Response Properties

PropertyTypeDescriptionUnits
idStringThe id of the resource.
userIdString[deprecated - use humanId]
humanIdStringUnique user identifier
timestampDateThe original date of the meal
typeStringType of the meal: breakfast/lunch/dinner/other/morning_snack/afternoon_snack/after_dinner
tzOffsetStringThe offset from UTC time in +/-hh:mm (e.g. -04:00)
nameStringDescriptive name of the meal
sourceStringThe source service for the meal data
caloriesNumberThe amount of calories consumedkcal
carbohydrateNumberThe amount of consumed carbohydrateg
fatNumberThe amount of consumed fatg
proteinNumberThe amount of consumed proteing
sodiumNumberThe amount of consumed sodiummg
sugarNumberThe amount of consumed sugarg
fiberNumberThe amount of consumed fiber (optional)g
saturatedFatNumberThe amount of consumed saturated fat (optional)g
monounsaturatedFatNumberThe amount of consumed monounsaturated fat (optional)g
polyunsaturatedFatNumberThe amount of consumed polyunsaturated fat (optional)g
cholesterolNumberThe amount of consumed cholesterol (optional)mg
vitaminANumberThe amount of consumed vitamin A (optional)mg
vitaminCNumberThe amount of consumed vitamin C (optional)mg
calciumNumberThe amount of consumed calcium (optional)mg
ironNumberThe amount of consumed iron (optional)mg
potassiumNumberThe amount of consumed potassium (optional)mg
amountObjectAmount of a food type (See below) (optional)
updatedAtDateThe time the measurement was updated on the Human API server
createdAtDateThe time the measurement was created on the Human API server

Amount Object

PropertyTypeDescription
valueNumberQuantity
unitStringUnit of measure
Language
Click Try It! to start a request and see the response here!