REST · JSON · free · no API key

Free Logistics Calculator API

Add CFT, CBM, volumetric weight, freight cost, container loading, customs duty and the rest of Weeple's 251 logistics calculators to your app, website or spreadsheet with one HTTPS request. Includes an Indian pincode API. No sign-up.

Base URL

https://www.weeple.in/api/v1

Authentication: none. Format: JSON over HTTPS. Free limit: 60 requests a minute and 5,000 a day per IP address. Machine-readable spec: OpenAPI 3 (openapi.json).

Quick start: calculate CFT with one request

Ten cartons of 24 × 18 × 18 inches. Pass the calculator's inputs as query parameters and read the result as JSON:

curl "https://www.weeple.in/api/v1/calculators/cft-calculator/run?length=24&width=18&height=18&qty=10&dimUnit=in"

Response

{
  "calculator": "cft-calculator",
  "name": "CFT Calculator (Cubic Feet)",
  "currency": "INR",
  "results": [
    {
      "label": "Total volume",
      "value": 45,
      "formatted": "45 CFT",
      "unit": "CFT",
      "primary": true
    },
    {
      "label": "Volume per box",
      "value": 4.5,
      "formatted": "4.5 CFT",
      "unit": "CFT"
    },
    {
      "label": "Total in CBM",
      "value": 1.27425809742,
      "formatted": "1.2743 m³",
      "unit": "m³"
    },
    {
      "label": "Total in cubic inches",
      "value": 77760,
      "formatted": "77,760 in³",
      "unit": "in³"
    }
  ],
  "notes": [],
  "table": null,
  "inputsUsed": {
    "dimUnit": "in",
    "length": "24",
    "width": "18",
    "height": "18",
    "qty": "10"
  },
  "warnings": [],
  "url": "https://www.weeple.in/tools/cft-calculator"
}

results lists every output with its raw value, a display-ready formatted string and its unit; the headline figure has primary: true. inputsUsed shows the inputs after defaults were filled in, and warnings lists any input that was ignored.

API endpoints

MethodEndpointWhat it does
GET/api/v1/calculatorsList all calculators, or search with ?q=keywords and ?category=id.
GET/api/v1/categoriesList the calculator categories.
GET/api/v1/calculators/{slug}Describe one calculator: inputs, units, defaults, formula, JSON Schema and a ready-to-run example.
GET/api/v1/calculators/{slug}/runRun a calculator with the inputs in the query string.
POST/api/v1/calculators/{slug}/runRun a calculator with the inputs in a JSON body.
GET/api/v1/pincodes?q=452001Search India's pincode directory by pincode, first digits or place name.
GET/api/v1/quote-link?from=Indore&to=PuneGet a prefilled Weeple transport quote link. Nothing is booked or submitted.
GET/api/v1/openapi.jsonOpenAPI 3 description of this API, for Postman, Swagger and code generators.

How to use a calculator API

  1. Find the calculator. Browse the list below, or search: GET /api/v1/calculators?q=volumetric. Each one has a slug such as volumetric-weight-calculator.
  2. Read its inputs. GET /api/v1/calculators/{slug} returns every input id with its type, units, options and default, the formula, a JSON Schema and a ready-to-run example.
  3. Run it. Send the inputs to /api/v1/calculators/{slug}/run as query parameters (GET) or as JSON (POST). Every input is optional; anything you leave out uses the default.

Units and currency

  • Calculators accept metric and imperial units. A unit input (for example dimUnit=in) or an <id>__unit parameter (for example weight__unit=lb) sets the unit of the related numbers.
  • Money results are formatted in Indian rupees by default. Add display_currency=USD to a GET request, or "currency": "USD" next to inputs in a POST body, to change the symbol. Amounts are not converted.
  • Calculators with a list of items (several boxes, several products) take an array of rows; send those with POST.

Example: input details for a calculator

curl "https://www.weeple.in/api/v1/calculators/cft-calculator"
{
  "slug": "cft-calculator",
  "name": "CFT Calculator (Cubic Feet)",
  "formula": [
    "CFT = Length × Width × Height (in inches) ÷ 1728",
    "CFT = Length × Width × Height (in cm) ÷ 28,316.85",
    "Total CFT = CFT per box × number of boxes"
  ],
  "inputs": [
    {
      "id": "dimUnit",
      "label": "Dimension unit",
      "type": "unit",
      "default": "in",
      "units": [
        "mm",
        "cm",
        "m",
        "in",
        "ft"
      ]
    },
    {
      "id": "length",
      "label": "Length",
      "type": "number",
      "default": 24,
      "min": 0,
      "unitFrom": "dimUnit"
    },
    {
      "id": "width",
      "label": "Width",
      "type": "number",
      "default": 18,
      "min": 0,
      "unitFrom": "dimUnit"
    }
  ],
  "…": "more inputs, inputSchema and a ready-to-run example"
}

Code examples

cURL

curl "https://www.weeple.in/api/v1/calculators/cft-calculator/run?length=24&width=18&height=18&qty=10&dimUnit=in"

cURL (POST JSON)

curl -X POST "https://www.weeple.in/api/v1/calculators/cft-calculator/run" \
  -H "Content-Type: application/json" \
  -d '{"inputs":{"length":24,"width":18,"height":18,"qty":10,"dimUnit":"in"}}'

JavaScript (fetch)

const res = await fetch("https://www.weeple.in/api/v1/calculators/cft-calculator/run", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({"inputs":{"length":24,"width":18,"height":18,"qty":10,"dimUnit":"in"}}),
});
const data = await res.json();
console.log(data.results.find((r) => r.primary).formatted);

Python (requests)

import requests

res = requests.get(
    "https://www.weeple.in/api/v1/calculators/cft-calculator/run",
    params={"length": 24, "width": 18, "height": 18, "qty": 10, "dimUnit": "in"},
)
for r in res.json()["results"]:
    print(r["label"], r["formatted"])

PHP

$json = file_get_contents("https://www.weeple.in/api/v1/calculators/cft-calculator/run?length=24&width=18&height=18&qty=10&dimUnit=in");
$data = json_decode($json, true);
echo $data["results"][0]["formatted"];

Google Sheets (Apps Script)

function WEEPLE_CFT(length, width, height, qty) {
  var url = "https://www.weeple.in/api/v1/calculators/cft-calculator/run?dimUnit=in"
    + "&length=" + length + "&width=" + width + "&height=" + height + "&qty=" + qty;
  var data = JSON.parse(UrlFetchApp.fetch(url).getContentText());
  return data.results[0].value;
}

Rate limits

  • 60 requests a minute and 5,000 requests a day, per IP address. All endpoints share the allowance.
  • Every response carries RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds) headers.
  • Over the limit, the API returns 429 with a Retry-After header. Wait that many seconds and retry.
  • Need more for a product you are building? Tell us about it.

Errors

Errors use standard HTTP status codes and one JSON shape: {"error":{"code":"…","message":"…"}}

  • 400 – malformed request, such as invalid JSON or an unknown category or currency.
  • 404 – unknown calculator or endpoint.
  • 422 – the inputs cannot be calculated, for example a required number is missing.
  • 429 – rate limit reached.

Popular calculator APIs

APIWhat it calculatesRun endpoint
CFT Calculator APICalculate cubic feet (CFT) of boxes and cargo from length, width and height./api/v1/calculators/cft-calculator/run
CBM Calculator APITotal CBM, CFT and weight for a shipment with multiple box sizes./api/v1/calculators/cbm-calculator/run
Volumetric Weight Calculator APIDimensional (volumetric) weight of a package for courier, air and surface./api/v1/calculators/volumetric-weight-calculator/run
Chargeable Weight Calculator APICompare actual vs volumetric weight to find the weight you are billed for./api/v1/calculators/chargeable-weight-calculator/run
Truck Size Suggestion Tool APIFind which truck or tempo fits your goods by weight and CFT./api/v1/calculators/truck-size-suggestion/run
Truck Freight (Full Truck Load) Calculator APIEstimate full truck load freight from distance, rate per km and extras./api/v1/calculators/truck-freight-calculator/run
Part Load (PTL) Freight Cost Calculator APIPart-load cost from rate per kg, CFT-based weight, docket and GST./api/v1/calculators/part-load-ptl-cost-calculator/run
Container Load Calculator APIHow many cartons fit in a 20 ft, 40 ft, 40 HC or 45 HC container./api/v1/calculators/container-load-calculator/run
Air Freight Cost Calculator APIAir cargo cost from chargeable weight, rate per kg, surcharges and fees./api/v1/calculators/air-freight-cost-calculator/run
India Customs Duty Calculator APIImport duty in India: basic customs duty, social welfare surcharge and IGST./api/v1/calculators/india-customs-duty-calculator/run
GST Calculator APIAdd GST to a price or extract it from an inclusive amount, with CGST/SGST/IGST split./api/v1/calculators/gst-calculator/run
EOQ Calculator APIOptimal order size that minimises ordering plus holding cost./api/v1/calculators/eoq-calculator/run

Pincode API for India

GET /api/v1/pincodes?q= searches the India Post pincode directory, the same data as the Pincode Finder. Send a 6 digit pincode to get its post offices, district, state, coordinates and nearby pincodes; 2–5 digits to list pincodes that start with them; or a place name to find its pincode.

curl "https://www.weeple.in/api/v1/pincodes?q=452001"
curl "https://www.weeple.in/api/v1/pincodes?q=wagholi%20pune"

All 251 calculator API endpoints

Every calculator runs at /api/v1/calculators/{slug}/run. The slug is shown next to each name; the link opens the calculator's page with its formula, a worked example and a copy-paste API call.

Volume & Weight APIs (19)

Road Transport & Fleet APIs (61)

Ocean & Container APIs (21)

Air, Courier & E-commerce APIs (23)

Warehouse & Inventory APIs (38)

Packing, Pallets & Moving APIs (20)

Trade, Customs & Costing APIs (27)

Unit Converters APIs (28)

Emissions, Dates & Planning APIs (14)

What developers build with it

  • Shipping-cost and volumetric weight estimates in e-commerce checkouts.
  • CFT, CBM and truck-size helpers inside transport, ERP and warehouse software.
  • Custom functions in Google Sheets and Excel for freight and inventory planning.
  • Pincode validation and auto-fill of district and state in address forms.
  • WhatsApp and website chatbots that answer logistics questions with real formulas.
  • No-code automations in Zapier, n8n and Make.

Fair use

  • Free for personal and commercial projects. A link back to Weeple is appreciated, not required.
  • Results are planning estimates. Confirm final rates, taxes and rules with the carrier or authority.
  • Cache answers you reuse and stay within the limits; do not rotate IP addresses to get around them.
  • Read-only: no endpoint books, submits or stores anything.
  • Using an AI assistant? Connect the Weeple MCP server instead.

Logistics calculator API – frequently asked questions

Is the Weeple logistics API really free?

Yes. Every endpoint is free for personal and commercial use, with no sign-up and no API key. Each IP address can make 60 requests a minute and 5,000 requests a day.

Do I need an API key or an account?

No. Send a plain HTTPS request and you get JSON back. There is nothing to register and no key to keep secret.

What can I calculate with the API?

All 251 calculators on weeple.in/tools: CFT and CBM, volumetric and chargeable weight, truck size and truck freight, part-load cost, container loading, air freight and courier charges, warehouse and inventory formulas such as EOQ and safety stock, packing and pallets, Indian customs duty, GST, e-way bill validity, unit converters, CO2 emissions and delivery dates.

What happens when I reach the rate limit?

The API answers with HTTP 429 and a Retry-After header that says how many seconds to wait. The RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset headers on every response show how much of your allowance is left.

Can I call the API from a browser or a mobile app?

Yes. CORS is open, so you can call it straight from front-end JavaScript, as well as from servers, mobile apps, Google Sheets, Excel, Zapier, n8n or Make.

Is there a pincode API for India?

Yes. GET /api/v1/pincodes?q=452001 returns the post offices, district, state, coordinates and nearby pincodes of an Indian pincode. You can also search by the first digits or by an area name such as “Wagholi Pune”.

Does the API give live freight rates?

No. The calculators return estimates from standard formulas and the rates you pass in. For an actual Weeple rate, use the quote-link endpoint and open the link it returns.

Do you store the data I send?

No. Calculations run on the request and nothing you send is saved. IP addresses are held in memory only to apply the rate limit.

Can I use these calculators from ChatGPT or Claude instead?

Yes. The same calculators are available to AI assistants through the Weeple MCP server.