
Add filter parameters to Find and Filter actions in Shortcuts
After you add a Find or Filter action to your shortcut, you activate filter parameters in the action, to narrow down the dataset gathered by the action.
For example, in the Find Photos action, you can add filter parameters such as โAlbum is Portraitโ, which retrieves only photos in an album named โPortraitโ. You can add more filter parameters to further refine the search criteria โ for example, to exclude the โSelfiesโ album, by changing the filter option from โAlbum [is]โ to โAlbum [is not]โ, then choosing โSelfiesโ from the list of search criteria.

Add filter parameters to a Find or Filter action
In the Shortcuts app Library
, tap
on the shortcut you want to modify.
In the shortcut editor, tap
, enter โFindโ or โFilterโ in the search field, touch and hold the action in the list, then drag it to the position you want.
In the Find or Filter action you added, tap Add Filter.
A default filtering string appears with the filtering terms in coloured fonts โ for example, โAlbum is all Photosโ.
Tap any of the coloured terms, then tap an option from the list to customise the filtering string.
For example, you could tap Album and choose Width, tap โisโ and choose โis notโ, then tap โanythingโ and enter a number in the keypad that appears.
To add more filter parameters, repeat steps 2โ3.
Note: When you add multiple filter parameters, the โAll the following are trueโ or โAny of the following are trueโ options become available.
Sort and limit filter parameter results
The Find and Filter actions also include parameters to order your results and limit the number of results collected in the filtering operation.
In the Shortcuts app, do either or both of the following:
Order the filter results: Tap โSort byโ, choose an option from the list that appears then, in the Order parameter that appears, tap an option (Ascending or Descending, for example).
Limit the filter results: Turn on Limit, then in the Get [x Items] row that appears, tap the plus (+) or minus (โ) button to select a maximum number of results.
Additionally, you can tap Limit or Get [x Items] to set these parameters using an Ask when Run variable or a Magic Variable (depending on actions in the shortcut), allowing you to alter the limit while the shortcut is running.
Tip: To use two Find actions in a row โ without causing the second action to filter the output of the first โ place a Nothing action in between the two Find actions. That way, โnothingโ is passed as input to the second Find action, signalling it to retrieve its own content.
When working with a large amount of content or broad queries in the Find and Filter actions, a shortcutโs performance may be impacted when run from iOS Today View. In such cases, use a Continue In App action to switch to the Shortcuts app or experiment with more specific filters that limit the number of possible results.