← Back to API Ninjas
GET/v1/caloriesburned

Calculate calories burned

Calculates calories burned from an activity, weight in pounds, and duration in minutes. Requires an `activity`. For valid names use /caloriesburnedactivities. Each result includes a photorealistic image_url and a transparent icon_url for the activity.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v1/caloriesburned", query: { "activity": "example" } }); console.log(output);

Query parameters

activityrequired
string

Name of the given activity. This value can be partial.

weight
number

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

duration
number

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

    Orthogonal - Giving AI agents the tools they need.