← 返回
数据分析 Key 中文

WHOOP Health

Fetch, analyze, and visualize WHOOP wearable health data via the WHOOP Developer API v2. Use when the user wants to connect their WHOOP band, retrieve recove...
通过 WHOOP Developer API v2 获取、分析并可视化 WHOOP 可穿戴健康数据。用于用户连接 WHOOP 手环并获取恢复数据等场景。
jarviyin
数据分析 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 489
下载
💾 8
安装
1
版本
#latest

概述

WHOOP Health Skill

Integrates with the WHOOP Developer API v2 to retrieve and analyze health/fitness data from a WHOOP band.

Setup

1. Create a Developer App

  1. Go to developer.whoop.com and sign in with your WHOOP account
  2. Create a new application; set Redirect URI to http://localhost:8080/callback
  3. Save Client ID and Client Secret

2. Authenticate

Run the OAuth helper script to get an access token:

python3 scripts/whoop_auth.py --client-id YOUR_CLIENT_ID --client-secret YOUR_CLIENT_SECRET

This opens a browser for authorization and saves tokens to ~/.whoop_tokens.json.

3. Fetch Data

# Fetch all data types (last 7 days)
python3 scripts/whoop_fetch.py --days 7

# Fetch specific data types
python3 scripts/whoop_fetch.py --days 30 --types recovery,sleep,workout,cycle

# Output as JSON
python3 scripts/whoop_fetch.py --days 7 --format json --output whoop_data.json

# Output as CSV (one file per data type)
python3 scripts/whoop_fetch.py --days 7 --format csv --output ./whoop_export/

Available Data Types

TypeKey Metrics
-------------------
recoveryRecovery score (0–100%), HRV (ms), resting heart rate
sleepSleep performance %, duration, REM/SWS/light/awake stages
workoutActivity Strain (0–21), avg/max heart rate, calories, sport type
cycleDay Strain (0–21), avg heart rate, kilojoules
profileName, email
body_measurementHeight, weight, max heart rate

Analysis Workflows

Trend Analysis

python3 scripts/whoop_fetch.py --days 30 --types recovery,sleep --format json --output data.json

Then ask: "Analyze my HRV trend and sleep performance over the last 30 days. Identify patterns."

Recovery vs. Strain Correlation

Fetch recovery + cycle for 30+ days, then ask for correlation analysis between day Strain and next-day Recovery score.

Sleep Stage Breakdown

Fetch sleep data, request a breakdown of avg time in each stage (REM, SWS, Light, Awake) and flag nights below recommended thresholds.

Token Management

Tokens are stored at ~/.whoop_tokens.json. The fetch script auto-refreshes using the refresh token when the access token expires (24h lifetime).

To revoke access: python3 scripts/whoop_auth.py --revoke

API Reference

See references/api_endpoints.md for full endpoint list, parameters, and response schemas.

Environment Variables (alternative to flags)

export WHOOP_CLIENT_ID=your_client_id
export WHOOP_CLIENT_SECRET=your_client_secret

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 05:43 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 367 📥 139,997
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 163 📥 59,694
ai-intelligence

ClawPK Arena

jarviyin
Hyperliquid上的AI代理交易竞技场 — 注册、参与竞赛、交易永续合约、赢取USDC奖励
★ 0 📥 815