Authentication in API

Some API requires authentication for making requests. So that those who has the API keys can only receive the response information. This is mainly used for protecting the external server and to reduce the no. of unwanted requests.

API authentication mainly works with the help of API Keys.

Example: http://api.openweathermap.org/data/2.5/weather?q=London&appid=d6b5462917dd2991ef81dbb470eb5564&units=imperial

In the above example url there is a parameter appid and its the key for authentication. The key is given a value. So this Key-Value works for authentication in the API request.

Its called the API key, that we can get by signing up in that particular provider website.

Response:

About the Author: smartcoder

You might like

Leave a Reply

Your email address will not be published. Required fields are marked *