To use the TURL API is quite simple. Send a GET request to https://turl.ca/api.php with the parameters
url and optionally
tag. It will return in the body a message similar to
SUCCESS:tag, along with two headers. One header is
X-TURL, which provides the entire URL, and
X-TURL-Tag which returns just the tag. On error, the body will begin with
ERROR: and provide the cause.