![](https://help.apple.com/assets/5B9014F10946229C37C593B4/5B9014F50946229C37C593C7/en_AU/c10e8a839dc838a25d0feb0e9e428a0a.png)
Handling dictionaries using the Get Dictionary Value action in Shortcuts
To get the value for a particular key in a dictionary, you can use the Get Dictionary Value action and specify the name of the key. To get the daily forecast, add the Get Dictionary Value action and set it to daily
.
![Get Dictionary Value action in the shortcut editor with the key set to daily.](https://help.apple.com/assets/5B9014F10946229C37C593B4/5B9014F50946229C37C593C7/en_AU/5be7d367c77cfb524aa8d5161f87db5d.png)
If you want the weather summary, you can use the Get Dictionary Value action again with summary
.
![Get Dictionary Value action in the shortcut editor with the key set to summary.](https://help.apple.com/assets/5B9014F10946229C37C593B4/5B9014F50946229C37C593C7/en_AU/c6aa5ec61df0e8525d1aa49e1716ef9f.png)
The detailed forecast for each day is stored within daily
as a dictionary called data
.
![Get Dictionary Value action in the shortcut editor with the key set to data.](https://help.apple.com/assets/5B9014F10946229C37C593B4/5B9014F50946229C37C593C7/en_AU/d0eda02d8e0ca1b63a70dd6b4e1759ed.png)
Notice that the data
dictionary is actually a list of dictionaries, represented at the start by the left bracket ([
) in JSON. In the above image, a list of eight items (identified by the page dots above search field) is output from the Get Dictionary Value action. This represents the forecast data for each of the days requested from the API, which returns today and the next seven days to become a list of eight dictionaries of data.
For information on working with multiple items in a dictionary, see Handling lists using the Repeat with Each action in Shortcuts.