Point Request

This provides current conditions and the hourly and daily forecast to 10 days at a single location. A location is defined by a latitude/longitude pair, a city and state, a city and country, an IATA airport code, an ICAO station code, or a United States Postal Service zip code.

GET /point?location={latitude},{longitude}
GET /point?city={city},{state}
GET /point?city={city},{country}
GET /point?airport={iata-code}
GET /point?station={icao-code}
GET /point?zipcode={zip-code}

Optional Parameters

The default response uses English units.

Name Type Description Accepted Values / Range Example
units string unit of measure english or metric metric

Request Example

See Headers for request header details.

$ curl -n https://current-and-forecast.api.wdtinc.com/point?location=35.482,-97.535 \
-H "Accept: application/vnd.wdt+json; version=1"

Response Example

See Status Codes for response code details.

HTTP/1.1 200 OK
{
  "language": "en-US",
  "location": {
    "latitude": 35.482,
    "longitude": -97.535,
    "city": "Oklahoma City",
    "state": "OK",
    "zipCode": 73106,
    "country": "United States",
    "iataCode": null,
    "icaoCode": null,
    "timezone": "CDT",
    "timezoneOffset": -5
  },
  "units": {
    "temperature": "F",
    "pressure": "in",
    "speed": "mph",
    "distance": "mi"
  },
  "currentConditions": {
    "temperature": 72,
    "dewpoint": 55,
    "relativeHumidity": 56,
    "apparentTemperature": 72,
    "windDirection": "SSE",
    "windSpeed": 21,
    "windGust": 25,
    "pressure": 30.26,
    "weatherText": "Clear",
    "weatherCode": 100,
    "iconLink": "http://icons.api.wdtinc.com/daytime/clear.png",
    "cloudCoverPercent": 0,
    "visibility": 10,
    "moonPhase": "New Moon",
    "sunrise": "06:30",
    "sunset": "20:05"
  },
  "dailyForecasts": [
    {
      "date": "2016-09-01",
      "dayOfWeek": "Thursday",
      "highTemperature": 76,
      "lowTemperature": 59,
      "windDirection": "SSE",
      "windSpeed": 21,
      "windGust": 25,
      "probabilityOfPrecipitation": 0,
      "weatherText": "Clear",
      "weatherCode": 100,
      "iconLink": "http://icons.api.wdtinc.com/daytime/clear.png",
      "sunrise": "06:30",
      "sunset": "20:05"
    },
    {
      "date": "2016-09-02",
      "dayOfWeek": "Friday",
      "highTemperature": 76,
      "lowTemperature": 59,
      "windDirection": "SSE",
      "windSpeed": 21,
      "windGust": 25,
      "probabilityOfPrecipitation": 0,
      "weatherText": "Clear",
      "weatherCode": 100,
      "iconLink": "http://icons.api.wdtinc.com/daytime/clear.png",
      "sunrise": "06:31",
      "sunset": "20:04"
    },
    :
    :
  ],
  "hourlyForecasts": [
    {
      "time": "2016-09-01T16:00:00Z",
      "temperature": 72,
      "dewpoint": 55,
      "relativeHumidity": 56,
      "apparentTemperature": 72,
      "windDirection": "SSE",
      "windSpeed": 21,
      "windGust": 25,
      "probabilityOfPrecipitation": 0,
      "weatherText": "Clear",
      "weatherCode": 100,
      "iconLink": "http://icons.api.wdtinc.com/daytime/clear.png",
      "cloudCoverPercent": 0
    },
    {
      "time": "2016-09-01T17:00:00Z",
      "temperature": 72,
      "dewpoint": 55,
      "relativeHumidity": 56,
      "apparentTemperature": 72,
      "windDirection": "SSE",
      "windSpeed": 21,
      "windGust": 25,
      "probabilityOfPrecipitation": 0,
      "weatherText": "Clear",
      "weatherCode": 100,
      "iconLink": "http://icons.api.wdtinc.com/daytime/clear.png",
      "cloudCoverPercent": 0
    },
    :
    :
  ]
}