Look up Mastodon account ID

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

Actions

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-set-variable.webp
Set Variable
Sets the value of the specified variable to the input of this action.
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-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-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-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-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.

Related Posts

How to look up a Mastodon account’s ID using Shortcuts
Working with Mastodon's API means handling profiles from across the fediverse — this shortcut lets you make a web request to the "Lookup account" endpoint to get the universal ID for any user.
How to extract Mastodon instance & handle data using Shortcuts
Working with links in the fediverse can be tricky – here's how to use Shortcuts' Get Components of URL action to quickly isolate any instance or account handle you come across on Mastodon.
New for members: Mastodon Lists shortcuts
I've just added a bundle shortcut—Mastocuts Lists—and a folder of shortcuts for Mastodon Lists, available for members in the Shortcuts Library.

More From This Folder

Extra Details

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

More From The Library


Get way deeper into Shortcuts – become a member.

Browse more