Katalog Narzędzi MCP & Endpointów REST API
Supplement & Active Substance Database
Dietary supplement repository covering active chemical forms, therapeutic dosages, synergistic combinations, contraindications, and regulatory standards.
https://www.dietspremium.com/api/v1/supplement
application/json; charset=utf-8
Authorization: Bearer <API_KEY>
Anfrageparameter
| Parameter | Datentyp | Status | Beschreibung | Beispiel |
|---|---|---|---|---|
query
|
string | Erforderlich | Supplement or active ingredient (e.g. "Omega 3 EPA DHA", "Creatine Monohydrate") | —
|
locale
|
string | Optional | Target locale | en
|
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/supplementcurl -X POST 'https://www.dietspremium.com/api/v1/supplement'
curl -X POST "https://www.dietspremium.com/api/v1/supplement" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"query": "Creatine Monohydrate",
"locale": "en"
}'
Beispiel-JSON-Antwort (200 OK)
HTTP/2 200 OK • application/json{
"items": [
{"id": 302, "name": "Creatine Monohydrate Creapure", "category": "Amino Acids", "standardDose": "5g/day"}
],
"total": 1
}
Obsługa paginacji i filtrów dla /api/v1/supplement
Best Practice
Zalecenia produkcyjne dla deweloperów
Zalecenia produkcyjne dla deweloperów
page / max_results
Sprawdzaj flagę "hasMore" oraz "total" w odpowiedzi JSON przed pobraniem kolejnej strony.
ai=true
Ustaw ai=true dla zapytań w języku naturalnym lub ai=false dla ścisłego dopasowania słów kluczowych.
Klient HTTP dla zasobu Supplement & Active Substance Database
“Pobierz dane z /api/v1/supplement dla języka DE z użyciem wektora k-NN.”
→ POST /api/v1/supplement (locale=de, ai=true)
← 200 OK (application/json)