Daily Forecast
DESCRIPTION
The Earth Networks ENCast City 10 Day‐Night Forecast Feed provides a descriptive day and night period forecast covering the next 10 days. The day period of the forecast is considered to be 7am‐7pm local time, while the night period of the forecast is considered to be the hours straddling the date change from 7 pm to 7 am local time. This forecast will be available for 2.6 million cities across the entire globe and will be available in multiple languages.
REQUEST URL
REQUEST PARAMETERS
Name | Type | Description |
locationtype | string | “city” or “latitudelongitude” |
location | string | a valid cityId or valid latitude/longitude. For the cityId use “Location Search v2” API call. |
REQUEST HEADERS
Name | Type | Description |
Ocp-Apim-Subscription-Key | string | Subscription key which provides access to this API. Found in your Profile. |
Expected response
{
"dailyForecastPeriods": [
{
"cloudCoverPercent": 60,
"dewPoint": 19,
"iconCode": 3,
"precipCode": 1,
"precipProbability": 0,
"relativeHumidity": 75,
"summaryDescription": "Partly Cloudy",
"temperature": 29,
"thunderstormProbability": 0,
"windDirectionDegrees": 353,
"windSpeed": 7,
"snowAmountMm": 0,
"detailedDescription": "Partly cloudy. High temperature around 29C. Dew point will be around 19C with an average humidity of 75%. Winds will be 7 kph from the N.",
"forecastDateLocalStr": "2017-09-22T06:00:00",
"forecastDateUtcStr": "2017-09-22T10:00:00Z",
"isNightTimePeriod": false
},
],
"forecastCreatedUtcStr": "2017-09-22T08:01:00.0000000Z",
"location": "US51W0003",
"locationType": "city"
}