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
Let's say you want to short https://blog.standinshd.site into https://link.standinshd.site/myblog, you can use https://link.standinshd.site/custom to achieve that : https://link.standinshd.site/custom/https://blog.standinshd.site,myblog
Notice the comma ( , )! It is needed as a seperator between long URL and short URL.
Finally, you'll get this kind of response :
Finally, you'll get this kind of response :
{
"status":"ok",
"long":"https://blog.standinshd.site",
"short":"link.standinshd.site/myblog"
}
No comments:
Post a Comment