From the course: Swift 5: Protocol-Oriented Programming

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Working with a third-party API

Working with a third-party API

From the course: Swift 5: Protocol-Oriented Programming

Start my 1-month free trial

Working with a third-party API

- [Instructor] We're going to fetch real weather data using the Open Weather Map web service. Open openweathermap.org and navigate to the API page. For our app, we're only interested in the current weather data. Let's see its documentation. We'll use the API that returns weather data by city name. The syntax is simple. We must provide the city name and the API key as query parameters. To make it work, you will need an API key. To obtain the key, you will need to sign up. The process is straightforward and the steps are described in the "how to start" section. After registration, it takes a couple of hours until the API key gets activated. So please go ahead and get that set up. We'll pick up in the next video.

Contents