Skip to main content

Exercise & Biomechanics Database

Complete exercise database with anatomical movement classifications, primary and secondary muscle recruitment, equipment prerequisites, MET expenditure values, and execution mechanics.

Pełny adres URL https://www.dietspremium.com/api/v1/exercise
Format odpowiedzi application/json; charset=utf-8
Autoryzacja Authorization: Bearer <API_KEY>
Specyfikacja Parametrów HTTP

Anfrageparameter

3 Parameter
Parameter Datentyp Status Beschreibung Beispiel
query string Erforderlich Exercise or muscle group (e.g. "dumbbell chest press", "quadriceps") —
locale string Optional Target locale en
ai boolean Optional AI semantic search true
Diagnostyka i Odporność

HTTP-Statuscodes

Kod HTTP Status Znaczenie i Obsługa
200 OK Sukces Anfrage erfolgreich verarbeitet
400 Bad Request Błąd walidacji Ungültige Eingabeparameter
401 Unauthorized Brak autoryzacji Fehlender oder ungültiger X-API-KEY
429 Too Many Requests Rate Limit Anfragelimit überschritten
500 Server Error Błąd serwera Interner Serverfehler

Beispiel-HTTP-Anfrage

POST /api/v1/exercise
terminal — POST /api/v1/exercise
REST HTTP/2 REQUEST
curl -X POST 'https://www.dietspremium.com/api/v1/exercise'
curl -X POST "https://www.dietspremium.com/api/v1/exercise" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "query": "barbell squat",
  "locale": "en",
  "ai": true
}'

Beispiel-JSON-Antwort (200 OK)

HTTP/2 200 OK • application/json
response — /api/v1/exercise (200 OK)
JSON Payload 200 OK
{
  "items": [
    {"id": 105, "name": "Barbell Back Squat", "muscle": "Quadriceps", "difficulty": "INTERMEDIATE"}
  ],
  "total": 1
}
Obsługa paginacji i filtrów dla /api/v1/exercise Best Practice

Zalecenia produkcyjne dla deweloperów

1
Kontrola strony i rozmiaru kolekcji page / max_results

Sprawdzaj flagę "hasMore" oraz "total" w odpowiedzi JSON przed pobraniem kolejnej strony.

2
Wyszukiwanie semantyczne vs dokładne ai=true

Ustaw ai=true dla zapytań w języku naturalnym lub ai=false dla ścisłego dopasowania słów kluczowych.

ApiClient_exercise 200 OK

Klient HTTP dla zasobu Exercise & Biomechanics Database

REST API v1 + OpenSearch
Prompt Wejściowy Agenta AI

“Pobierz dane z /api/v1/exercise dla języka DE z użyciem wektora k-NN.”

Wykorzystywane Narzędzia MCP / Endpointy
POST /api/v1/exercise
Ślad Wywołania (Execution Trace)
→ POST /api/v1/exercise (locale=de, ai=true)
← 200 OK (application/json)

Weitere REST-API-Endpunkte

Pełny katalog REST API →

Teilen