ほとんどのドキュメント ページでは、画面の右側に要約された API Explorer が表示されます。API Explorer が表示されない場合は、[試してみる] をクリックして、API Explorer の簡易版を表示します。
リファレンス ドキュメント ページの右側に [Try it!] が表示されない場合、そのメソッドは API Explorer でサポートされていません。たとえば、API Explorer はサービス アカウントを必要とする API と互換性がないため、それらの API のドキュメント ドキュメント ページには表示されません。
API Explorer の展開版を表示する
拡張バージョンの API Explorer には、cURL、HTTP、その他のコードサンプルが含まれています。API Explorer の展開版を表示するには、全画面表示アイコン fullscreen をクリックします。
メソッドを実行する
API Explorer では、必須パラメータ、省略可能なパラメータ、API メソッドのリクエスト本文(該当する場合)を入力できます。list メソッドなど多くの REST メソッドでは、メソッドを実行する前に 1 つまたは 2 つのフィールドに入力するだけで済みます。たとえば、Books API の books.volumes.list メソッドでは、書籍リストを取得するためのクエリ パラメータ(q)のみが必要です。books.volumes.list メソッドを試すには:
[[["わかりやすい","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"]],["最終更新日 2022-04-27 UTC。"],[[["The APIs Explorer allows you to test API methods directly in the documentation by providing parameters and executing requests."],["To use the APIs Explorer with methods requiring authorization, you need to generate and use your own credentials."],["The expanded APIs Explorer provides code samples in various formats like cURL and HTTP for easier integration."],["If you encounter a 401 or 403 error, verify the authorization type and scope, as they are the most common causes."],["The APIs Explorer uses popups for authorization, so ensure your browser settings allow them to function correctly."]]],[]]