Step 5

In the previous section, we have made an HTTP Get request.

HTTP stands for Hypertext Transfer Protocol and is used to structure requests and responses over the Internet.

We use four basic HTTP verbs (operation or methods) in requests to interact with an API: Get, Post, Put, and Delete. We will explore these in greater detail in the future. For now, let's make another Get request.

As seen in the image, this request's endpoint is

http://dataservice.accuweather.com/currentconditions/v1/:locationKey

Note :locationKey is a path parameter. It takes the value 348707, which is the location key of Baltimore, MD.

Click on the "Send" button to send the "request." It will take a moment, and then you will see the "response."

Notice the response includes the temperature.