Aller au contenu principal

Developer API - URLR (0.4)

Download OpenAPI specification:Download

API powering the features of URLR.

Authentification

Get an access token

Request Body schema: application/json

Your credentials

username
string

Email

password
string

Password

Responses

Request samples

Content type
application/json
{
  • "username": "string",
  • "password": "string"
}

Response samples

Content type
application/json
{
  • "token": "string"
}

Stats

Get statistics of a link

Authorizations:
bearerAuth
Request Body schema: application/json

Infos to provide to get statistics of a link

code
required
string^[a-zA-Z0-9!-]{3,50}$

The short code of the URL

folder
integer

Folder ID (displayed on dashboard). Required for a link associated with a folder with a domain.

from
string

Get stats from this date

to
string

Get stats until this date

includeBots
boolean
Default: false

Whether include bots or not in statistics

Responses

Request samples

Content type
application/json
{
  • "code": "xxxxx",
  • "folder": 0,
  • "from": "dd/mm/yyyy",
  • "to": "dd/mm/yyyy",
  • "includeBots": false
}

Response samples

Content type
application/json
{
  • "code": 200,
  • "clicks": 32,
  • "uniqueClicks": 51,
  • "linkId": "009f739c-6620-43b0-978e-b245e723c57a"
}

Team

Get teams of user

Authorizations:
bearerAuth

Responses

Response samples

Content type
application/json
{
  • "teams": [
    ]
}

Folder

Get folders of team

Authorizations:
bearerAuth
path Parameters
team
required
integer
Example: 123

Responses

Response samples

Content type
application/json
{
  • "folders": [
    ]
}