Developers

nudg™ API.

Read your own nudg score, daily signals, monthly spending and insights from your own scripts, spreadsheets and dashboards. Read-only, and part of nudg plus.

Getting started

  1. In the nudg app, go to You › AI apps › Developer tokens and tap New token.
  2. Copy the token. It starts with nudg_pat_ and is shown only once.
  3. Call the API with it:
curl https://nudg-api.nudg-api.workers.dev/v1/today \
  -H "Authorization: Bearer nudg_pat_…"
{
  "currency": "GBP",
  "date": "2026-10-26",
  "nudg_score": 72,
  "score_label": "Good",
  "score_sleep": 24, "score_recovery": 18,
  "score_activity": 12, "score_screen": 18,
  "sleep_mins": 431, "hrv": 58, "resting_hr": 54, "steps": 8210,
  "screen_mins": 196, "pickups": 74, "spend": 18.4
}

Tokens

A personal access token reads one account: yours. It can't change anything in nudg. You can have up to five, each named after what uses it, and the app shows when each was last used. Revoke a token in the app and it stops working straight away. Treat tokens like passwords: don't put them in code you share or in a web page.

Endpoints

Base URL https://nudg-api.nudg-api.workers.dev. Every endpoint is a GET and returns JSON. Amounts are in your account's currency, given as currency on every response, and durations are in minutes.

EndpointReturns
/v1/todayToday's nudg score (0 to 100), its label and parts (sleep of 30, recovery of 25, activity of 20, screen time of 25) and today's key signals.
/v1/daysOne row a day. start and end (YYYY-MM-DD, default the last 7 days, up to 92 rows) and optional fields, comma separated: nudg_score, score_sleep, score_recovery, score_activity, score_screen, sleep_mins, hrv, resting_hr, steps, exercise_mins, screen_mins, pickups, notifications, social_mins, late_night_mins, spend, temp_max, rain_mm, aqi.
/v1/monthsYour spending by category per month, your share after splits. Optional months, e.g. 2026-09,2026-10; default the last 12.
/v1/weeksWeekly averages going back further than the daily data, keyed by each week's Monday. Optional from and to (YYYY-MM-DD).
/v1/insightsThe insight cards nudg has worked out for you, with how strong each pattern is.
curl "https://nudg-api.nudg-api.workers.dev/v1/days?start=2026-10-01&end=2026-10-26&fields=nudg_score,sleep_mins,screen_mins" \
  -H "Authorization: Bearer nudg_pat_…"

Limits

500 calls a day per account, shared with AI apps you've connected, resetting at midnight UTC. Each response carries X-RateLimit-Limit and X-RateLimit-Remaining. nudg updates through the day as your phone and linked accounts sync, so polling more than every 15 minutes won't get you anything new.

Errors

Errors come back as {"error": {"code": "…", "message": "…"}}.

StatusCodeMeaning
400bad_range, bad_field, bad_monthA parameter isn't in the right form.
401unauthorisedNo token, or it was revoked.
402needs_plusThe account isn't on nudg plus.
404not_found, no_dataNo such endpoint, or nothing synced yet.
405method_not_allowedThe API is read-only.
429daily_limitThat's today's 500 calls.

What's included

The API gives you what nudg works out from your data: your score, daily totals, monthly spending by category, weekly averages and insights. Individual bank transactions, split balances with other people and raw health samples aren't included. That keeps tokens lower risk if one leaks, and keeps within the terms of the banks and health services nudg reads from. To see everything nudg holds about you, email [email protected] for a full copy.

The API is for your own data and your own use. It isn't for building an app that other people sign in to. If you'd like to build something like that, email [email protected]. How tokens are handled is set out in our privacy policy.

OpenAPI

The full description is at trynudg.app/developers/openapi.json (OpenAPI 3.1), ready for Postman, Insomnia or a code generator.