This is a description of the API commands available for the Url Shortening service.
POST https://api.teknik.io/v1/Shorten
Name | Type | Default | Description |
---|---|---|---|
url
|
string
|
NULL | Required The url you want to shorten. This url must be an absolute url. |
doNotTrack
|
bool
|
false | If you do not want the api request to be tracked as defined in the privacy policy. |
{"result":{"shortUrl":"shortened url", "originalUrl":"original url"}}
Name | Type | Description |
---|---|---|
shortUrl
|
string
|
The shortened url. |
originalUrl
|
string
|
The original url that was shortened. |
$ curl --data "url=http://www.example.com/long/url/is/long" https://api.teknik.io/v1/Shorten
This will shorten the supplied url.