The WxData™ Hourly Weather Forecast API provides direct hourly weather forecast data out to 36 hours for any location in the U.S. defined by zip code or latitude/longitude. The API returns all provided weather forecast elements or only those that meet your 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/land-forecast-api.pl?version=1.0&format=json&date=2022-05-12T06:00:00&enddate=2022-05-14T06:00:00&units=e&location=10001&temp=1" \
-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/land-forecast-api.pl
HTTPS: https://wxdata.com/cgi-bin/land-forecast-api.pl
The following parameters may be used:
Parameter | Description | Required | Values |
version | Version control | Required | 1.0 |
format | Return data format | Required | "xml" or "json" |
key | User API access key | Required | As provided by WxData™ |
secret | Secret key (do not share) | Required | As provided by WxData™ |
location | 5 digit zip code or latitude longitude point of desired location. | Required |
|
date | Start date range (YYYY-MM-DDTHH:MM:SS). Needs to be at least 1 hour before current time, no past dates. | Required |
|
enddate | End date range (YYYY-MM-DDTHH:MM:SS) | Required |
|
units | Imperial (U.S. Standard) or metric units | Required |
|
temp | Ambient surface temperature | Optional |
|
dewpt | Dew point | Optional |
|
rh | Relative humidity | Optional |
|
hi | Heat index | Optional |
|
wc | Wind chill | Optional |
|
wind | Wind speed | Optional |
|
wind_deg | Wind direction in degrees | Optional |
|
wind_gust | Wind gust | Optional |
|
Value | Description | Type |
city | City name | text |
state | Two character state abbreviations | text |
country | Country of origin | text |
latitude | Latitude of city/state location | float |
longitude | Longitude of city/state location | float | validtime datetime | Local valid time of hourly forecast data presented | YYYY-MM-DDTHH:MM:SS |
temp | Ambient surface temperature (temp_c or temp_f) | integer |
dewpt | Dew point (dewpt_c or dewpt_f) | integer |
rh | Relative humidity (%) | integer |
hi | Heat index (heat_index_f or heat_index_c) | float |
wc | Wind chill (wind_chill_f or wind_chill_c) | float |
wind_dir | Wind direction (north, south, east, west, ... ) | text (20 char) |
wind_dir_degrees | Wind direction in degrees (0 to 360) | integer |
wind_speed | Wind speed (wind_speed_mph or wind_speed_kt) | integer |
wind_gust | Wind gust (wind_gust_mph or wind_gust_kt) | integer |
Our weather API is currently used worldwide by users to feed their apps, services, and mission with reliable weather data.