API de Plan Hebdomadaire¶
Générez un plan structuré sur 7 jours avec répartition de l'entraînement/repos et des directives pour le coaching.
Point de terminaison¶
GET /api/v1/fitness/weekly-planPOST /api/v1/fitness/weekly-plan/post
Paramètres¶
| Nom | Type | Obligatoire | In | Description |
|---|---|---|---|---|
age | entier (13-90) | Oui | Requête/Corps | Âge en années. |
goal | chaîne | Oui | Requête/Corps | fat_loss,muscle_gain,maintenance,endurance,recomposition. |
training_days | entier (1-7) | Oui | Requête/Corps | Fréquence hebdomadaire de l'entraînement. |
lang | chaîne | Non | Requête | Langue de la réponse (en,es,de,fr,pt,ja,hi,ar). |
Pourquoi utiliser cet endpoint¶
- Créez instantanément un plan d'entraînement complet pour une semaine.
- Cartographiez le type d'objectif vers la charge de travail et le schéma de récupération.
- Permettez l'automatisation du coaching avec des blocs de plan standardisés.
Exemple de requête¶
curl -X GET "https://api.hefitapi.com/api/v1/fitness/weekly-plan?age=31&goal=recomposition&training_days=5&lang=en" \
-H "X-API-Key: YOUR_API_KEY"
curl -X POST "https://api.hefitapi.com/api/v1/fitness/weekly-plan/post?lang=en" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY" \
-d '{"age":38,"goal":"fat_loss","training_days":4}'
Exemple de réponse¶
Info
L'exemple de réponse ci-dessous est uniquement à des fins de démonstration. Pour obtenir la structure JSON complète, en temps réel et potentiellement plus riche, effectuez une requête sur cet endpoint.
{
"goal": "recomposition",
"goal_label": "Recomposition",
"age": 31,
"training_days": 5,
"rest_days": 2,
"weekly_summary": "Balanced split for composition and performance retention.",
"load_distribution": {"high_days": 2, "moderate_days": 3, "low_or_recovery_days": 2},
"weekly_schedule": [
{"day_index": 1, "day_label": "Day 1", "is_training_day": true, "session_focus": "Upper Strength", "intensity": "High", "recovery_block": "Mobility + sleep target"},
{"day_index": 2, "day_label": "Day 2", "is_training_day": true, "session_focus": "Lower Strength", "intensity": "Moderate", "recovery_block": "Soft tissue + walk"}
],
"execution_guardrails": ["Respect recovery days and trend adherence weekly"],
"adjustment_signals": ["Reduce intensity if recovery trend declines"],
"coach_notes": ["Prioritize consistency over maximal daily effort"],
"language": "en",
"_enterprise": {"client": "Acme Health", "plan": "pro", "request_id": "f4d2bd22d394cc74", "quota": 120, "usage_tracking": true},
"_api_metadata_": {"endpoint_name": "fitness_weekly_plan", "response_language": "en"}
}
Positionnement du produit¶
Endpoint principal pour les produits de coaching par abonnement et les plateformes d'entraînement adaptatif.
Note
training_days doit être compris entre 1 et 7.
Endpoints recommandés¶
GET /api/v1/fitness/daily-plan- API de Plan QuotidienGET /api/v1/fitness/deload-plan- API de Plan de DéchargeGET /api/v1/fitness/glycogen-replenishment-plan- API de Plan de Replenishment des GlycogènesGET /api/v1/fitness/hydration-plan- API de Plan d'HydratationGET /api/v1/fitness/reverse-diet-plan- API de Plan de Réduction des Apports AlimentairesGET /api/v1/fitness/weekly-checkin-analysis- API d'Analyse des Check-ins Hebdomadaires