During the last few days, we built a program which access data from a rest API.
Now that Rest API was built by other people, but today you learn how to build your own rest API in
Python.
And what you're looking at is the actual API that we will piece together.
So this page is actually the documentation of the API that we will build.
So the API has a home page, just like the new API has a home page where you could see the documentation
how to use the API.
So what we've got here is some minimal documentation.
It tells you what the format of the end point is.
So that's the base URL up to here.
And then you can provide a citation and the date and that will give you temperature data about that
particular station.
Now, down here, you'll see a list of stations that's.
About 6500 of them.
So that's a lot of stations.
And these are stations across Europe.
So, for example, if you want the station in Stockholm, that station has a station idea of ten.
So if you want weather for Stockholm for a particular date, you'd access an entry points like this.
So station and date, you see, the date is at the end.
So 1988 is the year ten is the month and 25 is the date.
So 25th of October, 1988.
So if we click that URL.
So that's the URL.
With that end point, what you get is this JSON data.
So we have this pair of data.
So the data we requested the station ID and then we get the temperature, which is what the user wants.
So the temperature for that day, the average temperature for that day was -0.9 Celsius degree.
Similarly, you can enter here any station number.
So let's change the URL to something else.
For example, from ten we make it 14 the same date and you see that the temperature for that date was
11.
So station number 14 was Salzburg in Austria.
So those are weather observation stations and so that's the API.
So that's a lot of data that I'll give you and you'll use this data to serve them through your API.
So there's a lot of fun stuff to learn and extremely useful.
So let's keep going and I'll see you in the next video.