πŸ”§ TinyURL shortener via webhook

⚑ 580 views Β· πŸ”§ Miscellaneous

Description

This n8n template allows you to automatically create shortened URLs using the TinyURL API by simply sending a webhook request. It’s a quick and efficient way to integrate URL shortening into your automated workflows, ideal for sharing long links in social media, emails, or other applications.


πŸ”§ How it works


πŸ‘€ Who is it for?

This workflow is ideal for:


πŸ“‘ Data Structure

When you trigger the webhook, send a POST request with a JSON body structured as follows:

{
  "api_key": "YOUR_TINYURL_API_KEY",
  "url": "https://www.verylongwebsite.com/path/to/specific/page?param1=value1&param2=value2",
  "domain": "tinyurl.com",      // Optional: defaults to tinyurl.com
  "alias": "myCustomAlias",    // Optional: desired custom alias for the link
  "description": "My project link" // Optional: description for the link
}

The workflow will return the JSON response directly from the TinyURL API, which will include the short_url and other details about the newly created link.


βš™οΈ Setup Instructions


πŸ“ Tips

πŸ”— Nodes Used

HTTP Request, Webhook

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup