各國 失業率 API:單一期間官方失業統計
取得一個觀測期間的官方失業率。
economics_ 可透過 REST 或 economics_ MCP 工具呼叫。兩者回傳相同的資料結構,並使用同一份額度。
端點與請求
GET /v1/economics/{country}/unemploymentcurl --request GET \
--url "https://api.narwhalapi.com/v1/economics/USA/unemployment?period=2026-07" \
--header "Authorization: Bearer $NARWHAL_API_KEY"MCP 使用工具 economics_ ,並使用下列對應參數。
參數
此操作接受的期間格式是 YYYY, YYYY-MM, or YYYY-QN。
| 名稱 | 必填 | 類型 | 含義 |
|---|---|---|---|
country | 是 | 路徑·ISO alpha-3 | 一個受支援的大寫國家代碼;請參閱此操作的涵蓋清單。 |
period | 否 | 查詢·YYYY、YYYY-MM 或 YYYY-QN | 省略此參數可取得已採納的最新完整發布資料,或傳入一個確切期間。 |
version_ | 否 | 查詢·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_ | 日期 | 是 | 官方發布日期,而不是 Narwhal 的檢索時間。 |
seasonal_ | 字串或 null | 是 | 該數據是否經過季節調整,以發布機構的說明為準:seasonally_、not_、calendar_ 或 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_ 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_ | 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_— Bearer 金鑰缺失或被拒絕。api_ key 404 series_— 沒有已核准的觀測值符合請求。not_ found 429 rate_— 已達到網路或帳戶的短時間視窗限制;請依下列標頭指定的等待時間重試:limit_ exceeded Retry-After。402 insufficient_,您的餘額不足以支付該次呼叫。credits 503 economics_— Narwhal 無法安全提供已接受的發布版本。unavailable
Only a successful data response costs credit. 查看 所有錯誤、標頭與重試規則。
資料時效
省略 period 回傳 Narwhal 最新儲存且已接受的發布版本。API 呼叫會讀取 Narwhal 的資料庫,不會即時呼叫官方發布機構。
released_ 是官方發布日期。
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.
目前公開測試版的涵蓋範圍
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_,請改用歷史路由。
每日 FX 資料可透過以下 API 取得: 外匯 API。
回傳 所有 經濟數據 操作。
從免費金鑰開始
每月 10 美元免費額度,無需綁卡。每月 10 美元免費額度,無需綁卡。
此頁面對你有幫助嗎?