Fitbit API
Track sleep, steps, and heart rate trends over months
Sync your Fitbit data into a queryable database. Track sleep stages, resting heart rate, step counts, and active zone minutes. Spot long-term trends that the Fitbit app buries.
Free for personal projects. OAuth 2.0, 150 requests/hour.
How it works with Loony
Describe it.
Deploy it.
Query it.
Managed database.
Your Fitbit data lives in its own Postgres instance. Zero config. Data accumulates over time.
Scheduled syncs.
Cron jobs run on Loony infra. Every minute on free. Your data stays fresh without you thinking about it.
REST + MCP endpoints.
Query from your agent, your dashboard, or connect BI tools directly. Full OpenAPI spec included.
$ "Pull my Fitbit sleep logs and daily activity summaries for the last 6 months. Create a weekly rollup with average sleep score, resting HR, and step count." ✓ Schema validated ✓ Database provisioned ✓ Scripts deployed ✓ Schedules registered Done. # Your data is now at: REST /data/v1/fitbit/query MCP /mcp/v1/fitbit/mcp SQL psql $DATABASE_URL
What you get
Fitbit's app shows you today and this week. Loony stores months of data in your own Postgres, so you can query across seasons. Your agent can answer 'How did my sleep change after I started running?' because the data is there.
mv_weekly_health week date -- ISO week start avg_sleep_hrs numeric -- average sleep duration avg_sleep_score integer -- Fitbit sleep score avg_resting_hr integer -- beats per minute avg_steps integer -- daily average active_zone_min integer -- weekly total
Even better together
Pair Fitbit recovery data with Strava training load to find your optimal balance. Add weather to see if seasonal changes affect your sleep patterns.