Grab YouTube playlist ID

For a given YouTube video passed in as input, this isolates the URL parameter after “list=“ that represents a video playlist ID.

Actions Used

Get URLs from Input
Returns any links found in the output from the previous action.
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
Split Text
Separates text passed into the action into a list.
Get Item from List
Returns one or more items from the list passed as input. You can get the first item, the last item, a random item, the item at a particular index, or items in a range of indexes.
Text
Passes the specified text to the next action.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Grab%20YouTube%20playlist%20ID
Open Shortcut deep link
shortcuts://open-shortcut?name=Grab%20YouTube%20playlist%20ID
AppleScript code
tell application “Shortcuts Events” run shortcut “Grab YouTube playlist ID” end tell

More From This Folder

Open work YouTube playlists

If you don’t want the Grab YouTube playlist ID shortcut installed, delete the Run Shortcut action above and the URL action below.

However, the shortcut won’t work with links from videos inside playlists anymore.

Get shortcut »

More From The Library

High alert

Sets the playback destination to the current device, turns off Do Not Disturb and Airplane Mode, turns on Cellular Data, Bluetooth, and Wi-Fi, sets the volume to 85%, the brightness to 100%, and turns on Light mode, then turns on every option for Sound Recognition, then vibrates if run from iPhone when it’s all done.

Get shortcut »

Add to wishlist

Asks you to enter a name on import, then looks for a note with the name and “wishlist” and creates one if not found – then, adds any links from the Share sheet or asks you to enter in a new item, then appends it to the list automatically.

Get shortcut »


Get way deeper into Shortcuts – become a member.