{"abstract":[{"text":"A summary forecast for a daytime or overnight period.","type":"text"}],"hierarchy":{"paths":[["doc:\/\/com.apple.documentation\/documentation\/technologies","doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI"]]},"identifier":{"interfaceLanguage":"data","url":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/DayPartForecast"},"kind":"symbol","legalNotices":{"copyright":"Copyright &copy; 2026 Apple Inc. All rights reserved.","privacyPolicy":"https:\/\/www.apple.com\/privacy\/privacy-policy","termsOfUse":"https:\/\/www.apple.com\/legal\/internet-services\/terms\/site.html"},"metadata":{"availableLanguages":["de-DE","en-US","es-419","fr-FR","it-IT","ja-JP","ko-KR","pt-BR","zh-CN"],"externalID":"data:weather_api:DayPartForecast","fragments":[{"kind":"text","text":"object "},{"kind":"identifier","text":"DayPartForecast"}],"modules":[{"name":"WeatherKit REST API"}],"navigatorTitle":[{"kind":"identifier","text":"DayPartForecast"}],"platforms":[{"introducedAt":"1.0.0","name":"Weather API"}],"role":"symbol","roleHeading":"Object","symbolKind":"dictionary","title":"DayPartForecast"},"primaryContentSections":[{"declarations":[{"languages":["data"],"platforms":["Unsupported OS: Weather API"],"tokens":[{"kind":"text","text":"object "},{"kind":"identifier","text":"DayPartForecast"}]}],"kind":"declarations"},{"items":[{"attributes":[],"content":[{"inlineContent":[{"text":"The percentage of the sky covered with clouds during the period, from ","type":"text"},{"code":"0","type":"codeVoice"},{"text":" to ","type":"text"},{"code":"1","type":"codeVoice"},{"text":".","type":"text"}],"type":"paragraph"}],"name":"cloudCover","required":true,"type":[{"kind":"text","text":"number"}],"typeDetails":[{"baseType":"number"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"An enumeration value indicating the condition at the time.","type":"text"}],"type":"paragraph"}],"name":"conditionCode","required":true,"type":[{"kind":"text","text":"string"}],"typeDetails":[{"baseType":"string"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The ending date and time of the forecast.","type":"text"}],"type":"paragraph"}],"name":"forecastEnd","required":true,"type":[{"kind":"text","text":"date-time"}],"typeDetails":[{"baseType":"date-time"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The starting date and time of the forecast.","type":"text"}],"type":"paragraph"}],"name":"forecastStart","required":true,"type":[{"kind":"text","text":"date-time"}],"typeDetails":[{"baseType":"date-time"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The relative humidity during the period, from ","type":"text"},{"code":"0","type":"codeVoice"},{"text":" to ","type":"text"},{"code":"1","type":"codeVoice"},{"text":".","type":"text"}],"type":"paragraph"}],"name":"humidity","required":true,"type":[{"kind":"text","text":"number"}],"typeDetails":[{"baseType":"number"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The amount of precipitation forecasted to occur during the period, in millimeters.","type":"text"}],"type":"paragraph"}],"name":"precipitationAmount","required":true,"type":[{"kind":"text","text":"number"}],"typeDetails":[{"baseType":"number"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The chance of precipitation forecasted to occur during the period.","type":"text"}],"type":"paragraph"}],"name":"precipitationChance","required":true,"type":[{"kind":"text","text":"number"}],"typeDetails":[{"baseType":"number"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The type of precipitation forecasted to occur during the period.","type":"text"}],"type":"paragraph"}],"name":"precipitationType","required":true,"type":[{"identifier":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/PrecipitationType","kind":"typeIdentifier","preciseIdentifier":"data:weather_api:PrecipitationType","text":"PrecipitationType"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The depth of snow as ice crystals forecasted to occur during the period, in millimeters.","type":"text"}],"type":"paragraph"}],"name":"snowfallAmount","required":true,"type":[{"kind":"text","text":"number"}],"typeDetails":[{"baseType":"number"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The direction the wind is forecasted to come from during the period, in degrees.","type":"text"}],"type":"paragraph"}],"name":"windDirection","required":false,"type":[{"kind":"text","text":"integer"}],"typeDetails":[{"baseType":"integer"}]},{"attributes":[],"content":[{"inlineContent":[{"text":"The average speed the wind is forecasted to be during the period, in kilometers per hour.","type":"text"}],"type":"paragraph"}],"name":"windSpeed","required":true,"type":[{"kind":"text","text":"number"}],"typeDetails":[{"baseType":"number"}]}],"kind":"properties","title":"Properties"},{"attributes":[{"kind":"allowedTypes","values":[]}],"kind":"attributes","title":"Attributes"}],"schemaVersion":{"major":0,"minor":3,"patch":0},"sections":[],"seeAlsoSections":[{"anchor":"Obtaining-daily-weather-information","generated":true,"identifiers":["doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/DayWeatherConditions","doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/DailyForecast"],"title":"Obtaining daily weather information"}],"variants":[{"paths":["\/documentation\/weatherkitrestapi\/daypartforecast"],"traits":[{"interfaceLanguage":"data"}]}],"references":{"doc://com.apple.documentation/documentation/technologies":{"abstract":[],"identifier":"doc:\/\/com.apple.documentation\/documentation\/technologies","kind":"technologies","role":"overview","title":"Technologies","type":"topic","url":"\/documentation\/technologies"},"doc://com.apple.weatherkitrestapi/documentation/WeatherKitRESTAPI":{"abstract":[{"text":"Obtain historical, current, and predictive weather for your app or service.","type":"text"}],"identifier":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI","kind":"symbol","navigatorTitle":[{"kind":"text","text":"WeatherKit REST API"}],"role":"collection","title":"WeatherKit REST API","type":"topic","url":"\/documentation\/weatherkitrestapi"},"doc://com.apple.weatherkitrestapi/documentation/WeatherKitRESTAPI/DailyForecast":{"abstract":[{"text":"A collection of day forecasts for a specified range of days.","type":"text"}],"fragments":[{"kind":"text","text":"object "},{"kind":"identifier","text":"DailyForecast"}],"identifier":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/DailyForecast","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DailyForecast"}],"role":"symbol","title":"DailyForecast","type":"topic","url":"\/documentation\/weatherkitrestapi\/dailyforecast"},"doc://com.apple.weatherkitrestapi/documentation/WeatherKitRESTAPI/DayPartForecast":{"abstract":[{"text":"A summary forecast for a daytime or overnight period.","type":"text"}],"fragments":[{"kind":"text","text":"object "},{"kind":"identifier","text":"DayPartForecast"}],"identifier":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/DayPartForecast","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DayPartForecast"}],"role":"symbol","title":"DayPartForecast","type":"topic","url":"\/documentation\/weatherkitrestapi\/daypartforecast"},"doc://com.apple.weatherkitrestapi/documentation/WeatherKitRESTAPI/DayWeatherConditions":{"abstract":[{"text":"The historical or forecasted weather conditions for a specified day.","type":"text"}],"fragments":[{"kind":"text","text":"object "},{"kind":"identifier","text":"DayWeatherConditions"}],"identifier":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/DayWeatherConditions","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"DayWeatherConditions"}],"role":"symbol","title":"DayWeatherConditions","type":"topic","url":"\/documentation\/weatherkitrestapi\/dayweatherconditions"},"doc://com.apple.weatherkitrestapi/documentation/WeatherKitRESTAPI/PrecipitationType":{"abstract":[{"text":"The type of precipitation forecasted to occur during the day.","type":"text"}],"fragments":[{"kind":"text","text":"type "},{"kind":"identifier","text":"PrecipitationType"}],"identifier":"doc:\/\/com.apple.weatherkitrestapi\/documentation\/WeatherKitRESTAPI\/PrecipitationType","kind":"symbol","navigatorTitle":[{"kind":"identifier","text":"PrecipitationType"}],"role":"symbol","title":"PrecipitationType","type":"topic","url":"\/documentation\/weatherkitrestapi\/precipitationtype"}}}