Unshort any URL
Hello,
The unshort.me API requests reached at 73.4 req/sec, which is over 6 million requests per day. In order to handle this many requests, I transfered the server to bigger instance.
But I am no longer be able to afford to pay for the server that handles this many API requets.
I will have to shut the API service down soon
Thanks
Unshort.me
URL unshorten API service The unshort.me API requests reached at 73.4 req/sec, which is over 6 million requests per day. In order to handle this many requests, I transfered the server to bigger instance.
But I am no longer be able to afford to pay for the server that handles this many API requets.
I will have to shut the API service down soon
Thanks
Unshort.me
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.
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\/"
})
If you are happy with the service, please donate!
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.
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\/"
})
If you are happy with the service, please donate!
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