Getting WOEID from city/county/country name


Is it possible to get woeid’s from the name of a region provided by a user? I’m trying to build something where a user can input their region and they get the trending data for that region.



you can get woeid from here