Automate Link Shortening with TinyURL and Webhooks
detail.loadingPreview
Effortlessly shorten long URLs using the TinyURL API triggered by a simple webhook. This workflow automates link shortening, making your marketing and communication efforts more efficient.
About This Workflow
This n8n workflow provides a seamless way to integrate TinyURL's powerful link shortening service directly into your applications and workflows. By leveraging webhooks, you can programmatically create shortened URLs on demand. The workflow captures incoming requests via a webhook, sends the required data to the TinyURL API, and then responds with the newly generated short URL. This eliminates manual steps, saving you time and reducing the potential for errors. It's an ideal solution for marketers, content creators, and anyone looking to streamline their link management processes and enhance the aesthetics of their shared content.
Key Features
- Instant URL Shortening: Generate short URLs instantly via API calls.
- Webhook Integration: Easily trigger the shortening process from any application or service that supports webhooks.
- Customizable Options: Optionally provide a custom domain, alias, and description for your shortened links.
- Automated Response: Receive the shortened URL directly back from the webhook for immediate use.
- Flexible Configuration: Adaptable to various use cases with optional parameters.
How To Use
- Set up the Webhook: Configure the
Receive Link Webhooknode with your desired path (e.g.,/shorten-link). EnsureresponseModeis set toresponseNode. - Configure the HTTP Request: In the
Create TinyURLnode, ensure theurlishttps://api.tinyurl.com/createand themethodisPOST. Provide your TinyURLapi_tokenin thequeryParametersunderapi_token. Map the incoming webhook body fieldsurl,alias(optional), anddescription(optional) to thejsonBody. - Set up the Response: Connect the
Create TinyURLnode to theRespond with Shortened URLnode. Ensure it's set torespondWith: 'allIncomingItems'to send the shortened URL back to the caller. - Activate the Workflow: Enable the workflow in n8n and start sending POST requests to your webhook endpoint with the required JSON payload.
Apps Used
Workflow JSON
{
"id": "c4961f12-955c-4afa-b4df-f965acd68f9d",
"name": "Automate Link Shortening with TinyURL and Webhooks",
"nodes": 15,
"category": "Marketing",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: c4961f12-955c...
About the Author
N8N_Community_Pick
Curator
Hand-picked high quality workflows from the global community.
Statistics
Related Workflows
Discover more workflows you might like
Automated Multi-Platform Social Media Publisher
Streamline your social media content creation and publishing with this n8n workflow. Simply fill out a web form with your caption, media (image or video), and target platforms, and let n8n automate the posting process across multiple social networks.
WhatsApp AI Assistant: LLaMA 4 & Google Search for Real-Time Insights
Instantly deploy a smart AI assistant on WhatsApp, powered by Groq's lightning-fast LLaMA 4 model. This workflow enables real-time conversations, remembers context, and provides up-to-date answers by integrating live Google Search results.
AI-Powered On-Page SEO Audit & Report Automation
Instantly generate comprehensive on-page SEO technical and content audits for any website URL. This AI-powered workflow automates the entire process, from scraping the page to delivering a detailed report directly to your inbox, empowering you to optimize for better search rankings and user engagement.