curl --request GET \
  --url https://app-api.spikeapi.com/v3/queries/statistics/daily \
  --header 'Authorization: Bearer <token>'
{
  "date": "2006-01-02",
  "record_ids": [
    "e70d239d-08c8-44a3-8f4f-7c9784877f10"
  ],
  "values": {
    "calories_burned_active": 123.4567,
    "calories_burned_basal": 123.4567,
    "calories_burned_total": 123.4567,
    "distance_cycling": 123.4567,
    "distance_running": 123.4567,
    "distance_total": 123.4567,
    "distance_walking": 123.4567,
    "heartrate": 123,
    "heartrate_max": 123,
    "heartrate_min": 123,
    "heartrate_resting": 123,
    "sleep_duration_total": 123,
    "sleep_score": 123,
    "steps": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

from_date
string

Start time of the query range in user's local timezone according to the provider

Examples:

"2006-01-02"

to_date
string

End time of the query range in user's local timezone according to the provider

Examples:

"2006-01-02"

exclude_manual
boolean
default:false

Exclude manual metrics from the statistics

types
enum<string>[]
required

Statistics values

Minimum length: 1
providers
string[] | null

Provider slugs

Response

200
application/json

OK

The response is of type object.