Withings icon

Withings

Read health data from the Withings API

Sleep → Get

AI-generated

Summary

Fetches detailed sleep data from the Withings API. Optionally set a start and end date, a last-update cutoff, an offset, and sleep series to include; the node sends a POST request using the required Withings OAuth2 credential.

Inputs

  • additionalFields.startdate — Start of the requested range. For this operation, the value is converted to Unix seconds.
  • additionalFields.enddate — End of the requested range. For this operation, the value is converted to Unix seconds.
  • additionalFields.lastupdate — Return data updated after this moment; converted to Unix seconds.
  • additionalFields.offset — Number of records to skip. A nonzero value is sent to Withings.
  • dataFields — Sleep series to include: Heart Rate (hr), Respiration Rate (rr), and/or Snoring (snoring). Selected values are sent as a comma-separated list; if none are selected, this parameter is omitted.

Output shape

A list of n8n items, one per input item, each containing the Withings response body in json.

If the API response body is not an object, the node returns an empty object. With Continue On Fail enabled, a failed input produces an item with an error field; otherwise the node raises an error.

Links

Discussion