---
title: "Central Bank of Samoa Exchange Rate API: Official WST (Tala) Rates as JSON"
description: "Official Central Bank of Samoa tala exchange rates as JSON — the daily table for nine currencies as foreign currency per 1 WST, plus the US dollar buying and selling rates, with history back to January 2008. REST examples, free tier included."
canonical: https://allratestoday.com/blog/central-bank-of-samoa-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-30T03:25:10.137Z
---

The **Central Bank of Samoa** publishes the official exchange rates for Samoa — the bank's own dated figures, not moving market prices. [AllRatesToday](https://allratestoday.com/) serves them on the same endpoints as more than 130 other central banks, under the source code `cbsws`. This guide shows how to pull them as JSON with curl, JavaScript and Python.

  WST → USD — official Central Bank of Samoa exchange rate Weekly observations, Nov '25 – Nov '26 · US dollars per 1 Samoan tala

*Source: Central Bank of Samoa official rates · chart data from the AllRatesToday API (`/api/v1/central-bank/cbsws/history?source=WST&target=USD`).*

## What the CBS publishes

- **The tala against nine currencies** — the US, New Zealand, Australian and Fijian dollars, euro, Japanese yen, pound sterling, and the Chinese yuan both onshore (CNY) and offshore (CNH).
- **Foreign currency per 1 WST** — on the table dated 27 November 2026, 1 tala was 0.35379 US dollars, 0.64672 New Zealand dollars, 0.5335 Australian dollars and 0.32252 euros.
- **US dollar buying and selling rates** alongside the main rate — 0.36229 and 0.34529 dollars per tala that day — served as separate rate types (`buy`, `sell`) so a query never mixes them.
- **History back to January 2008**, from the bank's own historical workbook; the CNY line starts in 2017 and CNH in 2020.

The table runs from the tala outward, so a dollars-per-tala figure is a direct read and tala-per-dollar is its inverse. Ask for either direction; the API answers from the bank's own numbers and flags any value it had to invert.

Source page: [Daily exchange rates](https://cbs.gov.ws/daily-exchange-rates) on the Central Bank of Samoa website.

## Why official rates, not market rates

A live mid-market feed answers "what is WST/USD trading at right now?" — the right tool for checkouts and dashboards. Bookkeeping, tax and customs paperwork usually ask a different question: "which rate applied on this date?" For Samoa that answer often comes from the Central Bank of Samoa's own table, and it does not change after publication. Check which rate your filing rule names.

## Get the latest rates (REST)

```
curl "https://allratestoday.com/api/v1/central-bank/cbsws/latest" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

The response is the most recent table — every rate with its `base`, `quote`, rate `type` and `value` — and the date it belongs to. The latest table is available on every plan, including the free tier (no credit card). Each `value` is quote currency per one unit of base, exactly as the CBS quotes it.

For one pair, add `source` and `target`:

```
curl "https://allratestoday.com/api/v1/central-bank/cbsws/latest?source=WST&target=USD" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## JavaScript

```
const res = await fetch(
  'https://allratestoday.com/api/v1/central-bank/cbsws/latest?source=WST&target=USD',
  { headers: { Authorization: 'Bearer ' + process.env.ALLRATES_API_KEY } }
);
const pair = await res.json();
console.log(pair.rate, pair.rate_type, pair.rate_date, pair.derived);
```

Plain `fetch`, so it runs anywhere — Node 18+, Bun, Deno, edge runtimes. Keep the API key on the server side.

## Python

```
import os
import requests

r = requests.get(
    "https://allratestoday.com/api/v1/central-bank/cbsws/latest",
    headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
    timeout=10,
)
r.raise_for_status()
table = r.json()
print(table["rate_date"])
for row in table["rates"]:
    print(row["base"], row["quote"], row["type"], row["value"])
```

## Historical rates for an invoice date

```
# The table in force on a past date (weekends and holidays resolve to the last published date)
curl "https://allratestoday.com/api/v1/central-bank/cbsws/2024-06-28" \
  -H "Authorization: Bearer YOUR_API_KEY"

# A series for one pair
curl "https://allratestoday.com/api/v1/central-bank/cbsws/history?source=WST&target=USD&from=2026-01-01" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```
r = requests.get(
    "https://allratestoday.com/api/v1/central-bank/cbsws/history",
    params={"source": "WST", "target": "USD", "from": "2026-01-01"},
    headers={"Authorization": f"Bearer {os.environ['ALLRATES_API_KEY']}"},
    timeout=10,
)
for point in r.json()["rates"]:
    print(point["date"], point["rate"])
```

Historical dates and time series need a [paid plan](https://allratestoday.com/pricing/); the latest table stays free.

## Published vs derived pairs

If the CBS does not print a pair directly, the API resolves it from the bank's own figures — an inverse, or a cross rate via the home currency — and flags it `derived: true` with the method used. Source figures and computed values are never silently mixed.

## The tala since 2008

The archive starts on 3 January 2008, when 1 tala was 0.39258 US dollars. The tala ended 2012 at 0.43837 dollars, its strongest year-end in the series, eased to the 0.38 range from 2015 and stood at 0.35379 on 27 November 2026. For a past invoice date, one call returns the table in force that day; weekends and holidays resolve to the last published table and are flagged.

## FAQ

### Does the Central Bank of Samoa have an exchange rate API?

The CBS publishes its official rates on its own website, not as a JSON API. AllRatesToday collects that table and serves it as JSON under the source code cbsws. The latest table is available on every plan, including the free tier; historical dates need a paid plan.

### How often do Central Bank of Samoa rates update?

Once per business day, as one table of nine currencies quoted as foreign currency per 1 WST, plus a US dollar buying and selling rate. Every API response carries the table's own date; weekends and holidays resolve to the last published table.

### Can I get the CBS rate for a past date, like an invoice date?

Yes, for any date from January 2008 onward (CNY from 2017, CNH from 2020). The /api/v1/central-bank/cbsws/2024-06-28 form returns the table in force on that date; non-publication days resolve to the most recent published date. Historical dates need a paid plan.

## Official Central Bank of Samoa rates, as JSON

The latest table is free — no credit card.

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

## Related Articles

- [Central Bank of Samoa rates API — today's table](https://allratestoday.com/central-bank-rates-api/cbsws/)
- [All covered central banks](https://allratestoday.com/central-bank-rates-api/)
- [National Reserve Bank of Tonga exchange rate API guide](https://allratestoday.com/blog/national-reserve-bank-of-tonga-exchange-rate-api/)
- [Reserve Bank of Fiji exchange rate API guide](https://allratestoday.com/blog/reserve-bank-of-fiji-exchange-rate-api/)
- [Reserve Bank of New Zealand exchange rate API guide](https://allratestoday.com/blog/rbnz-exchange-rate-api/)
- [How official rates are collected and stored](https://allratestoday.com/official-rates-methodology/)
- [Central bank API documentation](https://allratestoday.com/docs/#central-bank)
- [Best exchange rate APIs in 2026 — how the official-rate and market-rate providers compare](https://allratestoday.com/best/best-exchange-rate-api/)
