1
00:00:02,090 --> 00:00:02,980
So now that we know

2
00:00:02,980 --> 00:00:05,120
what services and APIs are

3
00:00:05,120 --> 00:00:08,760
and that these are two closely connected concepts,

4
00:00:08,760 --> 00:00:13,260
why would we be using services or APIs in our websites?

5
00:00:13,260 --> 00:00:16,149
Well, the reason is rather straightforward.

6
00:00:16,149 --> 00:00:17,410
As a web developer,

7
00:00:17,410 --> 00:00:19,770
you typically can't build all the features

8
00:00:19,770 --> 00:00:21,880
your website might need on your own,

9
00:00:21,880 --> 00:00:23,970
or at least you don't want to.

10
00:00:23,970 --> 00:00:26,520
If you have a website that needs some map

11
00:00:26,520 --> 00:00:28,720
and where you wanna handle payments,

12
00:00:28,720 --> 00:00:30,890
of course, theoretically,

13
00:00:30,890 --> 00:00:33,110
you could build it all on your own.

14
00:00:33,110 --> 00:00:35,630
You could start cartographing the world.

15
00:00:35,630 --> 00:00:38,520
You could build your own maps database

16
00:00:38,520 --> 00:00:40,610
with all the data about all the cities

17
00:00:40,610 --> 00:00:42,430
and streets from the world.

18
00:00:42,430 --> 00:00:45,470
You could write code for displaying such a map

19
00:00:45,470 --> 00:00:48,820
with different colors and elements on the screen.

20
00:00:48,820 --> 00:00:50,780
And you could negotiate contracts

21
00:00:50,780 --> 00:00:52,830
with credit card providers,

22
00:00:52,830 --> 00:00:57,380
build a secure platform for handling payments, handle fraud.

23
00:00:57,380 --> 00:00:59,620
And all of that, you could do that,

24
00:00:59,620 --> 00:01:04,620
and you would probably take years or decades for that

25
00:01:04,629 --> 00:01:06,830
especially if you're doing it on your own,

26
00:01:06,830 --> 00:01:09,570
or you just use a third-party service

27
00:01:09,570 --> 00:01:11,080
that provides that feature

28
00:01:11,080 --> 00:01:12,930
and you focus on the core feature

29
00:01:12,930 --> 00:01:14,750
that makes up your website.

30
00:01:14,750 --> 00:01:19,550
For example, the core focus and business of Airbnb

31
00:01:19,550 --> 00:01:23,500
is to offer vacation rentals and to offer a platform

32
00:01:23,500 --> 00:01:26,460
for people who have a vacation rental

33
00:01:26,460 --> 00:01:28,750
and people who want one.

34
00:01:28,750 --> 00:01:32,710
Therefore, Airbnb, of course, did not spend unnecessary time

35
00:01:32,710 --> 00:01:34,660
on building their own maps service.

36
00:01:34,660 --> 00:01:37,350
Instead, they enriched this existing service

37
00:01:37,350 --> 00:01:40,260
with their own business model and data.

38
00:01:40,260 --> 00:01:42,750
That's why we typically use such paid or free

39
00:01:42,750 --> 00:01:46,380
third-party services and APIs because then as a developer,

40
00:01:46,380 --> 00:01:50,220
we can focus on the core logic that makes up our website

41
00:01:50,220 --> 00:01:53,330
and we can then build up on those existing services

42
00:01:53,330 --> 00:01:56,803
to build the final product and website that we wanna build.

43
00:01:57,640 --> 00:01:59,460
Of course, as mentioned before,

44
00:01:59,460 --> 00:02:01,740
this also means that your business model

45
00:02:01,740 --> 00:02:05,940
could be to offer a brand new or better service

46
00:02:05,940 --> 00:02:08,600
than currently exists out there.

47
00:02:08,600 --> 00:02:11,770
You could not build a website, which is the end product,

48
00:02:11,770 --> 00:02:13,470
but maybe a service.

49
00:02:13,470 --> 00:02:16,100
If Google Maps didn't exist already,

50
00:02:16,100 --> 00:02:18,430
you could of course found a startup

51
00:02:18,430 --> 00:02:21,120
that offers something like Google Maps.

52
00:02:21,120 --> 00:02:24,080
Even without the main Google app and website,

53
00:02:24,080 --> 00:02:28,590
a service like Google Maps where other websites and projects

54
00:02:28,590 --> 00:02:31,750
can use your map data would probably

55
00:02:31,750 --> 00:02:34,310
already be pretty profitable.

56
00:02:34,310 --> 00:02:37,480
And therefore, that is also how you can think about this.

57
00:02:37,480 --> 00:02:39,890
That's why we have services and APIs

58
00:02:39,890 --> 00:02:41,840
and why you as a web developer

59
00:02:41,840 --> 00:02:44,060
should be aware of this concept

60
00:02:44,060 --> 00:02:46,093
to build the products you wanna build.

