Calories Burned API

The Calories Burned API calculates the total calories burned for hundreds of sports and activities. It supports custom weight and duration.

Available endpoints:

(4.7)

From 9,141 users

3,300+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
180ms221ms278ms551ms1108ms

Didn't find what you were looking for? Suggest an improvement


/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

  • activity  required

    Name of the given activity. This value can be partial (e.g. ski will match water skiing and downhill skiing).

  • weight  optional

    Weight of the user performing the activity in pounds. Must be between 50 and 500. Default value is 160.

  • duration  optional

    How long the activity was performed in minutes. Must be 1 or greater. Default value is 60 (1 hour).

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of objects, each containing the following fields, or an error if the request is unsuccessful.

  • name

    Name of the activity.

  • calories_per_hour

    Calories burned per hour for this activity.

  • duration_minutes

    Duration in minutes (as specified in the request or default 60).

  • total_calories

    Total calories burned for the specified duration.

Sample Request Live Demo!

activity

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/caloriesburned?activity=skiing

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON

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.


Premium subscriptions only

/v1/caloriesburnedactivities GET

https://api.api-ninjas.com/v1/caloriesburnedactivities

Returns a list of all supported activities.

Parameters

None

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON array of strings, or an error if the request is unsuccessful.

Sample Request

Try this API endpoint with all available parameters in our API playground

https://api.api-ninjas.com/v1/caloriesburnedactivities

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON