Government Savings Bank (GSB) Exchange Rate API: THB Buy and Sell Rates as JSON

Reviewed by Madhushan, Fintech Developer — November 2026

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

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):

BankBuySellSpreadMid vs official
TMBThanachart Bank (ttb)33.7434.040.89%-0.44%
UOB Thailand33.7434.040.89%-0.44%
CIMB Thai33.733.980.83%-0.58%
Bangkok Bank33.6933.990.89%-0.58%
Bank of China (Thai)33.7434.040.89%-0.44%
ICBC (Thai)33.5434.242.07%-0.44%
Government Savings Bank (GSB)33.7134.010.89%-0.52%
EXIM Thailand (Export-Import Bank of Thailand)33.7533.950.59%-0.55%
Islamic Bank of Thailand33.7334.030.89%-0.47%
HSBC Thailand33.674534.07451.18%-0.48%
LH Bank (Land and Houses Bank)33.634.051.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 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 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

Related