v1
latestOpenAPI 3.1.02026-07-136587849.3 KBTime Series Data split by provider source
This endpoint returns time series data separated by provider source, allowing you to see data from each source individually without merging. Each time series entry contains arrays of offsets, durations, and values that are aligned by index.
<Note> The arrays `offsets`, `durations`, and `values` will all be of the same length. This alignment is crucial for interpreting the data correctly. </Note>Response Structure
The response contains a timeseries array where each entry represents data from a specific provider source, including:
- Provider information: The specific provider slug
- Division type: The type of data division (sample, activity, etc.)
- Source details: Device manufacturer, model, and other source information
- Data arrays: Offsets, durations, and values for the time series
Request Example
{
"from_timestamp": "2024-01-01T00:00:00Z",
"to_timestamp": "2024-01-02T00:00:00Z",
"metric": "heartrate",
"include_record_ids": true
}
Response Example
{
"timeseries": [
{
"metric": "heartrate",
"start_at": "2024-01-01T00:00:00Z",
"offsets": [43200000, 46800000],
"durations": [2400000, 600000],
"values": [71, 76],
"provider": "apple",
"division_type": "sample",
"record_ids": ["ff000000-0000-0000-0000-000000000000"],
"source": {
"device_manufacturer": "Apple",
"device_model": "iPhone 15"
}
}
]
}
Query parameters
Start time of the query range in UTC, inclusive
Start time of the query range in UTC, inclusive
End time of the query range in UTC, non-inclusive
End time of the query range in UTC, non-inclusive
The metric you want to query
The metric you want to query
Whether to include the record IDs in the response
Whether to include the record IDs in the response
Device types to include in the statistics
Device types to include in the statistics
Response
OK
Example response
{
"from_timestamp": "2006-01-02T00:00:00Z",
"timeseries": [
{
"provider": "strava",
"record_ids": [
"12345678-1234-abcd-4321-abcdef123456"
]
}
],
"to_timestamp": "2006-01-02T00:00:00Z"
}