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.

Matthew's Score
Total Actions

Shortcut Information

This shortcut uses a quick-and-dirty method of isolating the playlist ID from a YouTube URL by splitting around the URL parameters and leaving off anything after.

If no ID is found it will pop up an alert, but otherwise this works seamlessly in the background/inside another shortcut using Run Shortcut.
Cross-Platform Features

Actions Used In This

Get URLs from Input
Returns any links found in the output from the previous action.
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.
Passes the specified text to the next action.
Show Result
Shows the specified text in Siri or in an alert.

Extra Details

Run Shortcut deep link
Open Shortcut deep link
tell application “Shortcuts Events” run shortcut “Grab YouTube playlist ID” end tell

More From This Category

You Might Also Like

Get way deeper into Shortcuts – become a member.