I want to expand a short URL and store the long URL in a variable without accessing that link with the browser. Any ideas how I can do that in kotlin?
CodePudding user response:
Unshorten.me API provides an easy method to unshorten a wide range of shortened URLs. You can get the response in XML, JSON or simple RAW format.
CodePudding user response:
If your nodejs backend redirects the short url to a long url, you can create an API endpoint to fetch the long URL from your backend.
Or, if you are using a third-party service to convert long URLs to short URLs, that same service provider must have an API endpoint which converts your short URL to long URL.
