shrt.st

For developers

shrt.st REST API Method returns shortened link as JSON or TXT encoded string.

GET /{version}/{type}/?u={url}&callback={callback}

API definition

HTTP method GET or POST
Parameters
Name Type Required Values
{type} string p, j
{url} string Encoded URL
{callback} string The callback parameter (callback=function) wraps the JSON output text in parentheses and a function name of your choosing.

Examples

Return JSON

http://api.shrt.st/1.0/j/?u=http%3A%2F%2Ftest.shrt.st%2F

{
"creator_uid":"89c3731a1775f55902409541cd5dba20e8471dcd",
"shrt_link":"http:\/\/shrt.st\/a",
"status_code":"200"
}
Return JSONP

http://api.shrt.st/1.0/j/?u=http%3A%2F%2Ftest.shrt.st%2F&callback=kala

kala( {
"creator_uid":"89c3731a1775f55902409541cd5dba20e8471dcd",
"shrt_link":"http:\/\/shrt.st\/a",
"status_code":"200"
} )
Return TXT

http://api.shrt.st/1.0/p/?u=http%3A%2F%2Ftest.shrt.st%2F

http://shrt.st/ezg

← About