Calories Burned API
The Calories Burned API calculates the total calories burned for hundreds of sports and activities. It supports custom weight and duration. See activities endpoint for a list of all supported activities.
/v1/caloriesburned GET
https://api.api-ninjas.com/v1/caloriesburned
Returns the calories burned per hour and total calories burned according to given parameters for given activities (up to 10).
Parameters
- activityrequired- Name of the given activity. This value can be partial (e.g. - skiwill match- water skiingand- downhill skiing).
- weightoptional- Weight of the user performing the activity in pounds. Must be between - 50and- 500. Default value is- 160.
- durationoptional- How long the activity was performed in minutes. Must be - 1or greater. Default value is- 60(1 hour).
Headers
- X-Api-Keyrequired- API Key associated with your account. 
Sample Request Live Demo!
https://api.api-ninjas.com/v1/caloriesburned?activity=skiingHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
[
  {
    "name": "Skiing, water skiing",
    "calories_per_hour": 354,
    "duration_minutes": 60,
    "total_calories": 354
  },
  {
    "name": "Cross country snow skiing, slow",
    "calories_per_hour": 413,
    "duration_minutes": 60,
    "total_calories": 413
  },
  {
    "name": "Cross country skiing, moderate",
    "calories_per_hour": 472,
    "duration_minutes": 60,
    "total_calories": 472
  },
  ...
]Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/caloriesburned?activity=running&weight=70&duration=30" \
  -H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.
/v1/caloriesburnedactivities GET
https://api.api-ninjas.com/v1/caloriesburnedactivities
Returns a list of all supported activities.
Parameters
None
Headers
- X-Api-Keyrequired- API Key associated with your account. 
Sample Request
https://api.api-ninjas.com/v1/caloriesburnedactivitiesHeaders
X-Api-KeyLog in or sign up to get your API KeySample Response
1
2
3
4
5
6
7
8
9
10
[
  "Aerobics, low impact",
  "Aerobics, high impact",
  "Aerobics, step aerobics",
  "Archery",
  "Badminton",
  "Baseball",
  "Basketball",
  ...
]