Question: Get alerts filtered by country

  • 1
  • Question
  • Updated 2 years ago
  • (Edited)
Hi all.

I would like to know if is it possible to get all the active alerts for a country. I have tried to make requests like ..../alerts/q/Spain.json or similar but i didn't obtain nothing.

In negative case, I would like to know if it is possible to make this with an autocomplete query. I have tried too but same result, nothing. 

Someone can help me?

I want to get something like this:

{
"response": { "version": "0.1", "termsofService": "http://www.wunderground.com/weather/api/d/terms.html", "features": { "alerts": 1 } }, "query_zone": "999", "alerts": [ { "type": "WND", "wtype_meteoalarm": "1", "wtype_meteoalarm_name": "Wind", "level_meteoalarm": "2", "level_meteoalarm_name": "Yellow", "level_meteoalarm_description": "The weather is potentially dangerous. The weather phenomena that have been forecast are not unusual, but be attentive if you intend to practice activities exposed to meteorological risks. Keep informed about the expected meteorological conditions and do not take any avoidable risk.", "description": ">", "date": "1970-01-01 00:00:00 GMT", "date_epoch": "NA", "expires": "2017-01-13 16:59:00 GMT", "expires_epoch": "NA", "message": ">)", "phenomena": "NA", "significance": "NA", "attribution": "Information provided by , <a href='http://meteoalarm.eu/'>EUMETNET - MeteoAlarm</a> Note: Time delays between this website and <a href='http://meteoalarm.eu/'>Meteoalarm.eu</a> are possible. For the most up-to-date information about alert levels as published by the participating National Meteorological Services, please visit <a href='http://meteoalarm.eu/'>Meteoalarm</a>. For terms of use of this information, and copyright information, see <a href='http://meteoalarm.eu/'>Meteoalarm</a> Terms of Use." }, { "type": "WIN", "wtype_meteoalarm": "2", "wtype_meteoalarm_name": "Snow/Ice", "level_meteoalarm": "2", "level_meteoalarm_name": "Yellow", "level_meteoalarm_description": "The weather is potentially dangerous. The weather phenomena that have been forecast are not unusual, but be attentive if you intend to practice activities exposed to meteorological risks. Keep informed about the expected meteorological conditions and do not take any avoidable risk.", "description": ">", "date": "1970-01-01 00:00:00 GMT", "date_epoch": "NA", "expires": "2017-01-13 22:59:00 GMT", "expires_epoch": "NA", "message": ">)", "phenomena": "NA", "significance": "NA", "attribution": "Information provided by , <a href='http://meteoalarm.eu/'>EUMETNET - MeteoAlarm</a> Note: Time delays between this website and <a href='http://meteoalarm.eu/'>Meteoalarm.eu</a> are possible. For the most up-to-date information about alert levels as published by the participating National Meteorological Services, please visit <a href='http://meteoalarm.eu/'>Meteoalarm</a>. For terms of use of this information, and copyright information, see <a href='http://meteoalarm.eu/'>Meteoalarm</a> Terms of Use." } ] }
but for a whole country, like Spain.

Thanks in advice.
Photo of Jaime

Jaime

  • 1 Post
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
No, there is no way to pull a whole country at once.