Look up Mastodon account ID

Isolates a Mastodon handle from a link and looks up the account identifier.

Actions Used

shortcuts-action-icon-get-dictionary-from-input.webp
Get Dictionary from Input
Makes a dictionary from the text passed as input. JSON (like {“foo”: “bar”}), key-value pairs (like foo=bar&baz=biz), and XML-based plist are supported.
shortcuts-action-icon-get-dictionary-value.webp
Get Dictionary Value
Gets the value for the specified key in the dictionary passed into the action.
shortcuts-action-icon-get-contents-of-url.webp
Get Contents of URL
Gets the contents of URLs passed into the action. Useful for downloading files and web content, or for making API requests. Includes GET, POST, PUT, PATCH, DELETE methods, and options to add headers. To make a multipart HTTP request, choose “Form” as the request body type and add files as field values.
shortcuts-action-icon-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
shortcuts-action-icon-url.webp
URL
Passes the specified URL to the next action.
shortcuts-action-icon-get-component-of-url.webp
Get Component of URL
Gets the specified part of the URL passed into the action. URLs are structured as follows: scheme://user:password@host:port/path?query#fragment.
shortcuts-action-icon-split-text.webp
Split Text
Separates text passed into the action into a list.
shortcuts-action-icon-get-item-from-list.webp
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.
shortcuts-action-icon-stop-and-output.webp
Stop and Output
Stops execution of the current shortcut, and outputs content. This action is useful when: • Running a shortcut from another shortcut (using the Run Shortcut action). The output will be used as the output of the Run Shortcut action. • Running a shortcut from Quick Actions in Finder on macOS. The output will be saved as a file alongside the files selected in Finder. • Running a shortcut from Services on macOS. The output will replace the selected content, if applicable. • Or, when running a shortcut from another location that supports output, like the command-line or the Shortcuts URL scheme. No more actions will be run after this action.

Extra Details

Run Shortcut deep link
shortcuts://run-shortcut?name=Look%20up%20Mastodon%20account%20ID
Open Shortcut deep link
shortcuts://open-shortcut?name=Look%20up%20Mastodon%20account%20ID
AppleScript code
tell application “Shortcuts Events” run shortcut “Look up Mastodon account ID” end tell

Related Posts

How to look up a Mastodon account’s ID using Shortcuts
How to extract Mastodon instance & handle data using Shortcuts
New for members: Mastodon Lists shortcuts

More From This Folder

More From The Library


Get way deeper into Shortcuts – become a member.