Skip to main content
The ShortURLx iOS Shortcut lets you shorten any URL directly from the Share Sheet or from within the Shortcuts app — no browser required. You can trigger it from Safari, Notes, or any other app that supports sharing links.
An API key is required to use the shortcut. Get one from your dashboard before you start. See API keys for instructions.

Use the premade shortcut

Download the ready-made shortcut from shorturlx.xyz/Shortcut, then follow the prompt to enter your API key. This is the fastest way to get started.

Manual setup

If you prefer to build the shortcut yourself or need to customise it, follow the steps below in the iOS Shortcuts app.
1

Add a URL action

Create a new shortcut and add a URL action. Set the value to:
https://www.shorturlx.xyz/api/shorten
This is the endpoint the shortcut will send requests to.
2

Add a Get Contents of URL action

Add a Get Contents of URL action and configure it as follows:
  • Method: POST
  • Headers:
    • AuthorizationBearer YOUR_API_KEY
    • Content-Typeapplication/json
  • Request body: JSON
    • Add a field with the key url and set the value to the URL you want to shorten (you can use a variable such as Shortcut Input here)
3

Extract the short URL from the response

Add a Get Dictionary Value action. Set it to get the value for the key shortUrl from the Contents of URL result.This extracts the shortened URL string from the JSON response.
4

Use the short URL

Add a final action to do something with the result. Common options include:
  • Copy to clipboard — paste the short URL anywhere
  • Share — open the iOS Share Sheet with the short URL
  • Show result — display it as a notification or alert

Next steps

API keys

Generate and manage API keys for your account.

API reference

Explore the full API if you want to build deeper integrations.

Build docs developers (and LLMs) love