# Calories Burned API

> Calories Burned estimates the energy any of 1,100+ activities uses, from running and cycling to gardening and office work. Search by name or Compendium code, pass body weight in kg or lb and a duration, and get calories per hour and in total with the MET value, its Compendium code and the intensity class. Personalise with age, sex and height or a measured RMR, or ask how long it takes to burn a calorie target.

**Endpoint:** `GET https://api.apiverve.com/v1/caloriesburned`  
**Category:** Health/Wellness  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/caloriesburned

## Overview

A calories burned API built on the 2024 Adult Compendium of Physical Activities, the reference list of energy costs used in physical activity research. Each of its 1,100+ activities carries a MET value (a multiple of resting energy use) and a five-digit code; the API searches them by everyday names and synonyms such as biking, weightlifting or jump rope, scales the MET by body weight and duration, and returns calories per hour and for the session.

Every plan gets the search, weight in kilograms or pounds, duration, the MET value and Compendium code, the light, moderate or vigorous intensity class and a reverse mode that answers how many minutes an activity takes to burn a calorie target. Paid plans add personalised results: pass age, sex and height to estimate resting metabolic rate with the Mifflin-St Jeor equation, or pass a measured RMR, and the API adds the Compendium's corrected MET, the intensity relative to that resting rate, alongside the standard value. Paid plans also return up to 25 matches per search.

Source: Herrmann SD, Willis EA, Ainsworth BE, Barreira TV, Hastert M, Kracht CL, Schuna JM Jr, Cai Z, Quan M, Tudor-Locke C, Whitt-Glover MC, Jacobs DR Jr. 2024 Adult Compendium of Physical Activities: A third update of the energy costs of human activities. Journal of Sport and Health Science 2024;13(1):6-12, and the Compendium website, https://pacompendium.com. MET values are used exactly as published.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/caloriesburned?activity=running&code=12150&weight=70&unit=metric&duration=30&calories=300&age=35&sex=female&height=170&rmr=1500&limit=10" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `activity` | string | No | Activity to search for, e.g. running, biking, yoga or mowing lawn. Add a speed or pace (running 6 mph, cycling 25 km/h, running 9 min/mile) to get the entry for that speed. Required unless code is given.. length 0-100 |
| `code` | string | No | Five-digit Compendium activity code to look up directly, e.g. 12150.. length 5-5 |
| `weight` | number | No | Body weight in kg (metric) or lb (imperial). Defaults to 70 kg.. range 1-1100 |
| `unit` | string | No | Unit system for weight and height: metric (kg, cm) or imperial (lb, in). Defaults to metric.. One of: metric, imperial |
| `duration` | number | No | Duration of the activity in minutes (1-1440). Defaults to 60.. range 1-1440 |
| `calories` | number | No | Calorie target: adds minutesToBurn, the minutes each activity takes to burn this many kcal.. range 1-20000 |
| `age` | integer | No | Age in years (18-120), for a personalised estimate with sex and height.. range 18-120. Premium field |
| `sex` | string | No | Sex for the resting metabolic rate estimate, with age and height.. One of: male, female. Premium field |
| `height` | number | No | Height in cm (metric) or inches (imperial), with age and sex.. range 1-300. Premium field |
| `rmr` | number | No | Measured resting metabolic rate in kcal per day (500-5000). Overrides age, sex and height.. range 500-5000. Premium field |
| `limit` | integer | No | Number of matching activities to return (1-25). Defaults to 5.. range 1-25. Premium field |

## Response fields

- `query` — string · The activity searched for, or the code looked up
- `count` — number · Number of activities returned
- `totalMatches` — number · Number of activities that matched the search
- `weightKg` — number · Body weight used, in kilograms
- `durationMinutes` — number · Duration used, in minutes
- `targetCalories` — object · The calorie target from the calories parameter, or null
- `personalized` — boolean · Whether results use a resting metabolic rate (corrected METs)
- `rmrKcalPerDay` — object · Resting metabolic rate used, kcal per day: measured, or estimated with Mifflin-St Jeor · (premium)
  - `activities.0.code` — string · Five-digit Compendium activity code
  - `activities.0.activity` — string · Activity description as published in the Compendium
  - `activities.0.heading` — string · Compendium major heading, e.g. Running or Water Activities
  - `activities.0.met` — number · Standard MET value as published in the Compendium
  - `activities.0.correctedMet` — object · MET corrected for the person's resting metabolic rate; null unless personalised · (premium)
  - `activities.0.intensity` — string · Intensity class of the standard MET: sedentary (1.5 or less), light (under 3), moderate (3 to 5.9) or vigorous (6 or more)
  - `activities.0.caloriesPerHour` — number · Calories (kcal) burned per hour
  - `activities.0.durationMinutes` — number · Duration the total is for, in minutes
  - `activities.0.totalCalories` — number · Calories (kcal) burned over the duration
  - `activities.0.minutesToBurn` — object · Minutes this activity takes to burn targetCalories; null without the calories parameter

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "query": "running",
    "count": 5,
    "totalMatches": 73,
    "weightKg": 70,
    "durationMinutes": 30,
    "targetCalories": null,
    "personalized": false,
    "rmrKcalPerDay": null,
    "activities": [
      {
        "code": "12145",
        "activity": "Running, self-selected pace",
        "heading": "Running",
        "met": 10.5,
        "correctedMet": null,
        "intensity": "vigorous",
        "caloriesPerHour": 772,
        "durationMinutes": 30,
        "totalCalories": 386,
        "minutesToBurn": null
      },
      {
        "code": "12140",
        "activity": "Running, cross country",
        "heading": "Running",
        "met": 9.3,
        "correctedMet": null,
        "intensity": "vigorous",
        "caloriesPerHour": 684,
        "durationMinutes": 30,
        "totalCalories": 342,
        "minutesToBurn": null
      },
      {
        "code": "12170",
        "activity": "Running, stairs, up",
        "heading": "Running",
        "met": 15,
        "correctedMet": null,
        "intensity": "vigorous",
        "caloriesPerHour": 1103,
        "durationMinutes": 30,
        "totalCalories": 551,
        "minutesToBurn": null
      },
      {
        "code": "12150",
        "activity": "Running (Taylor Code 200)",
        "heading": "Running",
        "met": 8,
        "correctedMet": null,
        "intensity": "vigorous",
        "caloriesPerHour": 588,
        "durationMinutes": 30,
        "totalCalories": 294,
        "minutesToBurn": null
      },
      {
        "code": "12180",
        "activity": "Running, on a track, team practice",
        "heading": "Running",
        "met": 10,
        "correctedMet": null,
        "intensity": "vigorous",
        "caloriesPerHour": 735,
        "durationMinutes": 30,
        "totalCalories": 368,
        "minutesToBurn": null
      }
    ]
  }
}
```

## Use cases

- **Workout Logging Apps** — Fitness apps turn a logged activity and duration into calories burned, showing the MET and intensity class so users see why a session counted the way it did.
- **Calorie Goal Planning** — Nutrition coaches use the reverse mode to tell clients how many minutes of walking, cycling or swimming offset a snack or meal.
- **Corporate Wellness Challenges** — Step and activity challenges convert mixed activities, from yard work to basketball, into one comparable calorie or MET-minute total.
- **Wearable and Health Platforms** — Device makers fill in activities their sensors cannot classify with Compendium-based estimates personalised to the wearer's age, sex, height and weight.

## More

- Full reference: https://docs.apiverve.com/ref/caloriesburned
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
