API Playground

请求配置

POST

代码示例

cURL
curl -X POST https://motionapi.cn/api/v1/motion/analyze \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "sport_type": "badminton",
  "duration_ms": 5000,
  "fps": 30,
  "frames": [{"timestamp_ms": 0, "keypoints": [{"name": "right_wrist", "x": 0.5, "y": 0.3, "z": 0}], "joint_angles": {"right_elbow": 145}, "confidence": 0.9}],
  "device_info": {"device_type": "web", "model_name": "mediapipe-pose"},
  "coordinate_system": "normalized"
}'
Python
import requests

response = requests.post(
    "https://motionapi.cn/api/v1/motion/analyze",
    headers={"Authorization": "Bearer YOUR_JWT_TOKEN"},
    json={
  "sport_type": "badminton",
  "duration_ms": 5000,
  "fps": 30,
  "frames": [{"timestamp_ms": 0, "keypoints": [{"name": "right_wrist", "x": 0.5, "y": 0.3, "z": 0}], "joint_angles": {"right_elbow": 145}, "confidence": 0.9}],
  "device_info": {"device_type": "web", "model_name": "mediapipe-pose"},
  "coordinate_system": "normalized"
}
)
print(response.json())

响应

// 点击 "发送请求" 查看响应