1
00:00:08,000 --> 00:00:09,140
In this video.

2
00:00:09,170 --> 00:00:12,520
Let's explain what is API.

3
00:00:12,530 --> 00:00:14,480
So let's get started.

4
00:00:15,020 --> 00:00:21,550
Well, API stands for application programming interface.

5
00:00:21,560 --> 00:00:23,600
So what does it mean?

6
00:00:23,690 --> 00:00:26,660
We will explore more as we move on.

7
00:00:26,930 --> 00:00:34,940
The next point is that it is a set of functions that allow you to access data from a server.

8
00:00:35,270 --> 00:00:39,980
Do you remember this project called Making HTTP requests?

9
00:00:40,160 --> 00:00:48,540
But as soon as I click fetch post, you can see that I'm able to fetch a post from a different server.

10
00:00:48,560 --> 00:00:54,560
This data is not from our application but instead from a different server.

11
00:00:54,680 --> 00:01:01,670
That's why it says that it is a set of functions that allow you to access data from a server.

12
00:01:02,000 --> 00:01:10,160
The next point is that it's allow many different kinds of applications to access data from a server.

13
00:01:10,430 --> 00:01:20,390
Remember, we are using an API to develop this application and I named my eyes at HTTP request application.

14
00:01:20,810 --> 00:01:29,570
A different developer might use the same API or data and describe his or her projects as latest post

15
00:01:29,570 --> 00:01:30,440
project.

16
00:01:30,470 --> 00:01:37,130
So it means that with one API, many applications can be built out of it.

17
00:01:37,430 --> 00:01:46,020
And the next point is that API allows you to create your own applications for a different application.

18
00:01:46,040 --> 00:01:48,470
So what does this point mean?

19
00:01:48,500 --> 00:01:55,580
That is why I say that with a certain API that has been developed by a different party or different

20
00:01:55,580 --> 00:02:03,440
developer, we can create our own application on top of it and we can create many applications like

21
00:02:03,440 --> 00:02:11,090
whether application or booking application and many more using third party APIs.

22
00:02:11,330 --> 00:02:18,590
And next point is that it creates a connection between two or more applications.

23
00:02:18,590 --> 00:02:20,480
And indeed it is, right?

24
00:02:20,630 --> 00:02:28,640
Let's say that this is our front end application that we have designed with CSS, JavaScript and HTML.

25
00:02:28,940 --> 00:02:36,770
And for this data that we got here, this data is coming from a back end server being developed by a

26
00:02:36,770 --> 00:02:40,150
different party or us who has developed this.

27
00:02:40,160 --> 00:02:48,170
So it creates a connection between our front end and then the back end data for a certain server.

28
00:02:48,530 --> 00:02:56,510
The next point is that API is like a waitress that waits for a request from a client.

29
00:02:56,540 --> 00:03:00,370
For this point we will explore more with diagram.

30
00:03:00,380 --> 00:03:02,750
So now let's move on.

31
00:03:03,440 --> 00:03:06,500
So let's talk more about API.

32
00:03:06,650 --> 00:03:13,700
Let's say that this is the API that we have developed or it has been developed by a different party

33
00:03:13,700 --> 00:03:14,810
like Google.

34
00:03:15,110 --> 00:03:24,050
Google has many API, for example, translation API, geolocation API, mapping API, YouTube API and

35
00:03:24,050 --> 00:03:24,920
many more.

36
00:03:25,430 --> 00:03:33,500
So let's say that this API is for Google and for this many applications can interact with it.

37
00:03:33,890 --> 00:03:40,520
One developer can say that, well, for me, I want to develop a translation application using the Google

38
00:03:40,550 --> 00:03:42,380
API in this way.

39
00:03:42,410 --> 00:03:47,570
One application is making a connection to the API.

40
00:03:47,780 --> 00:03:49,160
And the same point.

41
00:03:49,160 --> 00:03:55,100
We can have many applications coming in the mix by using this API.

42
00:03:55,580 --> 00:04:03,580
So you can see that many devices are now interacting with the same API to develop different applications

43
00:04:03,590 --> 00:04:07,310
and this is possible because of the API.

44
00:04:07,340 --> 00:04:10,340
So what is API in a nutshell?

45
00:04:10,370 --> 00:04:16,810
So let's say that this developer has no experience how to create API.

46
00:04:17,060 --> 00:04:23,980
Even if he has some experience, he cannot develop the entire translation API.

47
00:04:23,990 --> 00:04:25,030
In this way.

48
00:04:25,040 --> 00:04:27,300
He needs to seek for help.

49
00:04:27,320 --> 00:04:30,740
That is why he needs a third party API.

50
00:04:30,770 --> 00:04:35,600
In this way we are going to use what is called Google API.

51
00:04:35,630 --> 00:04:40,850
And for google they have a bunch of API like translation API.

52
00:04:40,910 --> 00:04:46,040
Now we have the developer or the front end and then the API.

53
00:04:46,190 --> 00:04:50,780
So definitely the developer will talk to what the Google API.

54
00:04:50,810 --> 00:04:53,090
So now let's see how it's work.

55
00:04:53,120 --> 00:04:57,970
That's why we say that API stands for application programming interface.

56
00:04:57,980 --> 00:05:06,860
So what make it possible for a different application to access external server is what we call the API.

57
00:05:07,370 --> 00:05:11,270
So we regard the waitress here as an API.

58
00:05:11,300 --> 00:05:14,210
Meaning the waitress would be sitting somewhere.

59
00:05:14,240 --> 00:05:22,820
So any time a request comes in to a server, the waitress will take that data and then send to the user.

60
00:05:23,180 --> 00:05:30,710
Then when a user wants to make a request again, the waitress will now take the data and sent to the

61
00:05:30,710 --> 00:05:31,820
server again.

62
00:05:31,850 --> 00:05:35,670
So that's how the API works in a nutshell.

63
00:05:35,690 --> 00:05:41,310
So the waitress is between the developer here and then the actual server.

64
00:05:41,330 --> 00:05:43,220
So it goes back and forth.

65
00:05:43,250 --> 00:05:43,820
Right.

66
00:05:43,820 --> 00:05:46,730
So that's what API is all about.

67
00:05:46,760 --> 00:05:52,380
So for this one, as soon as we make a request, we can see that something is happening.

68
00:05:52,400 --> 00:05:59,750
So the function that happens to get back this data is what we call the API.

69
00:05:59,780 --> 00:06:07,040
So the next video we will explore how we can make use of what APIs in the next video.

