# YouTube live chat

## Adding the source

This data source allows you to pull YouTube comments from your live stream. First though, you will need an API key to make this work. [Learn about that below](..#getting-a-youtube-api-key).

Grab the video ID from your YouTube live stream.

For example: https://www.youtube.com/watch?v=**esxtWWn83Es**

![Adding a YouTube live chat](https://487176000-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mgpg8bODu8UEZd66d9q%2F-MhZFnfRWnDPv1uiAQIQ%2F-MhZL-_qAWSZKnsvmNtV%2FScreenshot%202021-08-20%20at%2018.14.24.png?alt=media\&token=5a0d3ecf-a92c-41c5-8855-ea9d7575c5a6)

Adding this data source will send all of your comments to the **Social** page of the **Control** window.

## Getting a YouTube API key

**Sign in**

Use your Google account to sign in to [http://console.developers.google.com](http://console.developers.google.com)\
\
**Create a project**

Once signed in, use the ‘Select a Project’ modal to create a new project, name it whatever you want.

**APIs and services**

Once created, you will be directed to the ‘APIs and services’ page. From here you can choose ‘+ Enable APIs and services’.

**Adding the YouTube Data API**

In the search box, type ‘YouTube Data’, and choose ‘YouTube Data API v3’ from the results. Then ‘Enable’ the API.

**Credentials**

Once the API is enabled, there will be a ‘Credentials’ tab on the left, click on that. On the credentials page there will be a ‘+ Create credentials’ option at the top, click that, then choose ‘API Key’.

**Your API key**

If everything went well, you will get a modal pop up with your API key for use in H2R Graphics. Copy/paste it into the software!

{% hint style="danger" %}
That API key is for your eyes only. Do not share it with anyone.
{% endhint %}
