Developer API

Free Calculator API

Integrate our 30 student calculators into your app or website. No API key. No auth. Clean JSON. Free forever — just add a backlink.

30
Endpoints
0
Auth Required
100/min
Rate Limit
Free
Always

Getting Started

All endpoints are HTTP GET requests. No authentication headers. CORS is enabled on every response — call directly from browser JavaScript.

No API key CORS enabled JSON responses 100 req/min free
https://studycalcshub.com/api.php?format=json&calc=
Attribution required: All responses include an attribution and link field. Display a visible "Powered by Study Calcs Hub" credit with a dofollow link to studycalcshub.com when showing results to users.

Live API Explorer

Click any endpoint to expand it, fill in parameters, and run a real request against our server.

GET ?calc=gpa Cumulative GPA calculator (4.0 / 5.0 / 10.0 scale)

Parameters

ParameterTypeExampleRequired
gradesCSV numbers (0–100)90,85,78,92Required
creditsCSV numbers3,3,4,3Required
scale4.0 | 5.0 | 10.04.0Optional
GET ?calc=grade-final Score needed on final exam

Parameters

ParameterDescriptionExampleRequired
currentCurrent grade %72Required
targetTarget final grade %80Required
weightFinal exam weight %40Required
GET ?calc=cgpa CGPA → Percentage (India, US, Pakistan, UK)

Parameters

ParameterValuesExampleRequired
cgpaDecimal number8.5Required
systemindia10 | india4 | pakistan | us | ukindia10Required
GET ?calc=attendance Attendance % and classes-to-safe calculator
GET ?calc=stddev Mean, variance, standard deviation
GET ?calc=pct-to-gpa Percentage → GPA conversion

Integration Samples

JavaScript / Fetch
// GPA Calculator — vanilla JS const params = new URLSearchParams({ grades: '90,85,78,92', credits: '3,3,4,3', scale: '4.0' }); const res = await fetch(`https://studycalcshub.com/api.php?format=json&calc=gpa&${params}`); const data = await res.json(); if (data.success) { console.log(data.result.gpa); // "3.67" console.log(data.result.letter); // "A-" console.log(data.result.status); // "Dean's List" }
Python / Requests
import requests BASE = "https://studycalcshub.com/api.php" # CGPA → Percentage r = requests.get(BASE, params={ "format": "json", "calc": "cgpa", "cgpa": 8.5, "system": "india10" }) data = r.json() print(data["result"]["percentage"]) # "80.75%" print(data["result"]["formula"]) # "CGPA × 9.5"
PHP / cURL
<?php // Attendance checker embedded in your own PHP page $url = 'https://studycalcshub.com/api.php?' . http_build_query([ 'format' => 'json', 'calc' => 'attendance', 'total' => 60, 'attended' => 42, 'min' => 75, ]); $data = json_decode(file_get_contents($url), true); echo $data['result']['attendance_pct']; // "70.0%" echo $data['result']['status']; // "At Risk"
Sample JSON Response — GPA
{ "success": true, "calculator": "gpa", "input": { "grades": [90, 85, 78, 92], "credits": [3, 3, 4, 3], "scale": 4.0 }, "result": { "gpa": "3.67", "letter": "A-", "percentage": "91.8%", "status": "Dean's List", "total_credits": 13 }, "attribution": "studycalcshub.com", "link": "https://studycalcshub.com" }

Common Questions

Is the API really free?
Yes — completely free, no credit card, no signup. Rate limit is 100 requests per minute per IP. Need more? Contact us.
Do I need CORS headers on my site?
No. We return Access-Control-Allow-Origin: * on every response. Call it directly from browser JavaScript.
What attribution is required?
Display a visible "Powered by Study Calcs Hub" text link pointing to studycalcshub.com. A dofollow link is preferred — it supports free access for everyone.
Are responses cached?
Responses include Cache-Control: no-store since all calculations are deterministic. You can safely cache results client-side.
Is student data stored?
No. Parameters are processed in memory and discarded immediately. Nothing is logged or stored. Zero cookies.