Daily Statistics
curl --request GET \
  --url https://app-api.spikeapi.com/v3/queries/statistics/daily \
  --header 'Authorization: Bearer <token>'
{
  "date": "2006-01-02",
  "record_ids": [
    "9208bf7e-1a5a-4542-aa8d-c06c18a5c293"
  ],
  "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
providers
enum<string>[]

Response

200
application/json

OK

The response is of type object.