Health Utilities

Calories Burned

Calculate calories burned during physical activities based on body weight, activity type, and duration. Use via MCP in AI coding tools or REST API at `/v1/health/calories-burned`. Input your weight (70kg), activity ("running"), and time (30 minutes) to get precise calorie estimates. Uses metabolic equivalent (MET) values for accuracy across 100+ activities.

API Endpoint

GET /v1/health/calories-burned

Code Examples

curl "https://tinyfn.io/v1/health/calories-burned" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/health/calories-burned', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/health/calories-burned',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's health tools:

{
  "mcpServers": {
    "tinyfn-health": {
      "url": "https://tinyfn.io/mcp/health",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How accurate are the calorie burn calculations?

Uses standardized MET (Metabolic Equivalent of Task) values from exercise physiology research. Accuracy depends on correct weight input and activity matching, typically within 10-15% for most people.

What activities can I calculate calories for?

Supports 100+ activities including running, cycling, swimming, weightlifting, yoga, household chores, and sports. Each activity has specific MET values for different intensities.

Can AI agents use this for fitness app development?

Yes, MCP integration lets Claude Code and Cursor automatically calculate calories in fitness tracking apps. Perfect for workout logs, daily summaries, and activity comparisons.

Do I need to specify activity intensity levels?

Some activities like "running" require pace specification (e.g., "running 6 mph"), while others like "yoga" use average intensity. The API will indicate when more specificity is needed.

What's the difference between this and fitness tracker estimates?

Uses pure MET calculations without heart rate or personal metabolic variations. More consistent for planning and comparisons, though individual devices may be more personalized.

Try Calories Burned Now

Get your free API key and start using Calories Burned in seconds.

Get Free API Key