---
title: "Government Savings Bank (GSB) Exchange Rate API: THB Buy and Sell Rates as JSON"
description: "Government Savings Bank (GSB)'s swift/telex buy / draft & SWIFT sell rates for 5 currencies against the Thai baht, read hourly from the bank's own page and served as JSON with the Bank of Thailand official rate alongside. REST, JavaScript and Python examples."
canonical: https://allratestoday.com/blog/government-savings-bank-gsb-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:06:36.736Z
---

The Government Savings Bank is a Thai state-owned bank founded in 1913. Its exchange-rate page lists banknote buying and selling rates for about 19 currencies and SWIFT/telex buying and draft/SWIFT selling rates for the main ones, numbered by round with the time of each update. This guide shows how to read that board as JSON: what the rates mean, how they compare with the Bank of Thailand official rate and with other banks in Thailand, and the calls that return them.

## What the GSB board shows

- **5 currencies against the Thai baht**: CNY, EUR, GBP, JPY and USD. Every value is THB per 1 unit of the foreign currency.
- **The swift/telex buy / draft & SWIFT sell pair.** Thai banks print several buying rates per currency (bank notes, cheques and telegraphic transfers) and one selling rate, and they update the board several times a day; small notes of the US dollar get a lower rate than 50 and 100 notes. The rates here are the telegraphic-transfer buying rate and the transfer selling rate. The Bank of Thailand official rate is shown next to each row.
- **USD on 15 November 2026**: GSB bought at 33.71 and sold at 34.01 THB, a spread of 0.89%. The Bank of Thailand official rate was 34.0385, so the bank's mid sat -0.52% from it.
- **The bank's own timestamp.** The page prints a last-updated stamp (`2026-11-13 16:05 (round 2)` 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 USD (0.89%), GBP (2.02%), EUR (2.05%) and the widest CNY (3.65%), JPY (3.40%), EUR (2.05%). 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 GSB and other banks in Thailand

USD on the 11 boards AllRatesToday reads in Thailand, all captured on 15 November 2026 (the Bank of Thailand official rate was 34.0385):

| Bank | Buy | Sell | Spread | Mid vs official |
| --- | --- | --- | --- | --- |
| TMBThanachart Bank (ttb) | 33.74 | 34.04 | 0.89% | -0.44% |
| UOB Thailand | 33.74 | 34.04 | 0.89% | -0.44% |
| CIMB Thai | 33.7 | 33.98 | 0.83% | -0.58% |
| Bangkok Bank | 33.69 | 33.99 | 0.89% | -0.58% |
| Bank of China (Thai) | 33.74 | 34.04 | 0.89% | -0.44% |
| ICBC (Thai) | 33.54 | 34.24 | 2.07% | -0.44% |
| **Government Savings Bank (GSB)** | 33.71 | 34.01 | 0.89% | -0.52% |
| EXIM Thailand (Export-Import Bank of Thailand) | 33.75 | 33.95 | 0.59% | -0.55% |
| Islamic Bank of Thailand | 33.73 | 34.03 | 0.89% | -0.47% |
| HSBC Thailand | 33.6745 | 34.0745 | 1.18% | -0.48% |
| LH Bank (Land and Houses Bank) | 33.6 | 34.05 | 1.33% | -0.63% |

GSB had the 7th narrowest USD spread of the 11. One call to `/api/v1/bank-rates/th` 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/th/gsb" \
  -H "Authorization: Bearer art_live_your_key"
```

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

```
{
  "bank": "gsb",
  "name": "Government Savings Bank (GSB)",
  "country": "th",
  "quote_ccy": "THB",
  "bank_updated_at": "2026-11-13 16:05 (round 2)",
  "basis": "SWIFT/telex buy / draft & SWIFT sell",
  "captured_at": "2026-11-15T11:53:22.941Z",
  "rates": [
    {"ccy":"CNY","buy":4.979,"sell":5.164,"mid":5.0715,"spread_pct":3.648,"official":5.1197,"vs_official_pct":-0.941},
    {"ccy":"EUR","buy":37.057,"sell":37.823,"mid":37.44,"spread_pct":2.046,"official":37.7746,"vs_official_pct":-0.886},
    {"ccy":"GBP","buy":44.393,"sell":45.301,"mid":44.847,"spread_pct":2.025,"official":45.2445,"vs_official_pct":-0.879},
    … 2 more currencies
  ],
  "disclaimer": "…",
  "attribution": { … }
}
```

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

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

```
{
  "bank": "gsb",
  "name": "Government Savings Bank (GSB)",
  "country": "th",
  "quote_ccy": "THB",
  "bank_updated_at": "2026-11-13 16:05 (round 2)",
  "basis": "SWIFT/telex buy / draft & SWIFT sell",
  "captured_at": "2026-11-15T11:53:22.941Z",
  "ccy": "USD",
  "buy": 33.71,
  "sell": 34.01,
  "mid": 33.86,
  "spread_pct": 0.886,
  "official": 34.0385,
  "vs_official_pct": -0.524,
  "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 Government Savings Bank (GSB) on its own website, collected by AllRatesToday",
    "bank_url": "https://www.gsb.or.th/service/exchange/",
    "url": "https://allratestoday.com/bank-exchange-rate-api/th/gsb/",
    "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/th/gsb?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/th/gsb/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' });

// Government Savings Bank (GSB)'s USD row
const r = await client.bankRates('th', { bank: 'gsb', ccy: 'USD' });
console.log(`GSB buys USD at ${r.buy}, sells at ${r.sell} THB`);

// The board as it stood on a past day
const past = await client.bankRates('th', { bank: 'gsb', 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/th/gsb",
    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 Bank of Thailand rate is the one tax, accounting and customs rules in Thailand name; nobody transacts at it. GSB'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 [Bank of Thailand endpoint](https://allratestoday.com/central-bank-rates-api/bot/) when a rule asks for the official rate.

## FAQ

### Where do the Government Savings Bank (GSB) rates come from?

From the bank's own public rates page (https://www.gsb.or.th/service/exchange/), read hourly. AllRatesToday does not change the numbers: each row is the buy and sell price GSB shows, with the mid, the spread and the Bank of Thailand rate added.

### Are these the official THB exchange rates?

No. They are GSB's retail prices for customers. The official rate in Thailand is the Bank of Thailand 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 GSB 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 GSB 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.

## Government Savings Bank (GSB) rates, as JSON

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

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

## Related

- [Government Savings Bank (GSB) live board rates](https://allratestoday.com/bank-exchange-rate-api/th/gsb/)
- [All banks in Thailand side by side](https://allratestoday.com/bank-exchange-rate-api/th/)
- [Bank of Thailand official rates API](https://allratestoday.com/central-bank-rates-api/bot/)
- [TMBThanachart Bank (ttb) exchange rate API guide](https://allratestoday.com/blog/tmbthanachart-bank-ttb-exchange-rate-api/)
- [UOB Thailand exchange rate API guide](https://allratestoday.com/blog/uob-thailand-exchange-rate-api/)
- [CIMB Thai exchange rate API guide](https://allratestoday.com/blog/cimb-thai-exchange-rate-api/)
- [Bangkok Bank exchange rate API guide](https://allratestoday.com/blog/bangkok-bank-exchange-rate-api/)
- [Bank of China (Thai) exchange rate API guide](https://allratestoday.com/blog/bank-of-china-thai-exchange-rate-api/)
- [ICBC (Thai) exchange rate API guide](https://allratestoday.com/blog/icbc-thai-exchange-rate-api/)
- [EXIM Thailand (Export-Import Bank of Thailand) exchange rate API guide](https://allratestoday.com/blog/exim-thailand-export-import-bank-of-thailand-exchange-rate-api/)
- [Islamic Bank of Thailand exchange rate API guide](https://allratestoday.com/blog/islamic-bank-of-thailand-exchange-rate-api/)
- [HSBC Thailand exchange rate API guide](https://allratestoday.com/blog/hsbc-thailand-exchange-rate-api/)
- [LH Bank (Land and Houses Bank) exchange rate API guide](https://allratestoday.com/blog/lh-bank-land-and-houses-bank-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/)
