In this video, we are going to talk about one of the built in browser API called Fetch and for Fetch.
We used to make what is called a HTTP request.
So we need to understand when we say HTTP request, what does it mean?
So let's explain that before using the fetch API.
So here we go.
So let's say that we want to develop new application in this way.
We need a data source before get into that.
We are going to use what is called JavaScript, HTML and CSS.
That is a front end and now we need a back end where we are going to get that data.
So let's say that we have an API or a backend server built by Facebook and for Facebook they give us
some data about the users or latest posts.
And apart from Facebook, we can have Google servers.
And for Google servers they also have what is called YouTube.
Let's say that we want to build our custom YouTube channel.
So let's say that we want to develop an application for trending videos on YouTube.
We can get that one done by making what is called the HTTP request.
So HTTP request simply means that it's a way of getting data from one server into your application and
you can have service like Instagram.
And let's say that these applications were built using the back end technology like Node.js and MongoDB.
Let's take in that way.
So now we have our back end server that provides all the data that we need.
So now it's time for the front end to be able to consume the data inside here.
And this is what we call making HTTP requests, and this is possible using what is called the API,
meaning that Facebook or Google will expose part of their resources as an API where any developer can
have access to.
And for that API, it can be a free API or paid API.
So you pay based on the consumption of the data you're going to use.
So in a nutshell, HTTP request simply means that a way of getting data from external server into your
application.
And here is the question how is it possible?
It is possible because we are going to use an API called fetch API.
The first API is an HTTP client would help us to make a request to a server and fetch data into our
application.
And we also have third party HTTP client like Axios and I like Axios more than fetch.
But for the meantime, let me show you how we are going to use fetch to make an HTTP request to face
some data.
And that's what I use to build the post application use page to be able to make a request to an API
to retrieve any data I want into my application.
So in the next video we are going to make use of the Fetch API to be able to create a block application.
Let's get into that in the next video.