{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/picsee-io/json-schema/picsee-io-link-analytics-schema.json",
  "title": "LinkAnalytics",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/picsee-io-openapi.yml#/components/schemas/LinkAnalytics",
  "type": "object",
  "required": [
    "id",
    "encodeId",
    "url",
    "ssl",
    "domain",
    "totalClicks",
    "uniqueClicks",
    "created"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique system identifier for this short link"
    },
    "encodeId": {
      "type": "string",
      "description": "The slug of the short link"
    },
    "url": {
      "type": "string",
      "format": "uri",
      "description": "Destination URL (目標網址)"
    },
    "ssl": {
      "type": "boolean",
      "description": "Whether HTTPS is enabled"
    },
    "domain": {
      "type": "string",
      "description": "Domain of this short link"
    },
    "totalClicks": {
      "type": [
        "number",
        "null"
      ],
      "description": "Total clicks, which will return null when the free plan limit is reached."
    },
    "uniqueClicks": {
      "type": [
        "number",
        "null"
      ],
      "description": "Unique clicks, which will return null when the free plan limit is reached."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Create time (UTC+8)."
    },
    "groupId": {
      "type": "number",
      "description": "PicSee group ID of the link owner."
    },
    "isStar": {
      "type": "boolean",
      "description": "Whether the link is marked as a favorite."
    },
    "isAPI": {
      "type": "boolean",
      "description": "Whether the link was created via the API."
    }
  }
}