Actions108
- AI Actions
- Transcribe
- Detect Brand
- Extract Contact Information
- Mood Detection
- Detect Adult Content
- Enitity Detection
- Language Detection
- Too Long To Read
- Check Content Policy
- Detect Faces
- Generate Python Code
- Picture Text Recognition
- Detect Color
- Generate Image
- PDF OCR
- Translation
- Detect Email Type
- Generate Javascript Code
- Picture Object Recognition
- Business Actions
- Calculate Actions
- Code Actions
- Convert Actions
- Crypto Actions
- Date & Time Actions
- Generate Actions
- Image Actions
- Operator Actions
- PDF Actions
- Storage Actions
- Text Actions
- User Actions
Overview
The "Expand URL" operation within the "Operator" resource of this node is designed to take a shortened or encoded URL and expand it to its full original form. This can be useful in scenarios where you receive shortened URLs (e.g., from URL shorteners) and need to resolve them to their actual destination for further processing, validation, or analysis.
Practical examples include:
- Expanding a shortened marketing campaign link to verify the final landing page.
- Resolving URLs in datasets before scraping or extracting data.
- Validating URLs before sending requests or sharing them.
This operation is part of a broader toolbox node that offers various utilities across multiple resources and operations.
Properties
| Name | Meaning |
|---|---|
| Code Variables | A collection of user-defined variables (name or ID and value) that can be used in code editor functions for dynamic inputs. |
| Expand an Url | The URL string to be expanded. This is a required input for the "Expand URL" operation under the "Operator" resource. |
Output
The output of the node is a JSON array containing the expanded URL information returned by the external service. Each item corresponds to one input item processed.
- The
jsonfield will contain the expanded URL details as provided by the API response. - If multiple input items are processed, the output will be an array of such JSON objects.
- The node does not explicitly handle binary data for this operation.
Dependencies
- Requires an API key credential for authentication with the external "0CodeKit" service.
- The node makes HTTP POST requests to the endpoint corresponding to
operator/urlexpander. - No additional environment variables or configurations are indicated beyond the API key credential.
Troubleshooting
Common issues:
- Invalid or malformed URL input may cause the API to return errors or fail to expand.
- Missing or incorrect API key credential will result in authentication failures.
- Network connectivity issues can prevent the node from reaching the external service.
Error messages:
- Errors thrown by the external API will be propagated unless "Continue On Fail" is enabled.
- Parsing errors if the URL parameter is empty or not a valid string.
Resolutions:
- Ensure the URL input is correctly formatted and non-empty.
- Verify that the API key credential is properly configured and has necessary permissions.
- Enable "Continue On Fail" to allow workflow continuation despite individual item errors.
Links and References
- n8n Expressions Documentation — for using expressions in variable definitions.
- External service documentation (not included in source) would provide details on the URL expansion API endpoint.