
Add filter parameters to Find and Filter actions in Shortcuts on iPhone or iPad
After you add a Find or Filter action to your shortcut, you activate filter parameters in the action to narrow down the data set 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]β and then choosing βSelfiesβ from the list of search criteria.

Add filter parameters to a Find or Filter action
In the Shortcuts app
on your iOS or iPadOS device, 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 β for example, βAlbum is All Photosβ.
Tap any of the 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 the last parameter 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 or Any 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 on your iOS or iPadOS device, do either or both of the following:
Order the filter results: Tap βSort byβ, choose an option from the list that appears, then tap the Order parameter that appears and tap an option (Smallest First, 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 Each Time 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 the Shortcuts widget or Apple Watch. In such cases, place a Continue Shortcut in App action to switch to the Shortcuts app, or experiment with more specific filters that limit the number of possible results.