API - Requests and responses

Since shorten.li API uses HTTP, it is as easy to use as accessing a simple web page .
So you have to just use the right HTTP method ( GET / POST) , the right place , the right parameters , and then retrieve the response in the body of the response.

As for the response from the API , it is returned in the format specified in the request parameter . This format can be xml or json. txt format is also supported, but only through the links shortening function (/link/shorten).

Important Information

Examples of response

JSON response:

{"status_code":200, "status_txt":"OK", "data":...}
{"status_code":500, "status_txt":"MISSING_ARG_UID", "data":[]}

XML response:

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>

TXT response: