{
 "openapi": "3.1.0",
 "info": {
  "title": "URLV Domain Aggregate charts",
  "version": "2026-09",
  "description": "Chart the domain market. Free to every caller. The URL is the stored query. CC BY 4.0.",
  "license": {
   "name": "CC BY 4.0",
   "url": "https://creativecommons.org/licenses/by/4.0/"
  }
 },
 "servers": [
  {
   "url": "https://domainaggregate.com"
  }
 ],
 "paths": {
  "/chart/{series}/{range}/{type}.{format}": {
   "get": {
    "operationId": "chart",
    "summary": "One chart, as SVG, PDF, CSV or JSON. Each file carries a watermark and a stamp.",
    "parameters": [
     {
      "name": "series",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "level",
        "adjusted-level",
        "price",
        "adjusted",
        "price-vs-adjusted",
        "premium",
        "sales",
        "volume",
        "top3",
        "change-1y",
        "change-3y",
        "change-5y",
        "change-10y",
        "biggest",
        "top10-total",
        "com-share",
        "ai-names",
        "monthly-volume",
        "monthly-sales",
        "monthly-average",
        "monthly-high",
        "top10",
        "top10-tlds",
        "venues-volume",
        "venues-sales",
        "tlds-volume",
        "tlds-sales"
       ]
      }
     },
     {
      "name": "range",
      "in": "path",
      "required": true,
      "description": "from-to, for example 2015-2026",
      "schema": {
       "type": "string",
       "pattern": "^\\d{4}-\\d{4}$"
      }
     },
     {
      "name": "type",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "line",
        "bar"
       ]
      }
     },
     {
      "name": "format",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string",
       "enum": [
        "svg",
        "pdf",
        "csv",
        "json"
       ]
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The chart"
     },
     "304": {
      "description": "Not modified"
     },
     "404": {
      "description": "No such chart; the JSON form lists the valid measures"
     }
    }
   }
  },
  "/chart": {
   "get": {
    "operationId": "chartQuery",
    "summary": "Query form. Answers 303 See Other to the canonical chart address.",
    "parameters": [
     {
      "name": "series",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "from",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "to",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "type",
      "in": "query",
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "format",
      "in": "query",
      "schema": {
       "type": "string"
      }
     }
    ],
    "responses": {
     "200": {
      "description": "The chart builder page, when no query is given"
     },
     "303": {
      "description": "See the canonical chart address"
     },
     "404": {
      "description": "No such measure"
     }
    }
   }
  }
 }
}