Withings makes connected health devices: scales, blood pressure monitors, hybrid smartwatches, sleep mats. Its Public API returns what those devices measure to any app the user authorises, over REST with OAuth 2.0. It is the only way to get the data out in a usable form: the Health Mate app exports CSV by hand, and Apple Health receives only part of it.

What it gives you
| Call | Returns |
|---|---|
POST /measure action=getmeas |
Body and heart measures: weight, fat, muscle, water, bone, blood pressure, pulse, SpO2, temperature, pulse wave velocity |
POST /v2/measure action=getactivity |
Daily activity: steps, distance, elevation, calories, heart rate zones |
POST /v2/measure action=getworkouts |
Workouts |
POST /v2/sleep action=getsummary |
Sleep per night: stages, score, heart and breathing rate |
POST /v2/heart action=list / get |
ECG recordings, their classification and the raw waveform |
POST /v2/user action=getdevice |
Registered devices, battery, last session |
Base URL: https://wbsapi.withings.net. Every call is a form-encoded POST with an action parameter, and a bearer token in the Authorization header. Every response wraps the data in {"status": 0, "body": {...}}: a non-zero status is the error, even with HTTP 200.
Measure values come as an integer plus a power of 10: the real value is value * 10**unit. A weight of 72.35 kg arrives as {"value": 72350, "unit": -3, "type": 1}. Common types: 1 weight, 6 fat ratio, 9/10 diastolic and systolic pressure, 11 pulse, 76 muscle mass, 77 body water, 88 bone mass, 91 pulse wave velocity.
Language and install
No official SDK is needed. Any HTTP client works. Mine is 1 Python file on the standard library (urllib, http.server for the OAuth callback, sqlite3).
Getting access
- Create an application on the developer dashboard and pick Public API, not "app-to-app". App-to-app is for mobile apps that embed the Withings SDK and needs a contract. Public API needs neither.
- Register a callback URL. A
http://localhost:<port>/callbackcallback is allowed during the integration phase, which caps the app at 10 users. Enough for 1 person. - Send the user to
https://account.withings.com/oauth2_user/authorize2with the scopesuser.info,user.metrics,user.activity,user.sleepevents. - Exchange the code at
POST /v2/oauth2withaction=requesttoken.
The gotchas that cost me time:
- The authorisation code expires 30 seconds after Withings issues it. Copying it by hand is a race. Catch the callback with a local server and exchange the code at once.
- The redirect URI must match the dashboard byte for byte, trailing slash included. A mismatch returns status
342. - The refresh token rotates on every refresh. The new one replaces the old one, so the token file is the only valid copy. Never sync it to Dropbox or copy it to a second machine: 2 copies means 1 of them dies on the next refresh.
- A sandbox exists (
--demomode in my script): it returns synthetic data with no device. Good to prove the pipeline, but re-authorise against the real account afterwards.
Plans and pricing
The developer plans changed in 2026:
| Plan | Price | What it adds |
|---|---|---|
| Start for Free | Free | Activity, sleep, body, heart. REST, OAuth, webhooks, EU hosting. 10 users until Withings reviews the app |
| Enterprise | Custom quote | 1,500+ requests a minute, US hosting under HIPAA, DPA, a named contact |
| Advanced Biomarkers | Custom quote | The FDA and CE-cleared biomarkers (ECG, AFib, SpO2, vascular age), risk scores |
Since 12th October 2026, a Withings account created after that date needs a Withings+ membership (9.95 EUR a month or 99.50 EUR a year in the EU) to share its data with a free-plan app. Accounts created before that date are unaffected. The free plan has "standard rate limits", without a published number: back off on errors and fetch incrementally.

How NicAI uses it
I run 3 Withings devices: the ScanWatch 2 (!watches/scanwatch-2), the BodyScan 2 scale (!interests/withings-body-scan-2) and the BPM Vision blood pressure monitor. A NicAI skill, withings, pulls their data into my personal health record, next to the Apple Watch data.
python3 withings.py auth # 1-time OAuth: opens the browser, a local server catches the code
python3 withings.py sync --full # backfill everything Withings holds
python3 withings.py sync # incremental: everything since the last sync, plus the last 2 days again
python3 withings.py digest --days 30
python3 withings.py status # row counts, sync state, token expiry
- SQLite, shaped like my Apple Health database, so the same queries work on both: 1 row per measure value, a daily view, sleep nights keyed by wake-up date, activity, workouts, ECG recordings, devices and a sync state per endpoint. ECG waveforms stay as JSON files next to it.
- The re-read window matters. Withings sometimes adds or corrects a measure after the fact (a watch syncs late), so every incremental sync fetches the last 2 days again and upserts.
- Unknown measure types are kept, stored as
Type<n>instead of dropped. After a firmware update, a new type shows up there first. - The digest is what agents read, not the raw tables: a Markdown summary with trends, rolling means, a coverage table that shows what exists and how stale it is, and threshold flags. My health skill calls it for any question it can't answer from the Apple data.
- Rules agents follow: never mix a Withings series with an Apple series in 1 figure, always name the device, and never cite formula outputs such as metabolic age as evidence.
- Watched: Pulsee (!NicAI/pulsee), my Mac watcher, flags the Withings token when it sits unused or a refresh fails, and opens the login command for me.
The health data itself stays on my Mac. This note documents the plumbing only.
