This endpoint is designed to take a shortened URL and return the expanded, full URL. It is helpful for users who want to know the original link behind shortened URLs.
Endpoint Information
- Method: GET
- Endpoint URL: https://node.nodetrigger.com/api/expand-shortened-url
- Content Type: application/json
- URL Parameter:
url
– The shortened URL you wish to expand. This parameter is required.
Example Requests
To expand a shortened URL, make a GET request to the following URL with your desired shortened link included as a query parameter:
GET https://node.nodetrigger.com/api/expand-shortened-url?url=https://short.url/example
The endpoint will return a JSON response containing the full or expanded URL if the request is successful.
Notes
- Ensure that the URL parameter is included, or the server will return a 400 error indicating a missing URL parameter.
- If the shortened URL is invalid or cannot be expanded, a 400 error will be returned, specifying that it is an invalid shortened URL.
- If any unexpected errors occur, the server will respond with a 500 error, along with an error message to help troubleshoot the issue.
- Use this endpoint for safe expansion of shortened URLs to understand where they redirect before clicking on them.
“`