Search⌘ K

Getting Data From External API

Explore how to integrate an external weather API into a Vue.js application. Learn to fetch data based on user input, handle API keys, process responses, and display weather details with proper error management.

Getting real with APIs

In this lesson, we will demonstrate an example with a weather application that takes a city from the user as input and displays its weather information. For simplicity, we did not add other functionalities and this will entirely focus on where we fetch the weather from the external weather API and display it on our application.

What is an API?

API (Application Programming Interface) is an interface designed to make two programs interact with each other and exchange information. Consider the weather API where API service providers have deployed infrastructure to obtain live weather information from all around the world and share that information with other applications upon request. This request has a specific format that is ...