{
 "openapi": "3.1.0",
 "info": {
  "title": "Deep Almanac: Australian reference data",
  "version": "1.0.0",
  "summary": "Index of the OpenAPI documents published by Deep Almanac, one per dataset.",
  "description": "Deep Almanac publishes one OpenAPI 3.1 document per dataset, next to the dataset's JSON files. Read x-datasets (or each tag's externalDocs) for the URL of each dataset's document, and its index.json for the dataset's files and timestamps. Every dataset file is static JSON; no authentication, no rate limits beyond ordinary CDN behaviour, CORS open. The one path described here, /v1/comment, is the exception and the only write: it takes a comment from a reader or an agent, and a GET of it with no parameters returns its own instructions. This is reference data, not financial or other professional advice.\n\n- Deep Almanac: Victorian government school performance: https://deepalmanac.com/au/education/vic-schools/v1/openapi.json\n- Deep Almanac: Australian residential electricity plans: https://deepalmanac.com/au/energy/electricity/v1/openapi.json\n- Australian business car loan rates: https://deepalmanac.com/au/finance/business-car-loans/v1/openapi.json\n- Australian car loan rates: https://deepalmanac.com/au/finance/car-loans/v1/openapi.json\n- Deep Almanac: Australian credit cards: https://deepalmanac.com/au/finance/credit-cards/v1/openapi.json\n- Australian home loan rates: https://deepalmanac.com/au/finance/home-loans/v1/openapi.json\n- Deep Almanac: Australian savings account rates: https://deepalmanac.com/au/finance/savings-accounts/v1/openapi.json\n- Deep Almanac: Australian online stockbrokers: https://deepalmanac.com/au/finance/stockbrokers/v1/openapi.json\n- Deep Almanac: Australian term deposit rates: https://deepalmanac.com/au/finance/term-deposits/v1/openapi.json\n- Deep Almanac: Australian building insurance: https://deepalmanac.com/au/insurance/building/v1/openapi.json\n- Deep Almanac: Australian private health insurance policies: https://deepalmanac.com/au/insurance/health/v1/openapi.json\n- Deep Almanac: Australian travel insurance: https://deepalmanac.com/au/insurance/travel/v1/openapi.json\n- Deep Almanac: Australian real estate agents by suburb: https://deepalmanac.com/au/property/real-estate-agents/v1/openapi.json\n- Deep Almanac: Australian mobile phone plans (SIM only): https://deepalmanac.com/au/telco/mobile-plans/v1/openapi.json",
  "termsOfService": "https://deepalmanac.com/terms",
  "contact": {
   "name": "Deep Almanac",
   "url": "https://deepalmanac.com"
  },
  "license": {
   "name": "Deep Almanac's own work CC BY 4.0; source data under its own terms, listed in licences in each index.json",
   "url": "https://deepalmanac.com/terms#data-licences"
  }
 },
 "servers": [
  {
   "url": "https://deepalmanac.com"
  }
 ],
 "security": [],
 "tags": [
  {
   "name": "vic-schools",
   "description": "Performance Summary measures for every Victorian government secondary school, keyed on school number, with the Department of Education's own Similar Schools comparison.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Victorian government school performance",
    "url": "https://deepalmanac.com/au/education/vic-schools/v1/openapi.json"
   }
  },
  {
   "name": "electricity",
   "description": "Every generally available residential electricity plan in Australia's National Electricity Market, with an estimated yearly bill per network at three usage levels, ranked.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian residential electricity plans",
    "url": "https://deepalmanac.com/au/energy/electricity/v1/openapi.json"
   }
  },
  {
   "name": "business-car-loans",
   "description": "Business vehicle finance rates from each Australian lender's own published product data, ranked by advertised rate per vehicle, rate type and loan amount.",
   "externalDocs": {
    "description": "OpenAPI document for Australian business car loan rates",
    "url": "https://deepalmanac.com/au/finance/business-car-loans/v1/openapi.json"
   }
  },
  {
   "name": "car-loans",
   "description": "Car loan rates from each Australian bank's own published product data and terms, ranked by comparison rate per vehicle, rate type and loan amount.",
   "externalDocs": {
    "description": "OpenAPI document for Australian car loan rates",
    "url": "https://deepalmanac.com/au/finance/car-loans/v1/openapi.json"
   }
  },
  {
   "name": "home-loans",
   "description": "Home loan rates from each Australian bank's own published product data, refreshed daily, with some terms that data leaves out read from the bank's own pages; ranked per purpose, repayment type, LVR, loan amount and rate type.",
   "externalDocs": {
    "description": "OpenAPI document for Australian home loan rates",
    "url": "https://deepalmanac.com/au/finance/home-loans/v1/openapi.json"
   }
  },
  {
   "name": "stockbrokers",
   "description": "Brokerage, CHESS sponsorship or custody, and who executes the orders, for the online brokers Australians use to buy ASX shares, each joined to its ASIC licence.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian online stockbrokers",
    "url": "https://deepalmanac.com/au/finance/stockbrokers/v1/openapi.json"
   }
  },
  {
   "name": "term-deposits",
   "description": "Every Australian bank's term deposit rates, normalised from each bank's own published product data and refreshed daily, with the terms that data leaves out read from the bank's own terms and pages.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian term deposit rates",
    "url": "https://deepalmanac.com/au/finance/term-deposits/v1/openapi.json"
   }
  },
  {
   "name": "building-insurance",
   "description": "What each Australian building insurance policy covers (how the building is valued, flood, accidental damage, a building left empty) for homes, strata, commercial and industrial property, with the insurer that issues it, joined to APRA's and ASIC's registers.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian building insurance",
    "url": "https://deepalmanac.com/au/insurance/building/v1/openapi.json"
   }
  },
  {
   "name": "health-insurance",
   "description": "Every open hospital and combined policy of every Australian health insurer, with each fund's cheapest ranked per state, household and tier, refreshed daily from the regulator's monthly data release.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian private health insurance policies",
    "url": "https://deepalmanac.com/au/insurance/health/v1/openapi.json"
   }
  },
  {
   "name": "travel-insurance",
   "description": "What Australians pay for travel insurance and how much comes back as claims, by quarter and by state, with the register of companies authorised to underwrite it.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian travel insurance",
    "url": "https://deepalmanac.com/au/insurance/travel/v1/openapi.json"
   }
  },
  {
   "name": "real-estate-agents",
   "description": "The real estate agencies and agents with the most residential sales in a suburb over twelve months, from each agency's own sold listings.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian real estate agents by suburb",
    "url": "https://deepalmanac.com/au/property/real-estate-agents/v1/openapi.json"
   }
  },
  {
   "name": "mobile-plans",
   "description": "SIM-only mobile plans from Australian providers, priced per month and ranked by data need.",
   "externalDocs": {
    "description": "OpenAPI document for Deep Almanac: Australian mobile phone plans (SIM only)",
    "url": "https://deepalmanac.com/au/telco/mobile-plans/v1/openapi.json"
   }
  },
  {
   "name": "comments",
   "description": "Comments from readers and agents about anything published here."
  }
 ],
 "paths": {
  "/v1/comment": {
   "get": {
    "tags": [
     "comments"
    ],
    "summary": "Leave a comment, or read this endpoint's instructions",
    "description": "With a text parameter, this leaves a comment: one request, no authentication, no body and no headers required, which is the whole protocol for a client that can only fetch a URL. With no parameters at all it returns its own instructions as JSON.",
    "operationId": "leaveCommentByUrl",
    "parameters": [
     {
      "name": "text",
      "in": "query",
      "required": true,
      "description": "The comment. Required. Aliases: comment, message, body, feedback, c.",
      "schema": {
       "type": "string",
       "maxLength": 4000
      }
     },
     {
      "name": "page",
      "in": "query",
      "required": false,
      "description": "The page or JSON file it is about. Defaults to the Referer header.",
      "schema": {
       "type": "string",
       "maxLength": 2048
      }
     },
     {
      "name": "about",
      "in": "query",
      "required": false,
      "description": "What it concerns, in a few words: a dataset, a bank, a school, a field name.",
      "schema": {
       "type": "string",
       "maxLength": 200
      }
     },
     {
      "name": "kind",
      "in": "query",
      "required": false,
      "description": "data-error, missing-data, dataset-request, bug, praise or other. Free-form.",
      "schema": {
       "type": "string",
       "maxLength": 40
      }
     }
    ],
    "responses": {
     "201": {
      "description": "The comment was stored. A person reads it, and replies appear at the chat address in the receipt. The same comment sent again within 10 minutes (same text, page and about, from the same address) is not stored twice: it returns the first one's receipt with duplicate: true.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "const": true
          },
          "id": {
           "type": "string",
           "format": "uuid",
           "description": "This comment's reference."
          },
          "received_at": {
           "type": "string",
           "format": "date-time"
          },
          "stored_characters": {
           "type": "integer"
          },
          "status": {
           "const": "received"
          },
          "duplicate": {
           "const": true,
           "description": "Present only when this was a repeat of a comment already taken."
          },
          "chat": {
           "type": "string",
           "format": "uri",
           "description": "This comment's private chat page, /chat/<key>. Replies appear there and nowhere else, so keep it and fetch it again later; send text to it to add to the conversation. Anyone holding it can read the chat."
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "No comment text was found in the query string or the body.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "413": {
      "description": "The comment is longer than 4000 characters, or the body is over 16384 bytes.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "429": {
      "description": "Over a rate limit. Retry-After says when to come back and the error names the limit.",
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        },
        "description": "Seconds to wait."
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "503": {
      "description": "The store is unavailable and nothing was saved. Try again later.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "200": {
      "description": "Called with no parameters: the endpoint's own instructions.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "comments"
    ],
    "summary": "Leave a comment",
    "description": "The same fields as a JSON object, as a form body (which is what the comment box on every page posts), or as any other body, which is taken as the comment text. Query parameters are merged in, so the fields can go in the URL and the comment in the body.",
    "operationId": "leaveComment",
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "text"
        ],
        "properties": {
         "text": {
          "type": "string",
          "maxLength": 4000,
          "description": "The comment. Required. Aliases: comment, message, body, feedback, c."
         },
         "page": {
          "type": "string",
          "maxLength": 2048,
          "description": "The page or JSON file it is about. Defaults to the Referer header."
         },
         "about": {
          "type": "string",
          "maxLength": 200,
          "description": "What it concerns, in a few words: a dataset, a bank, a school, a field name."
         },
         "kind": {
          "type": "string",
          "maxLength": 40,
          "description": "data-error, missing-data, dataset-request, bug, praise or other. Free-form."
         }
        }
       }
      },
      "application/x-www-form-urlencoded": {
       "schema": {
        "type": "object",
        "required": [
         "text"
        ],
        "properties": {
         "text": {
          "type": "string",
          "maxLength": 4000,
          "description": "The comment. Required. Aliases: comment, message, body, feedback, c."
         },
         "page": {
          "type": "string",
          "maxLength": 2048,
          "description": "The page or JSON file it is about. Defaults to the Referer header."
         },
         "about": {
          "type": "string",
          "maxLength": 200,
          "description": "What it concerns, in a few words: a dataset, a bank, a school, a field name."
         },
         "kind": {
          "type": "string",
          "maxLength": 40,
          "description": "data-error, missing-data, dataset-request, bug, praise or other. Free-form."
         }
        }
       }
      },
      "text/plain": {
       "schema": {
        "type": "string",
        "maxLength": 4000,
        "description": "The whole body is the comment."
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The comment was stored. A person reads it, and replies appear at the chat address in the receipt. The same comment sent again within 10 minutes (same text, page and about, from the same address) is not stored twice: it returns the first one's receipt with duplicate: true.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "const": true
          },
          "id": {
           "type": "string",
           "format": "uuid",
           "description": "This comment's reference."
          },
          "received_at": {
           "type": "string",
           "format": "date-time"
          },
          "stored_characters": {
           "type": "integer"
          },
          "status": {
           "const": "received"
          },
          "duplicate": {
           "const": true,
           "description": "Present only when this was a repeat of a comment already taken."
          },
          "chat": {
           "type": "string",
           "format": "uri",
           "description": "This comment's private chat page, /chat/<key>. Replies appear there and nowhere else, so keep it and fetch it again later; send text to it to add to the conversation. Anyone holding it can read the chat."
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "No comment text was found in the query string or the body.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "413": {
      "description": "The comment is longer than 4000 characters, or the body is over 16384 bytes.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "429": {
      "description": "Over a rate limit. Retry-After says when to come back and the error names the limit.",
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        },
        "description": "Seconds to wait."
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "503": {
      "description": "The store is unavailable and nothing was saved. Try again later.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     }
    }
   }
  },
  "/chat/{key}": {
   "get": {
    "tags": [
     "comments"
    ],
    "summary": "Read a comment's chat, or add a message to it",
    "description": "With no parameters, returns the chat: the comment, our replies and anything added since, oldest first. With a text parameter, adds a message, exactly as the comment endpoint takes one. The address is the only credential: anyone holding it can read the chat. Nothing is sent to the sender when a reply is posted, so fetch this again later to check.",
    "operationId": "readOrAddToChat",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "The key from the chat address in a comment's receipt: 43 characters of base64url, 256 bits.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{43}$"
      }
     },
     {
      "name": "text",
      "in": "query",
      "required": false,
      "description": "A message to add. Omit it to read the chat.",
      "schema": {
       "type": "string",
       "maxLength": 4000
      }
     }
    ],
    "responses": {
     "201": {
      "description": "The comment was stored. A person reads it, and replies appear at the chat address in the receipt. The same comment sent again within 10 minutes (same text, page and about, from the same address) is not stored twice: it returns the first one's receipt with duplicate: true.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "const": true
          },
          "id": {
           "type": "string",
           "format": "uuid",
           "description": "This comment's reference."
          },
          "received_at": {
           "type": "string",
           "format": "date-time"
          },
          "stored_characters": {
           "type": "integer"
          },
          "status": {
           "const": "received"
          },
          "duplicate": {
           "const": true,
           "description": "Present only when this was a repeat of a comment already taken."
          },
          "chat": {
           "type": "string",
           "format": "uri",
           "description": "This comment's private chat page, /chat/<key>. Replies appear there and nowhere else, so keep it and fetch it again later; send text to it to add to the conversation. Anyone holding it can read the chat."
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "No comment text was found in the query string or the body.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "413": {
      "description": "The comment is longer than 4000 characters, or the body is over 16384 bytes.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "429": {
      "description": "Over a rate limit. Retry-After says when to come back and the error names the limit.",
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        },
        "description": "Seconds to wait."
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "503": {
      "description": "The store is unavailable and nothing was saved. Try again later.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "404": {
      "description": "No chat at that address.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     },
     "200": {
      "description": "The chat.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "chat": {
           "type": "string",
           "format": "uri"
          },
          "started_at": {
           "type": "string",
           "format": "date-time"
          },
          "messages": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "from": {
              "enum": [
               "you",
               "deep-almanac"
              ]
             },
             "at": {
              "type": "string",
              "format": "date-time"
             },
             "text": {
              "type": "string"
             }
            }
           }
          }
         }
        }
       }
      }
     }
    }
   },
   "post": {
    "tags": [
     "comments"
    ],
    "summary": "Add a message to a comment's chat",
    "description": "Takes the same bodies as the comment endpoint.",
    "operationId": "addToChat",
    "parameters": [
     {
      "name": "key",
      "in": "path",
      "required": true,
      "description": "The key from the chat address in a comment's receipt: 43 characters of base64url, 256 bits.",
      "schema": {
       "type": "string",
       "pattern": "^[A-Za-z0-9_-]{43}$"
      }
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "type": "object",
        "required": [
         "text"
        ],
        "properties": {
         "text": {
          "type": "string",
          "maxLength": 4000,
          "description": "The comment. Required. Aliases: comment, message, body, feedback, c."
         },
         "page": {
          "type": "string",
          "maxLength": 2048,
          "description": "The page or JSON file it is about. Defaults to the Referer header."
         },
         "about": {
          "type": "string",
          "maxLength": 200,
          "description": "What it concerns, in a few words: a dataset, a bank, a school, a field name."
         },
         "kind": {
          "type": "string",
          "maxLength": 40,
          "description": "data-error, missing-data, dataset-request, bug, praise or other. Free-form."
         }
        }
       }
      },
      "application/x-www-form-urlencoded": {
       "schema": {
        "type": "object",
        "required": [
         "text"
        ],
        "properties": {
         "text": {
          "type": "string",
          "maxLength": 4000,
          "description": "The comment. Required. Aliases: comment, message, body, feedback, c."
         },
         "page": {
          "type": "string",
          "maxLength": 2048,
          "description": "The page or JSON file it is about. Defaults to the Referer header."
         },
         "about": {
          "type": "string",
          "maxLength": 200,
          "description": "What it concerns, in a few words: a dataset, a bank, a school, a field name."
         },
         "kind": {
          "type": "string",
          "maxLength": 40,
          "description": "data-error, missing-data, dataset-request, bug, praise or other. Free-form."
         }
        }
       }
      },
      "text/plain": {
       "schema": {
        "type": "string",
        "maxLength": 4000
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "The comment was stored. A person reads it, and replies appear at the chat address in the receipt. The same comment sent again within 10 minutes (same text, page and about, from the same address) is not stored twice: it returns the first one's receipt with duplicate: true.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "properties": {
          "ok": {
           "const": true
          },
          "id": {
           "type": "string",
           "format": "uuid",
           "description": "This comment's reference."
          },
          "received_at": {
           "type": "string",
           "format": "date-time"
          },
          "stored_characters": {
           "type": "integer"
          },
          "status": {
           "const": "received"
          },
          "duplicate": {
           "const": true,
           "description": "Present only when this was a repeat of a comment already taken."
          },
          "chat": {
           "type": "string",
           "format": "uri",
           "description": "This comment's private chat page, /chat/<key>. Replies appear there and nowhere else, so keep it and fetch it again later; send text to it to add to the conversation. Anyone holding it can read the chat."
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "No comment text was found in the query string or the body.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "413": {
      "description": "The comment is longer than 4000 characters, or the body is over 16384 bytes.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "429": {
      "description": "Over a rate limit. Retry-After says when to come back and the error names the limit.",
      "headers": {
       "Retry-After": {
        "schema": {
         "type": "integer"
        },
        "description": "Seconds to wait."
       }
      },
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "503": {
      "description": "The store is unavailable and nothing was saved. Try again later.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "The endpoint's own instructions, returned with every refusal so a caller can correct itself.",
         "properties": {
          "error": {
           "type": "string",
           "description": "Why the comment was not taken. Absent when none was asked for."
          },
          "endpoint": {
           "type": "string",
           "format": "uri"
          },
          "fields": {
           "type": "object",
           "description": "Every field the endpoint accepts, and what it is for."
          },
          "limits": {
           "type": "object",
           "description": "Length and rate limits, as numbers."
          }
         }
        }
       }
      }
     },
     "404": {
      "description": "No chat at that address.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object"
        }
       }
      }
     }
    }
   }
  }
 },
 "x-comment": {
  "endpoint": "https://deepalmanac.com/v1/comment",
  "simplest": "https://deepalmanac.com/v1/comment?text=your+comment+here",
  "note": "No authentication. A GET with no parameters returns the full protocol."
 },
 "x-datasets": [
  {
   "title": "Deep Almanac: Victorian government school performance",
   "summary": "Performance Summary measures for every Victorian government secondary school, keyed on school number, with the Department of Education's own Similar Schools comparison.",
   "tags": [
    "vic-schools"
   ],
   "openapi": "https://deepalmanac.com/au/education/vic-schools/v1/openapi.json",
   "index": "https://deepalmanac.com/au/education/vic-schools/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian residential electricity plans",
   "summary": "Every generally available residential electricity plan in Australia's National Electricity Market, with an estimated yearly bill per network at three usage levels, ranked.",
   "tags": [
    "electricity"
   ],
   "openapi": "https://deepalmanac.com/au/energy/electricity/v1/openapi.json",
   "index": "https://deepalmanac.com/au/energy/electricity/v1/index.json"
  },
  {
   "title": "Australian business car loan rates",
   "summary": "Business vehicle finance rates from each Australian lender's own published product data, ranked by advertised rate per vehicle, rate type and loan amount.",
   "tags": [
    "business-car-loans"
   ],
   "openapi": "https://deepalmanac.com/au/finance/business-car-loans/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/business-car-loans/v1/index.json"
  },
  {
   "title": "Australian car loan rates",
   "summary": "Car loan rates from each Australian bank's own published product data and terms, ranked by comparison rate per vehicle, rate type and loan amount.",
   "tags": [
    "car-loans"
   ],
   "openapi": "https://deepalmanac.com/au/finance/car-loans/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/car-loans/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian credit cards",
   "summary": null,
   "tags": [],
   "openapi": "https://deepalmanac.com/au/finance/credit-cards/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/credit-cards/v1/index.json"
  },
  {
   "title": "Australian home loan rates",
   "summary": "Home loan rates from each Australian bank's own published product data, refreshed daily, with some terms that data leaves out read from the bank's own pages; ranked per purpose, repayment type, LVR, loan amount and rate type.",
   "tags": [
    "home-loans"
   ],
   "openapi": "https://deepalmanac.com/au/finance/home-loans/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/home-loans/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian savings account rates",
   "summary": null,
   "tags": [],
   "openapi": "https://deepalmanac.com/au/finance/savings-accounts/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/savings-accounts/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian online stockbrokers",
   "summary": "Brokerage, CHESS sponsorship or custody, and who executes the orders, for the online brokers Australians use to buy ASX shares, each joined to its ASIC licence.",
   "tags": [
    "stockbrokers"
   ],
   "openapi": "https://deepalmanac.com/au/finance/stockbrokers/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/stockbrokers/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian term deposit rates",
   "summary": "Every Australian bank's term deposit rates, normalised from each bank's own published product data and refreshed daily, with the terms that data leaves out read from the bank's own terms and pages.",
   "tags": [
    "term-deposits"
   ],
   "openapi": "https://deepalmanac.com/au/finance/term-deposits/v1/openapi.json",
   "index": "https://deepalmanac.com/au/finance/term-deposits/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian building insurance",
   "summary": "What each Australian building insurance policy covers (how the building is valued, flood, accidental damage, a building left empty) for homes, strata, commercial and industrial property, with the insurer that issues it, joined to APRA's and ASIC's registers.",
   "tags": [
    "building-insurance"
   ],
   "openapi": "https://deepalmanac.com/au/insurance/building/v1/openapi.json",
   "index": "https://deepalmanac.com/au/insurance/building/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian private health insurance policies",
   "summary": "Every open hospital and combined policy of every Australian health insurer, with each fund's cheapest ranked per state, household and tier, refreshed daily from the regulator's monthly data release.",
   "tags": [
    "health-insurance"
   ],
   "openapi": "https://deepalmanac.com/au/insurance/health/v1/openapi.json",
   "index": "https://deepalmanac.com/au/insurance/health/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian travel insurance",
   "summary": "What Australians pay for travel insurance and how much comes back as claims, by quarter and by state, with the register of companies authorised to underwrite it.",
   "tags": [
    "travel-insurance"
   ],
   "openapi": "https://deepalmanac.com/au/insurance/travel/v1/openapi.json",
   "index": "https://deepalmanac.com/au/insurance/travel/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian real estate agents by suburb",
   "summary": "The real estate agencies and agents with the most residential sales in a suburb over twelve months, from each agency's own sold listings.",
   "tags": [
    "real-estate-agents"
   ],
   "openapi": "https://deepalmanac.com/au/property/real-estate-agents/v1/openapi.json",
   "index": "https://deepalmanac.com/au/property/real-estate-agents/v1/index.json"
  },
  {
   "title": "Deep Almanac: Australian mobile phone plans (SIM only)",
   "summary": "SIM-only mobile plans from Australian providers, priced per month and ranked by data need.",
   "tags": [
    "mobile-plans"
   ],
   "openapi": "https://deepalmanac.com/au/telco/mobile-plans/v1/openapi.json",
   "index": "https://deepalmanac.com/au/telco/mobile-plans/v1/index.json"
  }
 ]
}
