AutomationFlowsWeb Scraping › TinyURL Shortener via Webhook

TinyURL Shortener via Webhook

TinyURL Shortener via Webhook. Uses httpRequest. Webhook trigger; 5 nodes.

Webhook trigger★★☆☆☆ complexity5 nodesHTTP Request
Web Scraping Trigger: Webhook Nodes: 5 Complexity: ★★☆☆☆ Added:

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "id": "yb95HguPBwk8gDXZ",
  "name": "TinyURL Shortener via Webhook",
  "tags": [],
  "nodes": [
    {
      "id": "f62dff88-eb8d-4147-9935-ad599675c710",
      "name": "Note for TinyURL API Request",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        180
      ],
      "parameters": {
        "width": 300,
        "height": 280,
        "content": "This node sends a POST request to the TinyURL API to create a shortened URL. It expects 'api_token' and 'url' from the incoming webhook body. The 'domain', 'alias', and 'description' are optional."
      },
      "typeVersion": 1
    },
    {
      "id": "47315623-8e56-4257-8543-22eda1999b27",
      "name": "Note for Respond to Webhook",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        520,
        140
      ],
      "parameters": {
        "width": 320,
        "height": 340,
        "content": "This node sends the response from the TinyURL API (the shortened URL and any other relevant data) back to the original caller of the webhook. You can insert other nodes before this one to process the shortened URL (e.g., save to a database, send in a message) before responding."
      },
      "typeVersion": 1
    },
    {
      "id": "0b43798d-91cd-4b8e-9e83-c6a7b3f8d5d9",
      "name": "Create TinyURL",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        180,
        300
      ],
      "parameters": {
        "url": "=https://api.tinyurl.com/create",
        "method": "=POST",
        "options": {},
        "jsonBody": "{\n  \"url\": \"={{ $json.body.url }}\",\n  \"domain\": \"tinyurl.com\",\n  \"alias\": \"={{ $json.body.alias || '' }}\",\n  \"description\": \"={{ $json.body.description || '' }}\"\n}",
        "sendBody": true,
        "sendQuery": true,
        "specifyBody": "json",
        "queryParameters": {
          "parameters": [
            {
              "name": "api_token",
              "value": "={{ $json.body.api_key }}"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "f297249f-8f4d-4fc8-aced-d94d3521c0fe",
      "name": "Receive Link Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -160,
        300
      ],
      "parameters": {
        "path": "shorten-link",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "5f1a017f-43ef-4b77-a549-78f57c05bcc7",
      "name": "Respond with Shortened URL",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        640,
        300
      ],
      "parameters": {
        "options": {},
        "respondWith": "allIncomingItems"
      },
      "typeVersion": 1.2
    }
  ],
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e476b1c7-977c-4c37-bb28-bea8441b1014",
  "connections": {
    "Create TinyURL": {
      "main": [
        [
          {
            "node": "Respond with Shortened URL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Receive Link Webhook": {
      "main": [
        [
          {
            "node": "Create TinyURL",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

TinyURL Shortener via Webhook. Uses httpRequest. Webhook trigger; 5 nodes.

Source: https://github.com/ScraperNode/awesome-n8n-templates/blob/d50bcb23f189aedb10315a3f119a40c3f61194f4/templates/miscellaneous/4595-tinyurl-shortener-via-webhook/workflow.json — original creator credit. Request a take-down →

More Web Scraping workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Web Scraping

This template is designed for developers, businesses, and service providers who need to programmatically check Calendly availability. It's perfect for: Web developers building custom booking interface

HTTP Request
Web Scraping

Never lose a prospect to a missed call again. This workflow sends an automatic "sorry we missed you" SMS within seconds, follows up 2 hours later if there's no reply, and enrolls unresponsive contacts

HTTP Request
Web Scraping

Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.

HTTP Request
Web Scraping

Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.

HTTP Request
Web Scraping

Send Postcards to Contacts Automatically using CentralStationCRM and EchtPost. Uses httpRequest. Webhook trigger; 12 nodes.

HTTP Request