← All N8N workflows
Developer toolsAggregateConvert To FileForm TriggerGithubHtml

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration

Configured with Aggregate, Convert To File, Form Trigger, Github, and additional nodes. Review the connections and setup before adapting this template.

Workflow preview
RoutingSplit In BatchesLoop Over ItemsWeb / APIGet HeadersHTTP RequestWeb / APIOpenGraph APIHTTP RequestWeb / APIMeta tags Scraper -dub.shHTTP RequestRoutingIF OpenGraph invaildIfTransformParse headersHtmlRoutingIf - Enable ScreenShots(yes to enable)IfTransformAPI AuthEdit FieldsTransformMethod 1 - METAEdit FieldsTransformConvert to FileConvert To FileTransformFinal DataEdit FieldsWeb / APICREATEHTTP RequestWeb / APIUPDATEHTTP RequestRoutingIF Slug availableIfTransformFinal MetaAggregateIntegrationHost ScreenshotGithubIntegrationHost OGImageGithubIntegrationHost FaviconGithubTransformEdit FieldsEdit FieldsWeb / APIDownload final OGHTTP RequestWeb / APIDownload FaviconHTTP RequestTransformMethod 2 - METAEdit FieldsRoutingStop and ErrorStop And ErrorTransformMethod 3 - META1Edit FieldsWeb / APIMethod 1 - SCRHTTP RequestWeb / APIMethod 2 - SCRHTTP RequestTransformFinal SCRAggregateRoutingStop And ErrorStop And ErrorTransformShortened URLEdit FieldsTriggern8n Form TriggerForm TriggerWeb / APIRespond to WebhookRespond To WebhookWeb / APIScan URL (Community)HTTP RequestRoutingIfIfRoutingIf1IfWeb / APICheck Reviews(Community)HTTP RequestTransformNortonEdit FieldsTransformbitdefenderEdit FieldsTransformHTMLHtmlWeb / API(Fraud Check)HTTP RequestWeb / API(Others)HTTP RequestRoutingIf2IfTransformset unsafeEdit FieldsRoutingIf3IfWeb / APIPhishTankHTTP RequestRoutingIF GH invaildIfTransformMethod 4 - METAEdit FieldsRoutingIF dub invaildIf

Node categories in this workflow

  • Routing
  • Web / API
  • Transform
  • Integration
  • Trigger

Icons describe general node roles, inferred from node types. Inspect the parameters for the configured action.

Drag to pan; use + and − to zoom. Reconstructed from the exported node positions; nothing runs here. Dashed lines represent non-main connections. Full node names and notes appear below.

How it works

The exported workflow contains the following configured nodes. Their connections are shown above; inspect the JSON for the complete logic, expressions, and external actions.

Workflow node names, types, and operations
NodeCategoryTypeOperation
Split In BatchesRoutingLoop Over ItemsSee node parameters
Get HeadersWeb / APIHTTP RequestSee node parameters
OpenGraph APIWeb / APIHTTP RequestSee node parameters
Meta tags Scraper - dub.shWeb / APIHTTP RequestSee node parameters
IF OpenGraph invaildRoutingIfSee node parameters
Parse headersTransformHtmlextractHtmlContent
If - Enable ScreenShots (yes to enable)RoutingIfSee node parameters
API AuthTransformEdit FieldsSee node parameters
Method 1 - METATransformEdit FieldsSee node parameters
Convert to FileTransformConvert To FiletoBinary
Final DataTransformEdit FieldsSee node parameters
CREATEWeb / APIHTTP RequestPOST
UPDATEWeb / APIHTTP RequestPUT
IF Slug availableRoutingIfSee node parameters
Final MetaTransformAggregateSee node parameters
Host ScreenshotIntegrationGithubfile
Host OGImageIntegrationGithubfile
Host FaviconIntegrationGithubfile
Edit FieldsTransformEdit FieldsSee node parameters
Download final OGWeb / APIHTTP RequestSee node parameters
Download FaviconWeb / APIHTTP RequestSee node parameters
Method 2 - METATransformEdit FieldsSee node parameters
Stop and ErrorRoutingStop And ErrorSee node parameters
Method 3 - META1TransformEdit FieldsSee node parameters
Method 1 - SCRWeb / APIHTTP RequestSee node parameters
Method 2 - SCRWeb / APIHTTP RequestPOST
Final SCRTransformAggregateSee node parameters
Stop And ErrorRoutingStop And ErrorSee node parameters
Shortened URLTransformEdit FieldsSee node parameters
n8n Form TriggerTriggerForm TriggerSee node parameters
Respond to WebhookWeb / APIRespond To WebhookSee node parameters
Scan URL (Community)Web / APIHTTP RequestSee node parameters
IfRoutingIfSee node parameters
If1RoutingIfSee node parameters
Check Reviews (Community)Web / APIHTTP RequestSee node parameters
NortonTransformEdit FieldsSee node parameters
bitdefenderTransformEdit FieldsSee node parameters
HTMLTransformHtmlextractHtmlContent
(Fraud Check)Web / APIHTTP RequestPOST
(Others)Web / APIHTTP RequestSee node parameters
If2RoutingIfSee node parameters
set unsafeTransformEdit FieldsSee node parameters
If3RoutingIfSee node parameters
PhishTankWeb / APIHTTP RequestSee node parameters
IF GH invaildRoutingIfSee node parameters
Method 4 - METATransformEdit FieldsSee node parameters
IF dub invaildRoutingIfSee node parameters

Setup

  1. Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
  2. Connect your own credentials through n8n’s credential store. Replace REPLACE_WITH_* values with your resource identifiers.
  3. Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
  4. Run with synthetic data and harmless destinations. Enable triggers only after checking the actual outputs.

Requirements

An n8n instance with the listed node types and compatible versions. Service-connected workflows may require accounts, credentials, or paid APIs.

Credential types declared in the source

None declared. HTTP requests and Code nodes may still need configuration.

Workflow notes

URL META TAGS DATA

URL META TAGS DATA

This part is used to parse long link data like title, descraption, image all them served in header with tags called. URL metadata

Switchy API Limits:

Switchy API Limits:

  • 10.000 links/day.
  • 1.000 links/hour max.
  • 16 links /minute max.
CREATE

Create Link

Switchy API

Switchy API

Create or Update Link. Based on their API docs

README

README

N8N META Config

1- Opengraph Image mode: screenshot or source or brand

- screenshot: take a screenshot for web page based on longurl.

- source: scrape the source longurl og image and use it

- brand: Generate blank background, color based on Dark Mode option

2- Dark Mode: true or false (Working with brand OGI mode only.)

  • true: generate black patteren as background og image for the texts.
  • false: generate white patteren as background og image for the texts.

3- Brand Name: Used for brand ogi background. The limit of brand name is 18 characters total.

Switchy API Workflow Configuration

This is part of Switchy API config i covered in this workflow.

| Input Field | Description | |-----------------------|--------------------------------------------------| | Switchy API Key | API Key for Switchy integration. | | LongURL | The long URL to be shortened. | | Custom slug | Custom slug for the shortened URL. | | tags | Tags associated with the link. | | Switchy Folder ID | ID of the Switchy folder to use. | | Custom Domain (CNAME) | Custom domain linked to Switchy. |

This is public APIs I've Used in Workflow

Meta Data Stack

  • Manual Get Headers: Custom HTTP request to fetch headers.
  • Dub.sh: Scraping meta tags from web pages.
  • OpenGraph API: Using OpenGraph to retrieve meta information.

Screenshot Stack

  • Method 1 - SCR: First method for taking screenshots (API name microlink).
  • Method 2 - SCR: Second method for taking screenshots (API name pxl.to).
Download final OG

Download Final OGI

Method 1 - SCR

SCR API

Method 2 - SCR

Optional

URL Preparing

URL Preparing

We're using this side to control everything.

Sticky Note7

‌ ‌ ‌‌ ‌ ‌ ‌ ‌‌ ‌ ‌ ‌ ‌‌ ‌ ‌ ‌‌ ‌ ‌‌ ‌ ‌‌ ‌ ‌ ‌ ‌‌ ‌ ‌ ‌ ‌‌ ‌ ‌‌ ‌ ‌‌ ‌ ‌‌ ‌ ‌‌ ‌ ‌‌

(Fraud Check)

Bitdefender

💡FYI:-

‌ ‌ ‌ ‌ ‌

💡FYI:-

  • This workflow can be for any URL Shortener by just changing the API Services for the shortener SaaS.

  • Do not use it for spam purposes as the used APIs is mostly workaround methods and not for "Big Use Cases".

  • Breaking the APIs will force me to not share them free. and yes this workflow not for productions.

  • Support 1:1 not included with this workflow. post anything you have here and mention my account @Nskha.

  • Follow my new templates updates on telegram.

‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration

[n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration

Purpose and structure

This folder contains the [n8n] Advanced URL Parsing and Shortening Workflow - Switchy.io Integration workflow. Its executable nodes use aggregate, convertToFile, formTrigger, github, html, httpRequest, if, respondToWebhook, set, splitInBatches, stopAndError. The table and connection map below are derived from the JSON, not an inferred guarantee of behavior.

Setup

Import inactive. Configure your own credentials and replace REPLACE_WITH_* values. Review external destinations and Code nodes before running.

Entry points

n8n Form Trigger

Verification

Sanitized source candidate; not runtime-tested. This overview is generated from node metadata. Read the folder README for the connection map, credential types, and license.

Attribution

https://github.com/Zie619/n8n-workflows/blob/94007c1445d9258a7da116646b79473e7c7c3282/workflows/Stopanderror/0392_Stopanderror_GitHub_Automate_Webhook.json MIT; preserve source notices.

Canvas section labels

These name areas of the original canvas; they do not include explanatory instructions.

  • Screenshot stack
  • URL Preparing And Scanning

More in Developer tools