LinkDog API
Developers can shorten links with a REST API.
Shorten Link (Simple)
Call https://lnk.dog/api/v1/shorten as a HTTP POST with Content-Type application/json.
Example:
POST https://lnk.dog/api/v1/shorten
{
"longUrl": "https://some.longdomain.com/some/link"
}
Example Response:
{
"success": true,
"errorMessage": "",
"id": "https://lnk.dog/fM8sLnCg",
"shortUrlCode": "fM8sLnCg",
"expiresAtUtc": null,
"maxUseCount": null
}
Shorten Link And Expire In 1 Hour
Call https://lnk.dog/api/v1/shorten as a HTTP POST with Content-Type application/json.
Example:
POST https://lnk.dog/api/v1/shorten
{
"longUrl": "https://some.longdomain.com/some/link",
"expireInSeconds": 3600
}
Shorten Link And Expire After 5 Uses
Call https://lnk.dog/api/v1/shorten as a HTTP POST with Content-Type application/json.
Example:
POST https://lnk.dog/api/v1/shorten
{
"longUrl": "https://some.longdomain.com/some/link",
"maxUseCount": 5
}