API 參考文件僅提供英文版。
https://api.
v1 的每個端點,包括其參數、請求與回應範例,以及可能回傳的錯誤。端點說明為英文。
Your API key, presented as a Bearer token. Keys are per-account and carry a plan; the plan decides which endpoints answer and what your quota is. Never embed a key in a browser client — it is a credential, and a browser cannot keep one.
Authorization: Bearer $WAMBESHA_API_KEY若某個端點接受公開示範金鑰,其「立即試用」程式碼片段會帶有該金鑰,因此可以直接執行;其他程式碼片段都需要使用您自己的金鑰。示範金鑰僅供試用 API:它每天輪替,可能隨時停用,且絕不可用於正式環境。您建置的任何內容都請使用您自己的金鑰。
The id of this request, on every response - success or error. Quote it to support: it is how we find your request in our logs. An X-Request-ID you send is honoured and echoed back, so you can use your own; otherwise we generate one. /v1 error bodies carry no trace id of their own.
RFC 3339 instant at which the billing period rolls. Present on every response to a request whose key was metered - every 2xx, every error a handler returned, and the quota 429. Absent on a refusal that happens before metering: a missing or unknown key (401), a restricted key or a plan that does not carry the endpoint (403), a public demo-key gate refusal, and the pre-authentication flood throttle.
Requests left in the period after this one, never below 0. Present whenever X-Quota-Reset is (see there for when a response carries no quota headers).
How many verifications you can still make before a limit stops you. The daily limit and the monthly allowance are counted separately; this is whichever of the two runs out first. Sent whenever X-Quota-Reset is.
true when THIS request fell inside the 10% grace band above a monthly ceiling. A grace request is served and is not billed; treat true as "back off now", not as headroom. Always true or false, never absent when the other quota headers are present.
Seconds to wait before retrying. On every 429 - the quota hard stop, the public demo key's limits, and the pre-authentication flood throttle (which carries this header alone, because no key has been read yet).
Sent only on responses to the public demo key. The value interactive asks the documentation page to show the visible verification widget - it is sent once a browser has made more than five runs in ten minutes or has received a 429. The page then repeats the header, X-Demo-Challenge-Mode: interactive, on its next request, with the widget's token in X-Demo-Challenge. Requests made with your own key never receive it.
每個錯誤的回應主體結構都相同:HTTP 狀態、可用於分支判斷的穩定代碼、供人閱讀的訊息,以及值有誤時的欄位錯誤。與我們聯絡時如需指明某個請求,請提供該請求的 X-Request-ID 回應標頭。
已記錄的回應
GET/v1/search
{
"timestamp": "2026-09-27T12:00:00Z",
"status": 400,
"error": "Bad Request",
"message": "Enter at least 2 characters to search.",
"path": "/v1/search",
"errors": [
{
"field": "q",
"rejectedValue": "a",
"message": "Enter at least 2 characters to search."
}
],
"metadata": {
"errorCode": "CATALOG_SEARCH_QUERY_TOO_SHORT"
},
"code": "validation-failed"
}400
v1 絕不會出現破壞性變更:在 v1 內,路徑、必填參數與回應欄位都不會改變。可能會新增欄位與端點,並會先在變更紀錄中公告。 版本控管說明
/v1/discover filters on. Spends no verification.missing rather than failing the call. Spends no verification.