[Deprecated] Using My URL Shortener API


Deprecated! Please visit this link for more info. 

since my domain itself isn't short at all, this feature might best for you only if you want to easily open a very long URL.
So recently I made a URL shortener API, which you can access from this link.
In meantime, I also make it accessible through http request only (REST API, yes)
You can either open the link I've given above to make yourself a new URL, or if you want to use it in programmatic way, stay with me in this thread.

First of all, the endpoint is https://link.standinshd.site/new and to use it simply make something like : https://link.standinshd.site/new/https://blog.standinshd.site
When it succeeded, it will gives you a JSON response which you can scrap using your programming language you choose.
{ 
   "long":"https://blog.standinshd.site",
   "short":"link.standinshd.site/H42cq"
}

Custom Short URL

Notice the comma ( , )! It is needed as a seperator between long URL and short URL.
Finally, you'll get this kind of response :
{ 
   "status":"ok",
   "long":"https://blog.standinshd.site",
   "short":"link.standinshd.site/myblog"
}

Keep in mind this API is still in development. I'm still working on it to make it even better and bug-less.

standinshd

Just another ordinary human but with a crazy level of interests in IT

No comments:

Post a Comment