{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/toui-io/json-schema/toui-io-get-api-v1-urls-code-stats-response-schema.json",
  "title": "GetApiV1UrlsCodeStatsResponse",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/toui-io-openapi-generated.yml#/components/schemas/GetApiV1UrlsCodeStatsResponse",
  "type": "object",
  "properties": {
    "short_code": {
      "type": "string",
      "description": "Short code."
    },
    "target_url": {
      "type": "string",
      "description": "Original long URL."
    },
    "total_clicks": {
      "type": "integer",
      "description": "Total clicks over the requested period."
    },
    "daily": {
      "type": "array",
      "description": "Array of daily stats objects with date, clicks, unique_visitors."
    },
    "countries": {
      "type": "array",
      "description": "Array of country breakdown objects with country and clicks."
    },
    "cities": {
      "type": "array",
      "description": "Array of city breakdown objects with country, city, and clicks."
    },
    "visible_days": {
      "type": "integer",
      "description": "Plan's visible period in days."
    },
    "clamped": {
      "type": "boolean",
      "description": "True if requested days exceed visible period."
    },
    "visible_from": {
      "type": "string",
      "description": "First visible date when clamped."
    },
    "earlier_clicks": {
      "type": "integer",
      "description": "Clicks before visible_from when clamped."
    }
  }
}