TinyURL shortener via webhook
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, ...
Template notes
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 - Receive Link Webhook: This node acts as the entry point for the workflow. It listens for incoming POST requests and expects a JSON body containing the url to be shortened and your apikey for TinyURL. - Create TinyURL: This node sends a POST request to the TinyURL API, passing the long URL and your API key. It can also accept optional parameters like domain, alias, and description to customize the shortened link. - Respond with Shortened URL: This node sends the response from the TinyURL API (which includes the new shortened URL) back to the service that initiated the webhook.
---
👤 Who is it for? This workflow is ideal for:
- Content Managers & Marketers: Quickly shorten links for campaigns, social media posts, or tracking. - Developers: Automate the process of link shortening within applications or scripts. - Automation Enthusiasts: Integrate a URL shortener into various n8n workflows (e.g., after generating a report, before sending a notification). - Anyone needing on-demand short links: A flexible solution for ad-hoc link shortening.
---
📑 Data Structure When you trigger the webhook, send a POST request with a JSON body structured as follows: