Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
設定 Weather API
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本文說明開始使用 Weather API 的必要步驟。
如要開始使用 Weather API,您可以申請 Maps 試用金鑰,或是設定帳戶並啟用帳單功能。
取得 Maps 試用金鑰
Maps 試用金鑰無須付費,不必輸入帳單資訊,就能使用 Weather API 開始設計原型。Maps 試用金鑰僅供測試和原型設計之用,不適用於正式環境。詳情請參閱「
取得 Maps 試用金鑰並搭配 Weather API 使用
」。
取得標準 API 金鑰
準備好將程式碼移至正式環境時,請完成下列步驟,建立 API 金鑰並啟用帳單。
|
checklist
確認符合先決條件。
|
|
settings
在 Google Cloud 專案中啟用 API。
|
|
verified_user
設定 API 金鑰或 OAuth,發出經過驗證的 API 要求。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-28 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-28 (世界標準時間)。"],[],[]]