Daily Calorie Needs
Basal metabolic rate and daily calories using the Mifflin-St Jeor equation.
POST /api/v1/calorie-needs- API version
- v1
- Output schema
- 1
The endpoint path is always /v1. The schema number below tracks this tool's output shape and changes independently.
Create a free account →Parameters
| Parameter | Type | Required | Default |
|---|---|---|---|
| sex | female | male | no | female |
| age | number | no | 30 |
| weight | number | no | 65 |
| height | number | no | 170 |
| activity | sedentary | light | moderate | active | very-active | no | light |
Request
curl -X POST https://sinikoding.dev/api/v1/calorie-needs \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"sex":"female","age":30,"weight":65,"height":170,"activity":"light"}'
Returns
"output": { "kind": "table", "columns": ["…"], "rows": [["…"]] }
Calls a same-origin sandbox endpoint, not /api/v1. No key needed, capped at 15 requests a minute.
Request
curl -X POST https://sinikoding.dev/api/v1/calorie-needs \ -H 'content-type: application/json' \ -H 'x-api-key: tk_live_…' \ -d '{"sex":"female","age":"30","weight":"65","height":"170","activity":"light"}'
Response
Send a request to see the response.