Get URL stats

Get usage stats for a URL

get
Get URL Stats

https://us-central1-zero-width-shortener.cloudfunctions.net/:short
This endpoint allows you to see stats for a URL that was shortened.
Request
Response
Path Parameters
short
optional
string
Short ID of the URL to get stats for.
Query Parameters
short
optional
string
Short ID of the URL to get stats for.
url
optional
string
Long URL to get stats for.
200: OK
get is the number of times the shortened URL was visited and shorten is the number of times it was shortened. usage contains arrays of UNIX timestamps when the URL was visited or shortened.
{
"get": 123,
"shorten": 123,
"usage": {
"get": [1565561037]
"shorten": [1564561037]
}
}
400: Bad Request
URL was not specified
invalid URL type
invalid short ID type
URL is invalid
{
"error": "You must specify a short ID or a URL"
}
404: Not Found
The URL or short ID couldn't be found.
‚Äč
413: Request Entity Too Large
The URL exceed 500 characters.
{
"error": "URL can not exceed 500 characters"
}