38
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

YouTube API APIキーの取得方法

Posted at
  1. Google Deveroper Consoleに登録します。
    1.png

  2. Google Deveroper Consoleにログイン後に表示される、プロジェクト一覧から「プロジェクトを作成」をクリックして、新しいプロジェクトを作成します。
    2-1.png
    2-2.png

  3. 作成されたプロジェクトのプロジェクト名をクリックして、「ダッシュボード」を開きます。
    3.png

  4. 「Google APIを利用する」をクリックして、API一覧の中から「YouTube Data API」をクリックします。
    4−1.png
    4−2.png

  5. 「APIを有効にする」をクリックすると、「YouTube Data API」が有効になりますが、認証情報を作成するまではAPIを使用することはできません。次に認証情報を作成します。
    5.png

  6. 左メニューの認証情報をクリックして「認証情報」ページに遷移し、「新しい認証情報」をクリックします。
    6.png

  7. プルダウンから「APIキー」を選択します。
    7.png

  8. ポップアップで表示されたボタンの「ブラウザーキー」を選択します。
    8.png

  9. APIキーの名前を入力します。(任意の名前)

  10. 特定のドメインからのアクセスのみAPIリクエストを受け付ける場合は、「この HTTP リファラー(ウェブサイト)からのリクエストを受け入れる」にドメインを入力し、アクセス制限を設定します。
    9-10.png

  11. APIキーが発行され、認証情報一覧に情報が追加されます。
    11.png

38
39
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
38
39

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?