⚔️ THE DEVELOPER HUB

DEVELOPER GATEWAY

Free, CORS-enabled, zero-authentication endpoints built directly for health innovators, fitness developers, and independent creators.

CORS-Enabled

Call from any client

Zero Keys

No registration needed

High Speed

Edge serverless deployment

1. India & Global Fit Index APIs

Endpoints List

Available REST Endpoints

Get precise calculations on biometrics, safety, UV, heat indices, and fitness timings.

GET/api/v1/fit-index
Retrieve complete weather, AQI, and detailed athletic safety ratings.
GET/api/v1/workout-score
Get sport-specific parameters (running, cycling, yoga, gym scores).
GET/api/v1/hydration
Fetch estimated sweat rates, electrolyte target recommendations, and hydration goals.
GET/api/v1/heat-risk
Assess solar UV ratings, heat indices, and exposure avoidance slots.
GET/api/v1/outdoor-safety
Determine outdoor threshold suitability based on immediate AQI levels.
GET/api/v1/city-ranking
Obtain live viral daily fitness rankings for top Indian & Global cities.

Parameters Description

Param
Type
Requirement
city
string
Optional (Defaults to client IP geo-location, or Delhi)

Query any city in the world (e.g. Mumbai, London, Dubai). Geocoding resolves parameters dynamically.

API Swagger Playground

// Click "Send Live Request" above to view dynamic server response...

SDK & Snippets

// JavaScript Fetch SDK Example
const getFitIndex = async (city) => {
  const response = await fetch(`https://sankatmochan.fit/api/v1/fit-index?city=${encodeURIComponent(city)}`);
  const data = await response.json();
  return data;
};

getFitIndex('London').then(console.log);

🍎 2. Food Database & Macros API

GET

AI Food Analyzer & Macros API

Fuzzy search verified Indian and global food items. Returns raw macronutrients, calories, custom Sankatmochan nutritional score, and AI verdict details.

API Endpoint

GET|https://sankatmochan.fit/api/food

Query Parameters

Param
Type
Required
q
string
Required
Fuzzy search term (e.g. paneer, eggs, oats). This parameter is required to prevent database scraping.

JSON Response Schema

{
  "success": true,
  "count": 1,
  "data": [
    {
      "name": "Paneer",
      "brand": "Dairy Product",
      "macros": {
        "calories": 265,
        "protein": 18,
        "carbs": 1.2,
        "fat": 20,
        "fiber": 0,
        "sugar": 1.2,
        "saturatedFat": 13
      },
      "quantity": "100g",
      "score": 65,
      "verdict": {
        "title": "DISCIPLINE LEVEL",
        "desc": "Acceptable. Can be part of a balanced diet but watch your portion sizes.",
        "color": "#ffaa00"
      }
    }
  ]
}

Code Snippet

curl -X GET "https://sankatmochan.fit/api/food?q=paneer"
Formula Details

Nutritional calculations guide

View Page
Fly to Top