The WxData™ Geolocation API provides direct access to nearly 30,000 locations in the U.S. to obtain city, state, zip code, latitude, longitude, local time zone information, and more. Don't manage your own Geolocations database, save time with this easy to use, highly reliable, accurate API for all your operational needs.
If you have an existing account using the API Explorer is recommended to build API calls. Additionally, securely passing "key" and "secret" in the http header is supported. Curl example represented below:
curl "https://wxdata.com/cgi-bin/geolocation-api.pl?version=1.0&format=xml&location=NY" \
-H "key: [provided-apikey]" \
-H "secret: [provided-secretkey]"
In your API call you can filter on these elements:
API supports GET
The following parameters may be used:
|format||Return data format||Required||xml|
|key||User API access key||Required||As provided by WxData™|
|secret||Secret key (do not share)||Required||As provided by WxData™|
|location||1) 5 digit zip code, 2) city+name, state, 3) city, 4) state||Required||
|state||Two character state abbreviations||text|
|county||County of origin||text|
|latitude||Latitude of city/state location||float|
|longitude||Longitude of city/state location||float||fipscode||5-digit codes that are assigned to each county. The first two digits are for the State and the last three identify the County, or county equivalent.||text|
|zonecode||National Weather Service forecast counties/zones (by names & by codes)||text|
|timezone||timezone of location returned||text|
|daylighttime||Location follows day light savings time (yes/no)||text|
Our weather API is currently used worldwide by users to feed their apps, services, and mission with reliable weather data.