Unshort any URL
Please donate.
It is a free service for you but the server still costs me money.
URL unshorten API service
Simple API:
Unshort.me has a simple API that returns XML, JSON or JSONP response to requests.
HTTP Referrer:
You must set a valid HTTP referrer or unique User-Agent with each request. If you are using it on server-side, you should set the User-Agent header using your domain name or your app name. If you don't set the HTTP referrer, You might get HTTP 403 Forbidden response.
Rate Limit:
The API allows clients to make limited number of requests in a given day. The daily rate limit is 10,000 requests per day. If you need more rate limit, please contact us.
API Example:
Here is simple example of how to use the API:
URL: http://api.unshort.me/?r={requested url}&t{type:xml or json}
Example: http://api.unshort.me/?r=http://tinyurl.com/cn3m36&t=xml
The above request will return:
<result>
<requestedURL>http://tinyurl.com/cn3m36</requestedURL>
<success>true</success>
<resolvedURL>http://www.flickr.com/photos/ladigue_99/304431482/</resolvedURL>
</result>
On failure, it will return:
<result>
<requestedURL>{requested URL}</requestedURL>
<success>false</success>
<resolvedURL></resolvedURL>
</result>
Example: http://api.unshort.me/?r=http://tinyurl.com/cn3m36&t=json
The above request will return:
{
"requestedURL":"http:\/\/tinyurl.com\/cn3m36",
"success":"true",
"resolvedURL":"http:\/\/www.flickr.com\/photos\/ladigue_99\/304431482\/"
}
On failure, it will return:
{
"requestedURL":"requested URL",
"success":"false",
"resolvedURL":""
}
Example:
http://api.unshort.me/?r=h ttp://tinyurl.com/cn3m36&t=jsonp&callback=fun
The above request will return:
fun ({
"requestedURL":"http:\/\/tinyurl.com\/cn3m36",
"success":"true",
"resolvedURL":"http:\/\/www.flickr.com\/photos\/ladigue_99\/304431482\/"
})
Terms of Service:
The API is provided under the Unshort.me Terms of Service. We reserve the right to disable access to the API at any time; please use the API respectfully.
Rate Limit:
The API service imposes rate limits for each IP address. We may adjust the reate limits over time to maintain the quality of the service. Please don't abuse the API service.
HTTP Referrer:
You must set a valid HTTP referrer or unique User-Agent with each request. If you are using it on server-side, you should set the User-Agent header using your domain name or your app name. If you don't set the HTTP referrer, You might get HTTP 403 Forbidden response.
Rate Limit:
The API allows clients to make limited number of requests in a given day. The daily rate limit is 10,000 requests per day. If you need more rate limit, please contact us.
API Example:
Here is simple example of how to use the API:
URL: http://api.unshort.me/?r={requested url}&t{type:xml or json}
XML Example:
In order to use XML, just set the "t", which stands for type, to "xml"Example: http://api.unshort.me/?r=http://tinyurl.com/cn3m36&t=xml
The above request will return:
<result>
<requestedURL>http://tinyurl.com/cn3m36</requestedURL>
<success>true</success>
<resolvedURL>http://www.flickr.com/photos/ladigue_99/304431482/</resolvedURL>
</result>
On failure, it will return:
<result>
<requestedURL>{requested URL}</requestedURL>
<success>false</success>
<resolvedURL></resolvedURL>
</result>
JSON Example:
In order to use JSON, just set the "t", which stands for type, to "json"Example: http://api.unshort.me/?r=http://tinyurl.com/cn3m36&t=json
The above request will return:
{
"requestedURL":"http:\/\/tinyurl.com\/cn3m36",
"success":"true",
"resolvedURL":"http:\/\/www.flickr.com\/photos\/ladigue_99\/304431482\/"
}
On failure, it will return:
{
"requestedURL":"requested URL",
"success":"false",
"resolvedURL":""
}
JSONP Example:
In order to use JSONP, just set the "t" to "jsonp" and define your callback function using "callback" parameter.Example:
http://api.unshort.me/?r=h ttp://tinyurl.com/cn3m36&t=jsonp&callback=fun
The above request will return:
fun ({
"requestedURL":"http:\/\/tinyurl.com\/cn3m36",
"success":"true",
"resolvedURL":"http:\/\/www.flickr.com\/photos\/ladigue_99\/304431482\/"
})
Terms of Service:
The API is provided under the Unshort.me Terms of Service. We reserve the right to disable access to the API at any time; please use the API respectfully.
Rate Limit:
The API service imposes rate limits for each IP address. We may adjust the reate limits over time to maintain the quality of the service. Please don't abuse the API service.
Home | About | Contact Us | API
© unshort.me