---
title: "各國 失業率 API 官方統計 | Narwhal API"
description: "各國 失業率 API 可取得單一觀測期間內，由官方公布的失業率數據。本頁包含請求參數、範例、錯誤、資料新鮮度與涵蓋範圍，方便你在串接前確認呼叫方式與回傳內容是否符合需求。"
url: "https://narwhalapi.com/zh-tw/docs/api/economics/unemployment"
---

# 各國 失業率 API：單一期間官方失業統計

取得一個觀測期間的官方失業率。

`economics_get_unemployment` 可透過 REST 或 `economics_get_unemployment` MCP 工具呼叫。兩者回傳相同的資料結構，並使用同一份額度。

## 端點與請求

REST 端點

```
GET /v1/economics/{country}/unemployment
```

請求範例

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/USA/unemployment?period=2026-07" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

MCP 使用工具 `economics_get_unemployment` ，並使用下列對應參數。

## 參數

此操作接受的期間格式是 `YYYY, YYYY-MM, or YYYY-QN`。

| 名稱 | 必填 | 類型 | 含義 |
| --- | --- | --- | --- |
| `country` | 是 | 路徑·ISO alpha-3 | 一個受支援的大寫國家代碼；請參閱此操作的涵蓋清單。 |
| `period` | 否 | 查詢·YYYY、YYYY-MM 或 YYYY-QN | 省略此參數可取得已採納的最新完整發布資料，或傳入一個確切期間。 |
| `version_id` | 否 | 查詢·UUID | 選填的不可變發布版本。可使用 `dataset.published` 或 `dataset.revised` 事件中的 `resource_version`；省略時讀取目前已收錄的指標。 |

## 回應

回應範例

```
{
  "country": "USA",
  "period": "2026-07",
  "rate": "4.1",
  "released_on": "2026-11-06"
}
```

| 欄位 | 類型 | 必填 | 含義 |
| --- | --- | --- | --- |
| `country` | 字串 | 是 | 所請求的大寫 ISO 三字母國家代碼。 |
| `period` | 字串 | 是 | 回傳的官方觀測期間。 |
| `rate` | 十進位數值字串 | 是 | 已發布的比率，單位為百分比，範圍為 0 至 100，包含兩端。 |
| `released_on` | 日期 | 是 | 官方發布日期，而不是 Narwhal 的檢索時間。 |
| `seasonal_adjustment` | 字串或 null | 是 | 該數據是否經過季節調整，以發布機構的說明為準：`seasonally_adjusted`、`not_seasonally_adjusted`、`calendar_adjusted` 或 `trend`。`null` 表示發布機構沒有說明。請勿將 `null` 理解為已調整。 |
| `source` | 對象 | 否 | Who published the figure: the statistics office or central bank, for example `{"publisher": "Office for National Statistics"}`. Where the data reaches us through another body, `distributor` names that body too. If we cannot tell who published a figure, `source` is left out. On a newest figure read from the publisher's own release, `source` is `{"publisher": "..."}` with no distributor, and `released_on` is the publisher's local release day. |
| `stage` | 字串 | 否 | Appears only on a newest figure read from the publisher's release. Which reading of the figure this is: `flash`, `advance`, `first`, `second`, `third`, `preliminary` or `final`. |
| `published_at` | RFC 3339 時間戳記 | 否 | Appears only on a newest figure read from the publisher's release. When the publisher released the figure. |
| `provisional` | `true` | 否 | Present, as true, only when the figure read from the release is marked provisional. |
| `calculated` | array of strings | 否 | Present only when Narwhal calculated a figure from the publisher's own numbers because the publisher does not print it. Lists the calculated figures: `["rate"]`. A printed figure always wins over a calculated one. A stored answer can carry it too, not only an answer read from the release. |

### Newest figure read from the release

The newest answer can come from Narwhal's own read of the statistics office's release, before the stored series has it. Such an answer adds `source`、 `stage`、 `published_at` 與 `provisional` (only when true). An answer with none of these fields is the stored value. A stored answer can also carry `calculated`, which lists the figures Narwhal calculated from the publisher's own numbers.

For a country with a stored series, a read value is shown when it is for a later period than the stored one, or a later final reading of the same period.

Where a stored series reaches Narwhal through a distributor, the statistics office's own printed figure for the same period replaces it. The answer then names the office as the source and no distributor.

It also answers the newest figure for a country that has no stored series, from the release alone, with the same fields and the same charge: Anguilla, Bulgaria, Guyana, Hungary, Iceland, Kazakhstan, Macao, Morocco, Taiwan, Uruguay, Vanuatu, Vietnam and Zambia。It has no history: a `period` 或 `version_id` request for such a country returns `404 series_not_found`。

請求範例

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/BGR/unemployment" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

回應範例

```
{
  "country": "BGR",
  "period": "2026-Q3",
  "rate": "3.1",
  "released_on": "2026-11-13",
  "source": {
    "publisher": "National Statistical Institute"
  },
  "stage": "final",
  "published_at": "2026-11-13T09:00:00Z"
}
```

請求範例

```
curl --request GET \
  --url "https://api.narwhalapi.com/v1/economics/DEU/unemployment" \
  --header "Authorization: Bearer $NARWHAL_API_KEY"
```

回應範例

```
{
  "country": "DEU",
  "period": "2026-09",
  "rate": "4.1",
  "released_on": "2026-10-30",
  "source": {
    "publisher": "Statistisches Bundesamt"
  },
  "stage": "final",
  "published_at": "2026-10-30T08:55:00Z"
}
```

## API 錯誤 處理：錯誤碼、額度與重試

- `400 invalid_query` — 國家、期間或篩選格式無效。
- `401 invalid_api_key` — Bearer 金鑰缺失或被拒絕。
- `404 series_not_found` — 沒有已核准的觀測值符合請求。
- `429 rate_limit_exceeded` — 已達到網路或帳戶的短時間視窗限制；請依下列標頭指定的等待時間重試： `Retry-After`。
- `402 insufficient_credits` ，您的餘額不足以支付該次呼叫。
- `503 economics_unavailable` — Narwhal 無法安全提供已接受的發布版本。

Only a successful data response costs credit. 查看 [所有錯誤、標頭與重試規則](https://narwhalapi.com/zh-tw/docs/errors.md)。

## 資料時效

省略 `period` 回傳 Narwhal 最新儲存且已接受的發布版本。API 呼叫會讀取 Narwhal 的資料庫，不會即時呼叫官方發布機構。

`released_on` 是官方發布日期。

The newest figure can be shown as soon as the publisher releases it, from Narwhal's read of the release. Until the stored series has the same period, the answer carries the read fields described above.

讀取 [來源檢查、驗證、發布版本儲存，以及檢查失敗時的處理方式](https://narwhalapi.com/zh-tw/docs/freshness.md)。

## 目前公開測試版的涵蓋範圍

39 國家

`AUS, AUT, BEL, CAN, CHE, CHL, COL, CZE, DEU, DNK, ESP, EST, FIN, FRA, GBR, HRV, IND, IRL, ISR, ITA, JPN, KOR, LTU, LUX, LVA, MEX, MYS, NLD, NOR, NZL, PHL, POL, PRT, SAU, SGP, SVN, SWE, USA, ZAF`

觀測頻率依各國官方發布資料而定。

### 世界銀行年度歷史資料

163 國家

`ABW, AFG, AGO, ALB, ARE, ARM, ASM, ATG, AZE, BDI, BEN, BFA, BGR, BHR, BHS, BIH, BLR, BLZ, BMU, BOL, BRB, BRN, BTN, BWA, CAF, CHN, CIV, CMR, COD, COG, COM, CPV, CRI, CUB, CUW, CYM, CYP, DJI, DMA, DOM, DZA, ECU, EGY, ERI, ETH, FJI, FRO, GAB, GEO, GHA, GIN, GMB, GNB, GNQ, GRC, GRD, GRL, GTM, GUM, GUY, HKG, HND, HTI, HUN, IMN, IRN, IRQ, ISL, JAM, JOR, KAZ, KEN, KGZ, KHM, KIR, KWT, LAO, LBN, LBR, LBY, LCA, LIE, LKA, LSO, MAC, MAR, MDA, MDG, MDV, MHL, MKD, MLI, MLT, MMR, MNE, MNG, MNP, MOZ, MRT, MUS, MWI, NAM, NCL, NER, NGA, NIC, NPL, NRU, OMN, PAK, PAN, PER, PLW, PNG, PRI, PRK, PRY, PSE, PYF, QAT, ROU, RUS, RWA, SDN, SEN, SLB, SLE, SLV, SMR, SOM, SRB, SSD, STP, SUR, SVK, SWZ, SYC, SYR, TCA, TCD, TGO, TJK, TKM, TLS, TON, TTO, TUN, TUR, TUV, TZA, UGA, UKR, URY, UZB, VCT, VEN, VIR, VNM, VUT, WSM, YEM, ZMB, ZWE`

這些國家沒有最新值路由。對此路由發出的請求會回傳 `404 series_not_found`，請改用歷史路由。

每日 FX 資料可透過以下 API 取得： [外匯 API](https://narwhalapi.com/zh-tw/api/fx.md)。

回傳 [所有 經濟數據 操作](https://narwhalapi.com/zh-tw/docs/api/economics.md)。

## 從免費金鑰開始

每月 10 美元免費額度，無需綁卡。每月 10 美元免費額度，無需綁卡。

[取得免費 API 金鑰](https://narwhalapi.com/zh-tw/signup)

此頁面對你有幫助嗎?
