1 Simple Step to Effortlessly Convert Long URLs to Shortened Links

In this tutorial, we will learn how to convert long URLs to Shortened Links Easily.

1 Simple Step to Effortlessly Convert Long URLs to Shortened Links

Problem Statement: The problem was that we had a long URL in the email body and it was not looking good and the content in the email was not understandable and not in a readable format.

How to Easily Convert Long URLs to Shortened Links: A Step-by-Step Guide

Solution:

We are using the tinyurl API to resolve this issue.

History About Tiny URL

TinyURL™ was created when our founder, Kevin Gilbertson, ran into issues sending long links from his unicycling website to email subscribers. When sending a link that was over 80 characters, links would commonly break and not be clickable or end up sending users to 404 pages.

After a long ride on his unicycle pondering his link problems, Kevin had a big idea: What if there was a way to make those long links, well, tinier?

Thus TinyURL™ was born the internet’s original link shortener. Since early 2002, Kevin has shared his tool with millions of people to help them shorten their links with reliable, and tiny URLs.

Now, TinyURL is offering users a full-scale link management platform that gives businesses with big ideas the power of shortened links. With a TinyURL premium account, users can create, manage, track, and grow their brands through link campaigns of all sizes.

NOTE: All the above content is picked from the tinyurl.com website. and That content Does not belong to us.

Working with API

We are using an API that helps us to convert the Long URLs to shortened ones.

API:

curl 'http://tinyurl.com/api-create.php?url=some-long-url'

Example:

I have a requirement to make a tiny URL and to make this I used the below command:

URL required to short:

https://docs.google.com/forms/d/e/1FAIpQLSc9Iar8f954etjh8vbUQIZoQW8qegsZYCMjt_BV_fWobu_Jsw/formResponse

Command Triggered:

curl 'http://tinyurl.com/api-create.php?url=https://docs.google.com/forms/d/e/1FAIpQLSc9Iar8f954etjh8vbUQIZoQW8qegsZYCMjt_BV_fWobu_Jsw/formResponse'

After running the above command we get the following output where we received a short url like below.

Output:

https://tinyurl.com/2q77tm5u

image 1

So, in this tutorial, we have illustrated How to Easily Convert Long URLs to Shortened Links: A Step-by-Step Guide. Moreover, we have also discussed how we can use the API to Shortened Links.

Read some more tutorials related to Python.

Python Tkinter temperature converter

Python Tkinter Todo List

Python Tkinter Simple Calculator

Stone Paper Scissor using Python Tkinter

Python Tkinter Color Game

Python Tkinter Instagram User Detail

Github User Name: PythonT-Point

351 thoughts on “1 Simple Step to Effortlessly Convert Long URLs to Shortened Links”

  1. This is the perfect web site for anyone who would
    like to understand this topic. You know a whole lot its almost hard to argue with you (not that I personally
    would want to…HaHa). You certainly put a new spin on a subject that’s been discussed for decades.

    Wonderful stuff, just excellent!

    Reply
  2. Your writing has a way of resonating with me on a deep level. It’s clear that you put a lot of thought and effort into each piece, and it certainly doesn’t go unnoticed.

    Reply
  3. Your blog has quickly become my go-to source for reliable information and thought-provoking commentary. I’m constantly recommending it to friends and colleagues. Keep up the excellent work!

    Reply
  4. Your blog is a beacon of light in the often murky waters of online content. Your thoughtful analysis and insightful commentary never fail to leave a lasting impression. Keep up the amazing work!

    Reply
  5. Hi there! Do you know if they make any plugins to help
    with Search Engine Optimization? I’m trying to get my website
    to rank for some targeted keywords but I’m not seeing
    very good success. If you know of any please share.
    Kudos! I saw similar text here: Bij nl

    Reply
  6. Sugar Defender Ingredients Finding Sugar
    Protector has been a game-changer for me, as I have actually always been vigilant regarding managing my blood sugar levels.
    With this supplement, I feel encouraged to take charge of my health and wellness, and
    my most recent clinical exams have actually
    shown a considerable turnaround. Having a credible ally in my corner provides
    me with a sense of security and reassurance, and
    I’m deeply appreciative for the profound difference Sugar Defender has
    actually made in my well-being.

    Reply
  7. After looking over a handful of the articles on your blog, I honestly like your way of writing a blog. I book-marked it to my bookmark webpage list and will be checking back in the near future. Take a look at my web site too and tell me what you think.

    Reply
  8. Oh my goodness! Impressive article dude! Many thanks, However I am encountering troubles with your RSS. I don’t understand why I cannot join it. Is there anybody getting similar RSS issues? Anyone who knows the answer will you kindly respond? Thanks!!

    Reply
  9. I absolutely love your website.. Excellent colors & theme. Did you create this web site yourself? Please reply back as I’m trying to create my own personal website and want to know where you got this from or exactly what the theme is named. Thanks!

    Reply
  10. But even Beyoncé is aware of that nice inspiration can be discovered from past artists all through history – when you’re searching for an outfit that screams “Renaissance”, why not lean into the pun with an outfit inspired by artists like Da Vinci and Michaelangelo?

    Reply
  11. For those who have thyroid issues then you could know that this gland generates hormones within the body. When your body just isn’t capable to generate these hormones in the manner that it should it trigger imbalances within the body that may lead to the excessive production of moles.

    Reply
  12. An outstanding share! I have just forwarded this onto a colleague who has been conducting a little homework on this. And he actually ordered me dinner due to the fact that I stumbled upon it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanx for spending the time to talk about this subject here on your site.

    Reply
  13. I was just looking for this info for some time. After six hours of continuous Googleing, at last I got it in your website. I wonder what is the lack of Google strategy that do not rank this type of informative web sites in top of the list. Generally the top websites are full of garbage.

    Reply
  14. This is definitely an affecting take on this theme. Thanks, I’m happy you discussed your opinions plus inspiring ideas and I find I somewhat agree. I really welcome your clear writing along with the work may possibly have you spend working on this document. A great many thanks for this strong work furthermore great luck with your web-site, I most certainly I’m looking forward to new post in the near future.

    Reply
  15. Can I just now say what relief to get one who truly knows what theyre talking about on the internet. You actually discover how to bring a worry to light and earn it crucial. Lots more people need to see this and understand this side in the story. I cant think youre no more popular since you absolutely develop the gift.

    Reply
  16. When I originally commented I clicked the -Notify me when new comments are added- checkbox and today every time a comment is added I receive four emails concentrating on the same comment. Can there be in whatever way you can remove me from that service? Thanks!

    Reply
  17. We still cannot quite think that I could truthfully often be those types of checking important points entirely on your blog post. My children and so i are sincerely thankful for one’s generosity too as for giving me possibility pursue our chosen profession path. Information you information I received with your web-site.

    Reply
  18. Oh my goodness! an incredible post dude. Thank you Nonetheless I’m experiencing issue with ur rss . Do not know why Struggling to subscribe to it. Possibly there is anyone getting identical rss difficulty? Anybody who knows kindly respond. Thnkx

    Reply
  19. I would like to show appreciation to this writer for bailing me out of this type of predicament. Just after looking out through the world wide web and obtaining ways that were not powerful, I thought my life was gone. Living without the presence of solutions to the difficulties you’ve sorted out by means of your entire blog post is a serious case, as well as the kind which might have badly damaged my career if I had not encountered the blog. Your good understanding and kindness in taking care of everything was vital. I don’t know what I would’ve done if I had not discovered such a solution like this. I’m able to at this moment look forward to my future. Thank you very much for this reliable and results-oriented guide. I will not think twice to refer your web blog to anyone who should have guide about this topic.

    Reply
  20. Hi there are using WordPress for your blog platform? I’m new to the blog world but I’m trying to get started and create my own. Do you need any html coding knowledge to make your own blog? Any help would be really appreciated!

    Reply
  21. I am really glad I’ve found this information. Nowadays bloggers publish only about gossips and web and this is really frustrating. A good blog with exciting content, this is what I need. Thank you for keeping this web-site, I’ll be visiting it. Do you do newsletters? Can’t find it.

    Reply
  22. An impressive share, I merely with all this onto a colleague who had been doing a little analysis during this. And he in fact bought me breakfast because I ran across it for him.. smile. So allow me to reword that: Thnx to the treat! But yeah Thnkx for spending enough time to go over this, I am strongly over it and adore reading much more about this topic. If you can, as you grow expertise, can you mind updating your blog to comprehend details? It is extremely helpful for me. Big thumb up for this short article!

    Reply
  23. I have been surfing online more than three hours as of late, but I never found any attention-grabbing article like yours. It is pretty price enough for me. In my opinion, if all web owners and bloggers made excellent content material as you probably did, the web will be a lot more helpful than ever before.

    Reply
  24. Thanks I have just been looking for information about this subject for a long time and yours is the best Ive discovered till now However what in regards to the bottom line Are you certain in regards to the supply

    Reply
  25. Aw, this has been a really good post. In notion I must put in place writing such as this moreover – taking time and actual effort to create a really good article… but so what can I say… I procrastinate alot by no means seem to get something carried out.

    Reply
  26. Good website! I truly love how it is easy on my eyes and the data are well written. I’m wondering how I could be notified whenever a new post has been made. I’ve subscribed to your RSS which must do the trick! Have a great day!

    Reply
  27. Howdy! I could have sworn I’ve visited your blog before but after going through many of the articles I realized it’s new to me. Nonetheless, I’m certainly delighted I came across it and I’ll be bookmarking it and checking back regularly!

    Reply
  28. Having read this I thought it was extremely enlightening. I appreciate you finding the time and effort to put this information together. I once again find myself personally spending a lot of time both reading and leaving comments. But so what, it was still worth it!

    Reply
  29. Hi, I do think your blog may be having web browser compatibility issues. When I take a look at your web site in Safari, it looks fine however when opening in I.E., it has some overlapping issues. I simply wanted to give you a quick heads up! Besides that, excellent site.

    Reply
  30. I blog often and I seriously thank you for your information. This great article has truly peaked my interest. I will take a note of your website and keep checking for new information about once a week. I subscribed to your Feed as well.

    Reply
  31. Greetings, I think your site could be having browser compatibility problems. Whenever I take a look at your site in Safari, it looks fine however, if opening in I.E., it’s got some overlapping issues. I simply wanted to provide you with a quick heads up! Apart from that, fantastic blog.

    Reply
  32. Can I simply just say what a relief to find somebody who really understands what they are talking about on the net. You actually understand how to bring an issue to light and make it important. A lot more people have to look at this and understand this side of the story. It’s surprising you’re not more popular given that you surely have the gift.

    Reply
  33. Hi, I do think this is a great web site. I stumbledupon it 😉 I may revisit once again since I book marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

    Reply
  34. May I just say what a comfort to uncover someone that genuinely understands what they are talking about on the net. You actually realize how to bring a problem to light and make it important. More and more people have to look at this and understand this side of the story. It’s surprising you’re not more popular given that you most certainly possess the gift.

    Reply
  35. You are so awesome! I do not believe I’ve truly read something like that before. So wonderful to find another person with original thoughts on this subject. Really.. thanks for starting this up. This website is one thing that is required on the web, someone with some originality.

    Reply
  36. Hi, I do believe this is a great website. I stumbledupon it 😉 I am going to revisit yet again since I saved as a favorite it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

    Reply
  37. Aw, this became an exceptionally nice post. In idea I have to set up writing like this additionally – taking time and actual effort to make a good article… but so what can I say… I procrastinate alot and also by no means manage to go accomplished.

    Reply
  38. You’re so cool! I don’t suppose I have read through anything like this before. So wonderful to find another person with original thoughts on this issue. Seriously.. many thanks for starting this up. This site is one thing that is needed on the internet, someone with a bit of originality.

    Reply
  39. Your blog is a constant source of inspiration for me. Your passion for your subject matter shines through in every post, and it’s clear that you genuinely care about making a positive impact on your readers.HABANERO88

    Reply
  40. The very next time I read a blog, Hopefully it won’t fail me as much as this particular one. After all, I know it was my choice to read through, but I actually believed you would have something interesting to talk about. All I hear is a bunch of complaining about something that you could possibly fix if you weren’t too busy searching for attention.

    Reply
  41. hello there and thanks to your information – I’ve certainly picked up anything new from right here. I did then again experience a few technical issues the usage of this web site, since I experienced to reload the web site lots of occasions previous to I could get it to load properly. I were brooding about if your hosting is OK? No longer that I’m complaining, but sluggish loading cases occasions will very frequently impact your placement in google and can damage your high quality score if ads and with Adwords. Well I am adding this RSS to my e-mail and can glance out for much extra of your respective fascinating content. Ensure that you update this again soon..

    Reply
  42. Thanks for this post. I definitely agree with what you are saying. I have been talking about this subject a lot lately with my brother so hopefully this will get him to see my point of view. Fingers crossed!

    Reply
  43. I blog often and I genuinely appreciate your content. This article has really peaked my interest. I will book mark your site and keep checking for new details about once per week. I subscribed to your Feed as well.

    Reply
  44. I have to thank you for the efforts you’ve put in penning this site. I am hoping to check out the same high-grade blog posts from you later on as well. In fact, your creative writing abilities has inspired me to get my own blog now 😉

    Reply
  45. Greetings, I do believe your web site might be having browser compatibility problems. When I look at your blog in Safari, it looks fine however, if opening in Internet Explorer, it’s got some overlapping issues. I merely wanted to give you a quick heads up! Apart from that, fantastic website!

    Reply
  46. I really love your site.. Great colors & theme. Did you build this site yourself? Please reply back as I’m wanting to create my very own website and would like to find out where you got this from or exactly what the theme is called. Thanks.

    Reply
  47. The very next time I read a blog, I hope that it won’t fail me as much as this one. I mean, I know it was my choice to read through, nonetheless I actually believed you would probably have something helpful to say. All I hear is a bunch of complaining about something you could possibly fix if you were not too busy looking for attention.

    Reply
  48. An outstanding share! I’ve just forwarded this onto a co-worker who had been conducting a little homework on this. And he actually ordered me breakfast simply because I discovered it for him… lol. So let me reword this…. Thanks for the meal!! But yeah, thanks for spending some time to talk about this issue here on your internet site.

    Reply
  49. I’m more than happy to discover this page. I need to to thank you for your time for this particularly wonderful read!! I definitely appreciated every bit of it and I have you saved as a favorite to see new stuff in your site.

    Reply
  50. Having read this I believed it was extremely informative. I appreciate you finding the time and energy to put this content together. I once again find myself personally spending way too much time both reading and posting comments. But so what, it was still worth it.

    Reply
  51. Thanks I have just been looking for information about this subject for a long time and yours is the best Ive discovered till now However what in regards to the bottom line Are you certain in regards to the supplyHABANERO88

    Reply
  52. I truly love your blog.. Excellent colors & theme. Did you develop this amazing site yourself? Please reply back as I’m looking to create my own site and would like to learn where you got this from or what the theme is called. Thanks.

    Reply
  53. When I originally left a comment I appear to have clicked the -Notify me when new comments are added- checkbox and from now on each time a comment is added I recieve 4 emails with the exact same comment. There has to be a means you can remove me from that service? Thank you.

    Reply
  54. Howdy! I could have sworn I’ve visited this web site before but after browsing through many of the posts I realized it’s new to me. Nonetheless, I’m certainly pleased I stumbled upon it and I’ll be book-marking it and checking back often.

    Reply
  55. I seriously love your blog.. Pleasant colors & theme. Did you make this site yourself? Please reply back as I’m hoping to create my own blog and would like to find out where you got this from or what the theme is named. Thank you!

    Reply
  56. I seriously love your website.. Great colors & theme. Did you build this amazing site yourself? Please reply back as I’m attempting to create my own website and would love to learn where you got this from or exactly what the theme is called. Thanks!

    Reply
  57. I’m amazed, I must say. Seldom do I encounter a blog that’s equally educative and amusing, and let me tell you, you have hit the nail on the head. The issue is an issue that too few folks are speaking intelligently about. Now i’m very happy I stumbled across this in my search for something regarding this.

    Reply
  58. Hi, I do think this is an excellent blog. I stumbledupon it 😉 I will revisit once again since i have book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to help other people.

    Reply
  59. A fascinating discussion is definitely worth comment. I do think that you need to write more about this issue, it may not be a taboo matter but usually people do not speak about such subjects. To the next! Many thanks.

    Reply
  60. Or if you would prefer: Total Transfers There is no physical BTC token so you can think of bitcoin as digital money. Bitcoin transactions are fully transparent and can’t be censored. You can send money to anyone in the world with ease. It’s a financial system backed by thousands of computers, known as ‘nodes’, around the world, instead of a single central bank or government, i.e. hence the term ‘decentralization’. The technology is not without risks. Facebook plans to issue its own cryptocurrency called Diem intended to make digital payments easier. Unlike Bitcoin, Diem would be fully backed by reserves of U.S. dollars or other major currencies, ensuring stable value. But, as with its other ostensibly high-minded initiatives, Facebook can hardly be trusted to put the public’s welfare above its own. The prospect of multinational corporations one day issuing their own unbacked cryptocurrencies worldwide is deeply disquieting. Such currencies won’t threaten the U.S. dollar, but could wipe out the currencies of smaller and less developed countries.
    https://shoplook.io/profile/plugoltiver1976
    A company called Blockchain (not to be confused with the bitcoin blockchain) offers a free bitcoin wallet you can download, or you can get one from Coinapult, BitGo, BitPay, or any number of wallet providers. Not all wallet providers allow you to buy bitcoins on their site; there are wallets, exchanges, and some businesses that are both. (Coinbase CEO Brian Armstrong examines this confusion here.) Bitcoin is the first crypto-currency. It was introduced in 2009 by an unknown person named Satoshi Nakamoto in the famous whitepaper, “Bitcoin: A Peer-to-Peer Electronic Cash System.” Bitcoin faucets are platforms that offer a small amount of bitcoins after completing a quiz or a task. The best platforms to earn crypto rewards via faucets are Coinbase and Binance, as these two platforms have a great selection of quizzes to take. However, you are likely to earn different cryptocurrencies, which you can sell after for Bitcoin.

    Reply
  61. When I originally commented I appear to have clicked the -Notify me when new comments are added- checkbox and now each time a comment is added I receive four emails with the exact same comment. There has to be a way you are able to remove me from that service? Thank you.

    Reply
  62. Hello! I just would like to give you a huge thumbs up for your excellent info you have here on this post. I will be returning to your website for more soon.

    Reply
  63. Howdy! This post could not be written any better! Going through this article reminds me of my previous roommate! He always kept preaching about this. I will send this article to him. Fairly certain he will have a great read. Thank you for sharing!

    Reply
  64. Hello there! This blog post couldn’t be written much better! Reading through this article reminds me of my previous roommate! He continually kept preaching about this. I am going to forward this article to him. Fairly certain he’ll have a good read. Thank you for sharing!

    Reply
  65. Oh my goodness! Awesome article dude! Many thanks, However I am encountering troubles with your RSS. I don’t understand why I am unable to join it. Is there anyone else having identical RSS problems? Anyone who knows the solution can you kindly respond? Thanx.

    Reply
  66. An outstanding share! I have just forwarded this onto a colleague who had been conducting a little research on this. And he in fact bought me dinner because I stumbled upon it for him… lol. So allow me to reword this…. Thanks for the meal!! But yeah, thanx for spending some time to discuss this topic here on your internet site.

    Reply
  67. Aw, this was an incredibly good post. Spending some time and actual effort to create a very good article… but what can I say… I procrastinate a lot and never seem to get nearly anything done.

    Reply
  68. You’re so cool! I don’t believe I’ve read through a single thing like this before. So great to discover somebody with some unique thoughts on this subject matter. Really.. many thanks for starting this up. This web site is something that is needed on the web, someone with some originality.

    Reply
  69. I blog quite often and I seriously appreciate your content. This article has really peaked my interest. I will book mark your website and keep checking for new details about once a week. I subscribed to your RSS feed too.

    Reply
  70. Can I simply just say what a relief to find a person that truly understands what they are talking about over the internet. You actually understand how to bring an issue to light and make it important. More and more people should check this out and understand this side of your story. I was surprised you are not more popular since you certainly possess the gift.

    Reply
  71. Oh my goodness! Impressive article dude! Thanks, However I am experiencing difficulties with your RSS. I don’t understand the reason why I can’t join it. Is there anybody else having identical RSS problems? Anybody who knows the answer can you kindly respond? Thanx.

    Reply
  72. Good day! I could have sworn I’ve been to your blog before but after browsing through some of the posts I realized it’s new to me. Anyways, I’m definitely delighted I discovered it and I’ll be book-marking it and checking back regularly!

    Reply
  73. Aw, this was an incredibly nice post. Taking the time and actual effort to generate a very good article… but what can I say… I hesitate a lot and don’t manage to get nearly anything done.

    Reply
  74. I’m amazed, I must say. Rarely do I encounter a blog that’s equally educative and entertaining, and without a doubt, you’ve hit the nail on the head. The issue is something which too few people are speaking intelligently about. Now i’m very happy that I came across this during my search for something relating to this.

    Reply
  75. Having read this I believed it was rather enlightening. I appreciate you spending some time and effort to put this article together. I once again find myself spending a significant amount of time both reading and leaving comments. But so what, it was still worth it!

    Reply
  76. Hi there! I could have sworn I’ve been to this web site before but after looking at many of the articles I realized it’s new to me. Nonetheless, I’m definitely delighted I found it and I’ll be book-marking it and checking back regularly.

    Reply
  77. May I simply say what a comfort to uncover a person that truly knows what they are discussing on the internet. You definitely realize how to bring a problem to light and make it important. More and more people really need to check this out and understand this side of your story. I was surprised you’re not more popular given that you surely possess the gift.

    Reply
  78. Oh my goodness! Awesome article dude! Thank you, However I am encountering difficulties with your RSS. I don’t know why I cannot subscribe to it. Is there anybody else getting similar RSS problems? Anyone that knows the solution can you kindly respond? Thanks.

    Reply
  79. May I just say what a relief to find a person that genuinely understands what they’re discussing on the net. You actually realize how to bring a problem to light and make it important. More and more people ought to check this out and understand this side of your story. I was surprised that you are not more popular given that you most certainly possess the gift.

    Reply

Leave a Comment