---
title: "Narwhal API 文件 使用總覽 | Narwhal API"
description: "用同一組金鑰存取經濟數據、外匯、大宗商品、殖利率曲線、預測市場、行事曆、市場和所有權。閱讀 REST 與 MCP 文件。"
url: "https://narwhalapi.com/zh-tw/docs"
---

# Narwhal API 文件中心

一組金鑰即可透過 REST 與 MCP 使用所有 Narwhal API。

Narwhal 透過一個 REST API 與一個 MCP 伺服器提供經濟指標、匯率、大宗商品價格、公共假期與公司資料。同一組金鑰可用於全部服務。

先發出一個請求,再選擇你需要的 API。

- [**快速入門** 取得金鑰並發出第一個請求。](https://narwhalapi.com/zh-tw/docs/quickstart.md)
- [**連接 AI 代理** 將 MCP 伺服器新增到 Claude、Cursor 或其他 MCP 用戶端。](https://narwhalapi.com/zh-tw/docs/mcp.md)
- [**Narwhal API 參考文件** 所有端點、參數與回應欄位。](https://narwhalapi.com/zh-tw/docs/api.md)

## 發出請求

此請求會回傳美國最新的消費者物價指數。它會從 `NARWHAL_API_KEY` 讀取你的金鑰。 [快速入門中介紹了取得方式。](https://narwhalapi.com/zh-tw/docs/quickstart.md)

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

## API

- [**經濟數據 API** 來自官方發布機構的 CPI、勞動力、GDP 與貿易資料。](https://narwhalapi.com/zh-tw/docs/api/economics.md)
- [**外匯 API** 目前匯率、換算與歷史資料。](https://narwhalapi.com/zh-tw/docs/api/fx.md)
- [**國定假日 API** 全國假日、地區假日與補休假日。](https://narwhalapi.com/zh-tw/docs/api/calendars.md)
- [**棕櫚油 API** 來自印尼與馬來西亞的 CPO 和 FFB 價格。](https://narwhalapi.com/zh-tw/docs/api/commodities.md)
- [**現貨金屬 API** 貴金屬、銅、WTI 與布蘭特原油。](https://narwhalapi.com/zh-tw/docs/api/commodities/spot.md)
- [**經濟數據發布日曆** 發布日期與每個已發布的版本。](https://narwhalapi.com/zh-tw/docs/api/economic-calendar.md)
- [**Exchange closures** Closed, early close and late open days by exchange. (英文)](https://narwhalapi.com/docs/api/calendars/exchange-closures.md)
- [**Exchange status** Whether an exchange is open at an instant, with the next open and close. (英文)](https://narwhalapi.com/docs/api/calendars/exchange-status.md)
- [**Exchange list** Every exchange with a published calendar, its time zone and sessions. (英文)](https://narwhalapi.com/docs/api/calendars/exchange-list.md)
- [**營業日** Add business days to a date or count them between two dates. (英文)](https://narwhalapi.com/docs/api/calendars/business-days.md)
- [**預測 API** Probabilities by topic and event, with history.](https://narwhalapi.com/zh-tw/docs/api/predictions.md)
- [**貿易數據 API** 依夥伴國與 HS 產品劃分的貨物進出口。](https://narwhalapi.com/zh-tw/docs/api/trade.md)
- [**任意序列 API** 依 ID 查詢世界銀行與加拿大統計局的序列。](https://narwhalapi.com/zh-tw/docs/api/any-series.md)
- [**申報文件參考** Statements, filing lists and 5% holder reports.](https://narwhalapi.com/zh-tw/docs/api/filings.md)
- [**政策利率** Central-bank policy rates, reserves and balance sheets.](https://narwhalapi.com/zh-tw/docs/api/economics/policy-rate.md)
- [**價格串流** 已停止。請透過 REST 路由讀取即時價格。](https://narwhalapi.com/zh-tw/docs/api/prices-stream.md)

## 帳戶與營運

- [**API 金鑰** 建立金鑰,將其儲存為機密,並以 Bearer 權杖傳送。](https://narwhalapi.com/zh-tw/docs/authentication.md)
- [**API 錯誤 處理：錯誤碼、額度與重試** 問題回應、重試與請求限制。](https://narwhalapi.com/zh-tw/docs/errors.md)
- [**資料時效** 發布資料如何被核查、儲存與更新。](https://narwhalapi.com/zh-tw/docs/freshness.md)
- [**版本管理** API 如何變化,哪些內容保持穩定。](https://narwhalapi.com/zh-tw/docs/versioning.md)
- [**變更日誌** 公開的產品變更。](https://narwhalapi.com/zh-tw/changelog.md)
- [**OpenAPI** 自動產生的結構描述。](https://api.narwhalapi.com/openapi.json)

此頁面對你有幫助嗎?
