Strava Skill
Chat with your Strava data using AI. Ask about your activities, fitness trends, personal records, training load, and more. Powered by Transition, which syncs with Strava to give AI agents access to your training data.
Setup
- 1. Download Transition and connect your Strava account
- Go to Settings > API Keys and tap Generate New Key
- Set the environment variable:
CODEBLOCK0
No Auth Required
Workout of the Day
Generate a random structured workout — no account needed.
CODEBLOCK1
Parameters:
- -
sport — run, bike, swim, or strength (default: run) - INLINECODE6 — minutes, 10-300 (default:
45)
Authenticated Endpoints
Base URL: https://api.transition.fun
Auth: Pass X-API-Key header on every request.
AI Coach Chat
Ask questions about your Strava data. The AI coach has full context on your activities and performance.
CODEBLOCK2
Example questions:
- - "What's my weekly mileage trend over the last month?"
- "How is my cycling FTP progressing?"
- "Am I running more or less than usual this week?"
- "What was my fastest 5K effort recently?"
- "Should I rest or train today based on my recent activity?"
Get Workouts
Retrieve scheduled workouts for a date range.
CODEBLOCK3
Parameters:
- -
start — Start date (YYYY-MM-DD, required) - INLINECODE11 — End date (YYYY-MM-DD, required)
- Maximum range between
start and end is 90 days.
Performance Management Chart (PMC)
Get CTL (fitness), ATL (fatigue), and TSB (form) calculated from your Strava activities.
CODEBLOCK4
Performance Stats
Get FTP, threshold paces, heart rate zones, and other metrics derived from your Strava data.
CODEBLOCK5
Athlete Profile
CODEBLOCK6
Chat History
CODEBLOCK7
Rate Limits
| Tier | Read Endpoints | AI Endpoints |
|---|
| Free | 100/day | 3/day |
| Paid |
10,000/day | 100/day |
Tips for Agents
- 1. Use coach chat as the primary interface. It has full context on the user's Strava activities, training load, and performance — just ask natural questions.
- 2. Check fatigue before recommending hard workouts. Call
GET /api/v1/performance/pmc and look at TSB. If TSB is below -20, the athlete is fatigued.
- 3. Use the free WOD endpoint for quick workouts. No auth needed — great for users who just want a workout suggestion.
- 4. Date format is always YYYY-MM-DD for all date parameters.
Strava 技能
使用AI与您的Strava数据对话。询问您的活动、健身趋势、个人记录、训练负荷等信息。由Transition提供支持,该应用与Strava同步,使AI代理能够访问您的训练数据。
设置
- 1. 下载Transition并连接您的Strava账户
- 前往设置 > API密钥,点击生成新密钥
- 设置环境变量:
bash
export TRANSITIONAPIKEY=trlivexxxxxxxxxxxxxxxxxxxxx
无需认证
每日训练计划
生成随机结构化训练计划——无需账户。
bash
curl https://api.transition.fun/api/v1/wod?sport=run&duration=45
参数:
- - sport — run(跑步)、bike(骑行)、swim(游泳)或strength(力量训练)(默认:run)
- duration — 分钟数,10-300(默认:45)
需认证的端点
基础URL: https://api.transition.fun
认证: 每次请求需传递X-API-Key请求头。
AI教练对话
询问关于您Strava数据的问题。AI教练掌握您活动和表现的完整上下文。
bash
curl -X POST -H X-API-Key: $TRANSITIONAPIKEY \
-H Content-Type: application/json \
-d {message: 我这周的长时间跑步与上周相比如何?} \
https://api.transition.fun/api/v1/coach/chat
示例问题:
- - 我过去一个月的每周跑量趋势如何?
- 我的骑行FTP进展如何?
- 我这周跑步比平时多还是少?
- 我最近最快的5公里成绩是多少?
- 根据我最近的活动,今天应该休息还是训练?
获取训练计划
检索指定日期范围内的预定训练计划。
bash
curl -H X-API-Key: $TRANSITIONAPIKEY \
https://api.transition.fun/api/v1/workouts?start=2026-02-09&end=2026-02-15
参数:
- - start — 开始日期(YYYY-MM-DD,必填)
- end — 结束日期(YYYY-MM-DD,必填)
- start和end之间的最大范围为90天。
表现管理图表(PMC)
获取根据您Strava活动计算的CTL(体能)、ATL(疲劳)和TSB(状态)。
bash
curl -H X-API-Key: $TRANSITIONAPIKEY \
https://api.transition.fun/api/v1/performance/pmc
表现统计
获取FTP、阈值配速、心率区间以及从您Strava数据中得出的其他指标。
bash
curl -H X-API-Key: $TRANSITIONAPIKEY \
https://api.transition.fun/api/v1/performance/stats
运动员资料
bash
curl -H X-API-Key: $TRANSITIONAPIKEY \
https://api.transition.fun/api/v1/profile
对话历史
bash
curl -H X-API-Key: $TRANSITIONAPIKEY \
https://api.transition.fun/api/v1/coach/history
速率限制
10,000次/天 | 100次/天 |
给代理的提示
- 1. 将教练对话作为主要界面。 它拥有用户Strava活动、训练负荷和表现的完整上下文——只需用自然语言提问即可。
- 2. 在推荐高强度训练前检查疲劳程度。 调用GET /api/v1/performance/pmc并查看TSB。如果TSB低于-20,说明运动员处于疲劳状态。
- 3. 使用免费的每日训练计划端点快速获取训练方案。 无需认证——非常适合只想获得训练建议的用户。
- 4. 所有日期参数的格式始终为YYYY-MM-DD。