Is there a way to get the shortened url from the API? I need to shorted a url before posting tweet via API. How should I do this?


The “wrapped” (not necessarily shortened) URL is only generated at tweet time – you can’t know the URL before you issue the tweet but you get the URL in the response of the tweet creation request.


I put this link in the browser:

and respond:

{;errors:[{;message;Sorry, that page does not exist;code:34}]}


Is any way to get shrink URLs to the domain from API ?. In case of domain, we use the “” from Twitter API. what is the way to get the URLs to the domain from API ???


See this:


By posting tweets. URLs are generated when you create tweets. You can’t create the divorced from the process of creating tweets, direct messages, or saving your profile.