GET
/
v2
/
timeseries
/
{user_id}
/
blood_oxygen
/
grouped
curl --request GET \
     --url {{BASE_URL}}/v2/timeseries/{user_id}/blood_oxygen/grouped?start_date={{START_DATE}}&end_date={{END_DATE}} \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "groups": {
    "oura": [
      {
        "source": {
          "provider": "oura",
          "type": "ring"
        },
        "data": [
          {
            "timestamp": "2023-02-13T14:30:52+00:00",
            "value": 98,
            "unit": "%"
          }
        ]
      }
    ]
  }
}

View Full Response Schema »

The Response section on the page still needs work. Click here to check out the complete schema.

Authorizations

x-vital-api-key
string
headerrequired

Vital Team API Key

Path Parameters

user_id
string
required

Query Parameters

cursor
string

The cursor for fetching the next page, or null to fetch the first page.

provider
string
default:

Provider oura/strava etc

start_date
string
required

Date from in YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 00:00:00

end_date
string

Date to YYYY-MM-DD or ISO formatted date time. If a date is provided without a time, the time will be set to 23:59:59

Response

200 - application/json
groups
object
required

For each matching provider or lab, a list of grouped timeseries values.

next
string

The cursor for fetching the next page, or null if there is no more data.