---
title: "Habib Metropolitan Bank Exchange Rate API: PKR Buy and Sell Rates as JSON"
description: "Habib Metropolitan Bank's TT clean buy / TT & OD sell rates for 15 currencies against the Pakistani rupee, read hourly from the bank's own page and served as JSON with the State Bank of Pakistan official rate alongside. REST, JavaScript and Python examples."
canonical: https://allratestoday.com/blog/habib-metropolitan-bank-exchange-rate-api/
source: AllRatesToday (https://allratestoday.com/) — Markdown mirror of the page above; index of all pages at https://allratestoday.com/llms.txt
generated: 2026-11-15T19:13:41.914Z
---

Habib Metropolitan Bank is a Pakistani commercial bank and a subsidiary of Habib Bank AG Zurich. Its exchange-rate page lists TT & OD selling, TT clean buying and OD buying rates for about 15 currencies, with the date and time. This guide shows how to read that board as JSON: what the rates mean, how they compare with the State Bank of Pakistan official rate and with other banks in Pakistan, and the calls that return them.

## What the HabibMetro board shows

- **15 currencies against the Pakistani rupee**: AED, AUD, CAD, CHF, CNY, DKK, EUR, GBP, HKD, JPY, SAR, SEK, SGD, THB and USD. Every value is PKR per 1 unit of the foreign currency.
- **The TT clean buy / TT & OD sell pair.** The State Bank of Pakistan sets the official weighted-average interbank rate each business day, but customs valuation and company invoicing in Pakistan read National Bank of Pakistan’s daily rate sheet. Bank treasuries issue one rate sheet each morning; the pair shown is the ready telegraphic-transfer buying and selling rate, PKR per 1 unit, and currencies a sheet marks as not available to customers are left out.
- **USD on 15 November 2026**: HabibMetro bought at 276.15 and sold at 276.65 PKR, a spread of 0.18%. The State Bank of Pakistan official rate was 276.6, so the bank's mid sat -0.07% from it.
- **The bank's own timestamp.** The page prints a last-updated stamp (`13 Nov 2026 11:12 PST` on the board above), returned as `bank_updated_at` next to our `captured_at`.
- **Every day's board is kept permanently, from 13 November 2026.** Read one past day with `?date=`, or a range for one currency with the `/history` endpoint (paid plans).

## Spreads across the board

On the 15 November 2026 board the tightest spreads were AED (0.18%), AUD (0.18%), CAD (0.18%) and the widest USD (0.18%), THB (0.18%), SGD (0.18%). Spread is (sell − buy) ÷ mid: what a round trip through the bank costs, before any fees. The API returns it on every row as `spread_pct`, so you can rank currencies or alert when a bank widens its board.

## USD at HabibMetro and other banks in Pakistan

USD on the 4 boards AllRatesToday reads in Pakistan, all captured on 15 November 2026 (the State Bank of Pakistan official rate was 276.6):

| Bank | Buy | Sell | Spread | Mid vs official |
| --- | --- | --- | --- | --- |
| National Bank of Pakistan | 276.5 | 277 | 0.18% | +0.05% |
| United Bank Limited | 275.95 | 276.45 | 0.18% | -0.15% |
| **Habib Metropolitan Bank** | 276.15 | 276.65 | 0.18% | -0.07% |
| Bank Makramah | 276.3 | 276.8 | 0.18% | -0.02% |

HabibMetro had the 3rd narrowest USD spread of the 4. One call to `/api/v1/bank-rates/pk` returns every board in the table at once.

## Get the board (REST)

You need an API key; the [free key](https://allratestoday.com/register/) works. The full board:

```
curl "https://allratestoday.com/api/v1/bank-rates/pk/habibmetro" \
  -H "Authorization: Bearer art_live_your_key"
```

What comes back (the 15 November 2026 board, first three rows):

```
{
  "bank": "habibmetro",
  "name": "Habib Metropolitan Bank",
  "country": "pk",
  "quote_ccy": "PKR",
  "bank_updated_at": "13 Nov 2026 11:12 PST",
  "basis": "TT clean buy / TT & OD sell",
  "captured_at": "2026-11-15T11:16:01.439Z",
  "rates": [
    {"ccy":"AED","buy":75.194,"sell":75.3302,"mid":75.2621,"spread_pct":0.181,"official":75.3134,"vs_official_pct":-0.068},
    {"ccy":"AUD","buy":187.6715,"sell":188.0113,"mid":187.8414,"spread_pct":0.181,"official":187.966,"vs_official_pct":-0.066},
    {"ccy":"CAD","buy":193.6536,"sell":194.0042,"mid":193.8289,"spread_pct":0.181,"official":194.0397,"vs_official_pct":-0.109},
    … 12 more currencies
  ],
  "disclaimer": "…",
  "attribution": { … }
}
```

One currency, with the row fields at the top level:

```
curl "https://allratestoday.com/api/v1/bank-rates/pk/habibmetro?ccy=USD" \
  -H "Authorization: Bearer art_live_your_key"
```

```
{
  "bank": "habibmetro",
  "name": "Habib Metropolitan Bank",
  "country": "pk",
  "quote_ccy": "PKR",
  "bank_updated_at": "13 Nov 2026 11:12 PST",
  "basis": "TT clean buy / TT & OD sell",
  "captured_at": "2026-11-15T11:16:01.439Z",
  "ccy": "USD",
  "buy": 276.15,
  "sell": 276.65,
  "mid": 276.4,
  "spread_pct": 0.181,
  "official": 276.6036,
  "vs_official_pct": -0.074,
  "disclaimer": "Retail buy/sell rates as displayed on each bank’s own website at capture time, quoted as home currency per 1 unit of foreign currency. Indicative only: banks change these through the day, apply them at the counter or in-app, and they are not official or reference rates. For the rate a regulation names, use the central-bank endpoints.",
  "attribution": {
    "source": "Board rates published by Habib Metropolitan Bank on its own website, collected by AllRatesToday",
    "bank_url": "https://www.habibmetro.com/information-center/exchange-rate",
    "url": "https://allratestoday.com/bank-exchange-rate-api/pk/habibmetro/",
    "terms": "Public pages that show the rates need a visible link to allratestoday.com"
  }
}
```

The board as it stood on a past day:

```
curl "https://allratestoday.com/api/v1/bank-rates/pk/habibmetro?date=2026-11-13" \
  -H "Authorization: Bearer art_live_your_key"
```

One currency over a date range, one row per day (paid plans; add `&format=csv`, `xml` or `xlsx` for a file):

```
curl "https://allratestoday.com/api/v1/bank-rates/pk/habibmetro/history?ccy=USD&from=2026-11-13&to=2026-11-15" \
  -H "Authorization: Bearer art_live_your_key"
```

## JavaScript

```
npm install @allratestoday/sdk
```

```
import { AllRatesToday } from '@allratestoday/sdk';

const client = new AllRatesToday({ apiKey: 'art_live_your_key' });

// Habib Metropolitan Bank's USD row
const r = await client.bankRates('pk', { bank: 'habibmetro', ccy: 'USD' });
console.log(`HabibMetro buys USD at ${r.buy}, sells at ${r.sell} PKR`);

// The board as it stood on a past day
const past = await client.bankRates('pk', { bank: 'habibmetro', date: '2026-11-13' });
console.log(past.snapshot_date, past.rates.length);
```

## Python

```
import requests

r = requests.get(
    "https://allratestoday.com/api/v1/bank-rates/pk/habibmetro",
    headers={"Authorization": "Bearer art_live_your_key"},
    timeout=10,
)
r.raise_for_status()
for row in r.json()["rates"]:
    print(row["ccy"], row["buy"], row["sell"], row["spread_pct"])
```

## Board rate or official rate?

The State Bank of Pakistan rate is the one tax, accounting and customs rules in Pakistan name; nobody transacts at it. HabibMetro's board is the price a customer actually gets. The API puts both on every row: `official` is the central bank's rate for the same currency and `vs_official_pct` is how far the bank's mid sits from it. Use the board to show customers a real price, compare banks for a remittance, or keep a dated record of what the bank quoted; use the [State Bank of Pakistan endpoint](https://allratestoday.com/central-bank-rates-api/sbp/) when a rule asks for the official rate.

## FAQ

### Where do the Habib Metropolitan Bank rates come from?

From the bank's own public rates page (https://www.habibmetro.com/information-center/exchange-rate), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price HabibMetro shows, with the mid, the spread and the State Bank of Pakistan rate added.

### Are these the official PKR exchange rates?

No. They are HabibMetro's retail prices for customers. The official rate in Pakistan is the State Bank of Pakistan rate, which the API returns as `official` on each row where the central bank has one, and in full from the central-bank endpoint.

### How often is the HabibMetro board updated?

AllRatesToday reads the page every hour. The bank's own last-updated stamp is returned as `bank_updated_at`, so you can tell a fresh read of an unchanged board from a new board.

### Can I get HabibMetro rates for a past date?

Yes, from 13 November 2026 onward; every day's board is kept permanently. Add `?date=YYYY-MM-DD` for one day: the response is the board captured that day, or the nearest earlier day within five days, with `date_requested` and `snapshot_date` added. For a range, `/history?ccy=USD&from=…&to=…` returns one row per day as JSON, CSV, XML or XLSX on paid plans.

### Do I need an API key?

Yes. Commercial bank boards need an API key; any plan works, the free key included, and each call counts against the plan. Public pages or widgets that show the rates need a visible link to allratestoday.com.

## Habib Metropolitan Bank rates, as JSON

Free API key, hourly board captures, the official rate alongside.

 [Get your free API key](https://allratestoday.com/register/)

## Related

- [Habib Metropolitan Bank live board rates](https://allratestoday.com/bank-exchange-rate-api/pk/habibmetro/)
- [All banks in Pakistan side by side](https://allratestoday.com/bank-exchange-rate-api/pk/)
- [State Bank of Pakistan official rates API](https://allratestoday.com/central-bank-rates-api/sbp/)
- [National Bank of Pakistan exchange rate API guide](https://allratestoday.com/blog/national-bank-of-pakistan-exchange-rate-api/)
- [United Bank Limited exchange rate API guide](https://allratestoday.com/blog/united-bank-limited-exchange-rate-api/)
- [Bank Makramah exchange rate API guide](https://allratestoday.com/blog/bank-makramah-exchange-rate-api/)
- [Every bank exchange rate API guide, by country](https://allratestoday.com/blog/bank-exchange-rate-api-guides/)
- [Commercial bank rates API: every bank and country](https://allratestoday.com/bank-exchange-rate-api/)
