External: Events
List Meals
Changed onReturns meals (nutrition entries).
get/api/v1/users/{user_id}/events/meals
Request
- Base URL: https://api.openwearables.io (the document declares no server; this is the origin it was published from)
- URL: https://api.openwearables.io/api/v1/users/{user_id}/events/meals
- Auth: OAuth 2 (password, token URL /api/v1/auth/login)
Path parameters
user_idstring uuid required
Query parameters
start_datestring date-time required
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and cover the whole day, so a date-only range includes both boundary days.
Example:2023-11-07T05:31:56Z
end_datestring date-time required
ISO 8601 datetime (e.g. 2023-11-07T05:31:56Z) or Unix timestamp in seconds. Date-only strings (e.g. 2023-11-07) are also accepted and cover the whole day, so a date-only range includes both boundary days.
Example:2023-11-07T05:31:56Z
cursorstring nullable
limitinteger
provider'apple' | 'samsung' | 'garmin' | 'health_connect' | 'google_health' | 'polar' | 'suunto' | 'whoop' | 'strava' | 'oura' | 'fitbit' | 'ultrahuman' | 'sensorbio' | 'withings' | 'unknown' | 'internal'
Supported data providers.
sourcestring nullable
device_modelstring nullable
data_source_idstring uuid nullable
Headers
X-Open-Wearables-API-Keystring nullable
Response
Successful Response
Example response
{
"data": [
{
"source": {
"provider": "apple",
"source": "Connect",
"device": "iPhone15,2",
"device_id": "R9ZW30ABC12"
},
"nutrients": {
"dietary_sugar": {
"unit": "g",
"value": 12.5
}
}
}
],
"pagination": {
"next_cursor": "eyJpZCI6IjEyMzQ1Njc4OTAiLCJ0cyI6MTcwNDA2NzIwMH0",
"total_count": 150
}
}Changes
- info
added the optional property
///to the response with the status
- info
- info
endpoint added
- info