Icelandic APIs

Icelandic APIs

Transportation

Open APIs that deliver services in or regarding Iceland like addresses, bus system, cars, concerts, currency rates in relation to ISK, bi cycle counter, earth quakers, international flights in iceland, status of icelandic hospitals, particulates in Reykjavik, carpooling, landsbjorg, weather, horses, petrol, stations, auroracoin and ships.

Visit API

📚 Documentation & Examples

Everything you need to integrate with Icelandic APIs

🚀 Quick Start Examples

Icelandic APIs Javascript Examplejavascript
// Icelandic APIs API Example
const response = await fetch('http://docs.apis.is/', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

Introduction to API Docs

API docs are a crucial resource for developers looking to integrate with an existing system or service. The API website named http://docs.apis.is/ is a public API documentation platform with a wealth of APIs available for developers to use and experiment with. In this blog post, we will explore some of the APIs available on apis.is and provide example code snippets in JavaScript.

Weather API

The weather API provides weather information for Iceland. Developers can use this API to fetch current weather data for a specific location in Iceland. The response from the API includes information such as temperature, wind speed, and pressure. Here is an example of how to fetch and display weather data using JavaScript:

fetch('http://apis.is/weather/observations/is?stations=1')
  .then(response => response.json())
  .then(data => {
    console.log(data.results[0].T)
    console.log(data.results[0].F)
    console.log(data.results[0].P)
  })
  .catch(error => console.error(error))

Flight API

The flight API provides real-time information on arrivals and departures for all major airports in Iceland. Developers can use this information to build applications that monitor flights and provide alerts for delays or cancellations. Here is an example of how to fetch flight data for Keflavik airport using JavaScript:

fetch('http://apis.is/flight?language=en&type=arrivals&to=KEF')
  .then(response => response.json())
  .then(data => {
    console.log(data.results[0].date)
    console.log(data.results[0].airline)
    console.log(data.results[0].flightNumber)
  })
  .catch(error => console.error(error))

Earthquake API

The earthquake API provides information on earthquakes that occur in and around Iceland. Developers can use this information to build applications that track seismic activity and provide alerts for potential earthquakes. Here is an example of how to fetch earthquake data using JavaScript:

fetch('http://apis.is/earthquake/is')
  .then(response => response.json())
  .then(data => {
    console.log(data.results[0].timestamp)
    console.log(data.results[0].size)
    console.log(data.results[0].depth)
  })
  .catch(error => console.error(error))

Conclusion

In this blog post, we have explored some of the APIs available on the http://docs.apis.is/ website and provided example code snippets in JavaScript. APIs such as weather, flights, and earthquakes provide valuable data that developers can use to build applications that make our lives easier. By using these APIs, developers are able to create innovative products that leverage the vast amounts of data available in the world today.

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Jun 1Jun 3Jun 5Jun 7Jun 9Jun 11Jun 13Jun 15Jun 17Jun 19Jun 21Jun 23Jun 25Jun 27Jun 3004008001440Minutes
Online
Offline

Related APIs in Transportation