Naar de inhoud
GET /v1/meta

Spec

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/bmr-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/bmr-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bmr-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bmr-api/v1/meta");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/bmr-api/v1/meta",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "notes": "Weight in kg, height in cm, age in years. Activity: sedentary 1.2, light 1.375, moderate 1.55, active 1.725, very_active 1.9. Estimates only — not medical advice.",
        "service": "bmr-api",
        "formulae": {
            "tdee": "TDEE = BMR × activity factor (1.2–1.9)",
            "macros": "protein/carb 4 kcal/g, fat 9 kcal/g",
            "mifflin": "BMR = 10·kg + 6.25·cm − 5·age + (male:+5 / female:−161)"
        },
        "endpoints": {
            "GET /v1/bmr": "Basal metabolic rate from weight, height, age and sex (both formulae).",
            "GET /v1/meta": "This document.",
            "GET /v1/tdee": "Total daily energy expenditure and goal calories from BMR (or body data) and activity level.",
            "GET /v1/macros": "Protein/fat/carb split (grams and kcal) from a calorie target."
        },
        "description": "Energy-expenditure calculator: basal metabolic rate (Mifflin-St Jeor and Harris-Benedict), total daily energy expenditure and macronutrient split."
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:22.369Z",
        "request_id": "cd93fc03-6aa5-4477-a432-123608e63d59"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}