[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.
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.
| Node | Category | Type | Operation |
|---|---|---|---|
| Split In Batches | Routing | Loop Over Items | See node parameters |
| Get Headers | Web / API | HTTP Request | See node parameters |
| OpenGraph API | Web / API | HTTP Request | See node parameters |
| Meta tags Scraper - dub.sh | Web / API | HTTP Request | See node parameters |
| IF OpenGraph invaild | Routing | If | See node parameters |
| Parse headers | Transform | Html | extractHtmlContent |
| If - Enable ScreenShots (yes to enable) | Routing | If | See node parameters |
| API Auth | Transform | Edit Fields | See node parameters |
| Method 1 - META | Transform | Edit Fields | See node parameters |
| Convert to File | Transform | Convert To File | toBinary |
| Final Data | Transform | Edit Fields | See node parameters |
| CREATE | Web / API | HTTP Request | POST |
| UPDATE | Web / API | HTTP Request | PUT |
| IF Slug available | Routing | If | See node parameters |
| Final Meta | Transform | Aggregate | See node parameters |
| Host Screenshot | Integration | Github | file |
| Host OGImage | Integration | Github | file |
| Host Favicon | Integration | Github | file |
| Edit Fields | Transform | Edit Fields | See node parameters |
| Download final OG | Web / API | HTTP Request | See node parameters |
| Download Favicon | Web / API | HTTP Request | See node parameters |
| Method 2 - META | Transform | Edit Fields | See node parameters |
| Stop and Error | Routing | Stop And Error | See node parameters |
| Method 3 - META1 | Transform | Edit Fields | See node parameters |
| Method 1 - SCR | Web / API | HTTP Request | See node parameters |
| Method 2 - SCR | Web / API | HTTP Request | POST |
| Final SCR | Transform | Aggregate | See node parameters |
| Stop And Error | Routing | Stop And Error | See node parameters |
| Shortened URL | Transform | Edit Fields | See node parameters |
| n8n Form Trigger | Trigger | Form Trigger | See node parameters |
| Respond to Webhook | Web / API | Respond To Webhook | See node parameters |
| Scan URL (Community) | Web / API | HTTP Request | See node parameters |
| If | Routing | If | See node parameters |
| If1 | Routing | If | See node parameters |
| Check Reviews (Community) | Web / API | HTTP Request | See node parameters |
| Norton | Transform | Edit Fields | See node parameters |
| bitdefender | Transform | Edit Fields | See node parameters |
| HTML | Transform | Html | extractHtmlContent |
| (Fraud Check) | Web / API | HTTP Request | POST |
| (Others) | Web / API | HTTP Request | See node parameters |
| If2 | Routing | If | See node parameters |
| set unsafe | Transform | Edit Fields | See node parameters |
| If3 | Routing | If | See node parameters |
| PhishTank | Web / API | HTTP Request | See node parameters |
| IF GH invaild | Routing | If | See node parameters |
| Method 4 - META | Transform | Edit Fields | See node parameters |
| IF dub invaild | Routing | If | See node parameters |
Setup
- Download the JSON and import it into an isolated n8n instance. Leave the workflow inactive.
- Connect your own credentials through n8n’s credential store. Replace
REPLACE_WITH_*values with your resource identifiers. - Inspect API destinations, Code nodes, database queries, file paths, and outbound actions.
- 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