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

View Full Response Schema »

The Response section on the page still needs work. Click here to check out the complete schema.
curl --request GET \
     --url {{BASE_URL}}/v2/timeseries/{user_id}/workout_swimming_stroke/grouped?start_date={{START_DATE}}&end_date={{END_DATE}} \
     --header 'Accept: application/json' \
     --header 'x-vital-api-key: <API_KEY>'
{
  "groups": {
    "oura": [
      {
        "data": [
          {
            "end": "2023-02-13T14:57:24+00:00",
            "start": "2023-02-13T14:30:52+00:00",
            "timestamp": "2023-02-13T14:30:52+00:00",
            "unit": "count",
            "value": 37
          }
        ],
        "source": {
          "provider": "oura",
          "type": "ring"
        }
      }
    ]
  }
}

Authorizations

x-vital-api-key
string
header
required

Vital Team API Key

Path Parameters

user_id
string<uuid>
required

Query Parameters

cursor
string | null
deprecated

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

next_cursor
string | null

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

provider
string
default:""

Provider oura/strava etc 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 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 | null

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 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

Successful Response

groups
Groups · object
required

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

next
string | null
deprecated

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

next_cursor
string | null

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