Google Maps Platform サービスでは、適切な認証情報を提供している API 呼び出し以外を制限することで、不正使用を防止しています。これらの認証情報は API キーの形式になります。API キーとは、Google の請求先アカウントをプロジェクトや特定の API、SDK に関連付ける一意の英数字文字列です。
このガイドでは、Google Maps Platform 用の API キーを作成、制限、使用する方法について説明します。
API キーの作成
API キーは、使用量を正確に集計して課金するため、プロジェクトに関連付けられたリクエストであることを認証する一意の識別子です。少なくとも 1 つの API キーをプロジェクトに関連付ける必要があります。
アプリケーションに必要な API しか使用しないよう、API キーの使用に制限をかけておくことを強くおすすめします。API キーに制限をかけることにより、不正なリクエストからアプリケーションを守り、セキュリティを強化できます。制限のない API キーの不正使用によって発生した請求については、お客様が費用を負担する必要があります。 詳細については、API セキュリティのベスト プラクティスをご覧ください。
[[["わかりやすい","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"]],["最終更新日 2025-02-07 UTC。"],[[["Google Maps Platform products require an API key for authentication and billing purposes, associating your project with your Google billing account."],["API keys can be created and managed through the Google Cloud Console or the Cloud SDK."],["For enhanced security, Google strongly recommends restricting your API keys by limiting their usage to specific APIs and IP addresses."],["Include your API key with every Map Tiles API request, ensuring the URL is properly encoded and uses HTTPS."],["After obtaining your API key, utilize it to create session tokens for accessing 2D and Street View Tiles, or directly for requesting 3D Tiles."]]],["API keys secure Google Maps Platform products by authenticating requests and associating them with a project and billing account. To create one, navigate to the Google Maps Platform Credentials page, and select \"Create credentials \\\u003e API key.\" API key usage should be restricted via the Credentials page by setting application and API restrictions for enhanced security. For Cloud SDK, the commands are `gcloud services api-keys create` to generate a new key or `gcloud services api-keys update` to set new restriction. Every Map Tiles API request requires an API key.\n"]]