Health

Days in a range that have scoreable health data

Lists the calendar days between start and end (inclusive) on which the user has at least one of: a sleep night, HRV readings, heart-rate readings, or a workout — from Apple Health / demo data (fitness_*) or the band (metrics_sink). Steps alone do not count, nor does an Apple Health / Health Connect sleep night (sleep source policy: band and demo only). hiyd-ai-engine uses this to find days it has data for but no score yet. Day attribution matches /rest-summary and /current-stats (sleep by wake day, readings by date) in the zone given by time_zone, or UTC days when it is omitted. Band sleep nights keep their own label (night_date

  • 1), whatever the zone.
get/api/health/data-days

Request

  • Base URL
    https://api.hiyd.ai
  • Auth
    HTTP bearer

Query parameters

startstring date required
endstring date required
time_zonestring

IANA zone the days are counted in (e.g. America/Los_Angeles). Unknown or missing means UTC.

Response

Sorted list of days (YYYY-MM-DD) with data

Changes

No recorded changes to this operation across all 1 revision of this API.