Aemet

Aemet

Weather

Weather and forecast data from Spain

Visit API🔁 Alternatives

📚 Documentation & Examples

Everything you need to integrate with Aemet

🚀 Quick Start Examples

Aemet Javascript Examplejavascript
// Aemet API Example
const response = await fetch('https://opendata.aemet.es/centrodedescargas/inicio', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

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

The AEMET OpenData API provides highly accurate and robust weather and forecast data exclusively for Spain. With direct access to real-time weather data, this API offers a wealth of meteorological information ranging from current temperature, humidity levels, and wind speed to extended weather forecast. The API integrates seamlessly into any application, website, or system that requires weather-related information for Spain. Comprehensive API documentation can be found by visiting here.

Adopting the AEMET OpenData API bestows several valuable advantages including:

  • Real-time weather data tracking and forecasting for accurate updates.
  • High data reliability with constant updates and checks for accuracy.
  • Seamless integration thanks to its easy-to-use and robust interface.
  • Enhanced UX for applications and platforms requiring weather data.
  • Free access to a wide range of meteorological information pertaining to Spain.

To use the API with JavaScript, you would need to make a GET request, as shown in the following example:

const axios = require('axios');

axios.get('https://opendata.aemet.es/centrodedescargas/inicio', {
  headers: {
    'Api-Key': 'your_api_key_here'
  }
})
.then((response) => {
  console.log(response.data);
})
.catch((error) => {
  console.error(`Error: ${error}`);
});

Remember to replace "your_api_key_here" with your actual API key. This request will return a wealth of weather data for you to use in your application.

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Oct 6Oct 8Oct 10Oct 12Oct 14Oct 16Oct 18Oct 20Oct 22Oct 24Oct 26Oct 28Oct 30Nov 1Nov 404008001440Minutes
Online
Offline

Related APIs in Weather