1
00:00:00,150 --> 00:00:05,820
Hey there in this lesson, I'm going to walk you through how to set up and get your YouTube APIC that

2
00:00:05,820 --> 00:00:12,840
you can use in order to connect to the YouTube API, set up information here at developers dot Google,

3
00:00:12,840 --> 00:00:18,650
dot com for Slusher, YouTube for V3, for its last QuickStart for Slug's, for JavaScript.

4
00:00:18,900 --> 00:00:22,650
So what you do is you go over to the library panel.

5
00:00:22,830 --> 00:00:26,970
If you do have a Google account, you can also access the developers at Google.

6
00:00:27,210 --> 00:00:32,400
So make sure that you are signed in and within here you're going to see that you've got a bunch of options

7
00:00:32,400 --> 00:00:34,600
to get access to various APIs.

8
00:00:34,600 --> 00:00:36,900
So you've got your map, API and so on.

9
00:00:37,080 --> 00:00:42,840
So Google API is just down here where you've got Google Data API, V3, and that's the one that we're

10
00:00:42,840 --> 00:00:49,410
looking for as we're looking to make a search on the Google API and there's more information about connecting

11
00:00:49,410 --> 00:00:50,600
to it and so on.

12
00:00:50,850 --> 00:00:52,950
So all of that information is available here.

13
00:00:53,190 --> 00:00:55,200
And then just simply click Aníbal.

14
00:00:55,680 --> 00:01:01,350
And what's going to happen is now it's going to walk you through and you do need to add it into a project.

15
00:01:01,500 --> 00:01:04,800
So if you don't have a project already set up, then you can set that up.

16
00:01:05,010 --> 00:01:10,620
Otherwise you can go over to credentials and under credentials it'll generate a key.

17
00:01:10,800 --> 00:01:13,700
Already have one in here, but you can generate another one.

18
00:01:13,740 --> 00:01:15,570
So doing create credential.

19
00:01:15,660 --> 00:01:19,170
And this is going to add in another YouTube data API V3.

20
00:01:19,500 --> 00:01:23,310
So the platform that we're calling it from, it's a Web browser, JavaScript.

21
00:01:23,320 --> 00:01:26,630
So make sure that you have that as well as public data.

22
00:01:26,910 --> 00:01:35,130
So that gives us the ability to access the API and that will allow us to make the request from the JavaScript

23
00:01:35,130 --> 00:01:38,520
in order to make the request for the API information.

24
00:01:38,670 --> 00:01:40,460
And then this is the key that you need.

25
00:01:40,470 --> 00:01:41,080
So that's it.

26
00:01:41,310 --> 00:01:45,810
So I know there was quite a few steps there and do walk through that.

27
00:01:45,810 --> 00:01:48,520
And if you do get stuck, there's always more information available.

28
00:01:48,520 --> 00:01:54,750
But the YouTube site, so the way that I usually do this is once I get the API, once it's been generated,

29
00:01:55,050 --> 00:01:58,290
I go back to my project and I go into the project.

30
00:01:58,470 --> 00:02:03,750
And then this is where I can set up a variable where you can call it API or API key, whatever you want

31
00:02:03,750 --> 00:02:09,270
to call it, and simply copy and paste it into your project and you're going to be ready to start using

32
00:02:09,270 --> 00:02:11,420
it in order to make those requests.

33
00:02:11,700 --> 00:02:12,330
So that's it.

34
00:02:12,330 --> 00:02:17,880
And you're ready to move on to the next lesson where we can get down to work and start using some JavaScript

35
00:02:18,060 --> 00:02:19,350
to connect to the APIs.

36
00:02:19,740 --> 00:02:21,650
So that is all still yet to come.
