Linkly & n8n
What is n8n?
n8n is a powerful workflow automation platform that connects apps and services together. It's similar to Zapier but offers more flexibility with self-hosting options and a visual workflow builder.
For example, if you were to use Linkly & n8n together, you might automatically create a Linkly link when a new row is added to a spreadsheet, or trigger a workflow when someone clicks your link.
How to Use Linkly & n8n
Linkly has an official community node for n8n.
With n8n, you can:
- Automatically create, update, or delete Linkly shortlinks from your workflows.
- Get instant webhook notifications when your links are clicked.
- Look up Linkly shortlink information to use in other workflow steps.
You can install the Linkly node from n8n's community nodes: Settings > Community Nodes > Search for "linkly"
Or install via npm: npm install @linkly-link-shortener/n8n-nodes-linkly
Our n8n integration strongly mirrors our API.
Linkly & n8n Features Overview
Linkly Link Shortener Node
Create
Creates a new Linkly shortlink. Configure the destination URL, custom slug, UTM parameters, tracking pixels, Open Graph metadata, and more.
Get
Retrieves details of a specific link by its ID. Use this to look up link information in the middle of a workflow.
Get Many
Returns all links in your workspace. Useful for finding links or iterating through your link library.
Update
Updates an existing Linkly shortlink by ID. Select the link you want to update, then provide the fields you want to change.
All fields are optional - only the fields you provide will be updated. You can update the destination URL, UTM parameters, tracking pixels, Open Graph metadata, and other link settings.
Delete
Permanently deletes a Linkly shortlink by ID.
Warning: This action cannot be undone. The link will stop working immediately after deletion.
Linkly Link Shortener Trigger Node
Any Link Clicked
This trigger fires instantly when any Linkly shortlink in your workspace is clicked. Use this when you want to be notified about all clicks across your entire workspace.
Click data includes: Country, Platform, Browser, Referer, ISP, Bot detection, Destination URL, and URL Parameters.
Specific Link Clicked
This trigger fires instantly when a specific Linkly link is clicked. Select the link you want to monitor when setting up the trigger.
This is useful when you only care about clicks on one particular link.
Authentication
To connect Linkly with n8n:
- Log in to Linkly
- Go to Settings > API
- Generate a new API key
- Copy your API Key and Workspace ID
In n8n:
- Go to Credentials > New
- Search for "Linkly API"
- Enter your API Key and Workspace ID
- Click Save
Use Cases
- Marketing Automation - Create trackable links for email campaigns
- Social Media - Generate short links with custom Open Graph previews
- QR Code Campaigns - Create links for print materials and track scans
- Affiliate Marketing - Track clicks across multiple campaigns
- Lead Tracking - Trigger workflows when prospects click links
