Appendix
This lesson contains the list of countries, languages, and sorting options that can be assigned to the query parameters while making a call.
We'll cover the following
The list of countries
The table below contains the keys of the countries we can use as query parameters with the source
and top headlines
endpoints:
Country | Key |
---|---|
Argentina | ar |
Australia | au |
Brazil | br |
Canada | ca |
China | zh |
France | fr |
Germany | de |
India | in |
Ireland | ie |
Israel | is |
Country | Key |
---|---|
Italy | it |
Netherlands | nl |
Norway | no |
Pakistan | pk |
Russia | ru |
Saudi Arabia | sa |
Sweden | se |
United Kingdom | gb |
United States | us |
Spain | es |
Languages list
The table below contains the keys of the languages we can use as query parameters with the source
and everything
endpoints:
Language | Key |
---|---|
Arabic | ar |
German | de |
English | en |
Spanish | es |
French | fr |
Hebrew | he |
Italian | it |
Dutch | nl |
Norwegian | no |
Portuguese | pt |
Russian | ru |
Swedish | se |
Urdu | ud |
Chinese | zh |
Sorting options list
The table below contains the options we can use to sort the results while using the everything
endpoint:
Sorting options | Description |
---|---|
relevancy |
This makes the most relevant articles come first. |
popularity |
This makes articles from popular sources come first. |
publishedAt |
This makes the newest articles come first. |
By default, the newest articles appear first.