Is there a way to get the shortened t.co url from the API? I need to shorted a url before posting tweet via API. How should I do this? Is this supported by Twitter API or do I have to use some other url shortener like bit.ly?
To shorten a link, simply click the Shorten URLs button when posting to Twitter through the Twitter tool or Social Stream.
Using a URL Shortener (Like Bitly) With Twitter When you use the Bitly website, for example, you enter a URL and click the Shorten button to receive a shortened link that is fewer than 23 characters. You can use that link on Twitter, but the t.co service still counts it as 23 characters.
Twitter has its own link shortener, t.co, that shortens any URL that you post on Twitter. This includes any Twitter link sent in tweets or direct messages. Although Twitter shortens links automatically, there are some special features that you can access using t.co.
You can shorten a URL by using an URL shortener website, which will shrink your URL for free. Popular link shorteners on the internet include Bitly, TinyURL, and Rebrandly. You'll need a premium account on these sites to unlock the full range of link customization options.
It isn't possible to shorten links using t.co through any means other than sending status updates or direct messages via Twitter. From the Twitter support site:
The link service at http://t.co is only used on links posted on Twitter and is not available as a general shortening service.
So, yes, you'll need to use some other shortening service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With