Welcome back.
Now it's time to get the API, you are ill in order to use it in our application.
So you need to head on over to the service, which is news API dot org and then you need to log in.
And once you log in and after you are assuming that you have already registered because if you don't
register, you will not get your API key, so you need to register first.
If you register and log in, you will.
The first thing that you will see here is this page.
And as you can see here, you will find so many you are else.
And they were able that I'm going to be using is here.
I'm going to I'm going to click on this arrow and I'm going to be using this one.
Let me.
Go back.
I'm going to first let me explain the ordeal so the ordeal is going to contain.
First of all, the it's going to contain this part, which says News AP either or the two top headlines
and then here the country, the country is equal to us.
And then the cartoon category, you can specify the type of news that you want to get, for example,
business.
If you say category is equal to business, you are going to get only business news.
And finally, you are going to get the year and API is equal to and then this your API key.
So this year is already there, is already there in your in the API you want out.
So it's it it's it's already contained in your your email, so you can copy.
You can copy this your ill immediately, you can copy it and then in the application, you can paste
it in the function here in the your only be it.
And again, if you don't for some reason, if you want to get your API, you can click on your account
and you will find your API key here.
As you can see, this is your API key.
You can copy it and then you should based it here at the end.
But it's as I told you, it's already contained in the API.
You are ill.
As you can see, this is API audio.
So this is the URL that we want.
And again, if you want to get only business news, you need to say a category is equal to business.
If you want to get all news, you need to remove this.
So I'm going to remove this, I'm going to remove business and I'm going to remove category.
So this is this is going to be my new ordeal.
The ordeal is going to be news API that Augur v2 and therefore for top headlines and then question mark
country is equal to us and then and API key is equal to my API key.
The country is equal to us.
You can pass any country you want, but you need to find the.
The country abbreviation, so there are so many countries, I think the abbreviations here in the documentation.
Let me show you the abbreviations, the countries.
So here everything, if you click on everything you should find here the countries.
Let me show you the countries so.
A year, if you click on top headlines, click on top headlines, you'll find country so you can select
one of these countries.
US obviously has abbreviation of us.
You can select, for example, e.g. the E C Z.
I don't know all of these abbreviations, but for example, I know us is us, obviously NZ.
I think New Zealand.
See, is Canada, there are so many countries so you can select your country from here and pass it here
in the country, country is equal to us.
I'm going to be using the US, so this is the aureole.
And again, before you do anything, you need to double check your.
You are ill.
And once you are done, just click on file and then save all.