Dev.to WebDev 🛠 Dev 👁 0 📖 2 min read

A Free, No-Key JSON API for Pakistan Gold, Silver, Dollar and Petrol Rates

Every Pakistani finance side project I looked at had the same problem: the numbers users care about most (the tola price of gold, the silver rate, the open-market dollar, the petrol price) were typed in by hand. Some app

Every Pakistani finance side project I looked at had the same problem: the numbers users care about most (the tola price of gold, the silver rate, the open-market dollar, the petrol price) were typed in by hand. Some apps even tell users to "update the rate from Google".

So I opened up the data behind CROZAX as one free endpoint. No key, no sign-up, and CORS is enabled so it works straight from the browser.

GET https://crozax.com/api/v1/rates

What's in the response

  • gold.pkr_per_tola — 24K, 22K, 21K and 18K per tola in PKR, plus pkr_per_10g_24k and usd_per_oz
  • silver — per tola, per 10 g and USD per ounce
  • usd_pkr_interbank
  • open_market — buy/sell rates for USD, EUR, GBP, SAR, AED and more
  • petrol and diesel prices
  • an updated timestamp and an attribution string on every response

Quick start

const res = await fetch("https://crozax.com/api/v1/rates");
const data = await res.json();

const tola24k = data.gold.pkr_per_tola["24k"];
const silverTola = data.silver.pkr_per_tola;

// Zakat nisab (silver standard = 52.5 tola, gold standard = 7.5 tola)
const nisabSilver = 52.5 * silverTola;
const nisabGold = 7.5 * tola24k;
console.log({ tola24k, nisabSilver, nisabGold });

How the gold figure is calculated

The tola price is the international spot price converted to rupees:

24K per tola = gold_usd_per_oz / 31.1035 * 11.6638 * USD_PKR

A tola (11.6638 g) is about 0.375 troy ounce. On 29 Nov 2026: 3,650 × 0.375 × 276.53 ≈ Rs 378,500. 22K is 24K × 22/24.

Caveat: this is a spot-converted reference rate. The sarafa (bazaar) rate published by jewellers' associations includes a local premium and can differ, and jewellery adds making charges. Say so if you show it to buyers.

Fair-use rules

  • Cache for at least 60 seconds
  • Show "Data: CROZAX" with a link next to the numbers
  • Don't resell it as your own feed (heavy automated use is rate-limited)

Full terms: crozax.com/press. If you'd rather not write code, there's a one-line iframe widget at crozax.com/widgets.

Questions, bugs or a field you need? Leave a comment.

📰 Read the original article on Dev.to WebDev

Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.