Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to shorten url from Twitter API?

Tags:

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?

like image 731
Dmitri Avatar asked Apr 23 '11 17:04

Dmitri


People also ask

How do I shorten a URL for Twitter?

To shorten a link, simply click the Shorten URLs button when posting to Twitter through the Twitter tool or Social Stream.

Does Twitter allow Bitly links?

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.

Can you shorten a link in a tweet?

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.

How do I shorten an existing URL?

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.


1 Answers

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.

like image 74
arcain Avatar answered Sep 28 '22 22:09

arcain