WHOOP · Schema

SleepNeeded

Breakdown of the amount of sleep a user needed before the sleep activity. Summing all individual components results in the amount of sleep the user needed prior to this sleep activity

FitnessWearablesHealthRecoverySleepWorkoutsStrainHeart RatePerformance

Properties

Name Type Description
baseline_milli integer The amount of sleep a user needed based on historical trends
need_from_sleep_debt_milli integer The difference between the amount of sleep the user's body required and the amount the user actually got
need_from_recent_strain_milli integer Additional sleep need accrued based on the user's strain
need_from_recent_nap_milli integer Reduction in sleep need accrued based on the user's recent nap activity (negative value or zero)
View JSON Schema on GitHub

JSON Schema

whoop-sleepneeded-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/whoop/main/json-schema/whoop-sleepneeded-schema.json",
  "title": "SleepNeeded",
  "description": "Breakdown of the amount of sleep a user needed before the sleep activity. Summing all individual components results in the amount of sleep the user needed prior to this sleep activity",
  "required": [
    "baseline_milli",
    "need_from_recent_nap_milli",
    "need_from_recent_strain_milli",
    "need_from_sleep_debt_milli"
  ],
  "type": "object",
  "properties": {
    "baseline_milli": {
      "type": "integer",
      "description": "The amount of sleep a user needed based on historical trends",
      "format": "int64",
      "example": 27395716
    },
    "need_from_sleep_debt_milli": {
      "type": "integer",
      "description": "The difference between the amount of sleep the user's body required and the amount the user actually got",
      "format": "int64",
      "example": 352230,
      "externalDocs": {
        "description": "WHOOP Locker - What is Sleep Debt & How Do You Catch Up on Sleep?",
        "url": "https://www.whoop.com/thelocker/what-is-sleep-debt-catch-up/"
      }
    },
    "need_from_recent_strain_milli": {
      "type": "integer",
      "description": "Additional sleep need accrued based on the user's strain",
      "format": "int64",
      "example": 208595
    },
    "need_from_recent_nap_milli": {
      "type": "integer",
      "description": "Reduction in sleep need accrued based on the user's recent nap activity (negative value or zero)",
      "format": "int64",
      "example": -12312
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/whoop-sleepneeded"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.