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
HTTP: http://wxdata.com/cgi-bin/geolocation-api.pl
HTTPS: https://wxdata.com/cgi-bin/geolocation-api.pl
The following parameters may be used:
Parameter | Description | Required | Values |
version | Version control | Required | 1.0 |
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 |
|
Value | Description | Type |
city | City name | text |
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.