Lola Short URL
AI-generatedOverview
The "Lola Short URL" node is designed to generate a shortened version of a provided URL, with the option to append custom parameters. Some parameter values can be Base64-encoded before being added to the URL. This node is useful in scenarios where you need to programmatically create short links for sharing, tracking, or integrating with other systems, and when you want to include additional metadata as query parameters.
Practical examples:
- Creating short URLs for marketing campaigns, with campaign-specific parameters.
- Generating personalized short links for users, with encoded data for privacy.
- Automating the process of shortening URLs and attaching tracking information.
Properties
| Name | Meaning |
|---|---|
| URL | The original URL that you want to shorten. This is required. |
| Parameters | A collection of key-value pairs to append as query parameters to the URL. Each parameter includes: - Name: Parameter name - Value: String value to set - Enable encryption Base64: If true, the value will be Base64-encoded before being appended to the URL. Multiple parameters can be added. |
Output
The node outputs a JSON object with at least the following fields:
{
"lola_urlshort": "<the shortened URL>",
"lola_url": "<the full URL with appended parameters (some possibly Base64-encoded)>"
}
- lola_urlshort: The resulting shortened URL.
- lola_url: The original URL with all specified parameters appended (with values Base64-encoded if selected).
Dependencies
- May require an API key credential named
lolaKeyApi(optional, depending on configuration). - Relies on an internal helper function (
getUrlShort) for URL shortening.
Troubleshooting
Common issues:
- Missing or invalid URL: If the "URL" property is empty or malformed, the node may fail to generate a short link.
- Parameter encoding errors: If non-string values are provided for parameters, Base64 encoding may not work as expected.
- API errors: If the underlying URL shortening service is unavailable or credentials are missing/invalid, the node may throw errors.
Error messages and resolutions:
- "Cannot read property 'url' of undefined" — This suggests the URL shortening service did not return a valid response. Check your input URL and any required credentials.
- "Invalid URL format" — Ensure the URL provided is properly formatted (e.g., starts with http:// or https://).
Links and References
- Base64 Encoding (Wikipedia)
- n8n Documentation: Custom Nodes
- For more about URL shortening, see URL Shortening (Wikipedia)