JSON API#

/api/info/{stem}

Method: GET

Example output:

{
    "stem": "kvuqM",
    "url": "https://github.com/"
    "shortened_url": "http://shorty.local/kvuqM",
    "added_time": 1692917681, // Unix timestamp
    "hits": 2,
}
/api/shorten

Method: POST

Example payload:

{
    "url": "https://github.com/",
    "force": false
}

Example output:

{
    "stem": "kvuqM",
    "shortened_url": "http://shorty.local/kvuqM",
}