WakaTime API

Track your coding time by language, project, and editor

Sync daily coding summaries from WakaTime. See which languages and projects eat your time, track focus hours, and correlate with actual output.

Free plan includes 2 weeks of history. API access included.

WakaTimedocs →

How it works with Loony

Describe it.
Deploy it.
Query it.

Managed database.

Your WakaTime 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.

TerminalSchema
$ "Pull my WakaTime daily summaries. Store coding time by language and project. Build weekly rollups with focus hours and most-used languages."

 Schema validated
 Database provisioned
 Scripts deployed
 Schedules registered

Done.

# Your data is now at:
REST  /data/v1/wakatime/query
MCP   /mcp/v1/wakatime/mcp
SQL   psql $DATABASE_URL

What you get

WakaTime's free tier only keeps 2 weeks. Loony syncs daily and stores everything in your database, building a permanent record of your coding patterns. Query 6 months of data even on WakaTime's free plan.

mv_weekly_coding
  week          date        -- ISO week start
  total_hours   numeric     -- coding time
  top_language  text        -- most used
  top_project   text        -- most time spent
  languages     integer     -- distinct count
  focus_hours   numeric     -- sessions > 30min

Even better together

Join WakaTime coding hours with GitHub commits to measure efficiency: how much code ships per hour of focus? Add Linear to connect time spent with tickets completed.

Stop gluing. Start shipping.

Describe your data. Deploy. Query. Done.

API Library →