Using OpenWeatherMaps API | Make your Weather Application

Here is new tutorial on how to use OpenWeatherMaps Api to get the weather data in JSON format.

Here is the link for the complete tutorial :

https://www.codewaala.tk/2019/04/working-with-openweather-maps-api-for.html

Download Test Application ( Made with :kodular: )

Click here

Aia file is in the website

Cheers !

1 Like

{“response_code”:0,“results”:[{“category”:“Entertainment: Cartoon & Animations”,“type”:“multiple”,“difficulty”:“easy”,“question”:“What was the name of the sea witch in the 1989 Disney film "The Little Mermaid"?”,“correct_answer”:“Ursula”,“incorrect_answers”:[“Madam Mim”,“Maleficent”,“Lady Tremaine”]},{“category”:“Science: Mathematics”,“type”:“boolean”,“difficulty”:“easy”,“question”:“A universal set, or a set that contains all sets, exists.”,“correct_answer”:“False”,“incorrect_answers”:[“True”]},{“category”:“Entertainment: Japanese Anime & Manga”,“type”:“boolean”,“difficulty”:“easy”,“question”:“Studio Ghibli is a Japanese animation studio responsible for the films "Wolf Children" and "The Boy and the Beast".”,“correct_answer”:“False”,“incorrect_answers”:[“True”]},{“category”:“Entertainment: Video Games”,“type”:“multiple”,“difficulty”:“medium”,“question”:“What two characters from the game Undertale are never in a relationship or not related?”,“correct_answer”:“Frisk & Chara”,“incorrect_answers”:[“Sans & Papyrus”,“Toriel & Asgore”,“Alphys & Undyne”]},{“category”:“History”,“type”:“multiple”,“difficulty”:“medium”,“question”:“How many times was Albert Einstein married in his lifetime?”,“correct_answer”:“Twice”,“incorrect_answers”:[“Five”,“Thrice”,“Once”]},{“category”:“Entertainment: Music”,“type”:“multiple”,“difficulty”:“medium”,“question”:“What is Brian May's guitar called?”,“correct_answer”:“Red Special”,“incorrect_answers”:[“Blue Special”,“Green Special”,“Yellow Special”]},{“category”:“Entertainment: Film”,“type”:“multiple”,“difficulty”:“medium”,“question”:“In The Lord of the Rings: The Fellowship of the Ring, which one of the following characters from the book was left out of the film?”,“correct_answer”:“Tom Bombadil”,“incorrect_answers”:[“Strider”,“Barliman Butterbur”,“Celeborn”]},{“category”:“Entertainment: Television”,“type”:“multiple”,“difficulty”:“easy”,“question”:“What is the real name of the famous spanish humorist, El Risitas?”,“correct_answer”:“Juan Joya Borga”,“incorrect_answers”:[“Gabriel Garcia Marquez”,“Jesus Quintero”,“Ernesto Guevara”]},{“category”:“Entertainment: Television”,“type”:“multiple”,“difficulty”:“hard”,“question”:“Which race enjoys a glass of warm baghol in "Star Trek"?”,“correct_answer”:“Klingon”,“incorrect_answers”:[“Vulcan”,“Human”,“Botha”]},{“category”:“Science: Computers”,“type”:“multiple”,“difficulty”:“easy”,“question”:“How many values can a single byte represent?”,“correct_answer”:“256”,“incorrect_answers”:[“8”,“1”,“1024”]}]}

how to get this in normal format can u please help me i know nothing about json

Use the JSON Utils Extension made by Luke.

Which I used in the above application too.
Check the aia.

Here is the link to Extension

thanks a lot i got it.

Well we can also use JSON Text Decode block to convert JSON data into List and use it easily in our project.

Any problem in this method?

Could you please explain how and where we should API key of any application?

You have to check the API documentation for particular API to use it.