API request for INAMOSFI2

  • 1
  • Question
  • Updated 5 years ago
Hello guys,

I am new to Wunderground.com and need some help. I have managed to read the data for Larnaka Cyprus using : http://api.wunderground.com/api/my key/conditions/q/en/LCA.xml

When i try to do the same for mosfiloti (INAMOSFI2)

http://api.wunderground.com/api/my key/conditions/q/en/INAMOSFI2.xml

it returns "No cities match your search query"

I am doing somethis wrong here or is it that the API does not support INAMOSFI2??

Regards,

Stavros
Photo of knxsmarthomecy

knxsmarthomecy

  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
I am not able to recognize the information source where you could obtained the pattern you used to build up the query, so it's no place for the /em/, and you need to drop it.

To query data for just a station, as in doc at http://www.wunderground.com/weather/a... , you have to use /pws:PWSID/ so you have to specify http://api.wunderground.com/api/my key/conditions/q/pws:INAMOSFI2.xml for your project

From my point of view, you will always get the best usage experience with latitude and longitude, so you could use http://api.wunderground.com/api/my key/conditions/q/34.945530,33.433556.xml for features available at location.