Sleep tracker API — cycles, quality scoring, and optimal wake times
Three endpoints cover sleep: /wellness/sleep-cycle for optimal bedtimes, /wellness/sleep-quality for a scored quality assessment from bedtime/wake/interruptions data, and /wellness/circadian for daily peak performance windows.
No credit card · Free to start · X-API-Key header auth
What's included in /wellness
Optimal sleep cycle times
GET /wellness/sleep-cycle?wake_time=07:00&cycles=5 returns the exact bedtime to complete 5 full 90-minute cycles.
Sleep quality scoring
POST to /wellness/sleep-quality with bedtime, wake time, interruptions, and age for a 0–100 quality score and improvement tips.
Circadian rhythm windows
GET /wellness/circadian?wake_time=07:00 returns peak focus, exercise, and wind-down windows for the day.
No wearable required
All endpoints work from user-reported data — no device integration, no OAuth, no hardware dependency.
Pairs with /wellness/stress
Combine sleep quality with the 5-factor stress score for a complete daily recovery dashboard.
Start using the sleep tracker API today
Free tier — 250 calls/month, no credit card. Upgrade when you need more.
Frequently asked questions
What is a sleep cycle?
A complete sleep cycle is approximately 90 minutes, moving through light, deep, and REM sleep. Waking at the end of a cycle feels more refreshing than mid-cycle.
What inputs does sleep-quality need?
bedtime (HH:MM), wake_time (HH:MM), interruptions (count), and age (5–110 — required).
Is this accurate without a wearable?
It uses reported inputs, so accuracy depends on self-reporting. For validated medical sleep data, integrate a wearable's API alongside this endpoint.
Related API guides
BMI Calculator API — Metric & Imperial, Classification, Free
Calculate BMI via REST API. Pass weight, height, and unit (metric/imperial) — ge…
Read guideFood Database API — USDA-Sourced Nutrient Data, 13,500+ Foods
Search 13,500+ foods and get full nutrient profiles from an owned database inges…
Read guideRapidAPI Alternative — One Key, 34 APIs, No Per-API Billing
Tired of managing multiple API keys and invoices? APlicious gives you 10 live na…
Read guideOne key unlocks all 10 namespaces — finance, legal, property, jobs, wellness, and more.
View all plans and pricing →