# Clicks of a short link (/en/reference/links/get-link-stats)

OpenAPI operation (components in https://api.tebar.app/v1/openapi.json):

```json
[
  {
    "operationId": "getLinkStats",
    "tags": [
      "Links"
    ],
    "summary": "Clicks of a short link",
    "description": "Clicks per day and the top sources, countries, cities, devices and systems over a period (default: the last 30 days; at most 366). Clicks are kept 12 months.\n\nRequires the read scope.",
    "parameters": [
      {
        "name": "id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid"
        }
      },
      {
        "name": "from",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      {
        "name": "to",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "date-time"
        }
      },
      {
        "$ref": "#/components/parameters/TebarProfile"
      }
    ],
    "responses": {
      "200": {
        "description": "The clicks.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/LinkStats"
            }
          }
        }
      },
      "400": {
        "$ref": "#/components/responses/BadRequest"
      },
      "401": {
        "$ref": "#/components/responses/Unauthorized"
      },
      "403": {
        "$ref": "#/components/responses/Forbidden"
      },
      "404": {
        "$ref": "#/components/responses/NotFound"
      },
      "429": {
        "$ref": "#/components/responses/RateLimited"
      }
    }
  }
]
```