{
  "openapi": "3.1.0",
  "info": {
    "title": "K-Stra API",
    "version": "1.60",
    "description": "Geomarketing analyses on the K-Stra engine: catchments, demographics and economy, markets by sector and brand, brand coverage, site comparison, real estate. Every operation is an action of the same registry the web app uses. Authenticate with an API key as \u0060Authorization: Bearer ks_live_\u2026\u0060; charged actions are quoted first and executed with the quoted credits. Errors are RFC 9457 Problem Details.",
    "contact": {
      "email": "support@k-stra.com",
      "url": "https://www.k-stra.com/developers"
    }
  },
  "servers": [
    {
      "url": "https://www.k-stra.com"
    }
  ],
  "security": [
    {
      "apiKey": []
    }
  ],
  "tags": [
    {
      "name": "analysis"
    },
    {
      "name": "areas"
    },
    {
      "name": "enrich"
    },
    {
      "name": "market"
    },
    {
      "name": "markets"
    },
    {
      "name": "network"
    },
    {
      "name": "realestate"
    },
    {
      "name": "search"
    },
    {
      "name": "site"
    },
    {
      "name": "account"
    },
    {
      "name": "analyses"
    }
  ],
  "paths": {
    "/api/v1/actions/analysis.brand_coverage/quote": {
      "post": {
        "operationId": "analysis.brand_coverage.quote",
        "summary": "Quote analysis.brand_coverage",
        "description": "Quotes analysis.brand_coverage without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nMarkets \u0026 Brands coverage and competition: draws an isochrone from each point (max 30 minutes) and returns the coverage (population reached by each point and cumulatively, relative to the population of the reference area), the cannibalization among the user\u0027s OWN points, the ground contested with the competitors and \u2014 if the sector has a spending model \u2014 the share captured by each point in currency, with the before/after comparison for the planned points. With includeSectorStores=true the other stores of the sector inside the area are added too, as competitors with their own catchment (the heaviest, up to 60, are not charged); by default only the listed points. Points come from the catalogue, from a user dataset or from map coordinates (points), each with a role: use points, or playerIds for catalogue points only. The reference area is the analysis area: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). 5 credits per point.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "playerIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Ids of catalogue stores (the id field of the points of analysis.markets_brands). Short form of points with role competitor: use one or the other"
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Isochrone minutes from each store, 1-30 (default 5)"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "points": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "catalog",
                            "dataset",
                            "manual"
                          ]
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "mine",
                            "competitor"
                          ]
                        },
                        "planned": {
                          "type": "boolean",
                          "description": "The point does not exist yet: it enters the before/after comparison"
                        },
                        "playerId": {
                          "type": "integer",
                          "description": "source=catalog: id of the store"
                        },
                        "datasetId": {
                          "type": "integer",
                          "description": "source=dataset: id of the point dataset; its points inside the area are included"
                        },
                        "lat": {
                          "type": "number",
                          "description": "source=manual: latitude"
                        },
                        "lng": {
                          "type": "number",
                          "description": "source=manual: longitude"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the catalogue or dataset name is used"
                        }
                      },
                      "required": [
                        "source",
                        "role"
                      ]
                    },
                    "description": "The points of the analysis with their source and role (max 500 in all; a dataset counts for the points it brings, including those just outside the area whose catchment reaches into it). Extended alternative to playerIds"
                  },
                  "sectorCode": {
                    "type": "string",
                    "description": "Reference sector for the captured share (a code from markets.sectors). Omitted: derived from the catalogue points"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "includeSectorStores": {
                    "type": "boolean",
                    "description": "Also add the other stores of the sector inside the area as competitors, each with its own catchment (the heaviest first, up to 60, not charged). Default false: the run covers the listed points only (the chosen brands\u0027 stores and the user\u0027s own points), and the rest of the sector stays in the model\u0027s supply"
                  },
                  "planMeasure": {
                    "type": "string",
                    "enum": [
                      "population",
                      "families",
                      "households",
                      "under_5",
                      "aged_65_plus",
                      "aged_70_plus"
                    ],
                    "description": "What the closure and opening plans count: residents (default), families (families as the national statistics office counts them; in Australia (ABS) these are census families: couples with or without children and one-parent families, without people living alone and group households. \u0027households\u0027 is the former name of the same measure, still accepted), children under 5, people aged 65\u002B or 70\u002B. The closure plan comes with two or more of your existing points, the opening plan with one or more of your planned points"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Extra outputs: [\u0027sales\u0027] adds the estimated annual sales band of every catalogue store among the points (sales field of points, column of brand_coverage); its price, if any, is in the quote"
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "minutes"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "points": [
                  {
                    "source": "catalog",
                    "role": "mine",
                    "playerId": 14601573
                  },
                  {
                    "source": "catalog",
                    "role": "competitor",
                    "playerId": 15153754
                  },
                  {
                    "source": "manual",
                    "role": "competitor",
                    "planned": true,
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Planned competitor"
                  }
                ],
                "minutes": 5,
                "preview": true,
                "idempotencyKey": "example-d1af04183f984b558386005716a43de6"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.brand_coverage"
      }
    },
    "/api/v1/actions/analysis.brand_coverage/execute": {
      "post": {
        "operationId": "analysis.brand_coverage",
        "summary": "Run analysis.brand_coverage (charged)",
        "description": "Markets \u0026 Brands coverage and competition: draws an isochrone from each point (max 30 minutes) and returns the coverage (population reached by each point and cumulatively, relative to the population of the reference area), the cannibalization among the user\u0027s OWN points, the ground contested with the competitors and \u2014 if the sector has a spending model \u2014 the share captured by each point in currency, with the before/after comparison for the planned points. With includeSectorStores=true the other stores of the sector inside the area are added too, as competitors with their own catchment (the heaviest, up to 60, are not charged); by default only the listed points. Points come from the catalogue, from a user dataset or from map coordinates (points), each with a role: use points, or playerIds for catalogue points only. The reference area is the analysis area: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). 5 credits per point.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "playerIds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Ids of catalogue stores (the id field of the points of analysis.markets_brands). Short form of points with role competitor: use one or the other"
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Isochrone minutes from each store, 1-30 (default 5)"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "points": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "catalog",
                            "dataset",
                            "manual"
                          ]
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "mine",
                            "competitor"
                          ]
                        },
                        "planned": {
                          "type": "boolean",
                          "description": "The point does not exist yet: it enters the before/after comparison"
                        },
                        "playerId": {
                          "type": "integer",
                          "description": "source=catalog: id of the store"
                        },
                        "datasetId": {
                          "type": "integer",
                          "description": "source=dataset: id of the point dataset; its points inside the area are included"
                        },
                        "lat": {
                          "type": "number",
                          "description": "source=manual: latitude"
                        },
                        "lng": {
                          "type": "number",
                          "description": "source=manual: longitude"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the catalogue or dataset name is used"
                        }
                      },
                      "required": [
                        "source",
                        "role"
                      ]
                    },
                    "description": "The points of the analysis with their source and role (max 500 in all; a dataset counts for the points it brings, including those just outside the area whose catchment reaches into it). Extended alternative to playerIds"
                  },
                  "sectorCode": {
                    "type": "string",
                    "description": "Reference sector for the captured share (a code from markets.sectors). Omitted: derived from the catalogue points"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "includeSectorStores": {
                    "type": "boolean",
                    "description": "Also add the other stores of the sector inside the area as competitors, each with its own catchment (the heaviest first, up to 60, not charged). Default false: the run covers the listed points only (the chosen brands\u0027 stores and the user\u0027s own points), and the rest of the sector stays in the model\u0027s supply"
                  },
                  "planMeasure": {
                    "type": "string",
                    "enum": [
                      "population",
                      "families",
                      "households",
                      "under_5",
                      "aged_65_plus",
                      "aged_70_plus"
                    ],
                    "description": "What the closure and opening plans count: residents (default), families (families as the national statistics office counts them; in Australia (ABS) these are census families: couples with or without children and one-parent families, without people living alone and group households. \u0027households\u0027 is the former name of the same measure, still accepted), children under 5, people aged 65\u002B or 70\u002B. The closure plan comes with two or more of your existing points, the opening plan with one or more of your planned points"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Extra outputs: [\u0027sales\u0027] adds the estimated annual sales band of every catalogue store among the points (sales field of points, column of brand_coverage); its price, if any, is in the quote"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "minutes",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "points": [
                  {
                    "source": "catalog",
                    "role": "mine",
                    "playerId": 14601573
                  },
                  {
                    "source": "catalog",
                    "role": "competitor",
                    "playerId": 15153754
                  },
                  {
                    "source": "manual",
                    "role": "competitor",
                    "planned": true,
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Planned competitor"
                  }
                ],
                "minutes": 5,
                "preview": false,
                "idempotencyKey": "example-dd8f4f9428834d249828cb943ebd1c36"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ]
                        },
                        "charged": {
                          "type": "boolean"
                        },
                        "creditsCharged": {
                          "type": "number"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "polesInvolved": {
                          "type": "integer"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          }
                        },
                        "catchments": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "playerId": {
                                "type": "integer",
                                "description": "Id of the point the catchment belongs to (same id as in points)"
                              },
                              "brand": {
                                "type": "string",
                                "description": "Name of the point"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address when known"
                              },
                              "geometry": {
                                "description": "GeoJSON MultiPolygon of the catchment, simplified to about 40 m"
                              },
                              "role": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Whose catchment it is: \u0027candidate\u0027 (a new site), \u0027competitor\u0027 (a player already in the territory); null where the action has one kind only"
                              }
                            },
                            "required": [
                              "playerId",
                              "brand",
                              "geometry"
                            ]
                          }
                        },
                        "points": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Catalogue id for catalogue points, a negative sequence number for the others"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the point"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address when known"
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "catalog",
                                  "dataset",
                                  "manual"
                                ],
                                "description": "Where the point came from: the places catalogue, a user dataset or map coordinates"
                              },
                              "role": {
                                "type": "string",
                                "enum": [
                                  "mine",
                                  "competitor"
                                ],
                                "description": "Whose point it is"
                              },
                              "planned": {
                                "type": "boolean",
                                "description": "The point does not exist yet: it only enters the \u0027after\u0027 scenario"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              },
                              "outside": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "A dataset point just outside the analysis area, taken because its catchment may reach into it. In a preview it is a candidate; in the result it is kept only if its catchment does reach the area, and the ones that do not are dropped and not charged"
                              },
                              "sectorStore": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "A store of the sector the platform added because it is inside the area (analysis.brand_coverage with includeSectorStores): a competitor with its own catchment, not charged. Always false in the other actions that return these points"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "source",
                              "role",
                              "planned",
                              "lat",
                              "lng"
                            ]
                          }
                        },
                        "captureNote": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the captured share is missing, when it is missing"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "tables"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.brand_coverage",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.brand_coverage",
                          "quantity": 3,
                          "unit": "points",
                          "credits": 15.00
                        }
                      ],
                      "totalCredits": 15
                    },
                    "charged": true,
                    "creditsCharged": 15,
                    "blockedBy": null,
                    "polesInvolved": 49610,
                    "tables": [
                      {
                        "key": "brand_coverage",
                        "title": "Coverage \u00B7 5 min per point",
                        "columns": [
                          "Point",
                          "Role",
                          "Address",
                          "Locality",
                          "Population reached",
                          "% of area",
                          "Id"
                        ],
                        "rows": [
                          [
                            "Subway",
                            "Mine",
                            "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                            "Randwick",
                            65096,
                            "21.3%",
                            14601573
                          ],
                          [
                            "Subway Kings Cross",
                            "Competitor",
                            "TG18/82 Darlinghurst Rd, Potts Point NSW 2000",
                            "Potts Point",
                            130893,
                            "42.9%",
                            15153754
                          ],
                          [
                            "Planned competitor",
                            "Competitor \u00B7 planned",
                            "near 93 Grafton Street, Bondi Junction NSW 2022",
                            "Bondi Junction",
                            82494,
                            "27.1%",
                            -1
                          ]
                        ],
                        "totals": [
                          "Total (net of overlaps)",
                          null,
                          null,
                          null,
                          245195,
                          "80.4%",
                          null
                        ],
                        "sourceNote": "Source: ABS population 2024, third-party places data 2026 \u00B7 K-Stra \u2014 area population 304,928",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "brand_cannibalization",
                        "title": "Cannibalization \u00B7 shared population between stores",
                        "columns": [
                          "Point",
                          "Address",
                          "Own population",
                          "Exclusive",
                          "Shared",
                          "Shared %",
                          "Id"
                        ],
                        "rows": [
                          [
                            "Subway",
                            "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                            65096,
                            52136,
                            12960,
                            "19.9%",
                            14601573
                          ],
                          [
                            "Subway Kings Cross",
                            "TG18/82 Darlinghurst Rd, Potts Point NSW 2000",
                            130893,
                            110414,
                            20479,
                            "15.6%",
                            15153754
                          ],
                          [
                            "Planned competitor",
                            "near 93 Grafton Street, Bondi Junction NSW 2022",
                            82494,
                            49357,
                            33137,
                            "40.2%",
                            -1
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS population 2024, third-party places data 2026 \u00B7 K-Stra",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "brand_contested",
                        "title": "Contested ground \u00B7 your points against the competitors",
                        "columns": [
                          "Point",
                          "Address",
                          "Own population",
                          "Free",
                          "Contested",
                          "Contested %",
                          "Competitors",
                          "Id"
                        ],
                        "rows": [
                          [
                            "Subway",
                            "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                            65096,
                            52136,
                            12960,
                            "19.9%",
                            2,
                            14601573
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS population 2024, third-party places data 2026 \u00B7 K-Stra",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "catchments": [
                      {
                        "playerId": 14601573,
                        "brand": "Subway",
                        "address": "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.26347,
                                  -33.92605
                                ],
                                [
                                  151.26354,
                                  -33.92553
                                ],
                                [
                                  151.26366,
                                  -33.92518
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.21807,
                                  -33.91106
                                ],
                                [
                                  151.21846,
                                  -33.9109
                                ],
                                [
                                  151.21867,
                                  -33.91088
                                ]
                              ],
                              [
                                [
                                  151.25211,
                                  -33.90158
                                ],
                                [
                                  151.25185,
                                  -33.90169
                                ],
                                [
                                  151.25168,
                                  -33.9019
                                ]
                              ],
                              [
                                [
                                  151.25094,
                                  -33.90104
                                ],
                                [
                                  151.24969,
                                  -33.90092
                                ],
                                [
                                  151.24922,
                                  -33.90097
                                ]
                              ]
                            ]
                          ]
                        },
                        "role": null
                      },
                      {
                        "playerId": 15153754,
                        "brand": "Subway Kings Cross",
                        "address": "TG18/82 Darlinghurst Rd, Potts Point NSW 2000",
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.18765,
                                  -33.87095
                                ],
                                [
                                  151.18833,
                                  -33.87042
                                ],
                                [
                                  151.18866,
                                  -33.87021
                                ]
                              ],
                              [
                                [
                                  151.23477,
                                  -33.8901
                                ],
                                [
                                  151.23452,
                                  -33.88996
                                ],
                                [
                                  151.23434,
                                  -33.88993
                                ]
                              ],
                              [
                                [
                                  151.22904,
                                  -33.89309
                                ],
                                [
                                  151.22857,
                                  -33.89341
                                ],
                                [
                                  151.2284,
                                  -33.89362
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.21073,
                                  -33.85173
                                ],
                                [
                                  151.21119,
                                  -33.85119
                                ],
                                [
                                  151.21156,
                                  -33.85089
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.21234,
                                  -33.91299
                                ],
                                [
                                  151.21262,
                                  -33.91235
                                ],
                                [
                                  151.21274,
                                  -33.91196
                                ]
                              ]
                            ]
                          ]
                        },
                        "role": null
                      },
                      {
                        "playerId": -1,
                        "brand": "Planned competitor",
                        "address": "near 93 Grafton Street, Bondi Junction NSW 2022",
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.22006,
                                  -33.88231
                                ],
                                [
                                  151.2202,
                                  -33.88213
                                ],
                                [
                                  151.22021,
                                  -33.88197
                                ]
                              ],
                              [
                                [
                                  151.23363,
                                  -33.88118
                                ],
                                [
                                  151.23362,
                                  -33.88141
                                ],
                                [
                                  151.23371,
                                  -33.88157
                                ]
                              ],
                              [
                                [
                                  151.23106,
                                  -33.87851
                                ],
                                [
                                  151.23081,
                                  -33.87843
                                ],
                                [
                                  151.23067,
                                  -33.87844
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.25471,
                                  -33.87483
                                ],
                                [
                                  151.25529,
                                  -33.87481
                                ],
                                [
                                  151.25549,
                                  -33.87488
                                ]
                              ]
                            ]
                          ]
                        },
                        "role": null
                      }
                    ],
                    "points": [
                      {
                        "id": 14601573,
                        "name": "Subway",
                        "address": "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                        "source": "catalog",
                        "role": "mine",
                        "planned": false,
                        "lat": -33.9140332,
                        "lng": 151.24008179999998,
                        "outside": false,
                        "sectorStore": false
                      },
                      {
                        "id": 15153754,
                        "name": "Subway Kings Cross",
                        "address": "TG18/82 Darlinghurst Rd, Potts Point NSW 2000",
                        "source": "catalog",
                        "role": "competitor",
                        "planned": false,
                        "lat": -33.8750149,
                        "lng": 151.2224651,
                        "outside": false,
                        "sectorStore": false
                      },
                      {
                        "id": -1,
                        "name": "Planned competitor",
                        "address": "near 93 Grafton Street, Bondi Junction NSW 2022",
                        "source": "manual",
                        "role": "competitor",
                        "planned": true,
                        "lat": -33.89106,
                        "lng": 151.24843,
                        "outside": false,
                        "sectorStore": false
                      }
                    ],
                    "captureNote": null
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.brand_coverage",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.category_mix/quote": {
      "post": {
        "operationId": "analysis.category_mix.quote",
        "summary": "Quote analysis.category_mix",
        "description": "Quotes analysis.category_mix without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nCategory mix: how many stores of each chosen category stand inside the territory, by band, area or polygon, how many for every 10,000 residents next to the local government area, the state and Australia, and the list of the stores. Categories: either sectors (codes from markets.sectors, 1 to 20, 1 credit each) or neighboursOf, a sector whose neighbouring categories are counted together (the businesses that share its customers or its footfall, up to 12, 2 credits for the set). Territory: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). The preview returns the quote and the categories that would be counted.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes to count, 1 to 20, e.g. [\u0022pharmacies\u0022, \u0022bars\u0022] \u2014 from markets.sectors. Alternative to neighboursOf, never both"
                  },
                  "neighboursOf": {
                    "type": "string",
                    "description": "A sector code: counts the categories that share its customers or its footfall (for supermarkets: the other grocery formats, pharmacies, caf\u00E9s, fuel stations\u2026), a fixed set of up to 12. Alternative to sectors, never both"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  }
                },
                "required": [
                  "mode",
                  "traffic"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "neighboursOf": "supermarkets",
                "preview": true,
                "idempotencyKey": "example-4680b0242b964048ba05ae1674530e1e"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.category_mix"
      }
    },
    "/api/v1/actions/analysis.category_mix/execute": {
      "post": {
        "operationId": "analysis.category_mix",
        "summary": "Run analysis.category_mix (charged)",
        "description": "Category mix: how many stores of each chosen category stand inside the territory, by band, area or polygon, how many for every 10,000 residents next to the local government area, the state and Australia, and the list of the stores. Categories: either sectors (codes from markets.sectors, 1 to 20, 1 credit each) or neighboursOf, a sector whose neighbouring categories are counted together (the businesses that share its customers or its footfall, up to 12, 2 credits for the set). Territory: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). The preview returns the quote and the categories that would be counted.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes to count, 1 to 20, e.g. [\u0022pharmacies\u0022, \u0022bars\u0022] \u2014 from markets.sectors. Alternative to neighboursOf, never both"
                  },
                  "neighboursOf": {
                    "type": "string",
                    "description": "A sector code: counts the categories that share its customers or its footfall (for supermarkets: the other grocery formats, pharmacies, caf\u00E9s, fuel stations\u2026), a fixed set of up to 12. Alternative to sectors, never both"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "neighboursOf": "supermarkets",
                "preview": false,
                "idempotencyKey": "example-269c429251f7417d8868a2f5f46b25b6"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when the run was paid and the figures are there"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, trial_credits"
                        },
                        "polesInvolved": {
                          "type": "integer",
                          "description": "Address poles of the territory (0 with administrative areas, which are not expanded into poles)"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "\u0027category_mix\u0027, the stores of each category by band or area with the comparison ladder per 10,000 residents, and \u0027category_mix_stores\u0027, the list of the stores"
                        },
                        "players": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Name of the shop"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude"
                              },
                              "id": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Point id in the places catalogue"
                              },
                              "category": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category of the place"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address"
                              },
                              "rating": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Rating in the places catalogue, 1-5"
                              },
                              "reviews": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Number of reviews"
                              },
                              "phone": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Phone"
                              },
                              "website": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Website"
                              },
                              "openingHours": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Opening hours as published"
                              },
                              "sectorCode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category code the shop was selected with, e.g. SUPERMARKET"
                              },
                              "competitors": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Competing shops that reach this one within the sector\u0027s catchment, excluding itself"
                              },
                              "catchmentSeconds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Catchment of the sector in seconds"
                              },
                              "catchmentMode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Catchment mode of the sector: car or walk"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              },
                              "centre": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "sales": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Reported annual sales of the whole centre (moving annual turnover) in millions of the currency field, including GST, for the 12 months to periodEnd; null when only the size is published"
                                  },
                                  "periodEnd": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Date the figures refer to, ISO 8601: end of the 12 months of sales, or the date of the published size"
                                  },
                                  "gla": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Gross lettable area of the centre in m\u00B2"
                                  },
                                  "visits": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Customer visits a year in millions, as counted by the owner"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of sales, ISO 4217"
                                  }
                                },
                                "required": [],
                                "description": "Published figures of a shopping centre (annual sales of the whole centre, gross lettable area, visits); present only with include [\u0027sales\u0027] and only for centres with published figures. Reported figures, not estimates"
                              },
                              "openingHoursByDay": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                              }
                            },
                            "required": [
                              "name",
                              "lat",
                              "lng"
                            ]
                          },
                          "description": "The stores of the counted categories inside the territory, nearest first with an isochrone (at most 4,000: the tables count them all)"
                        },
                        "playersTruncated": {
                          "type": "boolean",
                          "description": "True when the territory holds more stores than players carries"
                        },
                        "sectors": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The sector codes counted, in the order of the table: the ones asked for, or the neighbours of neighboursOf"
                        },
                        "categoryCodes": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "The category code of each sector, in the same order: it is the sectorCode of the players"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "tables",
                        "players",
                        "playersTruncated",
                        "sectors",
                        "categoryCodes"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.category_mix",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.category_mix.neighbours",
                          "quantity": 1,
                          "unit": "sets",
                          "credits": 2.00
                        }
                      ],
                      "totalCredits": 2
                    },
                    "charged": true,
                    "creditsCharged": 2,
                    "blockedBy": null,
                    "polesInvolved": 49610,
                    "tables": [
                      {
                        "key": "category_mix",
                        "title": "Category mix by band",
                        "columns": [
                          "Category",
                          "0\u20135 min",
                          "5\u201310 min",
                          "Stores",
                          "Per 10,000 residents",
                          "Sydney LGA",
                          "New South Wales",
                          "Australia"
                        ],
                        "rows": [
                          [
                            "Discount stores",
                            1,
                            7,
                            8,
                            0.26,
                            0.51,
                            0.27,
                            0.35
                          ],
                          [
                            "Hypermarkets",
                            0,
                            0,
                            0,
                            0,
                            0.08,
                            0.01,
                            0.01
                          ],
                          [
                            "Minimarkets \u0026 convenience stores",
                            17,
                            108,
                            125,
                            4.1,
                            7,
                            2.36,
                            2.41
                          ]
                        ],
                        "totals": [
                          "All categories",
                          242,
                          1161,
                          1403,
                          46.01,
                          81,
                          32.7,
                          33.48
                        ],
                        "sourceNote": "Source: third-party places data 2026 \u00B7 ABS \u00B7 K-Stra \u2014 stores counted where they stand; per 10,000 residents of the territory and of the areas around it; the local government area and the state are those where most of the residents live",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": 4,
                        "compareLevels": [
                          "catchment",
                          "lga",
                          "state",
                          "country"
                        ]
                      },
                      {
                        "key": "category_mix_stores",
                        "title": "Stores, nearest first",
                        "columns": [
                          "Store",
                          "Category",
                          "Address",
                          "Band",
                          "Distance (m)",
                          "Time (min)",
                          "Rating",
                          "Reviews",
                          "Id"
                        ],
                        "rows": [
                          [
                            "Bus Rail Convenience Store",
                            "Minimarkets \u0026 convenience stores",
                            "426 Oxford St, Bondi Junction NSW 2022",
                            "0\u20135 min",
                            152,
                            0.5,
                            5,
                            1,
                            6715463
                          ],
                          [
                            "ANZ Branch Bondi Junction",
                            "Bank branches",
                            "410 Oxford St, Bondi Junction NSW 2022",
                            "0\u20135 min",
                            165,
                            0.4,
                            2.7,
                            null,
                            15198099
                          ],
                          [
                            "Salsabil",
                            "Fast food",
                            "141 Oxford St, Bondi Junction NSW 2022",
                            "0\u20135 min",
                            178,
                            0.5,
                            4.1,
                            264,
                            13180385
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: third-party places data 2026 \u00B7 ABS \u00B7 K-Stra \u2014 first 500 of 1,403, the nearest; the map shows them all. Distance and time from the starting point along the road network",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "players": [
                      {
                        "name": "Bus Rail Convenience Store",
                        "lat": -33.8913261,
                        "lng": 151.24851999999998,
                        "id": 6715463,
                        "category": "Convenience store",
                        "address": "426 Oxford St, Bondi Junction NSW 2022",
                        "rating": 5,
                        "reviews": 1,
                        "phone": null,
                        "website": null,
                        "openingHours": "{\u0022Thursday\u0022: \u0022Closed\u0022, \u0022Friday\u0022: \u0022Open 24 hours\u0022, \u0022Saturday\u0022: \u0022Closed\u0022, \u0022Sunday\u0022: \u0022Closed\u0022, \u0022Monday\u0022: \u0022Closed\u0022, \u0022Tuesday\u0022: \u0022Closed\u0022, \u0022Wednesday\u0022: \u0022Closed\u0022}",
                        "openingHoursByDay": {
                          "Thursday": "Closed",
                          "Friday": "Open 24 hours",
                          "Saturday": "Closed",
                          "Sunday": "Closed",
                          "Monday": "Closed",
                          "Tuesday": "Closed",
                          "Wednesday": "Closed"
                        },
                        "sectorCode": "MINIMARKET",
                        "competitors": null,
                        "catchmentSeconds": null,
                        "catchmentMode": null
                      },
                      {
                        "name": "ANZ Branch Bondi Junction",
                        "lat": -33.8916933,
                        "lng": 151.2480262,
                        "id": 15198099,
                        "category": "Bank",
                        "address": "410 Oxford St, Bondi Junction NSW 2022",
                        "rating": 2.7,
                        "reviews": null,
                        "phone": null,
                        "website": null,
                        "openingHours": "{\u0022Tuesday\u0022: \u00229:30\u202Fam\u20134\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Tuesday": "9:30 am\u20134 pm"
                        },
                        "sectorCode": "BANK",
                        "competitors": null,
                        "catchmentSeconds": null,
                        "catchmentMode": null
                      },
                      {
                        "name": "Salsabil",
                        "lat": -33.8920402,
                        "lng": 151.2478064,
                        "id": 13180385,
                        "category": "Kebab shop",
                        "address": "141 Oxford St, Bondi Junction NSW 2022",
                        "rating": 4.1,
                        "reviews": 264,
                        "phone": "0430 641 800",
                        "website": "https://salsabil.yumbojumbo.com.au/",
                        "openingHours": "{\u0022Monday\u0022: \u002211\u202Fam\u201312\u202Fam\u0022, \u0022Tuesday\u0022: \u002211\u202Fam\u201312\u202Fam\u0022, \u0022Wednesday\u0022: \u002211\u202Fam\u201312\u202Fam\u0022, \u0022Thursday\u0022: \u002211\u202Fam\u201312\u202Fam\u0022, \u0022Friday\u0022: \u002211\u202Fam\u201312\u202Fam\u0022, \u0022Saturday\u0022: \u002211\u202Fam\u201312\u202Fam\u0022, \u0022Sunday\u0022: \u002211\u202Fam\u201311:30\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Monday": "11 am\u201312 am",
                          "Tuesday": "11 am\u201312 am",
                          "Wednesday": "11 am\u201312 am",
                          "Thursday": "11 am\u201312 am",
                          "Friday": "11 am\u201312 am",
                          "Saturday": "11 am\u201312 am",
                          "Sunday": "11 am\u201311:30 pm"
                        },
                        "sectorCode": "FASTFOOD",
                        "competitors": null,
                        "catchmentSeconds": null,
                        "catchmentMode": null
                      }
                    ],
                    "playersTruncated": false,
                    "sectors": [
                      "discount",
                      "hypermarkets",
                      "minimarkets",
                      "cash_and_carry",
                      "pharmacies",
                      "bars",
                      "fast_food",
                      "take_away",
                      "fuel_stations",
                      "postal_services",
                      "bank_branches",
                      "shopping_centers"
                    ],
                    "categoryCodes": [
                      "DISCOUNT",
                      "HYPERMARKET",
                      "MINIMARKET",
                      "CASHCARRY",
                      "PHARMACY",
                      "BAR",
                      "FASTFOOD",
                      "TAKEAWAY",
                      "FUEL",
                      "POST",
                      "BANK",
                      "SHOPPINGMALL"
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.category_mix",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.isochrone/quote": {
      "post": {
        "operationId": "analysis.isochrone.quote",
        "summary": "Quote analysis.isochrone",
        "description": "Quotes analysis.isochrone without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nComputes the bands of a territory from one or more points. Three shapes: isochrone (bandSeconds), road isodistance (bandMetres with mode car/car_no_highway/walk) and straight-line radius (bandMetres with mode=radius, which draws a circle and ignores the road network). The counts (nodesCumulative, populationCumulative, areaKm2) are those of the addresses reached; the geometry of a band is smoothed and closes the small gaps between them, so it is indicative: re-used as polygons it can hold a few percent more residents (up to about 9% for 5 minutes, less for wider bands). To analyse the same residents, pass origins and bandSeconds rather than the outline.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    }
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, e.g. [600] = one 10-minute band"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ]
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ]
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, e.g. [5000] = one 5 km band: by ROAD with the travel modes, in a STRAIGHT LINE with mode=radius. Alternative to bandSeconds, never both"
                  }
                },
                "required": [
                  "origins",
                  "mode",
                  "traffic"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.isochrone.api"
      }
    },
    "/api/v1/actions/analysis.isochrone/execute": {
      "post": {
        "operationId": "analysis.isochrone",
        "summary": "Run analysis.isochrone (charged)",
        "description": "Computes the bands of a territory from one or more points. Three shapes: isochrone (bandSeconds), road isodistance (bandMetres with mode car/car_no_highway/walk) and straight-line radius (bandMetres with mode=radius, which draws a circle and ignores the road network). The counts (nodesCumulative, populationCumulative, areaKm2) are those of the addresses reached; the geometry of a band is smoothed and closes the small gaps between them, so it is indicative: re-used as polygons it can hold a few percent more residents (up to about 9% for 5 minutes, less for wider bands). To analyse the same residents, pass origins and bandSeconds rather than the outline.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    }
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, e.g. [600] = one 10-minute band"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ]
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ]
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, e.g. [5000] = one 5 km band: by ROAD with the travel modes, in a STRAIGHT LINE with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "origins",
                  "mode",
                  "traffic",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "bands": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "seconds": {
                                "type": "integer"
                              },
                              "areaKm2": {
                                "type": "number"
                              },
                              "nodesCumulative": {
                                "type": "integer"
                              },
                              "geometry": {},
                              "metres": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              },
                              "populationCumulative": {
                                "type": [
                                  "integer",
                                  "null"
                                ]
                              }
                            },
                            "required": [
                              "seconds",
                              "areaKm2",
                              "nodesCumulative",
                              "geometry"
                            ]
                          }
                        },
                        "totalNodes": {
                          "type": "integer"
                        },
                        "bbox": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          }
                        },
                        "snapDistM": {
                          "type": "number"
                        },
                        "elapsedMs": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "bands",
                        "totalNodes",
                        "bbox",
                        "snapDistM",
                        "elapsedMs"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.isochrone",
                  "result": {
                    "bands": [
                      {
                        "seconds": 300,
                        "areaKm2": 13.82,
                        "nodesCumulative": 13528,
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.22006,
                                  -33.882313
                                ],
                                [
                                  151.220197,
                                  -33.882125
                                ],
                                [
                                  151.220215,
                                  -33.881974
                                ]
                              ],
                              [
                                [
                                  151.233634,
                                  -33.881179
                                ],
                                [
                                  151.233622,
                                  -33.881411
                                ],
                                [
                                  151.233705,
                                  -33.881573
                                ]
                              ],
                              [
                                [
                                  151.23106,
                                  -33.878511
                                ],
                                [
                                  151.230812,
                                  -33.878432
                                ],
                                [
                                  151.230669,
                                  -33.878442
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.254708,
                                  -33.874833
                                ],
                                [
                                  151.255286,
                                  -33.874806
                                ],
                                [
                                  151.255479,
                                  -33.874898
                                ]
                              ]
                            ]
                          ]
                        },
                        "metres": 0,
                        "populationCumulative": 82543
                      },
                      {
                        "seconds": 600,
                        "areaKm2": 50.21,
                        "nodesCumulative": 49610,
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.30451,
                                  -33.814498
                                ],
                                [
                                  151.305167,
                                  -33.811607
                                ],
                                [
                                  151.305373,
                                  -33.810555
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.187655,
                                  -33.870951
                                ],
                                [
                                  151.188967,
                                  -33.870081
                                ],
                                [
                                  151.189512,
                                  -33.869801
                                ]
                              ],
                              [
                                [
                                  151.266422,
                                  -33.875559
                                ],
                                [
                                  151.26665,
                                  -33.875903
                                ],
                                [
                                  151.267088,
                                  -33.876085
                                ]
                              ],
                              [
                                [
                                  151.211568,
                                  -33.860259
                                ],
                                [
                                  151.211509,
                                  -33.86054
                                ],
                                [
                                  151.211542,
                                  -33.860713
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.263579,
                                  -33.926491
                                ],
                                [
                                  151.263492,
                                  -33.925971
                                ],
                                [
                                  151.263515,
                                  -33.925621
                                ]
                              ]
                            ]
                          ]
                        },
                        "metres": 0,
                        "populationCumulative": 304928
                      }
                    ],
                    "totalNodes": 49610,
                    "bbox": [
                      151.18765524211196,
                      -33.96998611505702,
                      151.30827880445798,
                      -33.808577879831084
                    ],
                    "snapDistM": 9,
                    "elapsedMs": 450
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.isochrone.api",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.markets_brands/quote": {
      "post": {
        "operationId": "analysis.markets_brands.quote",
        "summary": "Quote analysis.markets_brands",
        "description": "Quotes analysis.markets_brands without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nMarkets \u0026 Brands by brand: the stores of the chosen brands inside the territory, with a segmentation table (number of stores, density on population and surface) and the list of players. Territory: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). With the isochrone the rows are the bands and the players are ordered by road distance; with areas or polygons the rows are the areas and there is no distance. 5 credits per brand.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Exact brand names (place_name), as returned by search.brands"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Extra outputs: [\u0027sales\u0027] adds the estimated annual sales band of the stores (sales field of points, column of brand_players); its price, if any, is in the quote"
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "brands"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "brands": [
                  "Subway"
                ],
                "preview": true,
                "idempotencyKey": "example-cd23e31f1a4943d288ef8813e6c49523"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.markets.brand"
      }
    },
    "/api/v1/actions/analysis.markets_brands/execute": {
      "post": {
        "operationId": "analysis.markets_brands",
        "summary": "Run analysis.markets_brands (charged)",
        "description": "Markets \u0026 Brands by brand: the stores of the chosen brands inside the territory, with a segmentation table (number of stores, density on population and surface) and the list of players. Territory: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). With the isochrone the rows are the bands and the players are ordered by road distance; with areas or polygons the rows are the areas and there is no distance. 5 credits per brand.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Exact brand names (place_name), as returned by search.brands"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Extra outputs: [\u0027sales\u0027] adds the estimated annual sales band of the stores (sales field of points, column of brand_players); its price, if any, is in the quote"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "brands",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  300,
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "brands": [
                  "Subway"
                ],
                "preview": false,
                "idempotencyKey": "example-72142a30733b4f5faad95d47588adcce"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ]
                        },
                        "charged": {
                          "type": "boolean"
                        },
                        "creditsCharged": {
                          "type": "number"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "polesInvolved": {
                          "type": "integer"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          }
                        },
                        "points": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Point id in the places catalogue"
                              },
                              "brand": {
                                "type": "string",
                                "description": "Brand the shop belongs to"
                              },
                              "category": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category of the place"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address"
                              },
                              "locality": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Locality"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude"
                              },
                              "band": {
                                "type": "integer",
                                "description": "Index of the catchment band the shop falls in (0 = nearest)"
                              },
                              "timeMin": {
                                "type": "number",
                                "description": "Travel time from the origin, minutes"
                              },
                              "distM": {
                                "type": "integer",
                                "description": "Road distance from the origin, metres"
                              },
                              "rating": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Rating in the places catalogue, 1-5"
                              },
                              "reviews": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Number of reviews"
                              },
                              "phone": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Phone"
                              },
                              "website": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Website"
                              },
                              "openingHours": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Opening hours as published"
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "State of the address the point is snapped to"
                              },
                              "status": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Business status from the places catalogue when it is not open, e.g. \u0027Permanently closed\u0027; null when open"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              },
                              "openingHoursByDay": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                              }
                            },
                            "required": [
                              "id",
                              "brand",
                              "lat",
                              "lng",
                              "band",
                              "timeMin",
                              "distM"
                            ]
                          }
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "tables",
                        "points"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.markets_brands",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.markets.brand",
                          "quantity": 1,
                          "unit": "brands",
                          "credits": 5.00
                        }
                      ],
                      "totalCredits": 5
                    },
                    "charged": true,
                    "creditsCharged": 5,
                    "blockedBy": null,
                    "polesInvolved": 49610,
                    "tables": [
                      {
                        "key": "brand_segmentation",
                        "title": "Stores per brand by band",
                        "columns": [
                          "Brand",
                          "0\u20135 min",
                          "5\u201310 min",
                          "Total",
                          "Per 10,000 residents",
                          "Per km\u00B2"
                        ],
                        "rows": [
                          [
                            "Subway",
                            0,
                            4,
                            4,
                            0.13,
                            0.08
                          ]
                        ],
                        "totals": [
                          "Total",
                          0,
                          4,
                          4,
                          0.13,
                          0.08
                        ],
                        "sourceNote": "Source: third-party places data 2026 \u00B7 K-Stra",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "brand_players",
                        "title": "Stores by distance",
                        "columns": [
                          "Brand",
                          "Category",
                          "Address",
                          "Locality",
                          "State",
                          "Band",
                          "Distance (m)",
                          "Time (min)",
                          "Rating",
                          "Reviews",
                          "Note"
                        ],
                        "rows": [
                          [
                            "Subway",
                            "Fast food restaurant",
                            "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                            "Randwick",
                            "New South Wales",
                            "5\u201310 min",
                            3172,
                            6.3,
                            4.7,
                            1491,
                            null
                          ],
                          [
                            "Subway",
                            "Fast food restaurant",
                            "TG18/82 Darlinghurst Rd, Potts Point NSW 2000",
                            "Potts Point",
                            "New South Wales",
                            "5\u201310 min",
                            3661,
                            6.5,
                            2.6,
                            195,
                            null
                          ],
                          [
                            "Subway",
                            "Fast food restaurant",
                            "4/449 Pitt St, Haymarket NSW 2000",
                            "Haymarket",
                            "New South Wales",
                            "5\u201310 min",
                            4544,
                            8.4,
                            3.2,
                            371,
                            null
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: third-party places data 2026 \u00B7 K-Stra",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "points": [
                      {
                        "id": 14601573,
                        "brand": "Subway",
                        "category": "Fast food restaurant",
                        "address": "Unit 10/51 Belmore Rd, Randwick NSW 2031",
                        "locality": "Randwick",
                        "lat": -33.9140332,
                        "lng": 151.24008179999998,
                        "band": 1,
                        "timeMin": 6.3,
                        "distM": 3172,
                        "rating": 4.7,
                        "reviews": 1491,
                        "phone": null,
                        "website": "http://www.subway.com/en-au",
                        "openingHours": "{\u0022Wednesday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Thursday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Friday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Saturday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Sunday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Monday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Tuesday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Wednesday": "8 am\u201310 pm",
                          "Thursday": "8 am\u201310 pm",
                          "Friday": "8 am\u201310 pm",
                          "Saturday": "8 am\u201310 pm",
                          "Sunday": "8 am\u201310 pm",
                          "Monday": "8 am\u201310 pm",
                          "Tuesday": "8 am\u201310 pm"
                        },
                        "state": "New South Wales",
                        "status": null
                      },
                      {
                        "id": 15153754,
                        "brand": "Subway",
                        "category": "Fast food restaurant",
                        "address": "TG18/82 Darlinghurst Rd, Potts Point NSW 2000",
                        "locality": "Potts Point",
                        "lat": -33.8750149,
                        "lng": 151.2224651,
                        "band": 1,
                        "timeMin": 6.5,
                        "distM": 3661,
                        "rating": 2.6,
                        "reviews": 195,
                        "phone": "(02) 8263 2811",
                        "website": "https://www.subway.com/en-au",
                        "openingHours": "{\u0022Tuesday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Wednesday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Thursday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Friday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Saturday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Sunday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Monday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Tuesday": "8 am\u201310 pm",
                          "Wednesday": "8 am\u201310 pm",
                          "Thursday": "8 am\u201310 pm",
                          "Friday": "8 am\u201310 pm",
                          "Saturday": "8 am\u201310 pm",
                          "Sunday": "8 am\u201310 pm",
                          "Monday": "8 am\u201310 pm"
                        },
                        "state": "New South Wales",
                        "status": null
                      },
                      {
                        "id": 23032583,
                        "brand": "Subway",
                        "category": "Fast food restaurant",
                        "address": "4/449 Pitt St, Haymarket NSW 2000",
                        "locality": "Haymarket",
                        "lat": -33.8796013,
                        "lng": 151.2068424,
                        "band": 1,
                        "timeMin": 8.4,
                        "distM": 4544,
                        "rating": 3.2,
                        "reviews": 371,
                        "phone": "(02) 9280 2508",
                        "website": "http://www.subway.com/en-au",
                        "openingHours": "{\u0022Wednesday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Thursday\u0022: \u00228\u202Fam\u201312\u202Fam\u0022, \u0022Friday\u0022: \u00228\u202Fam\u201312\u202Fam\u0022, \u0022Saturday\u0022: \u00229\u202Fam\u201312\u202Fam\u0022, \u0022Sunday\u0022: \u00229\u202Fam\u201312\u202Fam\u0022, \u0022Monday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022, \u0022Tuesday\u0022: \u00228\u202Fam\u201310\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Wednesday": "8 am\u201310 pm",
                          "Thursday": "8 am\u201312 am",
                          "Friday": "8 am\u201312 am",
                          "Saturday": "9 am\u201312 am",
                          "Sunday": "9 am\u201312 am",
                          "Monday": "8 am\u201310 pm",
                          "Tuesday": "8 am\u201310 pm"
                        },
                        "state": "New South Wales",
                        "status": null
                      }
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.markets.brand",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.markets_sector/quote": {
      "post": {
        "operationId": "analysis.markets_sector.quote",
        "summary": "Quote analysis.markets_sector",
        "description": "Quotes analysis.markets_sector without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nMarkets \u0026 Brands by sector: demand, supply and opportunity (precomputed gravity model) for every inhabited address of the territory, with a summary per sector, the list of the sector\u0027s stores (with the minutes from the starting point when the territory is a time isochrone), how many stores there are for every 10,000 residents next to the local government area, the state and Australia, the 5 best locations per measure (at least 500 m apart) and the Voronoi cells to colour on the map. With mixNeighbours or mixSectors it also counts a category mix in the same run, as analysis.category_mix does, in one quote and one charge. Territory: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). Costs 40 credits per sector, whatever the territory, plus the mix when asked.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes with available data, e.g. [\u0022supermarkets\u0022] \u2014 from markets.sectors"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "mixNeighbours": {
                    "type": "boolean",
                    "description": "true: in the same run, also count the neighbouring categories of the sector (the businesses that share its customers or its footfall, up to 12), as analysis.category_mix does with neighboursOf: 2 credits more for the set. Needs exactly one sector. Alternative to mixSectors"
                  },
                  "mixSectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "In the same run, also count these categories (codes from markets.sectors, 1 to 20), as analysis.category_mix does with sectors: 1 credit more each. Alternative to mixNeighbours"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Extra outputs: [\u0027sales\u0027] adds the estimated annual sales band of the stores (sales field of players, column of sector_players_*) and, for shopping centres, their published sales, size and visits (centre field of players, columns of sector_players_*); its price, if any, is in the quote"
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "sectors"
                ]
              },
              "example": {
                "areas": [
                  {
                    "level": 7,
                    "id": 10465
                  }
                ],
                "mode": "car",
                "traffic": "normal",
                "sectors": [
                  "supermarkets"
                ],
                "preview": true,
                "idempotencyKey": "example-610f49e84fa144f09770c91b9358fb1c"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.markets.sector"
      }
    },
    "/api/v1/actions/analysis.markets_sector/execute": {
      "post": {
        "operationId": "analysis.markets_sector",
        "summary": "Run analysis.markets_sector (charged)",
        "description": "Markets \u0026 Brands by sector: demand, supply and opportunity (precomputed gravity model) for every inhabited address of the territory, with a summary per sector, the list of the sector\u0027s stores (with the minutes from the starting point when the territory is a time isochrone), how many stores there are for every 10,000 residents next to the local government area, the state and Australia, the 5 best locations per measure (at least 500 m apart) and the Voronoi cells to colour on the map. With mixNeighbours or mixSectors it also counts a category mix in the same run, as analysis.category_mix does, in one quote and one charge. Territory: ONE of isochrone (origins\u002BbandSeconds), administrative areas (areas) or GeoJSON polygons (polygons). Costs 40 credits per sector, whatever the territory, plus the mix when asked.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes with available data, e.g. [\u0022supermarkets\u0022] \u2014 from markets.sectors"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "mixNeighbours": {
                    "type": "boolean",
                    "description": "true: in the same run, also count the neighbouring categories of the sector (the businesses that share its customers or its footfall, up to 12), as analysis.category_mix does with neighboursOf: 2 credits more for the set. Needs exactly one sector. Alternative to mixSectors"
                  },
                  "mixSectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "In the same run, also count these categories (codes from markets.sectors, 1 to 20), as analysis.category_mix does with sectors: 1 credit more each. Alternative to mixNeighbours"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Extra outputs: [\u0027sales\u0027] adds the estimated annual sales band of the stores (sales field of players, column of sector_players_*) and, for shopping centres, their published sales, size and visits (centre field of players, columns of sector_players_*); its price, if any, is in the quote"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "sectors",
                  "quotedCredits"
                ]
              },
              "example": {
                "areas": [
                  {
                    "level": 7,
                    "id": 10465
                  }
                ],
                "mode": "car",
                "traffic": "normal",
                "sectors": [
                  "supermarkets"
                ],
                "preview": false,
                "idempotencyKey": "example-42bb43b4414948f0ab671a20032c3f63"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ]
                        },
                        "charged": {
                          "type": "boolean"
                        },
                        "creditsCharged": {
                          "type": "number"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "polesInvolved": {
                          "type": "integer"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          }
                        },
                        "topLocations": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "sector": {
                                "type": "string",
                                "description": "Sector code"
                              },
                              "measure": {
                                "type": "string",
                                "description": "Measure the ranking is on: opportunity or gap. Demand and competition have no address ranking - demand is a figure of the area, and the contested addresses are the worst places to open, not the best"
                              },
                              "rank": {
                                "type": "integer",
                                "description": "Rank, 1 = best"
                              },
                              "pid": {
                                "type": "integer",
                                "description": "Address pole id of the location"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude"
                              },
                              "address": {
                                "type": "string",
                                "description": "Address of the location, written the way its country writes addresses (in Australia: \u002764 Shirley Road, Crows Nest NSW 2065\u0027). It starts with \u0027near\u0027 when the location has no street of its own and the nearest numbered address is given instead"
                              },
                              "value": {
                                "type": "number",
                                "description": "Value of the measure at the location"
                              },
                              "hasBuilding": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "True when a building stands on the address, false when the site is vacant land"
                              },
                              "buildingClass": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "What the building is used for, e.g. retail, residential, industrial; null when unknown or when the site is vacant"
                              },
                              "buildingAreaM2": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Footprint of the building in square metres; null when unknown or when the site is vacant"
                              },
                              "freeLandM2": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Land not covered by any building within 150 m of the address, in square metres. It is a measurement, not a buildable plot: streets and gardens are in it"
                              },
                              "areaBuiltPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Share of the 150 m circle around the address covered by buildings, 0-100"
                              },
                              "largestNearbyM2": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Footprint of the largest building within 150 m of the address, in square metres"
                              },
                              "sectorTypicalM2": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Footprint of the largest building that normally stands within 150 m of a shop of this sector, in square metres: the scale the format works at, measured on the sector\u0027s own shops. Null when the sector has too few shops to say"
                              },
                              "largeStructureNearby": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "True when a building at least as large as sectorTypicalM2 stands within 150 m: the address is already at the scale this format works at. Null when the sector has too few shops to say"
                              }
                            },
                            "required": [
                              "sector",
                              "measure",
                              "rank",
                              "pid",
                              "lat",
                              "lng",
                              "address",
                              "value"
                            ]
                          }
                        },
                        "voronoi": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "vids": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              }
                            },
                            "sectors": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "opp": {
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  },
                                  "dem": {
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  },
                                  "sup": {
                                    "type": "array",
                                    "items": {
                                      "type": "number"
                                    }
                                  },
                                  "gap": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "number"
                                    }
                                  }
                                },
                                "required": [
                                  "opp",
                                  "dem",
                                  "sup"
                                ]
                              }
                            }
                          },
                          "required": [
                            "vids",
                            "sectors"
                          ]
                        },
                        "players": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Name of the shop"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude"
                              },
                              "id": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Point id in the places catalogue"
                              },
                              "category": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category of the place"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address"
                              },
                              "rating": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Rating in the places catalogue, 1-5"
                              },
                              "reviews": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Number of reviews"
                              },
                              "phone": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Phone"
                              },
                              "website": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Website"
                              },
                              "openingHours": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Opening hours as published"
                              },
                              "sectorCode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category code the shop was selected with, e.g. SUPERMARKET"
                              },
                              "competitors": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Competing shops that reach this one within the sector\u0027s catchment, excluding itself"
                              },
                              "catchmentSeconds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Catchment of the sector in seconds"
                              },
                              "catchmentMode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Catchment mode of the sector: car or walk"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              },
                              "centre": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "sales": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Reported annual sales of the whole centre (moving annual turnover) in millions of the currency field, including GST, for the 12 months to periodEnd; null when only the size is published"
                                  },
                                  "periodEnd": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Date the figures refer to, ISO 8601: end of the 12 months of sales, or the date of the published size"
                                  },
                                  "gla": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Gross lettable area of the centre in m\u00B2"
                                  },
                                  "visits": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Customer visits a year in millions, as counted by the owner"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of sales, ISO 4217"
                                  }
                                },
                                "required": [],
                                "description": "Published figures of a shopping centre (annual sales of the whole centre, gross lettable area, visits); present only with include [\u0027sales\u0027] and only for centres with published figures. Reported figures, not estimates"
                              },
                              "openingHoursByDay": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                              }
                            },
                            "required": [
                              "name",
                              "lat",
                              "lng"
                            ]
                          }
                        },
                        "playersTruncated": {
                          "type": "boolean"
                        },
                        "catchments": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "sector": {
                                "type": "string"
                              },
                              "seconds": {
                                "type": "integer"
                              },
                              "mode": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "sector",
                              "seconds",
                              "mode"
                            ]
                          }
                        },
                        "competitors": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "sector": {
                                "type": "string",
                                "description": "Sector code"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Shops of the sector inside the territory"
                              }
                            },
                            "required": [
                              "sector",
                              "count"
                            ]
                          }
                        },
                        "listings": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "sector": {
                                "type": "string",
                                "description": "Sector code"
                              },
                              "locationRank": {
                                "type": "integer",
                                "description": "Rank of the best location by opportunity this property is near, from 1"
                              },
                              "id": {
                                "type": "integer",
                                "description": "Listing id"
                              },
                              "address": {
                                "type": "string",
                                "description": "Address of the property as published"
                              },
                              "locality": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Suburb"
                              },
                              "propertyType": {
                                "type": "string",
                                "enum": [
                                  "shop",
                                  "office",
                                  "industrial",
                                  "warehouse",
                                  "building",
                                  "business"
                                ],
                                "description": "Property type: shop, office, industrial, warehouse, building, or business (a going business for sale)"
                              },
                              "contract": {
                                "type": "string",
                                "enum": [
                                  "lease",
                                  "sale",
                                  "auction"
                                ],
                                "description": "Contract: lease, sale or auction"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price as published, in local currency; null when the price is on request"
                              },
                              "areaM2": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Floor area in square metres; null when not published"
                              },
                              "distanceM": {
                                "type": "integer",
                                "description": "Straight-line distance from the best location, in metres"
                              },
                              "lastSeen": {
                                "type": "string",
                                "description": "Day the listing was last seen on the portal, ISO date"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              }
                            },
                            "required": [
                              "sector",
                              "locationRank",
                              "id",
                              "address",
                              "propertyType",
                              "contract",
                              "distanceM",
                              "lastSeen",
                              "lat",
                              "lng"
                            ]
                          },
                          "description": "Commercial properties on the market near the best locations by opportunity: up to 3 per location, within 500 m, of the property types that suit the sector, seen on the listing portal in the last listingsWindowDays days. Included in the price. Empty when none was found; null for sectors without an opportunity ranking"
                        },
                        "listingsWindowDays": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "How recent a listing must be to be shown: last seen on the portal within this many days"
                        },
                        "mix": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "sectors": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "The sector codes counted, in the order of the table: the neighbours of the sector, or the mixSectors asked for"
                            },
                            "categoryCodes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "The category code of each sector, in the same order: it is the sectorCode of the players"
                            },
                            "players": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "Name of the shop"
                                  },
                                  "lat": {
                                    "type": "number",
                                    "description": "Latitude"
                                  },
                                  "lng": {
                                    "type": "number",
                                    "description": "Longitude"
                                  },
                                  "id": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Point id in the places catalogue"
                                  },
                                  "category": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Category of the place"
                                  },
                                  "address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Street address"
                                  },
                                  "rating": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Rating in the places catalogue, 1-5"
                                  },
                                  "reviews": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Number of reviews"
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Phone"
                                  },
                                  "website": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Website"
                                  },
                                  "openingHours": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Opening hours as published"
                                  },
                                  "sectorCode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Category code the shop was selected with, e.g. SUPERMARKET"
                                  },
                                  "competitors": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Competing shops that reach this one within the sector\u0027s catchment, excluding itself"
                                  },
                                  "catchmentSeconds": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Catchment of the sector in seconds"
                                  },
                                  "catchmentMode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Catchment mode of the sector: car or walk"
                                  },
                                  "sales": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "band": {
                                        "type": "string",
                                        "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                      },
                                      "confidence": {
                                        "type": "string",
                                        "enum": [
                                          "high",
                                          "medium",
                                          "low"
                                        ],
                                        "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                      },
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "chain_accounts",
                                          "company_accounts",
                                          "store_size",
                                          "review_activity",
                                          "turnover_bands"
                                        ],
                                        "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                      },
                                      "version": {
                                        "type": "integer",
                                        "description": "Version of the sales model the estimate comes from"
                                      },
                                      "currency": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                      }
                                    },
                                    "required": [
                                      "band",
                                      "confidence",
                                      "source",
                                      "version"
                                    ],
                                    "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                                  },
                                  "centre": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "sales": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "Reported annual sales of the whole centre (moving annual turnover) in millions of the currency field, including GST, for the 12 months to periodEnd; null when only the size is published"
                                      },
                                      "periodEnd": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Date the figures refer to, ISO 8601: end of the 12 months of sales, or the date of the published size"
                                      },
                                      "gla": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "Gross lettable area of the centre in m\u00B2"
                                      },
                                      "visits": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "Customer visits a year in millions, as counted by the owner"
                                      },
                                      "currency": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Currency of sales, ISO 4217"
                                      }
                                    },
                                    "required": [],
                                    "description": "Published figures of a shopping centre (annual sales of the whole centre, gross lettable area, visits); present only with include [\u0027sales\u0027] and only for centres with published figures. Reported figures, not estimates"
                                  },
                                  "openingHoursByDay": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                                  }
                                },
                                "required": [
                                  "name",
                                  "lat",
                                  "lng"
                                ]
                              },
                              "description": "The stores of the counted categories inside the territory, nearest first with an isochrone (at most 4,000: the tables count them all); empty in a preview"
                            },
                            "playersTruncated": {
                              "type": "boolean",
                              "description": "True when the territory holds more stores than players carries"
                            }
                          },
                          "required": [
                            "sectors",
                            "categoryCodes",
                            "players",
                            "playersTruncated"
                          ],
                          "description": "The categories counted with mixNeighbours or mixSectors, absent without them. Their tables, \u0027category_mix\u0027 and \u0027category_mix_stores\u0027, are in tables"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "tables",
                        "topLocations",
                        "players",
                        "playersTruncated"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.markets_sector",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.markets.sector",
                          "quantity": 1,
                          "unit": "sectors",
                          "credits": 40.00
                        }
                      ],
                      "totalCredits": 40
                    },
                    "charged": true,
                    "creditsCharged": 40,
                    "blockedBy": null,
                    "polesInvolved": 1637,
                    "tables": [
                      {
                        "key": "sector_summary_supermarkets",
                        "title": "Supermarkets \u2014 market summary",
                        "columns": [
                          "Measure",
                          "Value (AUD m)"
                        ],
                        "rows": [
                          [
                            "Opportunity",
                            1.48
                          ],
                          [
                            "Demand",
                            24.98
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2024 \u00B7 third-party places data 2026",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "sector_players_supermarkets",
                        "title": "Supermarkets \u2014 5 in this area",
                        "columns": [
                          "Store",
                          "Category",
                          "Address",
                          "Rating",
                          "Reviews",
                          "Id"
                        ],
                        "rows": [
                          [
                            "Coles Bondi Westfield",
                            "Supermarket",
                            "Westfield Bondi Junction, 500 Oxford St, Bondi Junction NSW 2022",
                            4.2,
                            1036,
                            13181591
                          ],
                          [
                            "ALDI",
                            "Supermarket",
                            "Shop 26/91 Spring St, Bondi Junction NSW 2022",
                            4.2,
                            656,
                            13179904
                          ],
                          [
                            "Coles Bondi Junction",
                            "Supermarket",
                            "Eastgate Shopping Centre, Spring St \u0026, Newland St, Bondi Junction NSW 2022",
                            4,
                            640,
                            13020178
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2024 \u00B7 third-party places data 2026 \u2014 ordered by the weight the model gives each store, then by reviews",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "sector_density_supermarkets",
                        "title": "Supermarkets \u2014 how many for every 10,000 residents",
                        "columns": [
                          "Area",
                          "Stores",
                          "Residents",
                          "Per 10,000 residents"
                        ],
                        "rows": [
                          [
                            "Catchment",
                            5,
                            11007,
                            4.54
                          ],
                          [
                            "Waverley LGA",
                            18,
                            72857,
                            2.47
                          ],
                          [
                            "New South Wales",
                            2516,
                            8479314,
                            2.97
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2024 \u00B7 third-party places data 2026 \u2014 stores counted where they stand; the local government area and the state are those where most of the residents live",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "topLocations": [
                      {
                        "sector": "supermarkets",
                        "measure": "opportunity",
                        "rank": 1,
                        "pid": 94399083,
                        "lat": -33.89654569999999,
                        "lng": 151.2542728,
                        "address": "near 232 Birrell Street, Bondi Junction NSW 2022",
                        "value": 8800690,
                        "hasBuilding": false,
                        "buildingClass": null,
                        "buildingAreaM2": null,
                        "freeLandM2": 56047.504298267566,
                        "areaBuiltPct": 20.209788369809164,
                        "largestNearbyM2": 10557.96,
                        "sectorTypicalM2": 2200.41,
                        "largeStructureNearby": true
                      },
                      {
                        "sector": "supermarkets",
                        "measure": "opportunity",
                        "rank": 2,
                        "pid": 90175784,
                        "lat": -33.891370500000015,
                        "lng": 151.2474205,
                        "address": "near 376 Oxford Street, Bondi Junction NSW 2022",
                        "value": 8590340,
                        "hasBuilding": false,
                        "buildingClass": null,
                        "buildingAreaM2": null,
                        "freeLandM2": 51272.931507768,
                        "areaBuiltPct": 27.006579449002587,
                        "largestNearbyM2": 8702.92,
                        "sectorTypicalM2": 2200.41,
                        "largeStructureNearby": true
                      },
                      {
                        "sector": "supermarkets",
                        "measure": "opportunity",
                        "rank": 3,
                        "pid": 93256543,
                        "lat": -33.892030299999995,
                        "lng": 151.2542788,
                        "address": "near 16 Bondi Road, Bondi Junction NSW 2022",
                        "value": 8996299,
                        "hasBuilding": false,
                        "buildingClass": null,
                        "buildingAreaM2": null,
                        "freeLandM2": 58600.70469870132,
                        "areaBuiltPct": 16.575002130238335,
                        "largestNearbyM2": 1243.61,
                        "sectorTypicalM2": 2200.41,
                        "largeStructureNearby": false
                      }
                    ],
                    "voronoi": {
                      "vids": [
                        5136,
                        5342,
                        14876
                      ],
                      "sectors": {
                        "supermarkets": {
                          "opp": [
                            8885974,
                            8730938,
                            8485821
                          ],
                          "dem": [
                            560890666,
                            609330238,
                            779090109
                          ],
                          "sup": [
                            0.4174,
                            0.6302,
                            0.7325
                          ],
                          "gap": [
                            127.3,
                            95,
                            105.6
                          ]
                        }
                      }
                    },
                    "players": [
                      {
                        "name": "Coles Bondi Westfield",
                        "lat": -33.892876699999995,
                        "lng": 151.2510388,
                        "id": 13181591,
                        "category": "Supermarket",
                        "address": "Westfield Bondi Junction, 500 Oxford St, Bondi Junction NSW 2022",
                        "rating": 4.2,
                        "reviews": 1036,
                        "phone": "(02) 8383 4800",
                        "website": "http://www.coles.com.au/find-stores/coles/nsw/bondi-junction-853",
                        "openingHours": "{\u0022Thursday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022, \u0022Friday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022, \u0022Saturday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022, \u0022Sunday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022, \u0022Monday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022, \u0022Tuesday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022, \u0022Wednesday\u0022: \u00226\u202Fam\u201311\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Thursday": "6 am\u201311 pm",
                          "Friday": "6 am\u201311 pm",
                          "Saturday": "6 am\u201311 pm",
                          "Sunday": "6 am\u201311 pm",
                          "Monday": "6 am\u201311 pm",
                          "Tuesday": "6 am\u201311 pm",
                          "Wednesday": "6 am\u201311 pm"
                        },
                        "sectorCode": "SUPERMARKET",
                        "competitors": 90,
                        "catchmentSeconds": 600,
                        "catchmentMode": "drive"
                      },
                      {
                        "name": "ALDI",
                        "lat": -33.89282,
                        "lng": 151.24874,
                        "id": 13179904,
                        "category": "Supermarket",
                        "address": "Shop 26/91 Spring St, Bondi Junction NSW 2022",
                        "rating": 4.2,
                        "reviews": 656,
                        "phone": "13 25 34",
                        "website": "https://www.aldi.com.au/storelocator/l/bondi-junction/71-91-spring-street/g512",
                        "openingHours": "{\u0022Tuesday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Wednesday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Thursday\u0022: \u00228:30\u202Fam\u20139\u202Fpm\u0022, \u0022Friday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Saturday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Sunday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Monday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Tuesday": "8:30 am\u20138 pm",
                          "Wednesday": "8:30 am\u20138 pm",
                          "Thursday": "8:30 am\u20139 pm",
                          "Friday": "8:30 am\u20138 pm",
                          "Saturday": "8:30 am\u20138 pm",
                          "Sunday": "8:30 am\u20138 pm",
                          "Monday": "8:30 am\u20138 pm"
                        },
                        "sectorCode": "SUPERMARKET",
                        "competitors": 100,
                        "catchmentSeconds": 600,
                        "catchmentMode": "drive"
                      },
                      {
                        "name": "Coles Bondi Junction",
                        "lat": -33.8930033,
                        "lng": 151.24798149999998,
                        "id": 13020178,
                        "category": "Supermarket",
                        "address": "Eastgate Shopping Centre, Spring St \u0026, Newland St, Bondi Junction NSW 2022",
                        "rating": 4,
                        "reviews": 640,
                        "phone": "(02) 8362 2100",
                        "website": "http://www.coles.com.au/find-stores/coles/nsw/bondi-junction-809",
                        "openingHours": "{\u0022Thursday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022, \u0022Friday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022, \u0022Saturday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022, \u0022Sunday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022, \u0022Monday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022, \u0022Tuesday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022, \u0022Wednesday\u0022: \u00227\u202Fam\u201311\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Thursday": "7 am\u201311 pm",
                          "Friday": "7 am\u201311 pm",
                          "Saturday": "7 am\u201311 pm",
                          "Sunday": "7 am\u201311 pm",
                          "Monday": "7 am\u201311 pm",
                          "Tuesday": "7 am\u201311 pm",
                          "Wednesday": "7 am\u201311 pm"
                        },
                        "sectorCode": "SUPERMARKET",
                        "competitors": 0,
                        "catchmentSeconds": 600,
                        "catchmentMode": "drive"
                      }
                    ],
                    "playersTruncated": false,
                    "catchments": [
                      {
                        "sector": "supermarkets",
                        "seconds": 600,
                        "mode": "drive"
                      }
                    ],
                    "competitors": [
                      {
                        "sector": "supermarkets",
                        "count": 5
                      }
                    ],
                    "listings": [],
                    "listingsWindowDays": 60
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.markets.sector",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.people_economy/quote": {
      "post": {
        "operationId": "analysis.people_economy.quote",
        "summary": "Quote analysis.people_economy",
        "description": "Quotes analysis.people_economy without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nPeople \u0026 Economy: socio-demographic and economic tables of a territory. The territory is ONE of: isochrone (origins \u002B bandSeconds), administrative areas (areas) or drawn polygons (polygons).",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "topics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Requested topics (2 credits each, the territory is free), one or more of \u2014 Population: residents (population, sex, families and residents born overseas by band and by local government area, born overseas by postcode; in Australia country of birth, not citizenship), postcodes, age_classes, education_marital (highest qualification and highest year of school of residents aged 15 and over, and marital status), trend (population of the largest local government areas year by year, and the residents of the territory from 2001 and as the state governments project them, table population_outlook); Work and income: employment (labour force counts and rates), income (income and consumption indices, income per capita by band), spending (spending by category, potential market by band); Housing and context: housing (tenure, dwelling type and cars per occupied dwelling, from the Australian Census), territorial_comparison. Each table states the year of its data in sourceYears and sourceNote. The codes of the earlier, finer topics are still accepted and count as the topic that now contains them (for example occupation and employment_rates are one employment topic)"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "topics"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "topics": [
                  "residents"
                ],
                "preview": true,
                "idempotencyKey": "example-3dea9963ec74494cb58a88b3a064d7ca"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.people.topic"
      }
    },
    "/api/v1/actions/analysis.people_economy/execute": {
      "post": {
        "operationId": "analysis.people_economy",
        "summary": "Run analysis.people_economy (charged)",
        "description": "People \u0026 Economy: socio-demographic and economic tables of a territory. The territory is ONE of: isochrone (origins \u002B bandSeconds), administrative areas (areas) or drawn polygons (polygons).\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "topics": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Requested topics (2 credits each, the territory is free), one or more of \u2014 Population: residents (population, sex, families and residents born overseas by band and by local government area, born overseas by postcode; in Australia country of birth, not citizenship), postcodes, age_classes, education_marital (highest qualification and highest year of school of residents aged 15 and over, and marital status), trend (population of the largest local government areas year by year, and the residents of the territory from 2001 and as the state governments project them, table population_outlook); Work and income: employment (labour force counts and rates), income (income and consumption indices, income per capita by band), spending (spending by category, potential market by band); Housing and context: housing (tenure, dwelling type and cars per occupied dwelling, from the Australian Census), territorial_comparison. Each table states the year of its data in sourceYears and sourceNote. The codes of the earlier, finer topics are still accepted and count as the topic that now contains them (for example occupation and employment_rates are one employment topic)"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "topics",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "topics": [
                  "residents"
                ],
                "preview": false,
                "idempotencyKey": "example-6559086e43144583b88c10cf80a918db"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ]
                        },
                        "charged": {
                          "type": "boolean"
                        },
                        "creditsCharged": {
                          "type": "number"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "polesInvolved": {
                          "type": "integer"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          }
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "tables"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.people_economy",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.people.topic",
                          "quantity": 1,
                          "unit": "topics",
                          "credits": 2.00
                        }
                      ],
                      "totalCredits": 2
                    },
                    "charged": true,
                    "creditsCharged": 2,
                    "blockedBy": null,
                    "polesInvolved": 57608,
                    "tables": [
                      {
                        "key": "sociodemo",
                        "title": "Population by band",
                        "columns": [
                          "Band",
                          "Pop (n)",
                          "Pop (%)",
                          "Pop cum. (n)",
                          "Pop cum. (%)",
                          "Males (n)",
                          "Females (n)",
                          "Families (n)",
                          "Families cum. (n)",
                          "Residents per family",
                          "Born overseas (n)",
                          "Dwellings (n)",
                          "Occupied dwellings (n)",
                          "Area (km\u00B2)"
                        ],
                        "rows": [
                          [
                            "0\u201310 min",
                            329243,
                            100,
                            329243,
                            100,
                            166434,
                            162809,
                            70830,
                            70830,
                            4.65,
                            135326,
                            154484,
                            131440,
                            50.44
                          ]
                        ],
                        "totals": [
                          "Catchment",
                          329243,
                          100,
                          329243,
                          100,
                          166434,
                          162809,
                          70830,
                          70830,
                          4.65,
                          135326,
                          154484,
                          131440,
                          50.44
                        ],
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "by_locality",
                        "title": "Population by LGA",
                        "columns": [
                          "Locality",
                          "Area code",
                          "Region (SA4)",
                          "0\u201310 min",
                          "Total (n)",
                          "Total (%)",
                          "Municipality pop",
                          "Share of municipality (%)",
                          "Avg distance (km)"
                        ],
                        "rows": [
                          [
                            "Sydney",
                            "17200",
                            "Sydney - City and Inner South",
                            136576,
                            136576,
                            41.5,
                            237278,
                            57.6,
                            4.8
                          ],
                          [
                            "Randwick",
                            "16550",
                            "Sydney - Eastern Suburbs",
                            73017,
                            73017,
                            22.2,
                            144598,
                            50.5,
                            3.7
                          ],
                          [
                            "Waverley",
                            "18050",
                            "Sydney - Eastern Suburbs",
                            71016,
                            71016,
                            21.6,
                            72857,
                            97.5,
                            2.5
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "foreigners_by_postcode",
                        "title": "Born overseas by postcode",
                        "columns": [
                          "Postcode",
                          "Born overseas (n)",
                          "Share of all born overseas (%)",
                          "Residents (n)",
                          "Born overseas (% of residents)"
                        ],
                        "rows": [
                          [
                            "2000",
                            17597,
                            13.0,
                            27420,
                            64.2
                          ],
                          [
                            "2017",
                            14083,
                            10.4,
                            26791,
                            52.6
                          ],
                          [
                            "2026",
                            13936,
                            10.3,
                            34838,
                            40.0
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.people.topic",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.realestate/quote": {
      "post": {
        "operationId": "analysis.realestate.quote",
        "summary": "Quote analysis.realestate",
        "description": "Quotes analysis.realestate without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nReal estate analysis: median price, price per square metre, weekly rent and gross yield by postcode, quarterly series, distributions by property type and surface, list of listings. Paid: 20 credits per analysis, whatever the territory, number of listings and period.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "contract": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "both"
                    ]
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "types": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "fromQuarter": {
                    "type": "string"
                  },
                  "toQuarter": {
                    "type": "string"
                  },
                  "indicators": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Indicator groups to compute, among: prices, rents, trend, distribution (default all)"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "contract"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "contract": "sale",
                "preview": true,
                "idempotencyKey": "example-a21bffdd6f604d7f96fa08a9d7cb90b1"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.realestate"
      }
    },
    "/api/v1/actions/analysis.realestate/execute": {
      "post": {
        "operationId": "analysis.realestate",
        "summary": "Run analysis.realestate (charged)",
        "description": "Real estate analysis: median price, price per square metre, weekly rent and gross yield by postcode, quarterly series, distributions by property type and surface, list of listings. Paid: 20 credits per analysis, whatever the territory, number of listings and period.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "contract": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "both"
                    ]
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "types": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "fromQuarter": {
                    "type": "string"
                  },
                  "toQuarter": {
                    "type": "string"
                  },
                  "indicators": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Indicator groups to compute, among: prices, rents, trend, distribution (default all)"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "contract",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "contract": "sale",
                "preview": false,
                "idempotencyKey": "example-68bb985bebbe4fa8b645a5f18fc1f1e3"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when the run was paid and the figures are there"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, trial_credits"
                        },
                        "polesInvolved": {
                          "type": "integer",
                          "description": "Address poles of the territory behind the run"
                        },
                        "kpi": {
                          "type": "object",
                          "properties": {
                            "medianPrice": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median asking price of the listings (currency units)"
                            },
                            "nPrice": {
                              "type": "integer",
                              "description": "Listings behind the median price"
                            },
                            "medianPerSqm": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median asking price per square metre"
                            },
                            "nPerSqm": {
                              "type": "integer",
                              "description": "Listings behind the price per sqm"
                            },
                            "medianRentWeekly": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median weekly rent"
                            },
                            "nRent": {
                              "type": "integer",
                              "description": "Listings behind the weekly rent"
                            },
                            "medianRentPerSqm": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median weekly rent per square metre"
                            },
                            "nRentPerSqm": {
                              "type": "integer",
                              "description": "Listings behind the rent per sqm"
                            },
                            "grossYieldPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Gross yield of the territory, percent: median weekly rent \u00D7 52 / median asking price, the two figures above"
                            },
                            "nYield": {
                              "type": "integer",
                              "description": "Listings behind the yield: the smaller of NPrice and NRent"
                            }
                          },
                          "required": [
                            "nPrice",
                            "nPerSqm",
                            "nRent",
                            "nRentPerSqm",
                            "nYield"
                          ],
                          "description": "Medians of the whole territory, each with the number of listings behind it"
                        },
                        "market": {
                          "type": "object",
                          "properties": {
                            "medianDaysOnMarket": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "No longer computed, always null: the portal data has no publication date, and the gap between first and last sighting measured the download interval, not the market (deprecated, 30/10/2026)"
                            },
                            "nClosed": {
                              "type": "integer",
                              "description": "Listings for sale that left the portal in the period"
                            },
                            "sold": {
                              "type": "integer",
                              "description": "Listings for sale that left with a sale event"
                            },
                            "withdrawn": {
                              "type": "integer",
                              "description": "Listings for sale that left without a sale event"
                            },
                            "cuts": {
                              "type": "integer",
                              "description": "Listings for sale whose last asking price is lower than the first"
                            },
                            "tracked": {
                              "type": "integer",
                              "description": "Listings for sale with a known price history"
                            },
                            "medianCutPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median price cut of the listings for sale, percent of the first asking price"
                            },
                            "rentLeft": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Rental listings that left the portal in the period: leased or withdrawn, the portal does not say which"
                            }
                          },
                          "required": [
                            "nClosed",
                            "sold",
                            "withdrawn",
                            "cuts",
                            "tracked"
                          ],
                          "description": "How the market moved in the period: listings for sale sold, withdrawn and cut, rentals that left the portal"
                        },
                        "postcodes": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "l5Id": {
                                "type": "integer",
                                "description": "Internal id of the postcode area (level 5)"
                              },
                              "postcode": {
                                "type": "string",
                                "description": "Postcode"
                              },
                              "locality": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Main locality of the postcode"
                              },
                              "medianPrice": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median asking price"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median price per square metre"
                              },
                              "medianRentWeekly": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median weekly rent"
                              },
                              "rentPerSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median weekly rent per square metre"
                              },
                              "yieldPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Gross yield, percent: median weekly rent \u00D7 52 / median asking price of the postcode"
                              },
                              "listings": {
                                "type": "integer",
                                "description": "Listings of the postcode in the analysis"
                              },
                              "lowSample": {
                                "type": "boolean",
                                "description": "true when at least one value of the row rests on fewer than 10 listings (see NPrice, NPerSqm, NRent, NRentPerSqm; the yield rests on the smaller of NPrice and NRent): read it as indicative"
                              },
                              "nPrice": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Listings behind MedianPrice"
                              },
                              "nPerSqm": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Listings behind PerSqm"
                              },
                              "nRent": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Listings behind MedianRentWeekly"
                              },
                              "nRentPerSqm": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Listings behind RentPerSqm"
                              }
                            },
                            "required": [
                              "l5Id",
                              "postcode",
                              "listings",
                              "lowSample"
                            ]
                          },
                          "description": "Values by postcode"
                        },
                        "trend": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "quarter": {
                                "type": "string",
                                "description": "Quarter, e.g. 2025Q3"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median price per square metre in the quarter"
                              },
                              "medianPrice": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median asking price in the quarter"
                              },
                              "medianRentWeekly": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median weekly rent in the quarter"
                              },
                              "listingCount": {
                                "type": "integer",
                                "description": "Listings of the quarter"
                              },
                              "excluded": {
                                "type": "boolean",
                                "description": "true when the quarter has fewer listings than the minimum and is left out of the series"
                              }
                            },
                            "required": [
                              "quarter",
                              "listingCount",
                              "excluded"
                            ]
                          },
                          "description": "Quarterly series"
                        },
                        "trendMinListings": {
                          "type": "integer",
                          "description": "Minimum listings for a quarter to enter the series"
                        },
                        "byType": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "Property type: house, unit, townhouse, land, rural, other"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings of the type"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median price per square metre of the type"
                              }
                            },
                            "required": [
                              "type",
                              "count"
                            ]
                          },
                          "description": "Listings and price per square metre by property type"
                        },
                        "byArea": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "string",
                                "description": "Surface band in square metres"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings in the band"
                              }
                            },
                            "required": [
                              "band",
                              "count"
                            ]
                          },
                          "description": "Listings by surface band"
                        },
                        "areaKnownCount": {
                          "type": "integer",
                          "description": "Listings with a known surface, behind ByArea"
                        },
                        "byPrice": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "string",
                                "description": "Label of the band"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings in the band"
                              },
                              "median": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median value inside the band, where it means something"
                              }
                            },
                            "required": [
                              "band",
                              "count"
                            ]
                          },
                          "description": "Listings for sale by asking price band (A$), with the median of each band; empty without listings for sale. Weekly rents are in ByRent"
                        },
                        "byBeds": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "string",
                                "description": "Label of the band"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings in the band"
                              },
                              "median": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median value inside the band, where it means something"
                              }
                            },
                            "required": [
                              "band",
                              "count"
                            ]
                          },
                          "description": "Listings for sale by bedrooms, with the median price of each band"
                        },
                        "byDays": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "string",
                                "description": "Label of the band"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings in the band"
                              },
                              "median": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median value inside the band, where it means something"
                              }
                            },
                            "required": [
                              "band",
                              "count"
                            ]
                          },
                          "description": "No longer computed, always empty (see Market.MedianDaysOnMarket; deprecated, 30/10/2026)"
                        },
                        "listings": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Listing id, stable across runs"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address as published"
                              },
                              "type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Normalised property type"
                              },
                              "postcode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Postcode"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Asking price, or weekly rent for rentals"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price per square metre"
                              },
                              "beds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bedrooms"
                              },
                              "baths": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bathrooms"
                              },
                              "cars": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Car spaces"
                              },
                              "areaMq": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Floor or land area in square metres"
                              },
                              "suburb": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Suburb"
                              },
                              "published": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Publication date"
                              },
                              "removed": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Removal date, null while online"
                              },
                              "lat": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Longitude"
                              },
                              "l5Id": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Postcode area id (level 5)"
                              },
                              "contract": {
                                "type": "string",
                                "description": "sale or rent"
                              },
                              "outlier": {
                                "type": "boolean",
                                "description": "true when the listing is a price outlier excluded from the indicators"
                              },
                              "sold": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "true when it left the portal with a sale event"
                              },
                              "cutPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Cut from the first asking price, percent (positive = lowered)"
                              },
                              "daysOnMarket": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "No longer computed, always null (see Market.MedianDaysOnMarket; deprecated, 30/10/2026)"
                              }
                            },
                            "required": [
                              "id",
                              "contract",
                              "outlier"
                            ]
                          },
                          "description": "The listings of the run, most recent first"
                        },
                        "listingsCapped": {
                          "type": "boolean",
                          "description": "true when Listings was cut at ListingsCap; the figures still use every listing"
                        },
                        "listingsCap": {
                          "type": "integer",
                          "description": "Most listings returned in Listings"
                        },
                        "listingsUsed": {
                          "type": "integer",
                          "description": "Listings in the territory with the chosen filters"
                        },
                        "outliersExcluded": {
                          "type": "integer",
                          "description": "Listings with a measure out of range, left out of the figures"
                        },
                        "unclassifiedExcluded": {
                          "type": "integer",
                          "description": "Listings whose property type is none of the six, left out"
                        },
                        "fromQuarter": {
                          "type": "string",
                          "description": "First quarter of the period, format 2026-Q3"
                        },
                        "toQuarter": {
                          "type": "string",
                          "description": "Last quarter of the period, format 2026-Q3"
                        },
                        "runAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the run was computed (UTC)"
                        },
                        "byRent": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "string",
                                "description": "Label of the band"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings in the band"
                              },
                              "median": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median value inside the band, where it means something"
                              }
                            },
                            "required": [
                              "band",
                              "count"
                            ]
                          },
                          "description": "Rental listings by weekly rent band (A$ a week), with the median of each band; empty without rentals"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "kpi",
                        "market",
                        "postcodes",
                        "trend",
                        "trendMinListings",
                        "byType",
                        "byArea",
                        "areaKnownCount",
                        "byPrice",
                        "byBeds",
                        "byDays",
                        "listings",
                        "listingsCapped",
                        "listingsCap",
                        "listingsUsed",
                        "outliersExcluded",
                        "unclassifiedExcluded",
                        "fromQuarter",
                        "toQuarter",
                        "runAt"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.realestate",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.realestate",
                          "quantity": 1,
                          "unit": "analyses",
                          "credits": 20.00
                        }
                      ],
                      "totalCredits": 20
                    },
                    "charged": true,
                    "creditsCharged": 20,
                    "blockedBy": null,
                    "polesInvolved": 49610,
                    "kpi": {
                      "medianPrice": 1200000.00,
                      "nPrice": 844,
                      "medianPerSqm": 13796.55,
                      "nPerSqm": 362,
                      "medianRentWeekly": null,
                      "nRent": 0,
                      "medianRentPerSqm": null,
                      "nRentPerSqm": 0,
                      "grossYieldPct": null,
                      "nYield": 0
                    },
                    "market": {
                      "medianDaysOnMarket": null,
                      "nClosed": 565,
                      "sold": 2,
                      "withdrawn": 563,
                      "cuts": 1,
                      "tracked": 972,
                      "medianCutPct": 35.8
                    },
                    "postcodes": [
                      {
                        "l5Id": 2000,
                        "postcode": "2000",
                        "locality": "Sydney",
                        "medianPrice": 1270000.00,
                        "perSqm": 13775.51,
                        "medianRentWeekly": null,
                        "rentPerSqm": null,
                        "yieldPct": null,
                        "listings": 560,
                        "lowSample": false
                      },
                      {
                        "l5Id": 2007,
                        "postcode": "2007",
                        "locality": "Sydney",
                        "medianPrice": 1100000.00,
                        "perSqm": 11926.61,
                        "medianRentWeekly": null,
                        "rentPerSqm": null,
                        "yieldPct": null,
                        "listings": 36,
                        "lowSample": false
                      },
                      {
                        "l5Id": 2008,
                        "postcode": "2008",
                        "locality": "Sydney",
                        "medianPrice": 900000.00,
                        "perSqm": 12500.00,
                        "medianRentWeekly": null,
                        "rentPerSqm": null,
                        "yieldPct": null,
                        "listings": 94,
                        "lowSample": false
                      }
                    ],
                    "trend": [
                      {
                        "quarter": "2026-Q3",
                        "perSqm": 13796.55,
                        "medianPrice": 1200000.00,
                        "medianRentWeekly": null,
                        "listingCount": 2426,
                        "excluded": false
                      }
                    ],
                    "trendMinListings": 30,
                    "byType": [
                      {
                        "type": "apartment",
                        "count": 1633,
                        "perSqm": 13415.80
                      },
                      {
                        "type": "commercial",
                        "count": 313,
                        "perSqm": 12500.00
                      },
                      {
                        "type": "house",
                        "count": 309,
                        "perSqm": 19230.77
                      }
                    ],
                    "byArea": [
                      {
                        "band": "\u003C50",
                        "count": 104
                      },
                      {
                        "band": "50-100",
                        "count": 331
                      },
                      {
                        "band": "100-150",
                        "count": 220
                      }
                    ],
                    "areaKnownCount": 942,
                    "byPrice": [
                      {
                        "band": "\u003C400k",
                        "count": 10,
                        "median": 380000
                      },
                      {
                        "band": "400-600k",
                        "count": 60,
                        "median": 525000
                      },
                      {
                        "band": "600-800k",
                        "count": 142,
                        "median": 692500
                      }
                    ],
                    "byBeds": [
                      {
                        "band": "0",
                        "count": 49,
                        "median": 499000
                      },
                      {
                        "band": "1",
                        "count": 255,
                        "median": 750000
                      },
                      {
                        "band": "2",
                        "count": 343,
                        "median": 1250000
                      }
                    ],
                    "byDays": [],
                    "byRent": [],
                    "listings": [
                      {
                        "id": 4678136,
                        "address": "805/1 Kings Cross Road, Darlinghurst, NSW 2010",
                        "type": "apartment",
                        "postcode": "2010",
                        "price": null,
                        "perSqm": null,
                        "beds": 2,
                        "baths": 2,
                        "cars": 1,
                        "areaMq": 103.00,
                        "suburb": "Darlinghurst",
                        "published": "2026-09-21T07:23:58.53265",
                        "removed": null,
                        "lat": -33.87586025,
                        "lng": 151.22238839,
                        "l5Id": 2010,
                        "contract": "sale",
                        "outlier": false,
                        "sold": false,
                        "cutPct": null,
                        "daysOnMarket": null
                      },
                      {
                        "id": 4676365,
                        "address": "1007/50 Murray Street, Sydney, NSW 2000",
                        "type": "apartment",
                        "postcode": "2000",
                        "price": 1450000.00,
                        "perSqm": null,
                        "beds": 2,
                        "baths": 2,
                        "cars": 1,
                        "areaMq": null,
                        "suburb": "Sydney",
                        "published": "2026-09-21T06:59:23.390408",
                        "removed": null,
                        "lat": -33.87091692,
                        "lng": 151.1979512,
                        "l5Id": 2000,
                        "contract": "sale",
                        "outlier": false,
                        "sold": false,
                        "cutPct": null,
                        "daysOnMarket": null
                      },
                      {
                        "id": 4674484,
                        "address": "50/152-164 Bulwara Road, Pyrmont, NSW 2009",
                        "type": "apartment",
                        "postcode": "2009",
                        "price": null,
                        "perSqm": null,
                        "beds": 2,
                        "baths": 2,
                        "cars": 1,
                        "areaMq": null,
                        "suburb": "Pyrmont",
                        "published": "2026-09-21T06:33:55.733303",
                        "removed": null,
                        "lat": -33.87327449,
                        "lng": 151.19513362,
                        "l5Id": 2009,
                        "contract": "sale",
                        "outlier": false,
                        "sold": false,
                        "cutPct": null,
                        "daysOnMarket": null
                      }
                    ],
                    "listingsCapped": false,
                    "listingsCap": 10000,
                    "listingsUsed": 2440,
                    "outliersExcluded": 14,
                    "unclassifiedExcluded": 36,
                    "fromQuarter": "2026-Q3",
                    "toQuarter": "2026-Q3",
                    "runAt": "2026-10-12T10:12:54.2090117\u002B00:00"
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.realestate",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.realestate_property/quote": {
      "post": {
        "operationId": "analysis.realestate_property.quote",
        "summary": "Quote analysis.realestate_property",
        "description": "Quotes analysis.realestate_property without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nReal estate, one property: the market evidence for the value of a single property. Picks every listing in the territory that resembles it (same type, floor area within a tolerance, seen recently) - sold ones with the sale price published by the portal, the others with their lowest advertised figure - and numbers them by drive time from the property. Returns an estimated range from their price per square metre (whole prices when the floor area is unknown), how sale prices compared with advertised ones, the nearby amenities by drive time (transport, schools, health, groceries, shopping), how fast the market moves for the property\u0027s type here, in its state and in Australia, the pool the comparables come from (realestate.comparables picks them again from it at no cost, with another description, filters or discount) and the market of the area as analysis.realestate returns it. Paid: 20 credits per property, whatever the territory.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "property": {
                    "type": "object",
                    "properties": {
                      "lat": {
                        "type": "number",
                        "description": "Latitude of the property. It must lie inside the territory: the comparables come from there."
                      },
                      "lng": {
                        "type": "number",
                        "description": "Longitude of the property"
                      },
                      "contract": {
                        "type": "string",
                        "enum": [
                          "sale",
                          "rent"
                        ],
                        "description": "sale: compared with sold properties and properties for sale; rent: with properties for rent"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "house",
                          "apartment",
                          "townhouse",
                          "unit",
                          "land",
                          "commercial"
                        ],
                        "description": "Property type"
                      },
                      "floorArea": {
                        "type": "number",
                        "description": "Floor area in square metres (land area for land). Without it, comparables are matched on bedrooms and bathrooms and compared on whole prices."
                      },
                      "beds": {
                        "type": "integer",
                        "description": "Bedrooms"
                      },
                      "baths": {
                        "type": "integer",
                        "description": "Bathrooms"
                      },
                      "cars": {
                        "type": "integer",
                        "description": "Car spaces"
                      },
                      "address": {
                        "type": "string",
                        "description": "Address as the user knows it: returned as given, never geocoded"
                      },
                      "listingId": {
                        "type": "integer",
                        "description": "The portal listing of this very property, when it is or was on the market: it is left out of its own comparables"
                      }
                    },
                    "required": [
                      "lat",
                      "lng",
                      "contract",
                      "type"
                    ],
                    "description": "The property to value: where it is, the contract and what it is like"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "areaTolerancePct": {
                        "type": "integer",
                        "description": "Floor area tolerance around the property\u0027s, percent, 5 to 100 (default 25)"
                      },
                      "monthsBack": {
                        "type": "integer",
                        "description": "Only listings seen, sold or withdrawn in the last N months, 1 to 36 (default 12)"
                      },
                      "includeActive": {
                        "type": "boolean",
                        "description": "Include properties still on the market (default true)"
                      },
                      "includeSold": {
                        "type": "boolean",
                        "description": "Include sold properties; for rent, properties that left the portal (default true)"
                      },
                      "otherTypes": {
                        "type": "boolean",
                        "description": "Also listings of other property types (default false)"
                      },
                      "excludedIds": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "description": "Ids of listings the user leaves out: they keep their number but do not count"
                      }
                    },
                    "required": [],
                    "description": "How comparables are picked. Defaults: same type, floor area within 25%, seen in the last 12 months, on the market and sold."
                  },
                  "discountPct": {
                    "type": "number",
                    "description": "Discount the analyst applies to advertised prices, percent, 0 to 50 (default 0). Sale prices are never discounted."
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "property"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "property": {
                  "lat": -33.89106,
                  "lng": 151.24843,
                  "contract": "sale",
                  "type": "apartment",
                  "floorArea": 86,
                  "beds": 2,
                  "baths": 2,
                  "cars": 1
                },
                "preview": true,
                "idempotencyKey": "example-0bf4f22f0385464889b82fc5307a9877"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.realestate_property"
      }
    },
    "/api/v1/actions/analysis.realestate_property/execute": {
      "post": {
        "operationId": "analysis.realestate_property",
        "summary": "Run analysis.realestate_property (charged)",
        "description": "Real estate, one property: the market evidence for the value of a single property. Picks every listing in the territory that resembles it (same type, floor area within a tolerance, seen recently) - sold ones with the sale price published by the portal, the others with their lowest advertised figure - and numbers them by drive time from the property. Returns an estimated range from their price per square metre (whole prices when the floor area is unknown), how sale prices compared with advertised ones, the nearby amenities by drive time (transport, schools, health, groceries, shopping), how fast the market moves for the property\u0027s type here, in its state and in Australia, the pool the comparables come from (realestate.comparables picks them again from it at no cost, with another description, filters or discount) and the market of the area as analysis.realestate returns it. Paid: 20 credits per property, whatever the territory.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "property": {
                    "type": "object",
                    "properties": {
                      "lat": {
                        "type": "number",
                        "description": "Latitude of the property. It must lie inside the territory: the comparables come from there."
                      },
                      "lng": {
                        "type": "number",
                        "description": "Longitude of the property"
                      },
                      "contract": {
                        "type": "string",
                        "enum": [
                          "sale",
                          "rent"
                        ],
                        "description": "sale: compared with sold properties and properties for sale; rent: with properties for rent"
                      },
                      "type": {
                        "type": "string",
                        "enum": [
                          "house",
                          "apartment",
                          "townhouse",
                          "unit",
                          "land",
                          "commercial"
                        ],
                        "description": "Property type"
                      },
                      "floorArea": {
                        "type": "number",
                        "description": "Floor area in square metres (land area for land). Without it, comparables are matched on bedrooms and bathrooms and compared on whole prices."
                      },
                      "beds": {
                        "type": "integer",
                        "description": "Bedrooms"
                      },
                      "baths": {
                        "type": "integer",
                        "description": "Bathrooms"
                      },
                      "cars": {
                        "type": "integer",
                        "description": "Car spaces"
                      },
                      "address": {
                        "type": "string",
                        "description": "Address as the user knows it: returned as given, never geocoded"
                      },
                      "listingId": {
                        "type": "integer",
                        "description": "The portal listing of this very property, when it is or was on the market: it is left out of its own comparables"
                      }
                    },
                    "required": [
                      "lat",
                      "lng",
                      "contract",
                      "type"
                    ],
                    "description": "The property to value: where it is, the contract and what it is like"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "areaTolerancePct": {
                        "type": "integer",
                        "description": "Floor area tolerance around the property\u0027s, percent, 5 to 100 (default 25)"
                      },
                      "monthsBack": {
                        "type": "integer",
                        "description": "Only listings seen, sold or withdrawn in the last N months, 1 to 36 (default 12)"
                      },
                      "includeActive": {
                        "type": "boolean",
                        "description": "Include properties still on the market (default true)"
                      },
                      "includeSold": {
                        "type": "boolean",
                        "description": "Include sold properties; for rent, properties that left the portal (default true)"
                      },
                      "otherTypes": {
                        "type": "boolean",
                        "description": "Also listings of other property types (default false)"
                      },
                      "excludedIds": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "description": "Ids of listings the user leaves out: they keep their number but do not count"
                      }
                    },
                    "required": [],
                    "description": "How comparables are picked. Defaults: same type, floor area within 25%, seen in the last 12 months, on the market and sold."
                  },
                  "discountPct": {
                    "type": "number",
                    "description": "Discount the analyst applies to advertised prices, percent, 0 to 50 (default 0). Sale prices are never discounted."
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "property",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "property": {
                  "lat": -33.89106,
                  "lng": 151.24843,
                  "contract": "sale",
                  "type": "apartment",
                  "floorArea": 86,
                  "beds": 2,
                  "baths": 2,
                  "cars": 1
                },
                "preview": false,
                "idempotencyKey": "example-3cf94f3a6f9e4b728f693ed5d00602d0"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when the run was paid and the figures are there"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, trial_credits"
                        },
                        "property": {
                          "type": "object",
                          "properties": {
                            "lat": {
                              "type": "number",
                              "description": "Latitude of the property"
                            },
                            "lng": {
                              "type": "number",
                              "description": "Longitude of the property"
                            },
                            "contract": {
                              "type": "string",
                              "description": "sale or rent"
                            },
                            "type": {
                              "type": "string",
                              "description": "Property type"
                            },
                            "floorArea": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Floor area in square metres, as given"
                            },
                            "beds": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Bedrooms, as given"
                            },
                            "baths": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Bathrooms, as given"
                            },
                            "cars": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Car spaces, as given"
                            },
                            "address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Address, as given"
                            },
                            "snapDistM": {
                              "type": "number",
                              "description": "Distance in metres from the point to the road network"
                            },
                            "state": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "State of the property, used when the local sample is too small"
                            },
                            "listingId": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The portal listing of this very property, left out of its own comparables; null when none was given"
                            }
                          },
                          "required": [
                            "lat",
                            "lng",
                            "contract",
                            "type",
                            "snapDistM"
                          ],
                          "description": "The property as valued: the input plus where it sits on the road network"
                        },
                        "value": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "basis": {
                              "type": "string",
                              "description": "per_sqm: price per square metre of the comparables times the floor area; whole_price: whole prices of comparables with the same rooms"
                            },
                            "measure": {
                              "type": "string",
                              "description": "price: total value in AUD; weekly_rent: weekly rent in AUD"
                            },
                            "low": {
                              "type": "number",
                              "description": "Low end of the range: first quartile of the comparables"
                            },
                            "mid": {
                              "type": "number",
                              "description": "Middle of the range: median of the comparables"
                            },
                            "high": {
                              "type": "number",
                              "description": "High end of the range: third quartile of the comparables"
                            },
                            "perSqmLow": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "First quartile per square metre (rent: per square metre per year)"
                            },
                            "perSqmMid": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median per square metre (rent: per square metre per year)"
                            },
                            "perSqmHigh": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Third quartile per square metre (rent: per square metre per year)"
                            },
                            "n": {
                              "type": "integer",
                              "description": "Comparables with a usable price behind the range"
                            },
                            "soldMedian": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median of the sold comparables in use (per square metre, or whole price)"
                            },
                            "soldN": {
                              "type": "integer",
                              "description": "Sold comparables behind SoldMedian"
                            },
                            "advertisedMedian": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median of the advertised comparables in use, before the discount (per square metre, or whole price)"
                            },
                            "advertisedN": {
                              "type": "integer",
                              "description": "Advertised comparables behind AdvertisedMedian"
                            }
                          },
                          "required": [
                            "basis",
                            "measure",
                            "low",
                            "mid",
                            "high",
                            "n",
                            "soldN",
                            "advertisedN"
                          ],
                          "description": "Estimated range; null when no comparable has a usable price"
                        },
                        "comparables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "description": "Number by drive time from the property: the same on the map, in the table and in the report"
                              },
                              "used": {
                                "type": "boolean",
                                "description": "false when the user left it out or it has no usable price"
                              },
                              "id": {
                                "type": "integer",
                                "description": "Listing id"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address as published"
                              },
                              "suburb": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Suburb"
                              },
                              "postcode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Postcode"
                              },
                              "type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Normalised property type"
                              },
                              "status": {
                                "type": "string",
                                "description": "active, sold or left"
                              },
                              "statusDate": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Date of the sale or of the departure from the portal"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Sale price for sold listings, lowest advertised figure for the others; weekly rent for rentals"
                              },
                              "priceWithheld": {
                                "type": "boolean",
                                "description": "true when the portal does not show the price"
                              },
                              "area": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Floor area in square metres (land area for land)"
                              },
                              "beds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bedrooms"
                              },
                              "baths": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bathrooms"
                              },
                              "cars": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Car spaces"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price per square metre (rent: per year), before any discount"
                              },
                              "perSqmUsed": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price per square metre after the discount, which applies only to advertised prices"
                              },
                              "minutes": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Drive time in minutes from the property"
                              },
                              "metres": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Road distance in metres from the property"
                              },
                              "lat": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Longitude"
                              },
                              "lastSeen": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Last time the portal showed the listing"
                              }
                            },
                            "required": [
                              "number",
                              "used",
                              "id",
                              "status",
                              "priceWithheld"
                            ]
                          },
                          "description": "Every listing that matches the filters, numbered by drive time from the property"
                        },
                        "soldVsAdvertised": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "description": "sale_vs_advertised: sale price against the last advertised figure seen before the sale; rent_while_listed: last against first asking rent"
                            },
                            "scope": {
                              "type": "string",
                              "description": "local: the territory; state: the property\u0027s state, used because the territory had fewer than 20 cases"
                            },
                            "state": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "State of the figures when Scope is state"
                            },
                            "n": {
                              "type": "integer",
                              "description": "Cases behind the figures"
                            },
                            "abovePct": {
                              "type": "number",
                              "description": "Share of cases above the advertised figure, percent"
                            },
                            "equalPct": {
                              "type": "number",
                              "description": "Share of cases within half a percent of it, percent"
                            },
                            "belowPct": {
                              "type": "number",
                              "description": "Share of cases below it, percent"
                            },
                            "medianGapPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median gap, percent (positive: above the advertised figure)"
                            },
                            "medianBelowPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median gap of the cases below the advertised figure, percent (negative)"
                            }
                          },
                          "required": [
                            "kind",
                            "scope",
                            "n",
                            "abovePct",
                            "equalPct",
                            "belowPct"
                          ],
                          "description": "How sale prices compared with the last advertised figure for the property\u0027s type (for rent: how asking rents moved while listed, on the listings whose price could be followed); null when there is no case"
                        },
                        "amenities": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "group": {
                                "type": "string",
                                "enum": [
                                  "transport",
                                  "schools",
                                  "health",
                                  "groceries",
                                  "shopping"
                                ],
                                "description": "transport (stations and interchanges, no bus stops), schools, health (general practitioners and medical centres), groceries (supermarkets and hypermarkets), shopping (shopping centres)"
                              },
                              "sectors": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Sector codes counted in the group, as markets.sectors lists them"
                              },
                              "within5": {
                                "type": "integer",
                                "description": "Places of the group within 5 minutes"
                              },
                              "within10": {
                                "type": "integer",
                                "description": "Places of the group within 10 minutes"
                              },
                              "within15": {
                                "type": "integer",
                                "description": "Places of the group within 15 minutes"
                              },
                              "places": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "id": {
                                      "type": "integer",
                                      "description": "Place id"
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "Name of the place"
                                    },
                                    "sector": {
                                      "type": "string",
                                      "description": "Sector code of the place"
                                    },
                                    "lat": {
                                      "type": "number",
                                      "description": "Latitude"
                                    },
                                    "lng": {
                                      "type": "number",
                                      "description": "Longitude"
                                    },
                                    "minutes": {
                                      "type": "integer",
                                      "description": "Travel time in minutes from the property, rounded"
                                    },
                                    "metres": {
                                      "type": "integer",
                                      "description": "Road distance in metres from the property"
                                    }
                                  },
                                  "required": [
                                    "id",
                                    "name",
                                    "sector",
                                    "lat",
                                    "lng",
                                    "minutes",
                                    "metres"
                                  ]
                                },
                                "description": "The nearest places of the group, nearest first, at most 20 and within 30 minutes; the first is the nearest. Empty when none is within 30 minutes"
                              }
                            },
                            "required": [
                              "group",
                              "sectors",
                              "within5",
                              "within10",
                              "within15",
                              "places"
                            ]
                          },
                          "description": "Nearby amenities in five groups, timed on the road network from the property with the territory\u0027s travel mode, up to 30 minutes"
                        },
                        "liquidity": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "local",
                                  "state",
                                  "australia"
                                ],
                                "description": "local: the territory; state: the property\u0027s state; australia: the whole country"
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "State code when Scope is state"
                              },
                              "exited": {
                                "type": "integer",
                                "description": "Listings of the property\u0027s type and contract that left the portal in the last 24 months"
                              },
                              "sold": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "For sale: how many of them left as sold. Null for rent: the portal does not say whether a property was leased"
                              },
                              "soldPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "For sale: share of the listings that left the portal as sold, percent. Null for rent"
                              },
                              "medianDays": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "For sale: median days from publication to the sale date published by the portal. Null while the listing data does not carry the portal\u0027s publication date, and always for rent, where no lease date is published"
                              },
                              "daysN": {
                                "type": "integer",
                                "description": "Sold listings behind MedianDays and DaysBands; 0 when the days cannot be counted"
                              },
                              "daysBands": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "band": {
                                      "type": "string",
                                      "description": "Label of the band"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "description": "Listings in the band"
                                    },
                                    "median": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "Median value inside the band, where it means something"
                                    }
                                  },
                                  "required": [
                                    "band",
                                    "count"
                                  ]
                                },
                                "description": "The same sold listings by days to sell: 0-14, 15-30, 31-60, 61-90, \u003E90"
                              },
                              "trackedN": {
                                "type": "integer",
                                "description": "Listings still advertised or withdrawn whose asking price could be followed: a known starting price, then a recorded change or the listing seen again at least a day later"
                              },
                              "cutPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Share of them whose asking price was lowered, percent"
                              },
                              "medianCutPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median cut of the lowered ones, percent of the starting asking price"
                              }
                            },
                            "required": [
                              "scope",
                              "exited",
                              "daysN",
                              "daysBands",
                              "trackedN"
                            ]
                          },
                          "description": "How fast the market moves for the property\u0027s type and contract: in the territory (local), in the property\u0027s state and in Australia, in this order"
                        },
                        "filters": {
                          "type": "object",
                          "properties": {
                            "areaTolerancePct": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Floor area tolerance around the property\u0027s, percent, 5 to 100 (default 25)"
                            },
                            "monthsBack": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Only listings seen, sold or withdrawn in the last N months, 1 to 36 (default 12)"
                            },
                            "includeActive": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "Include properties still on the market (default true)"
                            },
                            "includeSold": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "Include sold properties; for rent, properties that left the portal (default true)"
                            },
                            "otherTypes": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "Also listings of other property types (default false)"
                            },
                            "excludedIds": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "integer"
                              },
                              "description": "Ids of listings the user leaves out: they keep their number but do not count"
                            }
                          },
                          "required": [],
                          "description": "The filters actually applied"
                        },
                        "discountPct": {
                          "type": "number",
                          "description": "Discount applied to advertised prices, percent"
                        },
                        "candidates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Listing id, as in analysis.realestate and realestate.listing"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address as published"
                              },
                              "suburb": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Suburb"
                              },
                              "postcode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Postcode"
                              },
                              "type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Normalised property type"
                              },
                              "status": {
                                "type": "string",
                                "description": "active: on the market; sold: sold, with the sale price published by the portal; left: left the portal without a recorded sale"
                              },
                              "statusDate": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Date of the sale (from the portal) or of the departure from the portal"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Sale price for sold listings; for the others the lowest figure in the advert (the low end of a range, an \u0027offers over\u0027). Weekly rent for rentals."
                              },
                              "priceWithheld": {
                                "type": "boolean",
                                "description": "true when the portal does not show the price"
                              },
                              "area": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Floor area in square metres (land area for land)"
                              },
                              "beds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bedrooms"
                              },
                              "baths": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bathrooms"
                              },
                              "cars": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Car spaces"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price per square metre (rent: per square metre per year), before any discount"
                              },
                              "minutes": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Drive time in minutes from the property; null beyond 30 minutes"
                              },
                              "metres": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Road distance in metres from the property; null beyond 30 minutes"
                              },
                              "lat": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Longitude"
                              },
                              "lastSeen": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Last time the portal showed the listing"
                              },
                              "advertisedBeforeSale": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "For sold listings, the last advertised figure seen before the sale (null if it was first seen already sold)"
                              },
                              "firstAdvertised": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "For listings still advertised or withdrawn, the starting asking price when the price could be followed (see Liquidity.TrackedN); null otherwise"
                              },
                              "daysToSell": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "For sold listings, days from publication to the sale date published by the portal; null while the listing data does not carry the portal\u0027s publication date"
                              }
                            },
                            "required": [
                              "id",
                              "status",
                              "priceWithheld"
                            ]
                          },
                          "description": "The pool the comparables are picked from: every listing in the territory for the contract, of any type, seen in the last 24 months, outliers left out, nearest first. realestate.comparables picks the comparables again from it at no cost"
                        },
                        "candidatesCapped": {
                          "type": "boolean",
                          "description": "true when the pool was cut to the 20,000 listings nearest in drive time"
                        },
                        "area": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "quote": {
                              "type": "object",
                              "properties": {
                                "lines": {
                                  "type": "array",
                                  "items": {
                                    "type": "object",
                                    "properties": {
                                      "actionCode": {
                                        "type": "string",
                                        "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                      },
                                      "quantity": {
                                        "type": "number",
                                        "description": "How many units of the item the run uses"
                                      },
                                      "unit": {
                                        "type": "string",
                                        "description": "What the unit counts: brands, areas, poles, topics, points..."
                                      },
                                      "credits": {
                                        "type": "number",
                                        "description": "Credits of this line, before the total is rounded"
                                      }
                                    },
                                    "required": [
                                      "actionCode",
                                      "quantity",
                                      "unit",
                                      "credits"
                                    ]
                                  },
                                  "description": "One line per tariff item the run is billed on"
                                },
                                "totalCredits": {
                                  "type": "number",
                                  "description": "Credits the run costs in total, already rounded up as it will be charged"
                                }
                              },
                              "required": [
                                "lines",
                                "totalCredits"
                              ],
                              "description": "What the run costs, or cost: quoted before running, charged after"
                            },
                            "charged": {
                              "type": "boolean",
                              "description": "true when the run was paid and the figures are there"
                            },
                            "creditsCharged": {
                              "type": "number",
                              "description": "Credits actually charged"
                            },
                            "blockedBy": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, trial_credits"
                            },
                            "polesInvolved": {
                              "type": "integer",
                              "description": "Address poles of the territory behind the run"
                            },
                            "kpi": {
                              "type": "object",
                              "properties": {
                                "medianPrice": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median asking price of the listings (currency units)"
                                },
                                "nPrice": {
                                  "type": "integer",
                                  "description": "Listings behind the median price"
                                },
                                "medianPerSqm": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median asking price per square metre"
                                },
                                "nPerSqm": {
                                  "type": "integer",
                                  "description": "Listings behind the price per sqm"
                                },
                                "medianRentWeekly": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median weekly rent"
                                },
                                "nRent": {
                                  "type": "integer",
                                  "description": "Listings behind the weekly rent"
                                },
                                "medianRentPerSqm": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median weekly rent per square metre"
                                },
                                "nRentPerSqm": {
                                  "type": "integer",
                                  "description": "Listings behind the rent per sqm"
                                },
                                "grossYieldPct": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Gross yield of the territory, percent: median weekly rent \u00D7 52 / median asking price, the two figures above"
                                },
                                "nYield": {
                                  "type": "integer",
                                  "description": "Listings behind the yield: the smaller of NPrice and NRent"
                                }
                              },
                              "required": [
                                "nPrice",
                                "nPerSqm",
                                "nRent",
                                "nRentPerSqm",
                                "nYield"
                              ],
                              "description": "Medians of the whole territory, each with the number of listings behind it"
                            },
                            "market": {
                              "type": "object",
                              "properties": {
                                "medianDaysOnMarket": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "No longer computed, always null: the portal data has no publication date, and the gap between first and last sighting measured the download interval, not the market (deprecated, 30/10/2026)"
                                },
                                "nClosed": {
                                  "type": "integer",
                                  "description": "Listings for sale that left the portal in the period"
                                },
                                "sold": {
                                  "type": "integer",
                                  "description": "Listings for sale that left with a sale event"
                                },
                                "withdrawn": {
                                  "type": "integer",
                                  "description": "Listings for sale that left without a sale event"
                                },
                                "cuts": {
                                  "type": "integer",
                                  "description": "Listings for sale whose last asking price is lower than the first"
                                },
                                "tracked": {
                                  "type": "integer",
                                  "description": "Listings for sale with a known price history"
                                },
                                "medianCutPct": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median price cut of the listings for sale, percent of the first asking price"
                                },
                                "rentLeft": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Rental listings that left the portal in the period: leased or withdrawn, the portal does not say which"
                                }
                              },
                              "required": [
                                "nClosed",
                                "sold",
                                "withdrawn",
                                "cuts",
                                "tracked"
                              ],
                              "description": "How the market moved in the period: listings for sale sold, withdrawn and cut, rentals that left the portal"
                            },
                            "postcodes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "l5Id": {
                                    "type": "integer",
                                    "description": "Internal id of the postcode area (level 5)"
                                  },
                                  "postcode": {
                                    "type": "string",
                                    "description": "Postcode"
                                  },
                                  "locality": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Main locality of the postcode"
                                  },
                                  "medianPrice": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median asking price"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median price per square metre"
                                  },
                                  "medianRentWeekly": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median weekly rent"
                                  },
                                  "rentPerSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median weekly rent per square metre"
                                  },
                                  "yieldPct": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Gross yield, percent: median weekly rent \u00D7 52 / median asking price of the postcode"
                                  },
                                  "listings": {
                                    "type": "integer",
                                    "description": "Listings of the postcode in the analysis"
                                  },
                                  "lowSample": {
                                    "type": "boolean",
                                    "description": "true when at least one value of the row rests on fewer than 10 listings (see NPrice, NPerSqm, NRent, NRentPerSqm; the yield rests on the smaller of NPrice and NRent): read it as indicative"
                                  },
                                  "nPrice": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind MedianPrice"
                                  },
                                  "nPerSqm": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind PerSqm"
                                  },
                                  "nRent": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind MedianRentWeekly"
                                  },
                                  "nRentPerSqm": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind RentPerSqm"
                                  }
                                },
                                "required": [
                                  "l5Id",
                                  "postcode",
                                  "listings",
                                  "lowSample"
                                ]
                              },
                              "description": "Values by postcode"
                            },
                            "trend": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "quarter": {
                                    "type": "string",
                                    "description": "Quarter, e.g. 2025Q3"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median price per square metre in the quarter"
                                  },
                                  "medianPrice": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median asking price in the quarter"
                                  },
                                  "medianRentWeekly": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median weekly rent in the quarter"
                                  },
                                  "listingCount": {
                                    "type": "integer",
                                    "description": "Listings of the quarter"
                                  },
                                  "excluded": {
                                    "type": "boolean",
                                    "description": "true when the quarter has fewer listings than the minimum and is left out of the series"
                                  }
                                },
                                "required": [
                                  "quarter",
                                  "listingCount",
                                  "excluded"
                                ]
                              },
                              "description": "Quarterly series"
                            },
                            "trendMinListings": {
                              "type": "integer",
                              "description": "Minimum listings for a quarter to enter the series"
                            },
                            "byType": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "Property type: house, unit, townhouse, land, rural, other"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings of the type"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median price per square metre of the type"
                                  }
                                },
                                "required": [
                                  "type",
                                  "count"
                                ]
                              },
                              "description": "Listings and price per square metre by property type"
                            },
                            "byArea": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Surface band in square metres"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings in the band"
                                  }
                                },
                                "required": [
                                  "band",
                                  "count"
                                ]
                              },
                              "description": "Listings by surface band"
                            },
                            "areaKnownCount": {
                              "type": "integer",
                              "description": "Listings with a known surface, behind ByArea"
                            },
                            "byPrice": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Label of the band"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings in the band"
                                  },
                                  "median": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median value inside the band, where it means something"
                                  }
                                },
                                "required": [
                                  "band",
                                  "count"
                                ]
                              },
                              "description": "Listings for sale by asking price band (A$), with the median of each band; empty without listings for sale. Weekly rents are in ByRent"
                            },
                            "byBeds": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Label of the band"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings in the band"
                                  },
                                  "median": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median value inside the band, where it means something"
                                  }
                                },
                                "required": [
                                  "band",
                                  "count"
                                ]
                              },
                              "description": "Listings for sale by bedrooms, with the median price of each band"
                            },
                            "byDays": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Label of the band"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings in the band"
                                  },
                                  "median": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median value inside the band, where it means something"
                                  }
                                },
                                "required": [
                                  "band",
                                  "count"
                                ]
                              },
                              "description": "No longer computed, always empty (see Market.MedianDaysOnMarket; deprecated, 30/10/2026)"
                            },
                            "listings": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "description": "Listing id, stable across runs"
                                  },
                                  "address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Street address as published"
                                  },
                                  "type": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Normalised property type"
                                  },
                                  "postcode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Postcode"
                                  },
                                  "price": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Asking price, or weekly rent for rentals"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Price per square metre"
                                  },
                                  "beds": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Bedrooms"
                                  },
                                  "baths": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Bathrooms"
                                  },
                                  "cars": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Car spaces"
                                  },
                                  "areaMq": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Floor or land area in square metres"
                                  },
                                  "suburb": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Suburb"
                                  },
                                  "published": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "format": "date-time",
                                    "description": "Publication date"
                                  },
                                  "removed": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "format": "date-time",
                                    "description": "Removal date, null while online"
                                  },
                                  "lat": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Latitude"
                                  },
                                  "lng": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Longitude"
                                  },
                                  "l5Id": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Postcode area id (level 5)"
                                  },
                                  "contract": {
                                    "type": "string",
                                    "description": "sale or rent"
                                  },
                                  "outlier": {
                                    "type": "boolean",
                                    "description": "true when the listing is a price outlier excluded from the indicators"
                                  },
                                  "sold": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "true when it left the portal with a sale event"
                                  },
                                  "cutPct": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Cut from the first asking price, percent (positive = lowered)"
                                  },
                                  "daysOnMarket": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "No longer computed, always null (see Market.MedianDaysOnMarket; deprecated, 30/10/2026)"
                                  }
                                },
                                "required": [
                                  "id",
                                  "contract",
                                  "outlier"
                                ]
                              },
                              "description": "The listings of the run, most recent first"
                            },
                            "listingsCapped": {
                              "type": "boolean",
                              "description": "true when Listings was cut at ListingsCap; the figures still use every listing"
                            },
                            "listingsCap": {
                              "type": "integer",
                              "description": "Most listings returned in Listings"
                            },
                            "listingsUsed": {
                              "type": "integer",
                              "description": "Listings in the territory with the chosen filters"
                            },
                            "outliersExcluded": {
                              "type": "integer",
                              "description": "Listings with a measure out of range, left out of the figures"
                            },
                            "unclassifiedExcluded": {
                              "type": "integer",
                              "description": "Listings whose property type is none of the six, left out"
                            },
                            "fromQuarter": {
                              "type": "string",
                              "description": "First quarter of the period, format 2026-Q3"
                            },
                            "toQuarter": {
                              "type": "string",
                              "description": "Last quarter of the period, format 2026-Q3"
                            },
                            "runAt": {
                              "type": "string",
                              "format": "date-time",
                              "description": "When the run was computed (UTC)"
                            },
                            "byRent": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Label of the band"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings in the band"
                                  },
                                  "median": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median value inside the band, where it means something"
                                  }
                                },
                                "required": [
                                  "band",
                                  "count"
                                ]
                              },
                              "description": "Rental listings by weekly rent band (A$ a week), with the median of each band; empty without rentals"
                            }
                          },
                          "required": [
                            "quote",
                            "charged",
                            "creditsCharged",
                            "polesInvolved",
                            "kpi",
                            "market",
                            "postcodes",
                            "trend",
                            "trendMinListings",
                            "byType",
                            "byArea",
                            "areaKnownCount",
                            "byPrice",
                            "byBeds",
                            "byDays",
                            "listings",
                            "listingsCapped",
                            "listingsCap",
                            "listingsUsed",
                            "outliersExcluded",
                            "unclassifiedExcluded",
                            "fromQuarter",
                            "toQuarter",
                            "runAt"
                          ],
                          "description": "The market of the area, as analysis.realestate returns it: same run, no extra charge. Null in a preview."
                        },
                        "dataAsOf": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "Most recent update of the listings used"
                        },
                        "runAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the run was computed (UTC)"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "property",
                        "comparables",
                        "amenities",
                        "liquidity",
                        "filters",
                        "discountPct",
                        "candidates",
                        "candidatesCapped",
                        "runAt"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.realestate_property",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.realestate_property",
                          "quantity": 1,
                          "unit": "analyses",
                          "credits": 20.00
                        }
                      ],
                      "totalCredits": 20
                    },
                    "charged": true,
                    "creditsCharged": 20,
                    "blockedBy": null,
                    "property": {
                      "lat": -33.89106,
                      "lng": 151.24843,
                      "contract": "sale",
                      "type": "apartment",
                      "floorArea": 86,
                      "beds": 2,
                      "baths": 2,
                      "cars": 1,
                      "address": null,
                      "snapDistM": 8.4,
                      "state": "NSW",
                      "listingId": null
                    },
                    "value": {
                      "basis": "per_sqm",
                      "measure": "price",
                      "low": 906526,
                      "mid": 1189380,
                      "high": 1532176,
                      "perSqmLow": 10541,
                      "perSqmMid": 13830,
                      "perSqmHigh": 17816,
                      "n": 105,
                      "soldMedian": 15566,
                      "soldN": 13,
                      "advertisedMedian": 13820,
                      "advertisedN": 92
                    },
                    "comparables": [
                      {
                        "number": 1,
                        "used": false,
                        "id": 4486615,
                        "address": "18/7-15 Newland St, Bondi Junction, NSW 2022",
                        "suburb": "Bondi Junction",
                        "postcode": "2022",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": 68.00,
                        "beds": 1,
                        "baths": 1,
                        "cars": 1,
                        "perSqm": null,
                        "perSqmUsed": null,
                        "minutes": 1,
                        "metres": 248,
                        "lat": -33.89247068,
                        "lng": 151.24702817,
                        "lastSeen": "2026-09-24T00:39:45.125318"
                      },
                      {
                        "number": 2,
                        "used": false,
                        "id": 632746,
                        "address": "601/300 Oxford Street, Bondi Junction, NSW 2022",
                        "suburb": "Bondi Junction",
                        "postcode": "2022",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": 95.00,
                        "beds": 2,
                        "baths": 2,
                        "cars": 1,
                        "perSqm": null,
                        "perSqmUsed": null,
                        "minutes": 1,
                        "metres": 432,
                        "lat": -33.89089384,
                        "lng": 151.24524034,
                        "lastSeen": "2026-07-22T06:39:02.320688"
                      },
                      {
                        "number": 3,
                        "used": false,
                        "id": 4486683,
                        "address": "2/14 Chester Street, Woollahra, NSW 2025",
                        "suburb": "Woollahra",
                        "postcode": "2025",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": 77.00,
                        "beds": 2,
                        "baths": 1,
                        "cars": 0,
                        "perSqm": null,
                        "perSqmUsed": null,
                        "minutes": 1,
                        "metres": 686,
                        "lat": -33.88819904,
                        "lng": 151.24548934,
                        "lastSeen": "2026-09-24T00:41:28.78691"
                      }
                    ],
                    "soldVsAdvertised": {
                      "kind": "sale_vs_advertised",
                      "scope": "state",
                      "state": "NSW",
                      "n": 19,
                      "abovePct": 73.7,
                      "equalPct": 0,
                      "belowPct": 26.3,
                      "medianGapPct": 1.5,
                      "medianBelowPct": -4.3
                    },
                    "amenities": [
                      {
                        "group": "transport",
                        "sectors": [
                          "transport_terminals"
                        ],
                        "within5": 1,
                        "within10": 11,
                        "within15": 21,
                        "places": [
                          {
                            "id": 7943653,
                            "name": "Bondi Junction",
                            "sector": "transport_terminals",
                            "lat": -33.8910626,
                            "lng": 151.24843389999998,
                            "minutes": 0,
                            "metres": 1
                          },
                          {
                            "id": 2830620,
                            "name": "Kings Cross",
                            "sector": "transport_terminals",
                            "lat": -33.8744766,
                            "lng": 151.2222367,
                            "minutes": 7,
                            "metres": 3716
                          },
                          {
                            "id": 7579701,
                            "name": "Central Station",
                            "sector": "transport_terminals",
                            "lat": -33.8826465,
                            "lng": 151.2064744,
                            "minutes": 8,
                            "metres": 4187
                          }
                        ]
                      },
                      {
                        "group": "schools",
                        "sectors": [
                          "schools"
                        ],
                        "within5": 26,
                        "within10": 81,
                        "within15": 159,
                        "places": [
                          {
                            "id": 26315347,
                            "name": "The Third Bear Preparatory School",
                            "sector": "schools",
                            "lat": -33.8904917,
                            "lng": 151.24990979999998,
                            "minutes": 1,
                            "metres": 371
                          },
                          {
                            "id": 23194846,
                            "name": "Holy Cross Catholic Primary School",
                            "sector": "schools",
                            "lat": -33.8892636,
                            "lng": 151.2526756,
                            "minutes": 1,
                            "metres": 779
                          },
                          {
                            "id": 23194874,
                            "name": "Woollahra Public School",
                            "sector": "schools",
                            "lat": -33.886567,
                            "lng": 151.2412598,
                            "minutes": 2,
                            "metres": 1012
                          }
                        ]
                      },
                      {
                        "group": "health",
                        "sectors": [
                          "general_practitioners",
                          "polyclinics"
                        ],
                        "within5": 63,
                        "within10": 308,
                        "within15": 500,
                        "places": [
                          {
                            "id": 6735201,
                            "name": "Bondi Junction 7 day Medical Centre",
                            "sector": "polyclinics",
                            "lat": -33.891951999999996,
                            "lng": 151.24716899999999,
                            "minutes": 0,
                            "metres": 172
                          },
                          {
                            "id": 37744492,
                            "name": "Doctor Stuart Morris",
                            "sector": "general_practitioners",
                            "lat": -33.8918671,
                            "lng": 151.2473066,
                            "minutes": 0,
                            "metres": 172
                          },
                          {
                            "id": 15112586,
                            "name": "Physio Fitness",
                            "sector": "polyclinics",
                            "lat": -33.8918836,
                            "lng": 151.2465222,
                            "minutes": 1,
                            "metres": 239
                          }
                        ]
                      }
                    ],
                    "liquidity": [
                      {
                        "scope": "local",
                        "state": null,
                        "exited": 348,
                        "sold": 192,
                        "soldPct": 55.2,
                        "medianDays": null,
                        "daysN": 0,
                        "daysBands": [
                          {
                            "band": "0-14",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "15-30",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "31-60",
                            "count": 0,
                            "median": null
                          }
                        ],
                        "trackedN": 1,
                        "cutPct": 100,
                        "medianCutPct": 35.8
                      },
                      {
                        "scope": "state",
                        "state": "NSW",
                        "exited": 3853,
                        "sold": 2464,
                        "soldPct": 64.0,
                        "medianDays": null,
                        "daysN": 0,
                        "daysBands": [
                          {
                            "band": "0-14",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "15-30",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "31-60",
                            "count": 0,
                            "median": null
                          }
                        ],
                        "trackedN": 28,
                        "cutPct": 46.4,
                        "medianCutPct": 6.3
                      },
                      {
                        "scope": "australia",
                        "state": null,
                        "exited": 9742,
                        "sold": 6036,
                        "soldPct": 62.0,
                        "medianDays": null,
                        "daysN": 0,
                        "daysBands": [
                          {
                            "band": "0-14",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "15-30",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "31-60",
                            "count": 0,
                            "median": null
                          }
                        ],
                        "trackedN": 1944,
                        "cutPct": 66.9,
                        "medianCutPct": 4.8
                      }
                    ],
                    "filters": {
                      "areaTolerancePct": 25,
                      "monthsBack": 12,
                      "includeActive": true,
                      "includeSold": true,
                      "otherTypes": false,
                      "excludedIds": []
                    },
                    "discountPct": 0,
                    "candidates": [
                      {
                        "id": 632981,
                        "address": "1/21 Rowe Street, Woollahra, NSW 2025",
                        "suburb": "Woollahra",
                        "postcode": "2025",
                        "type": "house",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": null,
                        "beds": 4,
                        "baths": 3,
                        "cars": 2,
                        "perSqm": null,
                        "minutes": 0,
                        "metres": 233,
                        "lat": -33.89051205,
                        "lng": 151.24871936,
                        "lastSeen": "2026-07-22T06:50:05.46495",
                        "advertisedBeforeSale": null,
                        "firstAdvertised": null,
                        "daysToSell": null
                      },
                      {
                        "id": 632464,
                        "address": "305/300 Oxford Street, Bondi Junction, NSW 2022",
                        "suburb": "Bondi Junction",
                        "postcode": "2022",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": 799000.00,
                        "priceWithheld": false,
                        "area": null,
                        "beds": 1,
                        "baths": 1,
                        "cars": 0,
                        "perSqm": null,
                        "minutes": 1,
                        "metres": 432,
                        "lat": -33.89089384,
                        "lng": 151.24524034,
                        "lastSeen": "2026-09-09T21:46:25.227953",
                        "advertisedBeforeSale": null,
                        "firstAdvertised": null,
                        "daysToSell": null
                      },
                      {
                        "id": 632640,
                        "address": "47 Denison Street, Bondi Junction, NSW 2022",
                        "suburb": "Bondi Junction",
                        "postcode": "2022",
                        "type": "townhouse",
                        "status": "active",
                        "statusDate": null,
                        "price": 2500000.00,
                        "priceWithheld": false,
                        "area": null,
                        "beds": 4,
                        "baths": 2,
                        "cars": 0,
                        "perSqm": null,
                        "minutes": 1,
                        "metres": 498,
                        "lat": -33.8924361,
                        "lng": 151.24458026,
                        "lastSeen": "2026-09-09T21:44:07.960906",
                        "advertisedBeforeSale": null,
                        "firstAdvertised": null,
                        "daysToSell": null
                      }
                    ],
                    "candidatesCapped": false,
                    "area": {
                      "quote": {
                        "lines": [
                          {
                            "actionCode": "analysis.realestate_property",
                            "quantity": 1,
                            "unit": "analyses",
                            "credits": 20.00
                          }
                        ],
                        "totalCredits": 20
                      },
                      "charged": true,
                      "creditsCharged": 20,
                      "blockedBy": null,
                      "polesInvolved": 57616,
                      "kpi": {
                        "medianPrice": 1150000.00,
                        "nPrice": 943,
                        "medianPerSqm": 13809.52,
                        "nPerSqm": 405,
                        "medianRentWeekly": null,
                        "nRent": 0,
                        "medianRentPerSqm": null,
                        "nRentPerSqm": 0,
                        "grossYieldPct": null,
                        "nYield": 0
                      },
                      "market": {
                        "medianDaysOnMarket": null,
                        "nClosed": 637,
                        "sold": 2,
                        "withdrawn": 635,
                        "cuts": 1,
                        "tracked": 1090,
                        "medianCutPct": 35.8
                      },
                      "postcodes": [
                        {
                          "l5Id": 2000,
                          "postcode": "2000",
                          "locality": "Sydney",
                          "medianPrice": 1300000.00,
                          "perSqm": 14659.09,
                          "medianRentWeekly": null,
                          "rentPerSqm": null,
                          "yieldPct": null,
                          "listings": 670,
                          "lowSample": false
                        },
                        {
                          "l5Id": 2007,
                          "postcode": "2007",
                          "locality": "Sydney",
                          "medianPrice": 1100000.00,
                          "perSqm": 11926.61,
                          "medianRentWeekly": null,
                          "rentPerSqm": null,
                          "yieldPct": null,
                          "listings": 36,
                          "lowSample": false
                        },
                        {
                          "l5Id": 2008,
                          "postcode": "2008",
                          "locality": "Sydney",
                          "medianPrice": 900000.00,
                          "perSqm": 12508.92,
                          "medianRentWeekly": null,
                          "rentPerSqm": null,
                          "yieldPct": null,
                          "listings": 74,
                          "lowSample": false
                        }
                      ],
                      "trend": [
                        {
                          "quarter": "2026-Q3",
                          "perSqm": 13809.52,
                          "medianPrice": 1150000.00,
                          "medianRentWeekly": null,
                          "listingCount": 2716,
                          "excluded": false
                        }
                      ],
                      "trendMinListings": 30,
                      "byType": [
                        {
                          "type": "apartment",
                          "count": 1834,
                          "perSqm": 13281.25
                        },
                        {
                          "type": "commercial",
                          "count": 378,
                          "perSqm": 13790.24
                        },
                        {
                          "type": "house",
                          "count": 321,
                          "perSqm": 19496.81
                        }
                      ],
                      "byArea": [
                        {
                          "band": "\u003C50",
                          "count": 118
                        },
                        {
                          "band": "50-100",
                          "count": 381
                        },
                        {
                          "band": "100-150",
                          "count": 256
                        }
                      ],
                      "areaKnownCount": 1078,
                      "byPrice": [
                        {
                          "band": "\u003C400k",
                          "count": 10,
                          "median": 380000
                        },
                        {
                          "band": "400-600k",
                          "count": 61,
                          "median": 525000
                        },
                        {
                          "band": "600-800k",
                          "count": 168,
                          "median": 695000
                        }
                      ],
                      "byBeds": [
                        {
                          "band": "0",
                          "count": 51,
                          "median": 500000
                        },
                        {
                          "band": "1",
                          "count": 290,
                          "median": 754500
                        },
                        {
                          "band": "2",
                          "count": 382,
                          "median": 1250000
                        }
                      ],
                      "byDays": [],
                      "byRent": [],
                      "listings": [
                        {
                          "id": 4678136,
                          "address": "805/1 Kings Cross Road, Darlinghurst, NSW 2010",
                          "type": "apartment",
                          "postcode": "2010",
                          "price": null,
                          "perSqm": null,
                          "beds": 2,
                          "baths": 2,
                          "cars": 1,
                          "areaMq": 103.00,
                          "suburb": "Darlinghurst",
                          "published": "2026-09-21T07:23:58.53265",
                          "removed": null,
                          "lat": -33.87586025,
                          "lng": 151.22238839,
                          "l5Id": 2010,
                          "contract": "sale",
                          "outlier": false,
                          "sold": false,
                          "cutPct": null,
                          "daysOnMarket": null
                        },
                        {
                          "id": 4676365,
                          "address": "1007/50 Murray Street, Sydney, NSW 2000",
                          "type": "apartment",
                          "postcode": "2000",
                          "price": 1450000.00,
                          "perSqm": null,
                          "beds": 2,
                          "baths": 2,
                          "cars": 1,
                          "areaMq": null,
                          "suburb": "Sydney",
                          "published": "2026-09-21T06:59:23.390408",
                          "removed": null,
                          "lat": -33.87091692,
                          "lng": 151.1979512,
                          "l5Id": 2000,
                          "contract": "sale",
                          "outlier": false,
                          "sold": false,
                          "cutPct": null,
                          "daysOnMarket": null
                        },
                        {
                          "id": 4674484,
                          "address": "50/152-164 Bulwara Road, Pyrmont, NSW 2009",
                          "type": "apartment",
                          "postcode": "2009",
                          "price": null,
                          "perSqm": null,
                          "beds": 2,
                          "baths": 2,
                          "cars": 1,
                          "areaMq": null,
                          "suburb": "Pyrmont",
                          "published": "2026-09-21T06:33:55.733303",
                          "removed": null,
                          "lat": -33.87327449,
                          "lng": 151.19513362,
                          "l5Id": 2009,
                          "contract": "sale",
                          "outlier": false,
                          "sold": false,
                          "cutPct": null,
                          "daysOnMarket": null
                        }
                      ],
                      "listingsCapped": false,
                      "listingsCap": 10000,
                      "listingsUsed": 2732,
                      "outliersExcluded": 16,
                      "unclassifiedExcluded": 38,
                      "fromQuarter": "2026-Q3",
                      "toQuarter": "2026-Q3",
                      "runAt": "2026-10-18T08:16:58.1189163\u002B00:00"
                    },
                    "dataAsOf": "2026-09-24T03:47:28.752787",
                    "runAt": "2026-10-18T08:16:58.7342761\u002B00:00"
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.realestate_property",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.site_comparison/quote": {
      "post": {
        "operationId": "analysis.site_comparison.quote",
        "summary": "Quote analysis.site_comparison",
        "description": "Quotes analysis.site_comparison without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nSite comparison: the same questions on 1 to 5 candidate sites, side by side, with a ranking. With openTogether=true it simulates opening them all at once: each candidate competes with the players already in the territory, with the user\u0027s own stores AND with the other candidates, so the figures are those of the new network; otherwise each candidate is weighed alone against today\u0027s market. When the minutes are more than the sector\u0027s own catchment, the sector\u0027s competitors enter one by one with the same minutes in both cases, so a candidate does not take alone the spend that no existing store reaches within the sector\u0027s catchment. For each candidate it draws the catchment (the sector\u0027s own catchment by default) and returns population and families reached, income and spending indices, the sector\u0027s resident spend within reach, how many competitors of the sector are inside, the spend the candidate would capture (the sector model\u0027s Huff share against the existing competition and the user\u0027s own stores), how much of it would be taken from the user\u0027s own stores, and the net new spend. The estimate is also given as a range (table site_estimate and the candidates\u0027 low and high fields): a new store as attractive as the weakest quarter and the strongest quarter of the sector\u0027s stores; sectors whose stores all have the same pull have no range. The table site_origin says from which suburbs the captured spend comes. Another table gives the population the candidates share with each other. Own stores come from the places catalogue, a point dataset of the user or map coordinates. 20 credits per candidate.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: \u0027Site 1\u0027, \u0027Site 2\u0027..."
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The candidate sites, 1 to 5"
                  },
                  "sectorCode": {
                    "type": "string",
                    "description": "Sector whose spending model prices the sites (code from markets.sectors), e.g. \u0027supermarkets\u0027"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Catchment of each candidate in minutes, 1-30. Omitted: the sector\u0027s own catchment"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk"
                    ],
                    "description": "How customers travel. Omitted: the sector\u0027s own mode (by car or on foot)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ]
                  },
                  "ownStores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "catalog",
                            "dataset",
                            "manual"
                          ]
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "mine",
                            "competitor"
                          ]
                        },
                        "planned": {
                          "type": "boolean",
                          "description": "The point does not exist yet: it enters the before/after comparison"
                        },
                        "playerId": {
                          "type": "integer",
                          "description": "source=catalog: id of the store"
                        },
                        "datasetId": {
                          "type": "integer",
                          "description": "source=dataset: id of the point dataset; its points inside the area are included"
                        },
                        "lat": {
                          "type": "number",
                          "description": "source=manual: latitude"
                        },
                        "lng": {
                          "type": "number",
                          "description": "source=manual: longitude"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the catalogue or dataset name is used"
                        }
                      },
                      "required": [
                        "source",
                        "role"
                      ]
                    },
                    "description": "The user\u0027s existing stores, to measure how much each candidate would take from them (max 100). Same shape as the points of analysis.brand_coverage; role and planned are ignored: they are all own, existing stores. A dataset brings in its points within twice the catchment of any candidate"
                  },
                  "openTogether": {
                    "type": "boolean",
                    "description": "true: simulate opening all the candidates together \u2014 each one\u0027s capture accounts for the players already there, the user\u0027s own stores and the other candidates, and what the own stores lose is split among the candidates that take it. false or omitted: each candidate is weighed alone against today\u0027s market, as alternatives"
                  }
                },
                "required": [
                  "candidates",
                  "sectorCode"
                ]
              },
              "example": {
                "candidates": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Bondi Junction"
                  },
                  {
                    "lat": -33.882,
                    "lng": 151.207,
                    "name": "Surry Hills"
                  }
                ],
                "sectorCode": "supermarkets",
                "ownStores": [
                  {
                    "source": "manual",
                    "role": "mine",
                    "lat": -33.893,
                    "lng": 151.25,
                    "name": "My store"
                  }
                ],
                "preview": true,
                "idempotencyKey": "example-987d9a2086e44ff8a83456ed6d64c7ab"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.site_comparison"
      }
    },
    "/api/v1/actions/analysis.site_comparison/execute": {
      "post": {
        "operationId": "analysis.site_comparison",
        "summary": "Run analysis.site_comparison (charged)",
        "description": "Site comparison: the same questions on 1 to 5 candidate sites, side by side, with a ranking. With openTogether=true it simulates opening them all at once: each candidate competes with the players already in the territory, with the user\u0027s own stores AND with the other candidates, so the figures are those of the new network; otherwise each candidate is weighed alone against today\u0027s market. When the minutes are more than the sector\u0027s own catchment, the sector\u0027s competitors enter one by one with the same minutes in both cases, so a candidate does not take alone the spend that no existing store reaches within the sector\u0027s catchment. For each candidate it draws the catchment (the sector\u0027s own catchment by default) and returns population and families reached, income and spending indices, the sector\u0027s resident spend within reach, how many competitors of the sector are inside, the spend the candidate would capture (the sector model\u0027s Huff share against the existing competition and the user\u0027s own stores), how much of it would be taken from the user\u0027s own stores, and the net new spend. The estimate is also given as a range (table site_estimate and the candidates\u0027 low and high fields): a new store as attractive as the weakest quarter and the strongest quarter of the sector\u0027s stores; sectors whose stores all have the same pull have no range. The table site_origin says from which suburbs the captured spend comes. Another table gives the population the candidates share with each other. Own stores come from the places catalogue, a point dataset of the user or map coordinates. 20 credits per candidate.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: \u0027Site 1\u0027, \u0027Site 2\u0027..."
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The candidate sites, 1 to 5"
                  },
                  "sectorCode": {
                    "type": "string",
                    "description": "Sector whose spending model prices the sites (code from markets.sectors), e.g. \u0027supermarkets\u0027"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Catchment of each candidate in minutes, 1-30. Omitted: the sector\u0027s own catchment"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk"
                    ],
                    "description": "How customers travel. Omitted: the sector\u0027s own mode (by car or on foot)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ]
                  },
                  "ownStores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "catalog",
                            "dataset",
                            "manual"
                          ]
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "mine",
                            "competitor"
                          ]
                        },
                        "planned": {
                          "type": "boolean",
                          "description": "The point does not exist yet: it enters the before/after comparison"
                        },
                        "playerId": {
                          "type": "integer",
                          "description": "source=catalog: id of the store"
                        },
                        "datasetId": {
                          "type": "integer",
                          "description": "source=dataset: id of the point dataset; its points inside the area are included"
                        },
                        "lat": {
                          "type": "number",
                          "description": "source=manual: latitude"
                        },
                        "lng": {
                          "type": "number",
                          "description": "source=manual: longitude"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the catalogue or dataset name is used"
                        }
                      },
                      "required": [
                        "source",
                        "role"
                      ]
                    },
                    "description": "The user\u0027s existing stores, to measure how much each candidate would take from them (max 100). Same shape as the points of analysis.brand_coverage; role and planned are ignored: they are all own, existing stores. A dataset brings in its points within twice the catchment of any candidate"
                  },
                  "openTogether": {
                    "type": "boolean",
                    "description": "true: simulate opening all the candidates together \u2014 each one\u0027s capture accounts for the players already there, the user\u0027s own stores and the other candidates, and what the own stores lose is split among the candidates that take it. false or omitted: each candidate is weighed alone against today\u0027s market, as alternatives"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "candidates",
                  "sectorCode",
                  "quotedCredits"
                ]
              },
              "example": {
                "candidates": [
                  {
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Bondi Junction"
                  },
                  {
                    "lat": -33.882,
                    "lng": 151.207,
                    "name": "Surry Hills"
                  }
                ],
                "sectorCode": "supermarkets",
                "ownStores": [
                  {
                    "source": "manual",
                    "role": "mine",
                    "lat": -33.893,
                    "lng": 151.25,
                    "name": "My store"
                  }
                ],
                "preview": false,
                "idempotencyKey": "example-9a72424240064947a0c33abb787ac954"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when the run was paid and the figures are there"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, trial_credits"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "The comparison and the overlap between candidates, as tables to show or export"
                        },
                        "candidates": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer",
                                "description": "Position of the candidate in the request, from 1"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the candidate"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              },
                              "rank": {
                                "type": "integer",
                                "description": "Rank by net new spend, 1 = best"
                              },
                              "population": {
                                "type": "integer",
                                "description": "Residents within the catchment"
                              },
                              "households": {
                                "type": "integer",
                                "description": "Deprecated: same value as families, the former name of the field, kept for existing callers"
                              },
                              "incomeIndex": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Income index of the residents reached, population-weighted, 100 = national average"
                              },
                              "spendingIndex": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Spending index of the residents reached, population-weighted, 100 = national average"
                              },
                              "residentSpend": {
                                "type": "number",
                                "description": "Yearly spend of the sector by the residents reached, in currency"
                              },
                              "competitors": {
                                "type": "integer",
                                "description": "Points of sale of the sector inside the catchment, own catalogue stores excluded"
                              },
                              "capturedSpend": {
                                "type": "number",
                                "description": "Yearly spend the candidate would capture, in currency (Huff share of the sector model)"
                              },
                              "capturedShare": {
                                "type": "number",
                                "description": "Captured spend as a share of the resident spend within reach, 0-100"
                              },
                              "takenFromOwnStores": {
                                "type": "number",
                                "description": "Part of the captured spend taken from the user\u0027s own stores, in currency: cannibalization"
                              },
                              "netNewSpend": {
                                "type": "number",
                                "description": "Captured spend minus what is taken from the own stores: the spend the network gains, in currency"
                              },
                              "capturedLow": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Low end of the captured spend: a new store as attractive as the weakest quarter of the sector\u0027s stores (25th percentile of their pull), in currency. null when all the stores of the sector have the same pull in the model: then there is no range"
                              },
                              "capturedHigh": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "High end of the captured spend: a new store as attractive as the strongest quarter of the sector\u0027s stores (75th percentile of their pull), in currency. null when there is no range"
                              },
                              "netNewLow": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Net new spend with the low-end store, in currency; null when there is no range"
                              },
                              "netNewHigh": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Net new spend with the high-end store, in currency; null when there is no range"
                              },
                              "families": {
                                "type": "integer",
                                "description": "Families within the catchment: families as the national statistics office counts them; in Australia (ABS) these are census families: couples with or without children and one-parent families, without people living alone and group households"
                              }
                            },
                            "required": [
                              "index",
                              "name",
                              "lat",
                              "lng",
                              "rank",
                              "population",
                              "households",
                              "residentSpend",
                              "competitors",
                              "capturedSpend",
                              "capturedShare",
                              "takenFromOwnStores",
                              "netNewSpend",
                              "families"
                            ]
                          },
                          "description": "The same figures per candidate, typed, in the order of the request"
                        },
                        "ownStores": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Catalogue id for catalogue points, a negative sequence number for the others"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the point"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address when known"
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "catalog",
                                  "dataset",
                                  "manual"
                                ],
                                "description": "Where the point came from: the places catalogue, a user dataset or map coordinates"
                              },
                              "role": {
                                "type": "string",
                                "enum": [
                                  "mine",
                                  "competitor"
                                ],
                                "description": "Whose point it is"
                              },
                              "planned": {
                                "type": "boolean",
                                "description": "The point does not exist yet: it only enters the \u0027after\u0027 scenario"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              },
                              "outside": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "A dataset point just outside the analysis area, taken because its catchment may reach into it. In a preview it is a candidate; in the result it is kept only if its catchment does reach the area, and the ones that do not are dropped and not charged"
                              },
                              "sectorStore": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "A store of the sector the platform added because it is inside the area (analysis.brand_coverage with includeSectorStores): a competitor with its own catchment, not charged. Always false in the other actions that return these points"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "source",
                              "role",
                              "planned",
                              "lat",
                              "lng"
                            ]
                          },
                          "description": "The own stores as resolved (a dataset expands into its points)"
                        },
                        "minutes": {
                          "type": "integer",
                          "description": "Catchment minutes used for every candidate"
                        },
                        "mode": {
                          "type": "string",
                          "enum": [
                            "car",
                            "car_no_highway",
                            "walk"
                          ],
                          "description": "Travel mode used for every catchment"
                        },
                        "currency": {
                          "type": "string",
                          "description": "Currency of the spend figures, e.g. \u0027AUD\u0027"
                        },
                        "catchments": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "playerId": {
                                "type": "integer",
                                "description": "Id of the point the catchment belongs to (same id as in points)"
                              },
                              "brand": {
                                "type": "string",
                                "description": "Name of the point"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address when known"
                              },
                              "geometry": {
                                "description": "GeoJSON MultiPolygon of the catchment, simplified to about 40 m"
                              },
                              "role": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Whose catchment it is: \u0027candidate\u0027 (a new site), \u0027competitor\u0027 (a player already in the territory); null where the action has one kind only"
                              }
                            },
                            "required": [
                              "playerId",
                              "brand",
                              "geometry"
                            ]
                          },
                          "description": "Catchment of each candidate, drawable on a map"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "tables",
                        "candidates",
                        "ownStores",
                        "minutes",
                        "mode",
                        "currency"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.site_comparison",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.site_comparison",
                          "quantity": 2,
                          "unit": "candidates",
                          "credits": 40.00
                        }
                      ],
                      "totalCredits": 40
                    },
                    "charged": true,
                    "creditsCharged": 40,
                    "blockedBy": null,
                    "tables": [
                      {
                        "key": "site_comparison",
                        "title": "Site comparison \u00B7 10 min by car",
                        "columns": [
                          "Rank",
                          "Site",
                          "Population",
                          "Families",
                          "Income index",
                          "Spending index",
                          "Competitors",
                          "Resident spend (AUD m/yr)",
                          "Captured (AUD m/yr)",
                          "Share of spend",
                          "From your stores (AUD m/yr)",
                          "Net new (AUD m/yr)"
                        ],
                        "rows": [
                          [
                            1,
                            "Bondi Junction",
                            304928,
                            65945,
                            123.8,
                            122.3,
                            79,
                            697.02,
                            7.52,
                            "1.1%",
                            0.136,
                            7.38
                          ],
                          [
                            2,
                            "Surry Hills",
                            448504,
                            99257,
                            127.6,
                            125.9,
                            148,
                            1038.74,
                            5.62,
                            "0.5%",
                            0.0188,
                            5.6
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Ranked by net new spend: what the site captures minus what it takes from your own stores. Shares from the K-Stra gravity model of the sector, against 1 own store. Each site is weighed alone against the stores there today. Indices: 100 = national average. Source: ABS population 2024, third-party plac\u2026",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "site_ranking",
                        "title": "Why this order",
                        "columns": [
                          "Rank",
                          "Site",
                          "Net new (AUD m/yr)",
                          "Why"
                        ],
                        "rows": [
                          [
                            1,
                            "Bondi Junction",
                            7.38,
                            "fewest competitors of the set (79 inside the catchment)"
                          ],
                          [
                            2,
                            "Surry Hills",
                            5.6,
                            "largest resident spend of the set (A$1038.7M a year within reach); highest income index of the set (128); 148 competitors inside the catchment, 30% above the median"
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Ranked by net new spend. The reasons compare each site with the others of the set: the strengths that weigh most and, when there is one, a caution. Source: ABS population 2024, third-party places data 2026 \u00B7 K-Stra",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "site_estimate",
                        "title": "Estimate \u00B7 what a new store would capture \u00B7 10 min by car",
                        "columns": [
                          "Site",
                          "Measure",
                          "Low",
                          "Central",
                          "High"
                        ],
                        "rows": [
                          [
                            "Bondi Junction",
                            "Spend captured (AUD m/yr)",
                            3.58,
                            7.52,
                            15.62
                          ],
                          [
                            "Bondi Junction",
                            "Share of the residents\u0027 spend within reach (%)",
                            0.5,
                            1.1,
                            2.2
                          ],
                          [
                            "Bondi Junction",
                            "From your stores (AUD m/yr)",
                            0.0651,
                            0.136,
                            0.282
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Low, central and high: a new store as attractive as the weakest quarter, a typical one and the strongest quarter of the 8,189 stores of the sector. It is the yearly spending of the residents of the catchment that the store would take from the stores already there (K-Stra gravity model of the sector)\u2026",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "candidates": [
                      {
                        "index": 1,
                        "name": "Bondi Junction",
                        "lat": -33.89106,
                        "lng": 151.24843,
                        "rank": 1,
                        "population": 304928,
                        "households": 65945,
                        "incomeIndex": 123.8,
                        "spendingIndex": 122.3,
                        "residentSpend": 697018444,
                        "competitors": 79,
                        "capturedSpend": 7518082,
                        "capturedShare": 1.1,
                        "takenFromOwnStores": 136147,
                        "netNewSpend": 7381936,
                        "capturedLow": 3584898,
                        "capturedHigh": 15615075,
                        "netNewLow": 3519841,
                        "netNewHigh": 15333526,
                        "families": 65945
                      },
                      {
                        "index": 2,
                        "name": "Surry Hills",
                        "lat": -33.882,
                        "lng": 151.207,
                        "rank": 2,
                        "population": 448504,
                        "households": 99257,
                        "incomeIndex": 127.6,
                        "spendingIndex": 125.9,
                        "residentSpend": 1038738948,
                        "competitors": 148,
                        "capturedSpend": 5615774,
                        "capturedShare": 0.5,
                        "takenFromOwnStores": 18810,
                        "netNewSpend": 5596964,
                        "capturedLow": 2661914,
                        "capturedHigh": 11807572,
                        "netNewLow": 2652996,
                        "netNewHigh": 11768040,
                        "families": 99257
                      }
                    ],
                    "ownStores": [
                      {
                        "id": -1,
                        "name": "My store",
                        "address": "near 3 Gray Street, Bondi Junction NSW 2022",
                        "source": "manual",
                        "role": "mine",
                        "planned": false,
                        "lat": -33.893,
                        "lng": 151.25,
                        "outside": false,
                        "sectorStore": false
                      }
                    ],
                    "minutes": 10,
                    "mode": "car",
                    "currency": "AUD",
                    "catchments": [
                      {
                        "playerId": 1,
                        "brand": "Bondi Junction",
                        "address": null,
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.30451,
                                  -33.8145
                                ],
                                [
                                  151.30518,
                                  -33.81154
                                ],
                                [
                                  151.30533,
                                  -33.81044
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.18766,
                                  -33.87095
                                ],
                                [
                                  151.18897,
                                  -33.87008
                                ],
                                [
                                  151.18951,
                                  -33.8698
                                ]
                              ],
                              [
                                [
                                  151.26642,
                                  -33.87553
                                ],
                                [
                                  151.26665,
                                  -33.8759
                                ],
                                [
                                  151.267,
                                  -33.8761
                                ]
                              ],
                              [
                                [
                                  151.21157,
                                  -33.86026
                                ],
                                [
                                  151.21151,
                                  -33.86054
                                ],
                                [
                                  151.21154,
                                  -33.86071
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.26333,
                                  -33.92656
                                ],
                                [
                                  151.26345,
                                  -33.92632
                                ],
                                [
                                  151.26351,
                                  -33.92601
                                ]
                              ]
                            ]
                          ]
                        },
                        "role": "candidate"
                      },
                      {
                        "playerId": 2,
                        "brand": "Surry Hills",
                        "address": null,
                        "geometry": {
                          "type": "MultiPolygon",
                          "coordinates": [
                            [
                              [
                                [
                                  151.13135,
                                  -33.8787
                                ],
                                [
                                  151.13204,
                                  -33.87826
                                ],
                                [
                                  151.13237,
                                  -33.87828
                                ]
                              ],
                              [
                                [
                                  151.21157,
                                  -33.86026
                                ],
                                [
                                  151.21151,
                                  -33.86054
                                ],
                                [
                                  151.21154,
                                  -33.86071
                                ]
                              ],
                              [
                                [
                                  151.2066,
                                  -33.88457
                                ],
                                [
                                  151.20601,
                                  -33.88422
                                ],
                                [
                                  151.20574,
                                  -33.8841
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.19853,
                                  -33.85418
                                ],
                                [
                                  151.19834,
                                  -33.85417
                                ],
                                [
                                  151.19803,
                                  -33.85402
                                ]
                              ]
                            ],
                            [
                              [
                                [
                                  151.19047,
                                  -33.8123
                                ],
                                [
                                  151.19147,
                                  -33.81231
                                ],
                                [
                                  151.1921,
                                  -33.81219
                                ]
                              ]
                            ]
                          ]
                        },
                        "role": "candidate"
                      }
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.site_comparison",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/analysis.traffic/quote": {
      "post": {
        "operationId": "analysis.traffic.quote",
        "summary": "Quote analysis.traffic",
        "description": "Quotes analysis.traffic without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nEstimated vehicle traffic on the roads of the territory: the busiest roads with their traffic band, road length by band and the official counts measured inside the territory. By default the average day of the year; with when, a month, a type of day, an hour or a range of hours, a date or a range of dates (a whole month is its first and last day), from the typical profile of each type of road. Bands of vehicles per day, both directions: 1 under 1,000; 2 1,000-3,000; 3 3,000-8,000; 4 8,000-15,000; 5 15,000-30,000; 6 30,000-60,000; 7 over 60,000. With an hour, vehicles in that hour (with a range of hours, the average hour of the range): 1 under 50; 2 50-150; 3 150-400; 4 400-750; 5 750-1,500; 6 1,500-3,000; 7 over 3,000. 30 credits for a territory; once it is paid, other periods and pedestrians on the same territory are free.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "when": {
                    "type": "object",
                    "properties": {
                      "month": {
                        "type": "integer",
                        "description": "Month, 1-12; left out: the whole year"
                      },
                      "dayType": {
                        "type": "string",
                        "enum": [
                          "weekday",
                          "saturday",
                          "sunday"
                        ],
                        "description": "Type of day; left out: any day of the week"
                      },
                      "hour": {
                        "type": "integer",
                        "description": "Hour of the day, 0-23 (8 = from 8:00 to 9:00); left out: the whole day"
                      },
                      "date": {
                        "type": "string",
                        "description": "A date, yyyy-MM-dd: gives month and type of day (public holidays count as sundays), and replaces them"
                      },
                      "dateTo": {
                        "type": "string",
                        "description": "Last date of a range, yyyy-MM-dd, inclusive, at most 366 days after date: the bands are the average day of the range, each day with its month and type of day"
                      },
                      "hourTo": {
                        "type": "integer",
                        "description": "Last hour of a range of hours, 0-23, inclusive (hour 7 and hourTo 9 = from 7:00 to 10:00): the bands are the average hour of the range"
                      }
                    },
                    "required": [],
                    "description": "The period: leave it out for the average day of the year"
                  },
                  "who": {
                    "type": "string",
                    "enum": [
                      "vehicles",
                      "pedestrians"
                    ],
                    "description": "What to count: vehicles (default) or pedestrians. Pedestrians come as an index in five grades, from 1 very low to 5 very high, on every street and footpath"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  }
                },
                "required": [
                  "mode",
                  "traffic"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.76962,
                    "lng": 150.82107
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "preview": true,
                "idempotencyKey": "example-quote-traffic"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.traffic"
      }
    },
    "/api/v1/actions/analysis.traffic/execute": {
      "post": {
        "operationId": "analysis.traffic",
        "summary": "Run analysis.traffic (charged)",
        "description": "Estimated vehicle traffic on the roads of the territory: the busiest roads with their traffic band, road length by band and the official counts measured inside the territory. By default the average day of the year; with when, a month, a type of day, an hour or a range of hours, a date or a range of dates (a whole month is its first and last day), from the typical profile of each type of road. Bands of vehicles per day, both directions: 1 under 1,000; 2 1,000-3,000; 3 3,000-8,000; 4 8,000-15,000; 5 15,000-30,000; 6 30,000-60,000; 7 over 60,000. With an hour, vehicles in that hour (with a range of hours, the average hour of the range): 1 under 50; 2 50-150; 3 150-400; 4 400-750; 5 750-1,500; 6 1,500-3,000; 7 over 3,000. 30 credits for a territory; once it is paid, other periods and pedestrians on the same territory are free.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "analysis"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "Travel mode of the isochrones: car, car_no_highway (no motorways), walk, or radius (a straight-line circle, with bandMetres)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic: normal or heavy. On foot it is always normal"
                  },
                  "origins": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Starting points of the isochrone, 1 to 10 (isochrone territory only)"
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative durations in seconds, 1 to 6 bands, e.g. [600] = one 10-minute band (isochrone territory only). Alternative to bandMetres, never both"
                  },
                  "areas": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "level": {
                          "type": "integer",
                          "description": "Administrative level, 1-9 (1 = the whole country)"
                        },
                        "id": {
                          "type": "integer"
                        }
                      },
                      "required": [
                        "level",
                        "id"
                      ]
                    },
                    "description": "Administrative areas, 1 to 12, at levels 1-9. Alternative to origins and polygons"
                  },
                  "polygons": {
                    "type": "array",
                    "items": {
                      "type": "object"
                    },
                    "description": "Drawn territory: an array of 1 to 10 GeoJSON Polygon or MultiPolygon geometries. Alternative to origins and areas"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Cumulative distances in metres, 1 to 6 bands, e.g. [5000] = one 5 km band (isochrone territory only): by road with the travel modes, in a straight line with mode=radius. Alternative to bandSeconds, never both"
                  },
                  "when": {
                    "type": "object",
                    "properties": {
                      "month": {
                        "type": "integer",
                        "description": "Month, 1-12; left out: the whole year"
                      },
                      "dayType": {
                        "type": "string",
                        "enum": [
                          "weekday",
                          "saturday",
                          "sunday"
                        ],
                        "description": "Type of day; left out: any day of the week"
                      },
                      "hour": {
                        "type": "integer",
                        "description": "Hour of the day, 0-23 (8 = from 8:00 to 9:00); left out: the whole day"
                      },
                      "date": {
                        "type": "string",
                        "description": "A date, yyyy-MM-dd: gives month and type of day (public holidays count as sundays), and replaces them"
                      },
                      "dateTo": {
                        "type": "string",
                        "description": "Last date of a range, yyyy-MM-dd, inclusive, at most 366 days after date: the bands are the average day of the range, each day with its month and type of day"
                      },
                      "hourTo": {
                        "type": "integer",
                        "description": "Last hour of a range of hours, 0-23, inclusive (hour 7 and hourTo 9 = from 7:00 to 10:00): the bands are the average hour of the range"
                      }
                    },
                    "required": [],
                    "description": "The period: leave it out for the average day of the year"
                  },
                  "who": {
                    "type": "string",
                    "enum": [
                      "vehicles",
                      "pedestrians"
                    ],
                    "description": "What to count: vehicles (default) or pedestrians. Pedestrians come as an index in five grades, from 1 very low to 5 very high, on every street and footpath"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "mode",
                  "traffic",
                  "quotedCredits"
                ]
              },
              "example": {
                "origins": [
                  {
                    "lat": -33.76962,
                    "lng": 150.82107
                  }
                ],
                "bandSeconds": [
                  600
                ],
                "mode": "car",
                "traffic": "normal",
                "preview": false,
                "idempotencyKey": "example-7d1c0b4e9a2f4c6b8e3d5f1a2b4c6d8e"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "The quote of the run: 30 credits, or nothing when this territory was already paid"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "True when the run was carried out (charged, or free because the territory was already paid); false for a preview or when the balance blocked it"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits charged by this run: 0 when the territory was already paid"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run was blocked (e.g. organization_balance), or null"
                        },
                        "available": {
                          "type": "boolean",
                          "description": "False when the traffic estimates are not loaded yet: the lists are then empty"
                        },
                        "period": {
                          "type": "object",
                          "properties": {
                            "unit": {
                              "type": "string",
                              "enum": [
                                "day",
                                "hour"
                              ],
                              "description": "Unit of the bands: vehicles a day or vehicles in the hour"
                            },
                            "month": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Month, 1-12, or null for the whole year"
                            },
                            "dayType": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "weekday",
                                "saturday",
                                "sunday",
                                null
                              ],
                              "description": "Type of day, or null for any day"
                            },
                            "hour": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Hour, 0-23, or null for the whole day"
                            },
                            "date": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The date asked for, if any"
                            },
                            "factors": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              },
                              "description": "For vehicles, the factor of each road class from 1 (motorway) to 7 (residential) that turns the average day into this period; for pedestrians one factor for every street. The map multiplies the average day of each road by it"
                            },
                            "bandLimits": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "description": "The band limits of this unit: six for vehicles (seven bands), four for pedestrians (five grades)"
                            },
                            "dateTo": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Last date of the range asked for, if any"
                            },
                            "hourTo": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Last hour of the range of hours asked for, if any: the bands are then the average hour from hour to hourTo"
                            },
                            "days": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Number of days of the date range, if any"
                            }
                          },
                          "required": [
                            "unit",
                            "factors",
                            "bandLimits"
                          ],
                          "description": "The period the bands refer to"
                        },
                        "who": {
                          "type": "string",
                          "enum": [
                            "vehicles",
                            "pedestrians"
                          ],
                          "description": "What was counted"
                        },
                        "calibrated": {
                          "type": "boolean",
                          "description": "False when part of the territory lies in a state without official counts (Tasmania, ACT, Northern Territory): the estimates there are not calibrated"
                        },
                        "bands": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "integer",
                                "description": "Traffic band, 1 to 7, in the unit of period"
                              },
                              "km": {
                                "type": "number",
                                "description": "Length of the roads of the territory in this band, km"
                              }
                            },
                            "required": [
                              "band",
                              "km"
                            ]
                          },
                          "description": "Road length by traffic band, bands with no road left out"
                        },
                        "streets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Street name; empty for unnamed roads"
                              },
                              "roadClass": {
                                "type": "string",
                                "enum": [
                                  "motorway",
                                  "trunk",
                                  "primary",
                                  "secondary",
                                  "tertiary",
                                  "unclassified",
                                  "residential",
                                  "living_street",
                                  "service",
                                  "pedestrian",
                                  "footway",
                                  "path",
                                  "cycleway",
                                  "steps",
                                  "track"
                                ],
                                "description": "Road class; with who=pedestrians also the streets and paths for people on foot (living_street to track)"
                              },
                              "band": {
                                "type": "integer",
                                "description": "Traffic band of the busiest stretch of the street inside the territory, 1-7"
                              },
                              "km": {
                                "type": "number",
                                "description": "Length of the street inside the territory, km"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude of a point on the busiest stretch"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude of a point on the busiest stretch"
                              },
                              "measured": {
                                "type": "boolean",
                                "description": "True when an official count was taken on this street inside the territory"
                              }
                            },
                            "required": [
                              "name",
                              "roadClass",
                              "band",
                              "km",
                              "lng",
                              "lat",
                              "measured"
                            ]
                          },
                          "description": "The busiest named roads of the territory, busiest first (at most 40)"
                        },
                        "measured": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "road": {
                                "type": "string",
                                "description": "Road where the count was taken, as the source names it"
                              },
                              "source": {
                                "type": "string",
                                "description": "Count source, e.g. \u0027Transport for NSW\u0027"
                              },
                              "year": {
                                "type": "integer",
                                "description": "Year of the count"
                              },
                              "band": {
                                "type": "integer",
                                "description": "Traffic band of the measured value, 1-7"
                              },
                              "attribution": {
                                "type": "string",
                                "description": "Attribution the source licence requires"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude of the counting point"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude of the counting point"
                              }
                            },
                            "required": [
                              "road",
                              "source",
                              "year",
                              "band",
                              "attribution",
                              "lng",
                              "lat"
                            ]
                          },
                          "description": "Official counts taken inside the territory, shown as Measured with source and year"
                        },
                        "polesInvolved": {
                          "type": "integer",
                          "description": "Points of the territory used to find its roads"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "The same results as tables for reports and exports: traffic_bands (road length by band), traffic_streets (busiest roads) and traffic_counts (official counts, with the attributions their licences ask for)"
                        },
                        "areaPaid": {
                          "type": [
                            "boolean",
                            "null"
                          ],
                          "description": "True when the organization already paid for this territory: this run, and any other period or pedestrians on it, cost nothing"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "available",
                        "period",
                        "who",
                        "calibrated",
                        "bands",
                        "streets",
                        "measured",
                        "polesInvolved",
                        "tables"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "analysis.traffic",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.traffic",
                          "quantity": 1,
                          "unit": "territories",
                          "credits": 30.0
                        }
                      ],
                      "totalCredits": 30
                    },
                    "charged": true,
                    "creditsCharged": 30,
                    "blockedBy": null,
                    "available": true,
                    "period": {
                      "unit": "day",
                      "month": null,
                      "dayType": null,
                      "hour": null,
                      "date": null,
                      "factors": [
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                      ],
                      "bandLimits": [
                        1000,
                        3000,
                        8000,
                        15000,
                        30000,
                        60000
                      ],
                      "dateTo": null,
                      "hourTo": null,
                      "days": null
                    },
                    "who": "vehicles",
                    "calibrated": true,
                    "bands": [
                      {
                        "band": 1,
                        "km": 270.54
                      },
                      {
                        "band": 2,
                        "km": 119.96
                      },
                      {
                        "band": 3,
                        "km": 73.77
                      },
                      {
                        "band": 4,
                        "km": 51.93
                      },
                      {
                        "band": 5,
                        "km": 87.1
                      },
                      {
                        "band": 6,
                        "km": 20.63
                      },
                      {
                        "band": 7,
                        "km": 44.62
                      }
                    ],
                    "streets": [
                      {
                        "name": "Westlink M7",
                        "roadClass": "motorway",
                        "band": 7,
                        "km": 24.25,
                        "lng": 150.853916,
                        "lat": -33.798925,
                        "measured": false
                      },
                      {
                        "name": "Western Motorway",
                        "roadClass": "motorway",
                        "band": 7,
                        "km": 23.42,
                        "lng": 150.842139,
                        "lat": -33.794451,
                        "measured": false
                      },
                      {
                        "name": "Richmond Road",
                        "roadClass": "primary",
                        "band": 6,
                        "km": 4.14,
                        "lng": 150.844566,
                        "lat": -33.724159,
                        "measured": false
                      },
                      {
                        "name": "Carlisle Avenue",
                        "roadClass": "secondary",
                        "band": 6,
                        "km": 12.88,
                        "lng": 150.816471,
                        "lat": -33.769001,
                        "measured": true
                      },
                      {
                        "name": "Mamre Road",
                        "roadClass": "secondary",
                        "band": 6,
                        "km": 4.95,
                        "lng": 150.771761,
                        "lat": -33.780589,
                        "measured": false
                      }
                    ],
                    "measured": [
                      {
                        "road": "Carlisle Avenue, North of Beames Avenue",
                        "source": "Transport for NSW",
                        "year": 2018,
                        "band": 6,
                        "attribution": "\u00A9 Transport for NSW, CC BY",
                        "lng": 150.816498,
                        "lat": -33.769043
                      },
                      {
                        "road": "Knox Road, South of Cross Street",
                        "source": "Transport for NSW",
                        "year": 2018,
                        "band": 6,
                        "attribution": "\u00A9 Transport for NSW, CC BY",
                        "lng": 150.863083,
                        "lat": -33.763252
                      },
                      {
                        "road": "Great Western Highway, East of Hewitt Street",
                        "source": "Transport for NSW",
                        "year": 2018,
                        "band": 6,
                        "attribution": "\u00A9 Transport for NSW, CC BY",
                        "lng": 150.803101,
                        "lat": -33.776749
                      }
                    ],
                    "polesInvolved": 43845,
                    "tables": [
                      {
                        "key": "traffic_bands",
                        "title": "Road length by traffic",
                        "columns": [
                          "Vehicles a day",
                          "Road length (km)",
                          "Share (%)"
                        ],
                        "rows": [
                          [
                            "Over 60,000",
                            44.6,
                            6.7
                          ],
                          [
                            "30,000\u201360,000",
                            20.6,
                            3.1
                          ],
                          [
                            "15,000\u201330,000",
                            87.1,
                            13.0
                          ],
                          [
                            "8,000\u201315,000",
                            51.9,
                            7.8
                          ],
                          [
                            "3,000\u20138,000",
                            73.8,
                            11.0
                          ],
                          [
                            "1,000\u20133,000",
                            120.0,
                            17.9
                          ],
                          [
                            "Under 1,000",
                            270.5,
                            40.5
                          ]
                        ],
                        "totals": [
                          "Total",
                          668.5,
                          100.0
                        ],
                        "sourceNote": "K-Stra estimates from a model of trips on the road network, calibrated on official traffic counts; vehicles a day, both directions, in bands. Where an official count was taken, the measured value is used.",
                        "sourceYears": null,
                        "sourceLabel": "K-Stra",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "traffic_streets",
                        "title": "Busiest roads",
                        "columns": [
                          "Road",
                          "Type",
                          "Vehicles a day",
                          "Length (km)",
                          "Value"
                        ],
                        "rows": [
                          [
                            "Westlink M7",
                            "Motorway",
                            "Over 60,000",
                            24.2,
                            "Estimated"
                          ],
                          [
                            "Western Motorway",
                            "Motorway",
                            "Over 60,000",
                            23.4,
                            "Estimated"
                          ],
                          [
                            "Richmond Road",
                            "Main road",
                            "30,000\u201360,000",
                            4.1,
                            "Estimated"
                          ],
                          [
                            "Carlisle Avenue",
                            "Secondary road",
                            "30,000\u201360,000",
                            12.9,
                            "Measured"
                          ],
                          [
                            "Mamre Road",
                            "Secondary road",
                            "30,000\u201360,000",
                            5.0,
                            "Estimated"
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "K-Stra estimates from a model of trips on the road network, calibrated on official traffic counts; vehicles a day, both directions, in bands. Where an official count was taken, the measured value is used.",
                        "sourceYears": null,
                        "sourceLabel": "K-Stra",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "traffic_counts",
                        "title": "Official traffic counts in the area",
                        "columns": [
                          "Road",
                          "Vehicles a day",
                          "Source",
                          "Year"
                        ],
                        "rows": [
                          [
                            "Carlisle Avenue, North of Beames Avenue",
                            "30,000\u201360,000",
                            "Transport for NSW",
                            2018
                          ],
                          [
                            "Knox Road, South of Cross Street",
                            "30,000\u201360,000",
                            "Transport for NSW",
                            2018
                          ],
                          [
                            "Great Western Highway, East of Hewitt Street",
                            "30,000\u201360,000",
                            "Transport for NSW",
                            2018
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Official counts, shown in bands. \u00A9 Transport for NSW, CC BY.",
                        "sourceYears": "2018",
                        "sourceLabel": "Official counts",
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "areaPaid": false
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "analysis.traffic",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/areas.list/execute": {
      "post": {
        "operationId": "areas.list",
        "summary": "Run areas.list",
        "description": "Lists or searches administrative areas: with search, finds by name across all levels; with parentLevel\u002BparentId, lists the direct children; with no parameters, lists the first-level areas (l2). Each area carries its population and a point (lat/lng) inside it, usable as the origin of an isochrone. Free.\n\nFree action.",
        "tags": [
          "areas"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "continent": {
                    "type": "string",
                    "enum": [
                      "oceania",
                      "europa"
                    ]
                  },
                  "search": {
                    "type": "string",
                    "description": "Text to search for in the name (min 2 characters); alternative to parentId"
                  },
                  "parentLevel": {
                    "type": "integer",
                    "description": "Level of the parent area whose children to list"
                  },
                  "parentId": {
                    "type": "integer"
                  }
                },
                "required": [
                  "continent"
                ]
              },
              "example": {
                "continent": "oceania",
                "search": "Bondi Junction"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "level": {
                            "type": "integer"
                          },
                          "id": {
                            "type": "integer"
                          },
                          "name": {
                            "type": "string"
                          },
                          "parentName": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "population": {
                            "type": "integer"
                          },
                          "lat": {
                            "type": [
                              "number",
                              "null"
                            ]
                          },
                          "lng": {
                            "type": [
                              "number",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "level",
                          "id",
                          "name",
                          "population"
                        ]
                      }
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "areas.list",
                  "result": [
                    {
                      "level": 7,
                      "id": 10465,
                      "name": "Bondi Junction",
                      "parentName": "Eastern Suburbs - North",
                      "population": 11007,
                      "lat": -33.89305529599997,
                      "lng": 151.25000576383331
                    },
                    {
                      "level": 7,
                      "id": 10707,
                      "name": "Burren Junction",
                      "parentName": "Bourke - Cobar - Coonamble",
                      "population": 250,
                      "lat": -30.046856074499942,
                      "lng": 148.86530861725436
                    },
                    {
                      "level": 7,
                      "id": 13843,
                      "name": "The Junction",
                      "parentName": "Newcastle",
                      "population": 1282,
                      "lat": -32.93779107699996,
                      "lng": 151.760715624108
                    }
                  ],
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/enrich.point/quote": {
      "post": {
        "operationId": "enrich.point.quote",
        "summary": "Quote enrich.point",
        "description": "Quotes enrich.point without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nEnriches one point with everything the engine knows about its catchment, in one call: People \u0026 Economy (socio-demographic and economic tables), Real estate (prices, rents, market), Brands (the shops of the brands you name) and Sectors (demand, supply and opportunity of the sectors you name, or of the main sectors of the catchment with sectors=[\u0022auto\u0022]). Choose the sections with include; each section is priced with the tariff of the analysis behind it and the quote lists them one by one. detail=summary (default) omits the long lists (listings, shop points); detail=full returns them. Quote first, then execute with the quoted credits.",
        "tags": [
          "enrich"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point (WGS84)"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point (WGS84)"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "How the catchment is drawn: driving, driving without highways, walking, or a straight-line radius (bandMetres only)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic assumption for driving times"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in seconds of travel, one value, e.g. [600] = 10 minutes. Default [600]. Alternative to bandMetres, never both"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in metres, one value: road metres with car/walk, straight-line metres with mode=radius. Alternative to bandSeconds"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sections to compute, one or more of: people, economy, realestate, brands, sectors. Default: all five. brands needs brands; sectors needs sectors (or [\u0022auto\u0022])"
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes from markets.sectors (e.g. [\u0022supermarkets\u0022]), or [\u0022auto\u0022] for the three sectors with most shops in the catchment among those with a computed model"
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Exact brand names as returned by search.brands, max 10"
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "summary",
                      "full"
                    ],
                    "description": "summary (default): tables and indicators only, no listings or shop points; full: everything, including catchment geometry"
                  },
                  "contract": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "both"
                    ],
                    "description": "Real estate contract to analyse. Default both"
                  }
                },
                "required": [
                  "lat",
                  "lng",
                  "mode",
                  "traffic"
                ]
              },
              "example": {
                "lat": -33.89106,
                "lng": 151.24843,
                "mode": "car",
                "traffic": "normal",
                "bandSeconds": [
                  600
                ],
                "include": [
                  "people",
                  "economy",
                  "realestate",
                  "sectors"
                ],
                "sectors": [
                  "auto"
                ],
                "detail": "summary",
                "preview": true,
                "idempotencyKey": "example-41c9edb9e293418d8399e0506460c7e5"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "enrich.point"
      }
    },
    "/api/v1/actions/enrich.point/execute": {
      "post": {
        "operationId": "enrich.point",
        "summary": "Run enrich.point (charged)",
        "description": "Enriches one point with everything the engine knows about its catchment, in one call: People \u0026 Economy (socio-demographic and economic tables), Real estate (prices, rents, market), Brands (the shops of the brands you name) and Sectors (demand, supply and opportunity of the sectors you name, or of the main sectors of the catchment with sectors=[\u0022auto\u0022]). Choose the sections with include; each section is priced with the tariff of the analysis behind it and the quote lists them one by one. detail=summary (default) omits the long lists (listings, shop points); detail=full returns them. Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "enrich"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point (WGS84)"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point (WGS84)"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "How the catchment is drawn: driving, driving without highways, walking, or a straight-line radius (bandMetres only)"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic assumption for driving times"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in seconds of travel, one value, e.g. [600] = 10 minutes. Default [600]. Alternative to bandMetres, never both"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in metres, one value: road metres with car/walk, straight-line metres with mode=radius. Alternative to bandSeconds"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sections to compute, one or more of: people, economy, realestate, brands, sectors. Default: all five. brands needs brands; sectors needs sectors (or [\u0022auto\u0022])"
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes from markets.sectors (e.g. [\u0022supermarkets\u0022]), or [\u0022auto\u0022] for the three sectors with most shops in the catchment among those with a computed model"
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Exact brand names as returned by search.brands, max 10"
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "summary",
                      "full"
                    ],
                    "description": "summary (default): tables and indicators only, no listings or shop points; full: everything, including catchment geometry"
                  },
                  "contract": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "both"
                    ],
                    "description": "Real estate contract to analyse. Default both"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "lat",
                  "lng",
                  "mode",
                  "traffic",
                  "quotedCredits"
                ]
              },
              "example": {
                "lat": -33.89106,
                "lng": 151.24843,
                "mode": "car",
                "traffic": "normal",
                "bandSeconds": [
                  600
                ],
                "include": [
                  "people",
                  "economy",
                  "realestate",
                  "sectors"
                ],
                "sectors": [
                  "auto"
                ],
                "detail": "summary",
                "preview": false,
                "idempotencyKey": "example-79b431b451c04a11a7de4637dd8a23c9"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "The quote: one line per section and tariff item, and the total that was or would be charged"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when credits were charged (false in preview and when blocked)"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged, summed over the sections that ran"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "What blocked the run before charging, if anything: organization_balance, team_limit, user_limit, api_key_limit, session_credits"
                        },
                        "polesInvolved": {
                          "type": "integer",
                          "description": "Address poles inside the catchment"
                        },
                        "catchment": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "description": "How the catchment was drawn: car, car_no_highway, walk or radius"
                            },
                            "traffic": {
                              "type": "string",
                              "description": "Traffic assumption used"
                            },
                            "bands": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "seconds": {
                                    "type": "integer",
                                    "description": "Travel time of the band in seconds (0 when the band is in metres)"
                                  },
                                  "metres": {
                                    "type": "integer",
                                    "description": "Distance of the band in metres (0 when the band is in seconds)"
                                  },
                                  "areaKm2": {
                                    "type": "number",
                                    "description": "Surface of the band in square kilometres"
                                  },
                                  "population": {
                                    "type": "integer",
                                    "description": "Residents living inside the band (latest population estimate)"
                                  },
                                  "geometry": {
                                    "description": "GeoJSON MultiPolygon of the band; only with detail=full, otherwise null"
                                  }
                                },
                                "required": [
                                  "seconds",
                                  "metres",
                                  "areaKm2",
                                  "population"
                                ]
                              },
                              "description": "The bands, from the nearest; one band unless several were asked"
                            },
                            "poles": {
                              "type": "integer",
                              "description": "Address poles inside the catchment: the unit the territory analyses count on"
                            },
                            "bbox": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              },
                              "description": "Bounding box [minLng, minLat, maxLng, maxLat] of the catchment"
                            }
                          },
                          "required": [
                            "mode",
                            "traffic",
                            "bands",
                            "poles",
                            "bbox"
                          ],
                          "description": "The catchment the sections were computed on"
                        },
                        "sections": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "description": "Sections computed, in order"
                        },
                        "skipped": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "section": {
                                "type": "string",
                                "description": "The section: people, economy, realestate, brands or sectors"
                              },
                              "reason": {
                                "type": "string",
                                "description": "Why it was skipped: no brands or sectors given, nothing in the catchment, or not enough credits"
                              }
                            },
                            "required": [
                              "section",
                              "reason"
                            ]
                          },
                          "description": "Sections asked and not computed, with the reason"
                        },
                        "people": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "People: population, families, residents born overseas, age classes, highest qualification, highest year of school, marital status; null when not included"
                        },
                        "economy": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "Economy: occupation, employment, wealth indices, consumption, income and potential market by band; null when not included"
                        },
                        "realEstate": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "kpi": {
                              "type": "object",
                              "properties": {
                                "medianPrice": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median asking price of the listings (currency units)"
                                },
                                "nPrice": {
                                  "type": "integer",
                                  "description": "Listings behind the median price"
                                },
                                "medianPerSqm": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median asking price per square metre"
                                },
                                "nPerSqm": {
                                  "type": "integer",
                                  "description": "Listings behind the price per sqm"
                                },
                                "medianRentWeekly": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median weekly rent"
                                },
                                "nRent": {
                                  "type": "integer",
                                  "description": "Listings behind the weekly rent"
                                },
                                "medianRentPerSqm": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median weekly rent per square metre"
                                },
                                "nRentPerSqm": {
                                  "type": "integer",
                                  "description": "Listings behind the rent per sqm"
                                },
                                "grossYieldPct": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Gross yield of the territory, percent: median weekly rent \u00D7 52 / median asking price, the two figures above"
                                },
                                "nYield": {
                                  "type": "integer",
                                  "description": "Listings behind the yield: the smaller of NPrice and NRent"
                                }
                              },
                              "required": [
                                "nPrice",
                                "nPerSqm",
                                "nRent",
                                "nRentPerSqm",
                                "nYield"
                              ],
                              "description": "Median price, price per sqm, weekly rent and gross yield of the catchment, each with the number of listings it rests on"
                            },
                            "market": {
                              "type": "object",
                              "properties": {
                                "medianDaysOnMarket": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "No longer computed, always null: the portal data has no publication date, and the gap between first and last sighting measured the download interval, not the market (deprecated, 30/10/2026)"
                                },
                                "nClosed": {
                                  "type": "integer",
                                  "description": "Listings for sale that left the portal in the period"
                                },
                                "sold": {
                                  "type": "integer",
                                  "description": "Listings for sale that left with a sale event"
                                },
                                "withdrawn": {
                                  "type": "integer",
                                  "description": "Listings for sale that left without a sale event"
                                },
                                "cuts": {
                                  "type": "integer",
                                  "description": "Listings for sale whose last asking price is lower than the first"
                                },
                                "tracked": {
                                  "type": "integer",
                                  "description": "Listings for sale with a known price history"
                                },
                                "medianCutPct": {
                                  "type": [
                                    "number",
                                    "null"
                                  ],
                                  "description": "Median price cut of the listings for sale, percent of the first asking price"
                                },
                                "rentLeft": {
                                  "type": [
                                    "integer",
                                    "null"
                                  ],
                                  "description": "Rental listings that left the portal in the period: leased or withdrawn, the portal does not say which"
                                }
                              },
                              "required": [
                                "nClosed",
                                "sold",
                                "withdrawn",
                                "cuts",
                                "tracked"
                              ],
                              "description": "How the market moved in the period: listings for sale sold, withdrawn and cut, rentals that left the portal"
                            },
                            "postcodes": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "l5Id": {
                                    "type": "integer",
                                    "description": "Internal id of the postcode area (level 5)"
                                  },
                                  "postcode": {
                                    "type": "string",
                                    "description": "Postcode"
                                  },
                                  "locality": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Main locality of the postcode"
                                  },
                                  "medianPrice": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median asking price"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median price per square metre"
                                  },
                                  "medianRentWeekly": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median weekly rent"
                                  },
                                  "rentPerSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median weekly rent per square metre"
                                  },
                                  "yieldPct": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Gross yield, percent: median weekly rent \u00D7 52 / median asking price of the postcode"
                                  },
                                  "listings": {
                                    "type": "integer",
                                    "description": "Listings of the postcode in the analysis"
                                  },
                                  "lowSample": {
                                    "type": "boolean",
                                    "description": "true when at least one value of the row rests on fewer than 10 listings (see NPrice, NPerSqm, NRent, NRentPerSqm; the yield rests on the smaller of NPrice and NRent): read it as indicative"
                                  },
                                  "nPrice": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind MedianPrice"
                                  },
                                  "nPerSqm": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind PerSqm"
                                  },
                                  "nRent": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind MedianRentWeekly"
                                  },
                                  "nRentPerSqm": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Listings behind RentPerSqm"
                                  }
                                },
                                "required": [
                                  "l5Id",
                                  "postcode",
                                  "listings",
                                  "lowSample"
                                ]
                              },
                              "description": "Values by postcode inside the catchment"
                            },
                            "trend": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "quarter": {
                                    "type": "string",
                                    "description": "Quarter, e.g. 2025Q3"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median price per square metre in the quarter"
                                  },
                                  "medianPrice": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median asking price in the quarter"
                                  },
                                  "medianRentWeekly": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median weekly rent in the quarter"
                                  },
                                  "listingCount": {
                                    "type": "integer",
                                    "description": "Listings of the quarter"
                                  },
                                  "excluded": {
                                    "type": "boolean",
                                    "description": "true when the quarter has fewer listings than the minimum and is left out of the series"
                                  }
                                },
                                "required": [
                                  "quarter",
                                  "listingCount",
                                  "excluded"
                                ]
                              },
                              "description": "Quarterly series of price per sqm, median price and weekly rent"
                            },
                            "byType": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "type": {
                                    "type": "string",
                                    "description": "Property type: house, unit, townhouse, land, rural, other"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Listings of the type"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Median price per square metre of the type"
                                  }
                                },
                                "required": [
                                  "type",
                                  "count"
                                ]
                              },
                              "description": "Listings by property type, with the price per sqm of each"
                            },
                            "listingsUsed": {
                              "type": "integer",
                              "description": "Listings involved in the analysis (the billed quantity)"
                            },
                            "fromQuarter": {
                              "type": "string",
                              "description": "First quarter of the period analysed, e.g. 2025Q3"
                            },
                            "toQuarter": {
                              "type": "string",
                              "description": "Last quarter of the period analysed"
                            },
                            "listings": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "description": "Listing id, stable across runs"
                                  },
                                  "address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Street address as published"
                                  },
                                  "type": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Normalised property type"
                                  },
                                  "postcode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Postcode"
                                  },
                                  "price": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Asking price, or weekly rent for rentals"
                                  },
                                  "perSqm": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Price per square metre"
                                  },
                                  "beds": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Bedrooms"
                                  },
                                  "baths": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Bathrooms"
                                  },
                                  "cars": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Car spaces"
                                  },
                                  "areaMq": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Floor or land area in square metres"
                                  },
                                  "suburb": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Suburb"
                                  },
                                  "published": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "format": "date-time",
                                    "description": "Publication date"
                                  },
                                  "removed": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "format": "date-time",
                                    "description": "Removal date, null while online"
                                  },
                                  "lat": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Latitude"
                                  },
                                  "lng": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Longitude"
                                  },
                                  "l5Id": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Postcode area id (level 5)"
                                  },
                                  "contract": {
                                    "type": "string",
                                    "description": "sale or rent"
                                  },
                                  "outlier": {
                                    "type": "boolean",
                                    "description": "true when the listing is a price outlier excluded from the indicators"
                                  },
                                  "sold": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "true when it left the portal with a sale event"
                                  },
                                  "cutPct": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Cut from the first asking price, percent (positive = lowered)"
                                  },
                                  "daysOnMarket": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "No longer computed, always null (see Market.MedianDaysOnMarket; deprecated, 30/10/2026)"
                                  }
                                },
                                "required": [
                                  "id",
                                  "contract",
                                  "outlier"
                                ]
                              },
                              "description": "The listings themselves; only with detail=full, otherwise null"
                            }
                          },
                          "required": [
                            "kpi",
                            "market",
                            "postcodes",
                            "trend",
                            "byType",
                            "listingsUsed",
                            "fromQuarter",
                            "toQuarter"
                          ],
                          "description": "Real estate of the catchment; null when not included or when the catchment has no listings"
                        },
                        "brands": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "names": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "The brands analysed, as given"
                            },
                            "tables": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                                  },
                                  "title": {
                                    "type": "string",
                                    "description": "Title shown above the table, in English"
                                  },
                                  "columns": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Column headers, in order; numeric columns say their unit in the header"
                                  },
                                  "rows": {
                                    "type": "array",
                                    "items": {
                                      "type": "array",
                                      "items": {}
                                    },
                                    "description": "One array per row, cells in the order of columns: numbers, strings or null"
                                  },
                                  "totals": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {},
                                    "description": "Totals row in the order of columns, or null when a total would not mean anything"
                                  },
                                  "sourceNote": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Sources and reading notes to print under the table"
                                  },
                                  "sourceYears": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                                  },
                                  "sourceLabel": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Short name of the source: \u0027ABS\u0027"
                                  },
                                  "compareFrom": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                                  },
                                  "compareLevels": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                                  }
                                },
                                "required": [
                                  "key",
                                  "title",
                                  "columns",
                                  "rows"
                                ]
                              },
                              "description": "Segmentation tables: shops per brand and band, density on population and surface, players"
                            },
                            "points": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "id": {
                                    "type": "integer",
                                    "description": "Point id in the places catalogue"
                                  },
                                  "brand": {
                                    "type": "string",
                                    "description": "Brand the shop belongs to"
                                  },
                                  "category": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Category of the place"
                                  },
                                  "address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Street address"
                                  },
                                  "locality": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Locality"
                                  },
                                  "lat": {
                                    "type": "number",
                                    "description": "Latitude"
                                  },
                                  "lng": {
                                    "type": "number",
                                    "description": "Longitude"
                                  },
                                  "band": {
                                    "type": "integer",
                                    "description": "Index of the catchment band the shop falls in (0 = nearest)"
                                  },
                                  "timeMin": {
                                    "type": "number",
                                    "description": "Travel time from the origin, minutes"
                                  },
                                  "distM": {
                                    "type": "integer",
                                    "description": "Road distance from the origin, metres"
                                  },
                                  "rating": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Rating in the places catalogue, 1-5"
                                  },
                                  "reviews": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Number of reviews"
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Phone"
                                  },
                                  "website": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Website"
                                  },
                                  "openingHours": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Opening hours as published"
                                  },
                                  "state": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "State of the address the point is snapped to"
                                  },
                                  "status": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Business status from the places catalogue when it is not open, e.g. \u0027Permanently closed\u0027; null when open"
                                  },
                                  "sales": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "band": {
                                        "type": "string",
                                        "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                      },
                                      "confidence": {
                                        "type": "string",
                                        "enum": [
                                          "high",
                                          "medium",
                                          "low"
                                        ],
                                        "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                      },
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "chain_accounts",
                                          "company_accounts",
                                          "store_size",
                                          "review_activity",
                                          "turnover_bands"
                                        ],
                                        "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                      },
                                      "version": {
                                        "type": "integer",
                                        "description": "Version of the sales model the estimate comes from"
                                      },
                                      "currency": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                      }
                                    },
                                    "required": [
                                      "band",
                                      "confidence",
                                      "source",
                                      "version"
                                    ],
                                    "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                                  },
                                  "openingHoursByDay": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                                  }
                                },
                                "required": [
                                  "id",
                                  "brand",
                                  "lat",
                                  "lng",
                                  "band",
                                  "timeMin",
                                  "distM"
                                ]
                              },
                              "description": "Shops of the brands inside the catchment with distance and time; only with detail=full, otherwise null"
                            }
                          },
                          "required": [
                            "names",
                            "tables"
                          ],
                          "description": "Brands section; null when not included"
                        },
                        "sectors": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "codes": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              },
                              "description": "The sector codes analysed; with sectors=[\u0022auto\u0022], the ones the engine chose"
                            },
                            "tables": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "key": {
                                    "type": "string",
                                    "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                                  },
                                  "title": {
                                    "type": "string",
                                    "description": "Title shown above the table, in English"
                                  },
                                  "columns": {
                                    "type": "array",
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "Column headers, in order; numeric columns say their unit in the header"
                                  },
                                  "rows": {
                                    "type": "array",
                                    "items": {
                                      "type": "array",
                                      "items": {}
                                    },
                                    "description": "One array per row, cells in the order of columns: numbers, strings or null"
                                  },
                                  "totals": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {},
                                    "description": "Totals row in the order of columns, or null when a total would not mean anything"
                                  },
                                  "sourceNote": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Sources and reading notes to print under the table"
                                  },
                                  "sourceYears": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                                  },
                                  "sourceLabel": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Short name of the source: \u0027ABS\u0027"
                                  },
                                  "compareFrom": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                                  },
                                  "compareLevels": {
                                    "type": [
                                      "array",
                                      "null"
                                    ],
                                    "items": {
                                      "type": "string"
                                    },
                                    "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                                  }
                                },
                                "required": [
                                  "key",
                                  "title",
                                  "columns",
                                  "rows"
                                ]
                              },
                              "description": "Market summary tables per sector: demand (a catchment, not a sum), supply (an index), opportunity, gap"
                            },
                            "topLocations": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "sector": {
                                    "type": "string",
                                    "description": "Sector code"
                                  },
                                  "measure": {
                                    "type": "string",
                                    "description": "Measure the ranking is on: opportunity or gap. Demand and competition have no address ranking - demand is a figure of the area, and the contested addresses are the worst places to open, not the best"
                                  },
                                  "rank": {
                                    "type": "integer",
                                    "description": "Rank, 1 = best"
                                  },
                                  "pid": {
                                    "type": "integer",
                                    "description": "Address pole id of the location"
                                  },
                                  "lat": {
                                    "type": "number",
                                    "description": "Latitude"
                                  },
                                  "lng": {
                                    "type": "number",
                                    "description": "Longitude"
                                  },
                                  "address": {
                                    "type": "string",
                                    "description": "Address of the location, written the way its country writes addresses (in Australia: \u002764 Shirley Road, Crows Nest NSW 2065\u0027). It starts with \u0027near\u0027 when the location has no street of its own and the nearest numbered address is given instead"
                                  },
                                  "value": {
                                    "type": "number",
                                    "description": "Value of the measure at the location"
                                  },
                                  "hasBuilding": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "True when a building stands on the address, false when the site is vacant land"
                                  },
                                  "buildingClass": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "What the building is used for, e.g. retail, residential, industrial; null when unknown or when the site is vacant"
                                  },
                                  "buildingAreaM2": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Footprint of the building in square metres; null when unknown or when the site is vacant"
                                  },
                                  "freeLandM2": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Land not covered by any building within 150 m of the address, in square metres. It is a measurement, not a buildable plot: streets and gardens are in it"
                                  },
                                  "areaBuiltPct": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Share of the 150 m circle around the address covered by buildings, 0-100"
                                  },
                                  "largestNearbyM2": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Footprint of the largest building within 150 m of the address, in square metres"
                                  },
                                  "sectorTypicalM2": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Footprint of the largest building that normally stands within 150 m of a shop of this sector, in square metres: the scale the format works at, measured on the sector\u0027s own shops. Null when the sector has too few shops to say"
                                  },
                                  "largeStructureNearby": {
                                    "type": [
                                      "boolean",
                                      "null"
                                    ],
                                    "description": "True when a building at least as large as sectorTypicalM2 stands within 150 m: the address is already at the scale this format works at. Null when the sector has too few shops to say"
                                  }
                                },
                                "required": [
                                  "sector",
                                  "measure",
                                  "rank",
                                  "pid",
                                  "lat",
                                  "lng",
                                  "address",
                                  "value"
                                ]
                              },
                              "description": "The five best locations per sector and measure, at least 500 m apart"
                            },
                            "competitors": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "sector": {
                                    "type": "string",
                                    "description": "Sector code"
                                  },
                                  "count": {
                                    "type": "integer",
                                    "description": "Shops of the sector inside the territory"
                                  }
                                },
                                "required": [
                                  "sector",
                                  "count"
                                ]
                              },
                              "description": "How many shops of each sector stand in the catchment"
                            },
                            "players": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "object",
                                "properties": {
                                  "name": {
                                    "type": "string",
                                    "description": "Name of the shop"
                                  },
                                  "lat": {
                                    "type": "number",
                                    "description": "Latitude"
                                  },
                                  "lng": {
                                    "type": "number",
                                    "description": "Longitude"
                                  },
                                  "id": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Point id in the places catalogue"
                                  },
                                  "category": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Category of the place"
                                  },
                                  "address": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Street address"
                                  },
                                  "rating": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Rating in the places catalogue, 1-5"
                                  },
                                  "reviews": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Number of reviews"
                                  },
                                  "phone": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Phone"
                                  },
                                  "website": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Website"
                                  },
                                  "openingHours": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Opening hours as published"
                                  },
                                  "sectorCode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Category code the shop was selected with, e.g. SUPERMARKET"
                                  },
                                  "competitors": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Competing shops that reach this one within the sector\u0027s catchment, excluding itself"
                                  },
                                  "catchmentSeconds": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Catchment of the sector in seconds"
                                  },
                                  "catchmentMode": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Catchment mode of the sector: car or walk"
                                  },
                                  "sales": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "band": {
                                        "type": "string",
                                        "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                      },
                                      "confidence": {
                                        "type": "string",
                                        "enum": [
                                          "high",
                                          "medium",
                                          "low"
                                        ],
                                        "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                      },
                                      "source": {
                                        "type": "string",
                                        "enum": [
                                          "chain_accounts",
                                          "company_accounts",
                                          "store_size",
                                          "review_activity",
                                          "turnover_bands"
                                        ],
                                        "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                      },
                                      "version": {
                                        "type": "integer",
                                        "description": "Version of the sales model the estimate comes from"
                                      },
                                      "currency": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                      }
                                    },
                                    "required": [
                                      "band",
                                      "confidence",
                                      "source",
                                      "version"
                                    ],
                                    "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                                  },
                                  "centre": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "properties": {
                                      "sales": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "Reported annual sales of the whole centre (moving annual turnover) in millions of the currency field, including GST, for the 12 months to periodEnd; null when only the size is published"
                                      },
                                      "periodEnd": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Date the figures refer to, ISO 8601: end of the 12 months of sales, or the date of the published size"
                                      },
                                      "gla": {
                                        "type": [
                                          "integer",
                                          "null"
                                        ],
                                        "description": "Gross lettable area of the centre in m\u00B2"
                                      },
                                      "visits": {
                                        "type": [
                                          "number",
                                          "null"
                                        ],
                                        "description": "Customer visits a year in millions, as counted by the owner"
                                      },
                                      "currency": {
                                        "type": [
                                          "string",
                                          "null"
                                        ],
                                        "description": "Currency of sales, ISO 4217"
                                      }
                                    },
                                    "required": [],
                                    "description": "Published figures of a shopping centre (annual sales of the whole centre, gross lettable area, visits); present only with include [\u0027sales\u0027] and only for centres with published figures. Reported figures, not estimates"
                                  },
                                  "openingHoursByDay": {
                                    "type": [
                                      "object",
                                      "null"
                                    ],
                                    "additionalProperties": {
                                      "type": "string"
                                    },
                                    "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                                  }
                                },
                                "required": [
                                  "name",
                                  "lat",
                                  "lng"
                                ]
                              },
                              "description": "The shops of the sectors inside the catchment; only with detail=full, otherwise null"
                            }
                          },
                          "required": [
                            "codes",
                            "tables",
                            "topLocations",
                            "competitors"
                          ],
                          "description": "Sectors section; null when not included"
                        },
                        "dataVersions": {
                          "type": "object",
                          "additionalProperties": {
                            "type": "string"
                          },
                          "description": "Version stamps of the data families the sections used (territory, sociodemo, realestate, players)"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "polesInvolved",
                        "catchment",
                        "sections",
                        "skipped",
                        "dataVersions"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "enrich.point",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.people.topic",
                          "quantity": 6,
                          "unit": "topics",
                          "credits": 12.00
                        },
                        {
                          "actionCode": "analysis.realestate",
                          "quantity": 1,
                          "unit": "analyses",
                          "credits": 20.00
                        },
                        {
                          "actionCode": "analysis.markets.sector",
                          "quantity": 3,
                          "unit": "sectors",
                          "credits": 120.00
                        }
                      ],
                      "totalCredits": 152
                    },
                    "charged": true,
                    "creditsCharged": 152,
                    "blockedBy": null,
                    "polesInvolved": 57616,
                    "catchment": {
                      "mode": "car",
                      "traffic": "normal",
                      "bands": [
                        {
                          "seconds": 600,
                          "metres": 0,
                          "areaKm2": 50.44,
                          "population": 329278,
                          "geometry": null
                        }
                      ],
                      "poles": 57616,
                      "bbox": [
                        151.18765524211196,
                        -33.96998611505702,
                        151.30827880445798,
                        -33.808577879831084
                      ]
                    },
                    "sections": [
                      "people",
                      "economy",
                      "realestate",
                      "sectors"
                    ],
                    "skipped": [],
                    "people": [
                      {
                        "key": "sociodemo",
                        "title": "Population by band",
                        "columns": [
                          "Band",
                          "Pop (n)",
                          "Pop (%)",
                          "Pop cum. (n)",
                          "Pop cum. (%)",
                          "Males (n)",
                          "Females (n)",
                          "Families (n)",
                          "Families cum. (n)",
                          "Residents per family",
                          "Born overseas (n)",
                          "Dwellings (n)",
                          "Occupied dwellings (n)",
                          "Area (km\u00B2)"
                        ],
                        "rows": [
                          [
                            "0\u201310 min",
                            329278,
                            100,
                            329278,
                            100,
                            166453,
                            162825,
                            70837,
                            70837,
                            4.65,
                            135342,
                            154501,
                            131455,
                            50.44
                          ]
                        ],
                        "totals": [
                          "Catchment",
                          329278,
                          100,
                          329278,
                          100,
                          166453,
                          162825,
                          70837,
                          70837,
                          4.65,
                          135342,
                          154501,
                          131455,
                          50.44
                        ],
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "by_locality",
                        "title": "Population by LGA",
                        "columns": [
                          "Locality",
                          "Area code",
                          "Region (SA4)",
                          "0\u201310 min",
                          "Total (n)",
                          "Total (%)",
                          "Municipality pop",
                          "Share of municipality (%)",
                          "Avg distance (km)"
                        ],
                        "rows": [
                          [
                            "Sydney",
                            "17200",
                            "Sydney - City and Inner South",
                            136605,
                            136605,
                            41.5,
                            237278,
                            57.6,
                            4.8
                          ],
                          [
                            "Randwick",
                            "16550",
                            "Sydney - Eastern Suburbs",
                            73018,
                            73018,
                            22.2,
                            144598,
                            50.5,
                            3.7
                          ],
                          [
                            "Waverley",
                            "18050",
                            "Sydney - Eastern Suburbs",
                            71016,
                            71016,
                            21.6,
                            72857,
                            97.5,
                            2.5
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "foreigners_by_postcode",
                        "title": "Born overseas by postcode",
                        "columns": [
                          "Postcode",
                          "Born overseas (n)",
                          "Share of all born overseas (%)",
                          "Residents (n)",
                          "Born overseas (% of residents)"
                        ],
                        "rows": [
                          [
                            "2000",
                            17597,
                            13.0,
                            27420,
                            64.2
                          ],
                          [
                            "2017",
                            14088,
                            10.4,
                            26800,
                            52.6
                          ],
                          [
                            "2026",
                            13936,
                            10.3,
                            34838,
                            40.0
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "economy": [
                      {
                        "key": "occupation",
                        "title": "Occupation",
                        "columns": [
                          "Indicator",
                          "0\u201310 min",
                          "Total"
                        ],
                        "rows": [
                          [
                            "Labour force",
                            182088,
                            182088
                          ],
                          [
                            "Employed",
                            173646,
                            173646
                          ],
                          [
                            "Unemployed",
                            8442,
                            8442
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "employment_rates",
                        "title": "Employment rates",
                        "columns": [
                          "Rate",
                          "0\u201310 min",
                          "Total",
                          "Bondi Junction",
                          "Waverley LGA",
                          "New South Wales",
                          "Australia"
                        ],
                        "rows": [
                          [
                            "Participation rate (% of residents)",
                            55.3,
                            55.3,
                            54.6,
                            54.5,
                            45.7,
                            46.6
                          ],
                          [
                            "Employment rate (% of labour force)",
                            95.4,
                            95.4,
                            95.4,
                            96.3,
                            95.1,
                            94.9
                          ],
                          [
                            "Unemployment rate (% of labour force)",
                            4.6,
                            4.6,
                            4.6,
                            3.7,
                            4.9,
                            5.1
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2024 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra Compared with the suburb, local government area and state where the location is, and Australia.",
                        "sourceYears": "2024",
                        "sourceLabel": "ABS",
                        "compareFrom": 2,
                        "compareLevels": [
                          "catchment",
                          "suburb",
                          "lga",
                          "state",
                          "country"
                        ]
                      },
                      {
                        "key": "wealth_indices",
                        "title": "Wealth indices",
                        "columns": [
                          "Indicator",
                          "Catchment",
                          "Australia",
                          "Difference"
                        ],
                        "rows": [
                          [
                            "Income index (NIR)",
                            122.6,
                            100.0,
                            22.6
                          ],
                          [
                            "Consumption index (NIC)",
                            121.2,
                            100.0,
                            21.2
                          ],
                          [
                            "Consumption per capita (AUD/year)",
                            63752,
                            52583,
                            11170
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: income index from ABS Personal Income 2023 (tax data) where measured, a K-Stra estimate elsewhere; Australia = 100 \u00B7 K-Stra",
                        "sourceYears": "2023",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ],
                    "realEstate": {
                      "kpi": {
                        "medianPrice": 1175000.00,
                        "nPrice": 1017,
                        "medianPerSqm": 13760.60,
                        "nPerSqm": 456,
                        "medianRentWeekly": 1050.00,
                        "nRent": 3746,
                        "medianRentPerSqm": 15.08,
                        "nRentPerSqm": 203,
                        "grossYieldPct": 3.84,
                        "nYield": 23
                      },
                      "market": {
                        "medianDaysOnMarket": null,
                        "nClosed": 2853,
                        "sold": 46,
                        "withdrawn": 2807,
                        "cuts": 223,
                        "tracked": 4972,
                        "medianCutPct": 6.9
                      },
                      "postcodes": [
                        {
                          "l5Id": 2000,
                          "postcode": "2000",
                          "locality": "Sydney",
                          "medianPrice": 1285000.00,
                          "perSqm": 14229.50,
                          "medianRentWeekly": 1200.00,
                          "rentPerSqm": 17.24,
                          "yieldPct": 4.86,
                          "listings": 1276,
                          "lowSample": false
                        },
                        {
                          "l5Id": 2007,
                          "postcode": "2007",
                          "locality": "Sydney",
                          "medianPrice": 1107500.00,
                          "perSqm": 11715.52,
                          "medianRentWeekly": 1130.00,
                          "rentPerSqm": null,
                          "yieldPct": 5.31,
                          "listings": 109,
                          "lowSample": false
                        },
                        {
                          "l5Id": 2008,
                          "postcode": "2008",
                          "locality": "Sydney",
                          "medianPrice": 900000.00,
                          "perSqm": 12508.92,
                          "medianRentWeekly": 1000.00,
                          "rentPerSqm": 11.37,
                          "yieldPct": 5.78,
                          "listings": 186,
                          "lowSample": false
                        }
                      ],
                      "trend": [
                        {
                          "quarter": "2026-Q3",
                          "perSqm": 13760.60,
                          "medianPrice": 1175000.00,
                          "medianRentWeekly": 1050.00,
                          "listingCount": 6749,
                          "excluded": false
                        }
                      ],
                      "byType": [
                        {
                          "type": "apartment",
                          "count": 4984,
                          "perSqm": 13307.29
                        },
                        {
                          "type": "house",
                          "count": 641,
                          "perSqm": 19762.85
                        },
                        {
                          "type": "commercial",
                          "count": 492,
                          "perSqm": 12500.00
                        }
                      ],
                      "listingsUsed": 6777,
                      "fromQuarter": "2026-Q3",
                      "toQuarter": "2026-Q3",
                      "listings": null
                    },
                    "brands": null,
                    "sectors": {
                      "codes": [
                        "restaurants",
                        "bars",
                        "clothing"
                      ],
                      "tables": [
                        {
                          "key": "sector_summary_restaurants",
                          "title": "Restaurants \u2014 market summary",
                          "columns": [
                            "Measure",
                            "Value (AUD m)"
                          ],
                          "rows": [
                            [
                              "Opportunity",
                              3.88
                            ],
                            [
                              "Demand",
                              395.26
                            ]
                          ],
                          "totals": null,
                          "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2024 \u00B7 third-party places data 2026",
                          "sourceYears": null,
                          "sourceLabel": null,
                          "compareFrom": null,
                          "compareLevels": null
                        },
                        {
                          "key": "sector_players_restaurants",
                          "title": "Restaurants \u2014 1,085 in this area",
                          "columns": [
                            "Store",
                            "Category",
                            "Address",
                            "Time (min)",
                            "Rating",
                            "Reviews",
                            "Id"
                          ],
                          "rows": [
                            [
                              "Pandawa Nasi Bungkus Australia",
                              "Indonesian restaurant",
                              "Wesley Mission Building, 220 Pitt St, Sydney NSW 2000",
                              7.8,
                              4.9,
                              11792,
                              151171417
                            ],
                            [
                              "El Camino Cantina The Rocks, Sydney",
                              "Tex-Mex restaurant",
                              "18 Argyle St, The Rocks NSW 2000",
                              9.8,
                              4.5,
                              9600,
                              31324069
                            ],
                            [
                              "Pancakes On The Rocks",
                              "Pancake restaurant",
                              "22 Playfair St, The Rocks NSW 2000",
                              9.8,
                              4.1,
                              9176,
                              148224268
                            ]
                          ],
                          "totals": null,
                          "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2024 \u00B7 third-party places data 2026 \u2014 first 500 of 1,085, by the weight the model gives each store and then by reviews; the map shows them all. Time: minutes from the starting point along the road network",
                          "sourceYears": null,
                          "sourceLabel": null,
                          "compareFrom": null,
                          "compareLevels": null
                        },
                        {
                          "key": "sector_density_restaurants",
                          "title": "Restaurants \u2014 how many for every 10,000 residents",
                          "columns": [
                            "Area",
                            "Stores",
                            "Residents",
                            "Per 10,000 residents"
                          ],
                          "rows": [
                            [
                              "Catchment",
                              1085,
                              329278,
                              32.95
                            ],
                            [
                              "Sydney LGA",
                              1077,
                              237278,
                              45.39
                            ],
                            [
                              "New South Wales",
                              10803,
                              8479314,
                              12.74
                            ]
                          ],
                          "totals": null,
                          "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2024 \u00B7 third-party places data 2026 \u2014 stores counted where they stand; the local government area and the state are those where most of the residents live",
                          "sourceYears": null,
                          "sourceLabel": null,
                          "compareFrom": null,
                          "compareLevels": null
                        }
                      ],
                      "topLocations": [
                        {
                          "sector": "restaurants",
                          "measure": "opportunity",
                          "rank": 1,
                          "pid": 85397549,
                          "lat": -33.9348336,
                          "lng": 151.2380157,
                          "address": "near 756 Anzac Parade, Maroubra NSW 2035",
                          "value": 784967,
                          "hasBuilding": false,
                          "buildingClass": null,
                          "buildingAreaM2": null,
                          "freeLandM2": 60033.103212141024,
                          "areaBuiltPct": 14.534842671933852,
                          "largestNearbyM2": 2996.64,
                          "sectorTypicalM2": 1008.42,
                          "largeStructureNearby": true
                        },
                        {
                          "sector": "restaurants",
                          "measure": "opportunity",
                          "rank": 2,
                          "pid": 109656755,
                          "lat": -33.86001766035254,
                          "lng": 151.27940728598261,
                          "address": "100 Old South Head Road, Vaucluse NSW 2030",
                          "value": 634413,
                          "hasBuilding": true,
                          "buildingClass": null,
                          "buildingAreaM2": null,
                          "freeLandM2": 57262.20286498732,
                          "areaBuiltPct": 18.481975829678575,
                          "largestNearbyM2": 6923.48,
                          "sectorTypicalM2": 1008.42,
                          "largeStructureNearby": true
                        },
                        {
                          "sector": "restaurants",
                          "measure": "opportunity",
                          "rank": 3,
                          "pid": 93190437,
                          "lat": -33.92667762878674,
                          "lng": 151.24204821168047,
                          "address": "near 46 Bundock Street, Randwick NSW 2031",
                          "value": 627190,
                          "hasBuilding": true,
                          "buildingClass": null,
                          "buildingAreaM2": null,
                          "freeLandM2": 62849.57300619988,
                          "areaBuiltPct": 10.52547726682175,
                          "largestNearbyM2": 1692.4,
                          "sectorTypicalM2": 1008.42,
                          "largeStructureNearby": true
                        }
                      ],
                      "competitors": [
                        {
                          "sector": "restaurants",
                          "count": 1085
                        },
                        {
                          "sector": "bars",
                          "count": 1068
                        },
                        {
                          "sector": "clothing",
                          "count": 654
                        }
                      ],
                      "players": null
                    },
                    "dataVersions": {
                      "sociodemo": "2024",
                      "territory": "9",
                      "realestate": "2026-09",
                      "players": "2026-10",
                      "sectormodel": "2026-10-18 10:21"
                    }
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "enrich.point",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/enrich.points/quote": {
      "post": {
        "operationId": "enrich.points.quote",
        "summary": "Quote enrich.points",
        "description": "Quotes enrich.points without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nEnriches many points (up to 500) with the same sections as enrich.point, as a background job. The call returns the job id at once; the outcome arrives with the job.completed webhook or from GET /api/v1/jobs/{id}, and the results, one per point, from GET /api/v1/jobs/{id}/results. The quote is an ESTIMATE from a sample of points multiplied by the count; the job charges point by point and never exceeds maxCredits (default: the estimate). Points that would exceed the cap are skipped and say so.",
        "tags": [
          "enrich"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "points": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the point (e.g. store code), returned with its result; max 80 characters"
                        },
                        "lat": {
                          "type": "number",
                          "description": "Latitude (WGS84)"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude (WGS84)"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The points, 1 to 500"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "How each catchment is drawn"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic assumption for driving times"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in seconds, one value, e.g. [600]. Default [600]. Alternative to bandMetres"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in metres, one value. Alternative to bandSeconds"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sections to compute for every point: people, economy, realestate, brands, sectors. Default: all five"
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes from markets.sectors, or [\u0022auto\u0022] (chosen per point)"
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Exact brand names from search.brands, max 10"
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "summary",
                      "full"
                    ],
                    "description": "summary (default) or full, as in enrich.point"
                  },
                  "contract": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "both"
                    ],
                    "description": "Real estate contract. Default both"
                  },
                  "maxCredits": {
                    "type": "number",
                    "description": "The most credits the whole job may charge. Default: the quoted estimate. The job stops before exceeding it"
                  }
                },
                "required": [
                  "points",
                  "mode",
                  "traffic"
                ]
              },
              "example": {
                "points": [
                  {
                    "id": "store-1",
                    "lat": -33.89106,
                    "lng": 151.24843
                  },
                  {
                    "id": "store-2",
                    "lat": -33.882,
                    "lng": 151.207
                  }
                ],
                "mode": "car",
                "traffic": "normal",
                "bandSeconds": [
                  600
                ],
                "include": [
                  "people",
                  "economy"
                ],
                "preview": true,
                "idempotencyKey": "example-5f56065032094db4a99a8aed0003bb96"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "enrich.points"
      }
    },
    "/api/v1/actions/enrich.points/execute": {
      "post": {
        "operationId": "enrich.points",
        "summary": "Run enrich.points (charged)",
        "description": "Enriches many points (up to 500) with the same sections as enrich.point, as a background job. The call returns the job id at once; the outcome arrives with the job.completed webhook or from GET /api/v1/jobs/{id}, and the results, one per point, from GET /api/v1/jobs/{id}/results. The quote is an ESTIMATE from a sample of points multiplied by the count; the job charges point by point and never exceeds maxCredits (default: the estimate). Points that would exceed the cap are skipped and say so.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "enrich"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "points": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the point (e.g. store code), returned with its result; max 80 characters"
                        },
                        "lat": {
                          "type": "number",
                          "description": "Latitude (WGS84)"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude (WGS84)"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The points, 1 to 500"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk",
                      "radius"
                    ],
                    "description": "How each catchment is drawn"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic assumption for driving times"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "bandSeconds": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in seconds, one value, e.g. [600]. Default [600]. Alternative to bandMetres"
                  },
                  "bandMetres": {
                    "type": "array",
                    "items": {
                      "type": "integer"
                    },
                    "description": "Catchment size in metres, one value. Alternative to bandSeconds"
                  },
                  "include": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sections to compute for every point: people, economy, realestate, brands, sectors. Default: all five"
                  },
                  "sectors": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Sector codes from markets.sectors, or [\u0022auto\u0022] (chosen per point)"
                  },
                  "brands": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    },
                    "description": "Exact brand names from search.brands, max 10"
                  },
                  "detail": {
                    "type": "string",
                    "enum": [
                      "summary",
                      "full"
                    ],
                    "description": "summary (default) or full, as in enrich.point"
                  },
                  "contract": {
                    "type": "string",
                    "enum": [
                      "sale",
                      "rent",
                      "both"
                    ],
                    "description": "Real estate contract. Default both"
                  },
                  "maxCredits": {
                    "type": "number",
                    "description": "The most credits the whole job may charge. Default: the quoted estimate. The job stops before exceeding it"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "points",
                  "mode",
                  "traffic",
                  "quotedCredits"
                ]
              },
              "example": {
                "points": [
                  {
                    "id": "store-1",
                    "lat": -33.89106,
                    "lng": 151.24843
                  },
                  {
                    "id": "store-2",
                    "lat": -33.882,
                    "lng": 151.207
                  }
                ],
                "mode": "car",
                "traffic": "normal",
                "bandSeconds": [
                  600
                ],
                "include": [
                  "people",
                  "economy"
                ],
                "preview": false,
                "idempotencyKey": "example-69e2e545b2064303a63de479aee59dd4"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "The estimate: lines averaged over the sampled points and multiplied by the number of points; the total is what a run at the average would cost"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "Always false here: the job charges point by point; read the job\u0027s result for the credits actually charged"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Always 0 here: see the job"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "What blocks the job before it starts, if anything (the estimate exceeds the available credits)"
                        },
                        "jobId": {
                          "type": [
                            "integer",
                            "null"
                          ],
                          "description": "The job id; null in preview. Follow it with GET /api/v1/jobs/{id} and the job.completed webhook"
                        },
                        "points": {
                          "type": "integer",
                          "description": "Number of points in the batch"
                        },
                        "sampledPoints": {
                          "type": "integer",
                          "description": "How many points the estimate was sampled on (up to 3: first, middle, last)"
                        },
                        "maxCredits": {
                          "type": "number",
                          "description": "The cap the job will not exceed: maxCredits, or the estimate"
                        },
                        "estimate": {
                          "type": "boolean",
                          "description": "Always true: the quote of a batch is an estimate, the job charges what each point really costs"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "points",
                        "sampledPoints",
                        "maxCredits",
                        "estimate"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "enrich.points",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.people.topic",
                          "quantity": 12,
                          "unit": "topics",
                          "credits": 24.00
                        }
                      ],
                      "totalCredits": 24
                    },
                    "charged": false,
                    "creditsCharged": 0,
                    "blockedBy": null,
                    "jobId": 5397,
                    "points": 2,
                    "sampledPoints": 2,
                    "maxCredits": 24,
                    "estimate": true
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "enrich.points",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/market.catchment/quote": {
      "post": {
        "operationId": "market.catchment.quote",
        "summary": "Quote market.catchment",
        "description": "Quotes market.catchment without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nAustralian drive-time or walking catchment of an address or point, with who lives in it: residents, age groups, household income and residents\u0027 spending by category, from the official statistics. One call; priced as People \u0026 Economy on four topics (8 credits). Quote first, then execute with the quoted credits.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point, WGS84. Give lat and lng, or address"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point, WGS84"
                  },
                  "address": {
                    "type": "string",
                    "description": "Australian street address, number first, e.g. \u0027151 George Street, Sydney NSW 2000\u0027. Alternative to lat/lng"
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Travel time of the catchment in minutes, 5 to 30. Default 10"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk"
                    ],
                    "description": "drive (default) or walk"
                  }
                },
                "required": []
              },
              "example": {
                "address": "500 Oxford Street, Bondi Junction NSW 2022",
                "minutes": 10,
                "mode": "drive",
                "preview": true,
                "idempotencyKey": "example-a0408363da494a1ea2b9b4bc85e73ccc"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.catchment"
      }
    },
    "/api/v1/actions/market.catchment/execute": {
      "post": {
        "operationId": "market.catchment",
        "summary": "Run market.catchment (charged)",
        "description": "Australian drive-time or walking catchment of an address or point, with who lives in it: residents, age groups, household income and residents\u0027 spending by category, from the official statistics. One call; priced as People \u0026 Economy on four topics (8 credits). Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point, WGS84. Give lat and lng, or address"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point, WGS84"
                  },
                  "address": {
                    "type": "string",
                    "description": "Australian street address, number first, e.g. \u0027151 George Street, Sydney NSW 2000\u0027. Alternative to lat/lng"
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Travel time of the catchment in minutes, 5 to 30. Default 10"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk"
                    ],
                    "description": "drive (default) or walk"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "quotedCredits"
                ]
              },
              "example": {
                "address": "500 Oxford Street, Bondi Junction NSW 2022",
                "minutes": 10,
                "mode": "drive",
                "preview": false,
                "idempotencyKey": "example-4349285d0f3a4b2cbd81cfc7b1db836b"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "True when the run was carried out and charged"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits charged by this run"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run was blocked (e.g. organization_balance), or null"
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "lat": {
                              "type": "number",
                              "description": "Latitude, WGS84"
                            },
                            "lng": {
                              "type": "number",
                              "description": "Longitude, WGS84"
                            },
                            "address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address the input resolved to, in Australian order (number, street, suburb, state, postcode); null when coordinates were given"
                            }
                          },
                          "required": [
                            "lat",
                            "lng"
                          ],
                          "description": "The point the catchment starts from"
                        },
                        "catchment": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "description": "How the catchment was drawn: drive or walk"
                            },
                            "minutes": {
                              "type": "integer",
                              "description": "Travel time of the catchment, minutes"
                            },
                            "areaKm2": {
                              "type": "number",
                              "description": "Surface of the catchment, square kilometres"
                            },
                            "population": {
                              "type": "integer",
                              "description": "Residents living inside the catchment (latest official population estimate)"
                            },
                            "geometry": {
                              "description": "GeoJSON MultiPolygon of the catchment"
                            }
                          },
                          "required": [
                            "mode",
                            "minutes",
                            "areaKm2",
                            "population"
                          ],
                          "description": "The catchment"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "Residents, age groups, household income and spending by category: one table each, columns and rows as in People \u0026 Economy"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "location",
                        "catchment",
                        "tables"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "market.catchment",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.people.topic",
                          "quantity": 4,
                          "unit": "topics",
                          "credits": 8.00
                        }
                      ],
                      "totalCredits": 8
                    },
                    "charged": true,
                    "creditsCharged": 8,
                    "blockedBy": null,
                    "location": {
                      "lat": -33.89114359999999,
                      "lng": 151.2507464,
                      "address": "500 Oxford Street, Bondi Junction NSW 2022"
                    },
                    "catchment": {
                      "mode": "drive",
                      "minutes": 10,
                      "areaKm2": 48.85,
                      "population": 312637,
                      "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [
                          [
                            [
                              [
                                151.30451,
                                -33.814498
                              ],
                              [
                                151.305167,
                                -33.811607
                              ],
                              [
                                151.305373,
                                -33.810555
                              ]
                            ]
                          ],
                          [
                            [
                              [
                                151.190557,
                                -33.87077
                              ],
                              [
                                151.19105,
                                -33.870308
                              ],
                              [
                                151.19137,
                                -33.870089
                              ]
                            ],
                            [
                              [
                                151.266422,
                                -33.875559
                              ],
                              [
                                151.26665,
                                -33.875903
                              ],
                              [
                                151.267088,
                                -33.876085
                              ]
                            ],
                            [
                              [
                                151.221718,
                                -33.90312
                              ],
                              [
                                151.221087,
                                -33.903552
                              ],
                              [
                                151.220882,
                                -33.903787
                              ]
                            ]
                          ],
                          [
                            [
                              [
                                151.263525,
                                -33.926542
                              ],
                              [
                                151.263479,
                                -33.925984
                              ],
                              [
                                151.263515,
                                -33.925621
                              ]
                            ]
                          ]
                        ]
                      }
                    },
                    "tables": [
                      {
                        "key": "sociodemo",
                        "title": "Population by band",
                        "columns": [
                          "Band",
                          "Pop (n)",
                          "Pop (%)",
                          "Pop cum. (n)",
                          "Pop cum. (%)",
                          "Males (n)",
                          "Females (n)",
                          "Families (n)",
                          "Families cum. (n)",
                          "Residents per family",
                          "Born overseas (n)",
                          "Dwellings (n)",
                          "Occupied dwellings (n)",
                          "Area (km\u00B2)"
                        ],
                        "rows": [
                          [
                            "0\u201310 min",
                            312637,
                            100,
                            312637,
                            100,
                            157673,
                            154964,
                            66876,
                            66876,
                            4.67,
                            124437,
                            144432,
                            123154,
                            48.85
                          ]
                        ],
                        "totals": [
                          "Catchment",
                          312637,
                          100,
                          312637,
                          100,
                          157673,
                          154964,
                          66876,
                          66876,
                          4.67,
                          124437,
                          144432,
                          123154,
                          48.85
                        ],
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2025 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2025",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "by_locality",
                        "title": "Population by LGA",
                        "columns": [
                          "Locality",
                          "Area code",
                          "Region (SA4)",
                          "0\u201310 min",
                          "Total (n)",
                          "Total (%)",
                          "Municipality pop",
                          "Share of municipality (%)",
                          "Avg distance (km)"
                        ],
                        "rows": [
                          [
                            "Sydney",
                            "17200",
                            "Sydney - City and Inner South",
                            120761,
                            120761,
                            38.6,
                            241797,
                            49.9,
                            4.9
                          ],
                          [
                            "Waverley",
                            "18050",
                            "Sydney - Eastern Suburbs",
                            72303,
                            72303,
                            23.1,
                            73345,
                            98.6,
                            2.3
                          ],
                          [
                            "Randwick",
                            "16550",
                            "Sydney - Eastern Suburbs",
                            69843,
                            69843,
                            22.3,
                            146484,
                            47.7,
                            3.7
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2025 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2025",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "foreigners_by_postcode",
                        "title": "Born overseas by postcode",
                        "columns": [
                          "Postcode",
                          "Born overseas (n)",
                          "Share of all born overseas (%)",
                          "Residents (n)",
                          "Born overseas (% of residents)"
                        ],
                        "rows": [
                          [
                            "2000",
                            15535,
                            12.5,
                            24252,
                            64.1
                          ],
                          [
                            "2026",
                            13936,
                            11.2,
                            35067,
                            39.7
                          ],
                          [
                            "2031",
                            12822,
                            10.3,
                            36604,
                            35.0
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: ABS \u2014 population, sex and age 2025 (annual estimates); the other figures Census 2021, shared out over the addresses so that each LGA keeps its official total \u00B7 K-Stra",
                        "sourceYears": "2025",
                        "sourceLabel": "ABS",
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.catchment",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/market.competition/quote": {
      "post": {
        "operationId": "market.competition.quote",
        "summary": "Quote market.competition",
        "description": "Quotes market.competition without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nRetail competition in an Australian catchment: the shops of one sector inside the catchment of the address or point, nearest first, with name, category, address, rating, phone, website, opening hours and estimated annual sales band with its confidence, plus the demand of the catchment and the supply index of the sector. One call; priced as a Markets \u0026 Brands sector analysis (40 credits). Sector codes from markets.sectors. Quote first, then execute with the quoted credits.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sector": {
                    "type": "string",
                    "description": "Sector code from markets.sectors, e.g. \u0027supermarkets\u0027"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point, WGS84. Give lat and lng, or address"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point, WGS84"
                  },
                  "address": {
                    "type": "string",
                    "description": "Australian street address, number first, e.g. \u0027151 George Street, Sydney NSW 2000\u0027. Alternative to lat/lng"
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Travel time of the catchment in minutes, 5 to 30. Default 10"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk"
                    ],
                    "description": "drive (default) or walk"
                  }
                },
                "required": [
                  "sector"
                ]
              },
              "example": {
                "lat": -33.89106,
                "lng": 151.24843,
                "sector": "supermarkets",
                "minutes": 10,
                "mode": "drive",
                "preview": true,
                "idempotencyKey": "example-0271010d08cf4974a154443161a3652c"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.competition"
      }
    },
    "/api/v1/actions/market.competition/execute": {
      "post": {
        "operationId": "market.competition",
        "summary": "Run market.competition (charged)",
        "description": "Retail competition in an Australian catchment: the shops of one sector inside the catchment of the address or point, nearest first, with name, category, address, rating, phone, website, opening hours and estimated annual sales band with its confidence, plus the demand of the catchment and the supply index of the sector. One call; priced as a Markets \u0026 Brands sector analysis (40 credits). Sector codes from markets.sectors. Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "sector": {
                    "type": "string",
                    "description": "Sector code from markets.sectors, e.g. \u0027supermarkets\u0027"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point, WGS84. Give lat and lng, or address"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point, WGS84"
                  },
                  "address": {
                    "type": "string",
                    "description": "Australian street address, number first, e.g. \u0027151 George Street, Sydney NSW 2000\u0027. Alternative to lat/lng"
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Travel time of the catchment in minutes, 5 to 30. Default 10"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "drive",
                      "walk"
                    ],
                    "description": "drive (default) or walk"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "sector",
                  "quotedCredits"
                ]
              },
              "example": {
                "lat": -33.89106,
                "lng": 151.24843,
                "sector": "supermarkets",
                "minutes": 10,
                "mode": "drive",
                "preview": false,
                "idempotencyKey": "example-baf3b9f038b941b38d533afa3d4297d7"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "True when the run was carried out and charged"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits charged by this run"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run was blocked (e.g. organization_balance), or null"
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "lat": {
                              "type": "number",
                              "description": "Latitude, WGS84"
                            },
                            "lng": {
                              "type": "number",
                              "description": "Longitude, WGS84"
                            },
                            "address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address the input resolved to, in Australian order (number, street, suburb, state, postcode); null when coordinates were given"
                            }
                          },
                          "required": [
                            "lat",
                            "lng"
                          ],
                          "description": "The point the catchment starts from"
                        },
                        "catchment": {
                          "type": "object",
                          "properties": {
                            "mode": {
                              "type": "string",
                              "description": "How the catchment was drawn: drive or walk"
                            },
                            "minutes": {
                              "type": "integer",
                              "description": "Travel time of the catchment, minutes"
                            },
                            "areaKm2": {
                              "type": "number",
                              "description": "Surface of the catchment, square kilometres"
                            },
                            "population": {
                              "type": "integer",
                              "description": "Residents living inside the catchment (latest official population estimate)"
                            },
                            "geometry": {
                              "description": "GeoJSON MultiPolygon of the catchment"
                            }
                          },
                          "required": [
                            "mode",
                            "minutes",
                            "areaKm2",
                            "population"
                          ],
                          "description": "The catchment"
                        },
                        "sector": {
                          "type": "string",
                          "description": "The sector code analysed"
                        },
                        "competitors": {
                          "type": "integer",
                          "description": "Shops of the sector inside the catchment"
                        },
                        "shops": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Name of the shop"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude"
                              },
                              "id": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Point id in the places catalogue"
                              },
                              "category": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category of the place"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address"
                              },
                              "rating": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Rating in the places catalogue, 1-5"
                              },
                              "reviews": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Number of reviews"
                              },
                              "phone": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Phone"
                              },
                              "website": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Website"
                              },
                              "openingHours": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Opening hours as published"
                              },
                              "sectorCode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Category code the shop was selected with, e.g. SUPERMARKET"
                              },
                              "competitors": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Competing shops that reach this one within the sector\u0027s catchment, excluding itself"
                              },
                              "catchmentSeconds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Catchment of the sector in seconds"
                              },
                              "catchmentMode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Catchment mode of the sector: car or walk"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              },
                              "centre": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "sales": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Reported annual sales of the whole centre (moving annual turnover) in millions of the currency field, including GST, for the 12 months to periodEnd; null when only the size is published"
                                  },
                                  "periodEnd": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Date the figures refer to, ISO 8601: end of the 12 months of sales, or the date of the published size"
                                  },
                                  "gla": {
                                    "type": [
                                      "integer",
                                      "null"
                                    ],
                                    "description": "Gross lettable area of the centre in m\u00B2"
                                  },
                                  "visits": {
                                    "type": [
                                      "number",
                                      "null"
                                    ],
                                    "description": "Customer visits a year in millions, as counted by the owner"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of sales, ISO 4217"
                                  }
                                },
                                "required": [],
                                "description": "Published figures of a shopping centre (annual sales of the whole centre, gross lettable area, visits); present only with include [\u0027sales\u0027] and only for centres with published figures. Reported figures, not estimates"
                              },
                              "openingHoursByDay": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "additionalProperties": {
                                  "type": "string"
                                },
                                "description": "Opening hours by day, read from openingHours: an object such as {\u0022Monday\u0022: \u00228 am\u20136:30 pm\u0022, \u0022Sunday\u0022: \u0022Closed\u0022}, days in the order published; null when the hours are not published day by day"
                              }
                            },
                            "required": [
                              "name",
                              "lat",
                              "lng"
                            ]
                          },
                          "description": "The shops of the sector in the catchment, nearest first, at most 50, with their estimated annual sales band where there is one"
                        },
                        "shopsTruncated": {
                          "type": "boolean",
                          "description": "True when the catchment has more than 50 shops of the sector and the list stops at 50"
                        },
                        "tables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "key": {
                                "type": "string",
                                "description": "Stable identifier of the table, e.g. \u0027brand_coverage\u0027: the same table keeps the same key across runs"
                              },
                              "title": {
                                "type": "string",
                                "description": "Title shown above the table, in English"
                              },
                              "columns": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Column headers, in order; numeric columns say their unit in the header"
                              },
                              "rows": {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {}
                                },
                                "description": "One array per row, cells in the order of columns: numbers, strings or null"
                              },
                              "totals": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {},
                                "description": "Totals row in the order of columns, or null when a total would not mean anything"
                              },
                              "sourceNote": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Sources and reading notes to print under the table"
                              },
                              "sourceYears": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Year of the data in short form: \u00272024\u0027, or \u00272019\u20132024\u0027 for a series"
                              },
                              "sourceLabel": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Short name of the source: \u0027ABS\u0027"
                              },
                              "compareFrom": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Index of the first comparison column, or null when the table has none. From this column to the last, the same indicator for the catchment and for the areas it is compared with (see compareLevels), as shares or indices, never totals"
                              },
                              "compareLevels": {
                                "type": [
                                  "array",
                                  "null"
                                ],
                                "items": {
                                  "type": "string"
                                },
                                "description": "What each comparison column is, in order from compareFrom: \u0027catchment\u0027, then \u0027suburb\u0027, \u0027lga\u0027, \u0027state\u0027 and \u0027country\u0027 when present. With one origin the suburb, LGA and state are those of the location. Otherwise there is no location: the LGA is the one holding most of the residents and the state is its state; there is no suburb, except for areas smaller than a suburb (levels 8 and 9), where it is the suburb holding most of the residents. With administrative areas, levels not larger than the areas themselves are left out"
                              }
                            },
                            "required": [
                              "key",
                              "title",
                              "columns",
                              "rows"
                            ]
                          },
                          "description": "Demand (the spending of the catchment on the sector: a pool, not to be summed across catchments), supply index and opportunity, as tables"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "location",
                        "catchment",
                        "sector",
                        "competitors",
                        "shops",
                        "shopsTruncated",
                        "tables"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "market.competition",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.markets.sector",
                          "quantity": 1,
                          "unit": "sectors",
                          "credits": 40.00
                        },
                        {
                          "actionCode": "analysis.store_sales.sector",
                          "quantity": 1,
                          "unit": "sectors",
                          "credits": 0.00
                        }
                      ],
                      "totalCredits": 40
                    },
                    "charged": true,
                    "creditsCharged": 40,
                    "blockedBy": null,
                    "location": {
                      "lat": -33.89106,
                      "lng": 151.24843,
                      "address": null
                    },
                    "catchment": {
                      "mode": "drive",
                      "minutes": 10,
                      "areaKm2": 50.44,
                      "population": 333338,
                      "geometry": {
                        "type": "MultiPolygon",
                        "coordinates": [
                          [
                            [
                              [
                                151.30451,
                                -33.814498
                              ],
                              [
                                151.305167,
                                -33.811607
                              ],
                              [
                                151.305373,
                                -33.810555
                              ]
                            ]
                          ],
                          [
                            [
                              [
                                151.187655,
                                -33.870951
                              ],
                              [
                                151.188967,
                                -33.870081
                              ],
                              [
                                151.189512,
                                -33.869801
                              ]
                            ],
                            [
                              [
                                151.266422,
                                -33.875559
                              ],
                              [
                                151.26665,
                                -33.875903
                              ],
                              [
                                151.267088,
                                -33.876085
                              ]
                            ],
                            [
                              [
                                151.211568,
                                -33.860259
                              ],
                              [
                                151.211509,
                                -33.86054
                              ],
                              [
                                151.211542,
                                -33.860713
                              ]
                            ]
                          ],
                          [
                            [
                              [
                                151.263579,
                                -33.926491
                              ],
                              [
                                151.263492,
                                -33.925971
                              ],
                              [
                                151.263515,
                                -33.925621
                              ]
                            ]
                          ]
                        ]
                      }
                    },
                    "sector": "supermarkets",
                    "competitors": 108,
                    "shops": [
                      {
                        "name": "Deli Fresco",
                        "lat": -33.8927778,
                        "lng": 151.2480556,
                        "id": 13181601,
                        "category": "Supermarket",
                        "address": "55-91 Spring St, Bondi Junction NSW 2022",
                        "rating": 3.4,
                        "reviews": 55,
                        "phone": "(02) 9387 3067",
                        "website": "https://www.delifresco.com.au/",
                        "openingHours": "{\u0022Monday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022, \u0022Tuesday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022, \u0022Wednesday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022, \u0022Thursday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022, \u0022Friday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022, \u0022Saturday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022, \u0022Sunday\u0022: \u00228\u202Fam\u20136:30\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Monday": "8 am\u20136:30 pm",
                          "Tuesday": "8 am\u20136:30 pm",
                          "Wednesday": "8 am\u20136:30 pm",
                          "Thursday": "8 am\u20136:30 pm",
                          "Friday": "8 am\u20136:30 pm",
                          "Saturday": "8 am\u20136:30 pm",
                          "Sunday": "8 am\u20136:30 pm"
                        },
                        "sectorCode": "SUPERMARKET",
                        "competitors": 103,
                        "catchmentSeconds": 600,
                        "catchmentMode": "drive",
                        "sales": {
                          "band": "2-5",
                          "confidence": "low",
                          "source": "store_size",
                          "version": 4,
                          "currency": "AUD"
                        }
                      },
                      {
                        "name": "ALDI",
                        "lat": -33.89282,
                        "lng": 151.24874,
                        "id": 13179904,
                        "category": "Supermarket",
                        "address": "Shop 26/91 Spring St, Bondi Junction NSW 2022",
                        "rating": 4.2,
                        "reviews": 656,
                        "phone": "13 25 34",
                        "website": "https://www.aldi.com.au/storelocator/l/bondi-junction/71-91-spring-street/g512",
                        "openingHours": "{\u0022Tuesday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Wednesday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Thursday\u0022: \u00228:30\u202Fam\u20139\u202Fpm\u0022, \u0022Friday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Saturday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Sunday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022, \u0022Monday\u0022: \u00228:30\u202Fam\u20138\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Tuesday": "8:30 am\u20138 pm",
                          "Wednesday": "8:30 am\u20138 pm",
                          "Thursday": "8:30 am\u20139 pm",
                          "Friday": "8:30 am\u20138 pm",
                          "Saturday": "8:30 am\u20138 pm",
                          "Sunday": "8:30 am\u20138 pm",
                          "Monday": "8:30 am\u20138 pm"
                        },
                        "sectorCode": "SUPERMARKET",
                        "competitors": 99,
                        "catchmentSeconds": 600,
                        "catchmentMode": "drive",
                        "sales": {
                          "band": "10-20",
                          "confidence": "medium",
                          "source": "chain_accounts",
                          "version": 4,
                          "currency": "AUD"
                        }
                      },
                      {
                        "name": "Woolworths Bondi Junction",
                        "lat": -33.891569499999996,
                        "lng": 151.2505012,
                        "id": 13181590,
                        "category": "Supermarket",
                        "address": "500 Oxford St, Bondi Junction NSW 2022",
                        "rating": 4.2,
                        "reviews": null,
                        "phone": "(02) 8565 9239",
                        "website": "https://www.woolworths.com.au/shop/storelocator/nsw-bondi-junction-1557",
                        "openingHours": "{\u0022Friday\u0022: \u00226\u202Fam\u201310\u202Fpm\u0022, \u0022Saturday\u0022: \u00227\u202Fam\u201310\u202Fpm\u0022}",
                        "openingHoursByDay": {
                          "Friday": "6 am\u201310 pm",
                          "Saturday": "7 am\u201310 pm"
                        },
                        "sectorCode": "SUPERMARKET",
                        "competitors": 107,
                        "catchmentSeconds": 600,
                        "catchmentMode": "drive",
                        "sales": {
                          "band": "\u003E50",
                          "confidence": "high",
                          "source": "chain_accounts",
                          "version": 4,
                          "currency": "AUD"
                        }
                      }
                    ],
                    "shopsTruncated": true,
                    "tables": [
                      {
                        "key": "sector_summary_supermarkets",
                        "title": "Supermarkets \u2014 market summary",
                        "columns": [
                          "Measure",
                          "Value (AUD m)"
                        ],
                        "rows": [
                          [
                            "Opportunity",
                            50.95
                          ],
                          [
                            "Demand",
                            758.69
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2025 \u00B7 third-party places data 2026",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "sector_players_supermarkets",
                        "title": "Supermarkets \u2014 108 in this area",
                        "columns": [
                          "Store",
                          "Category",
                          "Address",
                          "Time (min)",
                          "Rating",
                          "Reviews",
                          "Est. sales (AUD m/yr)",
                          "Id"
                        ],
                        "rows": [
                          [
                            "Woolworths Town Hall",
                            "Supermarket",
                            "540 George St, Sydney NSW 2000",
                            7.7,
                            4.1,
                            9820,
                            "20\u201350",
                            13930
                          ],
                          [
                            "Coles World Square",
                            "Supermarket",
                            "World Square Shopping Centre, 650 George St, Sydney NSW 2000",
                            8.7,
                            4.2,
                            3307,
                            "20\u201350",
                            6682070
                          ],
                          [
                            "Coles Pyrmont",
                            "Supermarket",
                            "Union St \u0026, Edward St, Pyrmont NSW 2009",
                            9.9,
                            4.2,
                            1712,
                            "20\u201350",
                            6777668
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2025 \u00B7 third-party places data 2026 \u2014 ordered by the weight the model gives each store, then by reviews. Time: minutes from the starting point along the road network. Est. sales: estimates, not reported figures, as bands of annual sales\u2026",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      },
                      {
                        "key": "sector_density_supermarkets",
                        "title": "Supermarkets \u2014 how many for every 10,000 residents",
                        "columns": [
                          "Area",
                          "Stores",
                          "Residents",
                          "Per 10,000 residents"
                        ],
                        "rows": [
                          [
                            "Catchment",
                            108,
                            333338,
                            3.24
                          ],
                          [
                            "Sydney LGA",
                            95,
                            241797,
                            3.93
                          ],
                          [
                            "New South Wales",
                            2513,
                            8592524,
                            2.92
                          ]
                        ],
                        "totals": null,
                        "sourceNote": "Source: K-Stra gravity model \u00B7 ABS spending 2025 and population 2025 \u00B7 third-party places data 2026 \u2014 stores counted where they stand; the local government area and the state are those where most of the residents live",
                        "sourceYears": null,
                        "sourceLabel": null,
                        "compareFrom": null,
                        "compareLevels": null
                      }
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.competition",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/market.property/quote": {
      "post": {
        "operationId": "market.property.quote",
        "summary": "Quote market.property",
        "description": "Quotes market.property without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nAustralian residential property market of a postcode or a suburb: asking prices and weekly rents, price per square metre, gross rental yield, quarterly trend and how fast the market moves, with the number of listings each figure rests on. One call; priced as a Real Estate analysis (20 credits). Quote first, then execute with the quoted credits.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "postcode": {
                    "type": "string",
                    "description": "Australian postcode, four digits, e.g. \u00272000\u0027. Give postcode, or suburb with state"
                  },
                  "suburb": {
                    "type": "string",
                    "description": "Suburb name as written in an address, e.g. \u0027Bondi Junction\u0027. Needs state"
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "NSW",
                      "VIC",
                      "QLD",
                      "WA",
                      "SA",
                      "TAS",
                      "ACT",
                      "NT"
                    ],
                    "description": "State code of the suburb"
                  }
                },
                "required": []
              },
              "example": {
                "postcode": "2022",
                "preview": true,
                "idempotencyKey": "example-5ca4b9504b7a428cad2a937758739191"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.property"
      }
    },
    "/api/v1/actions/market.property/execute": {
      "post": {
        "operationId": "market.property",
        "summary": "Run market.property (charged)",
        "description": "Australian residential property market of a postcode or a suburb: asking prices and weekly rents, price per square metre, gross rental yield, quarterly trend and how fast the market moves, with the number of listings each figure rests on. One call; priced as a Real Estate analysis (20 credits). Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "postcode": {
                    "type": "string",
                    "description": "Australian postcode, four digits, e.g. \u00272000\u0027. Give postcode, or suburb with state"
                  },
                  "suburb": {
                    "type": "string",
                    "description": "Suburb name as written in an address, e.g. \u0027Bondi Junction\u0027. Needs state"
                  },
                  "state": {
                    "type": "string",
                    "enum": [
                      "NSW",
                      "VIC",
                      "QLD",
                      "WA",
                      "SA",
                      "TAS",
                      "ACT",
                      "NT"
                    ],
                    "description": "State code of the suburb"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "quotedCredits"
                ]
              },
              "example": {
                "postcode": "2022",
                "preview": false,
                "idempotencyKey": "example-d0aa2b0e13874b97a29f8b86bfd268da"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "True when the run was carried out and charged"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits charged by this run"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run was blocked (e.g. organization_balance), or null"
                        },
                        "area": {
                          "type": "object",
                          "properties": {
                            "kind": {
                              "type": "string",
                              "description": "postcode or suburb"
                            },
                            "name": {
                              "type": "string",
                              "description": "The postcode, or the suburb as named in the official statistics"
                            },
                            "state": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "State code, e.g. NSW; null for a postcode"
                            },
                            "population": {
                              "type": "integer",
                              "description": "Residents of the area (latest official population estimate)"
                            }
                          },
                          "required": [
                            "kind",
                            "name",
                            "population"
                          ],
                          "description": "The area analysed: postcode or suburb"
                        },
                        "kpi": {
                          "type": "object",
                          "properties": {
                            "medianPrice": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median asking price of the listings (currency units)"
                            },
                            "nPrice": {
                              "type": "integer",
                              "description": "Listings behind the median price"
                            },
                            "medianPerSqm": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median asking price per square metre"
                            },
                            "nPerSqm": {
                              "type": "integer",
                              "description": "Listings behind the price per sqm"
                            },
                            "medianRentWeekly": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median weekly rent"
                            },
                            "nRent": {
                              "type": "integer",
                              "description": "Listings behind the weekly rent"
                            },
                            "medianRentPerSqm": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median weekly rent per square metre"
                            },
                            "nRentPerSqm": {
                              "type": "integer",
                              "description": "Listings behind the rent per sqm"
                            },
                            "grossYieldPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Gross yield of the territory, percent: median weekly rent \u00D7 52 / median asking price, the two figures above"
                            },
                            "nYield": {
                              "type": "integer",
                              "description": "Listings behind the yield: the smaller of NPrice and NRent"
                            }
                          },
                          "required": [
                            "nPrice",
                            "nPerSqm",
                            "nRent",
                            "nRentPerSqm",
                            "nYield"
                          ],
                          "description": "Median asking price, price per square metre, weekly rent and gross yield, each with the number of listings it rests on"
                        },
                        "market": {
                          "type": "object",
                          "properties": {
                            "medianDaysOnMarket": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "No longer computed, always null: the portal data has no publication date, and the gap between first and last sighting measured the download interval, not the market (deprecated, 30/10/2026)"
                            },
                            "nClosed": {
                              "type": "integer",
                              "description": "Listings for sale that left the portal in the period"
                            },
                            "sold": {
                              "type": "integer",
                              "description": "Listings for sale that left with a sale event"
                            },
                            "withdrawn": {
                              "type": "integer",
                              "description": "Listings for sale that left without a sale event"
                            },
                            "cuts": {
                              "type": "integer",
                              "description": "Listings for sale whose last asking price is lower than the first"
                            },
                            "tracked": {
                              "type": "integer",
                              "description": "Listings for sale with a known price history"
                            },
                            "medianCutPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median price cut of the listings for sale, percent of the first asking price"
                            },
                            "rentLeft": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Rental listings that left the portal in the period: leased or withdrawn, the portal does not say which"
                            }
                          },
                          "required": [
                            "nClosed",
                            "sold",
                            "withdrawn",
                            "cuts",
                            "tracked"
                          ],
                          "description": "How the market moved in the period: listings for sale sold, withdrawn and cut"
                        },
                        "trend": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "quarter": {
                                "type": "string",
                                "description": "Quarter, e.g. 2025Q3"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median price per square metre in the quarter"
                              },
                              "medianPrice": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median asking price in the quarter"
                              },
                              "medianRentWeekly": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median weekly rent in the quarter"
                              },
                              "listingCount": {
                                "type": "integer",
                                "description": "Listings of the quarter"
                              },
                              "excluded": {
                                "type": "boolean",
                                "description": "true when the quarter has fewer listings than the minimum and is left out of the series"
                              }
                            },
                            "required": [
                              "quarter",
                              "listingCount",
                              "excluded"
                            ]
                          },
                          "description": "Quarterly series of price per square metre, median price and weekly rent"
                        },
                        "byType": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "type": {
                                "type": "string",
                                "description": "Property type: house, unit, townhouse, land, rural, other"
                              },
                              "count": {
                                "type": "integer",
                                "description": "Listings of the type"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median price per square metre of the type"
                              }
                            },
                            "required": [
                              "type",
                              "count"
                            ]
                          },
                          "description": "Listings by property type, with the price per square metre of each"
                        },
                        "listingsUsed": {
                          "type": "integer",
                          "description": "Listings the figures rest on"
                        },
                        "fromQuarter": {
                          "type": "string",
                          "description": "First quarter of the period analysed, e.g. 2025Q3"
                        },
                        "toQuarter": {
                          "type": "string",
                          "description": "Last quarter of the period analysed"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "area",
                        "kpi",
                        "market",
                        "trend",
                        "byType",
                        "listingsUsed",
                        "fromQuarter",
                        "toQuarter"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "market.property",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.realestate",
                          "quantity": 1,
                          "unit": "analyses",
                          "credits": 20.00
                        }
                      ],
                      "totalCredits": 20
                    },
                    "charged": true,
                    "creditsCharged": 20,
                    "blockedBy": null,
                    "area": {
                      "kind": "postcode",
                      "name": "2022",
                      "state": null,
                      "population": 14421
                    },
                    "kpi": {
                      "medianPrice": 1299500.00,
                      "nPrice": 48,
                      "medianPerSqm": 12944.16,
                      "nPerSqm": 22,
                      "medianRentWeekly": 1100.00,
                      "nRent": 159,
                      "medianRentPerSqm": 17.39,
                      "nRentPerSqm": 4,
                      "grossYieldPct": 4.40,
                      "nYield": 48
                    },
                    "market": {
                      "medianDaysOnMarket": null,
                      "nClosed": 58,
                      "sold": 17,
                      "withdrawn": 41,
                      "cuts": 4,
                      "tracked": 64,
                      "medianCutPct": 4.4,
                      "rentLeft": 122
                    },
                    "trend": [
                      {
                        "quarter": "2026-Q3",
                        "perSqm": 12719.30,
                        "medianPrice": 1102500.00,
                        "medianRentWeekly": 1080.00,
                        "listingCount": 250,
                        "excluded": false
                      },
                      {
                        "quarter": "2026-Q4",
                        "perSqm": 13681.28,
                        "medianPrice": 1405000.00,
                        "medianRentWeekly": 1300.00,
                        "listingCount": 179,
                        "excluded": false
                      }
                    ],
                    "byType": [
                      {
                        "type": "apartment",
                        "count": 188,
                        "perSqm": 12944.16
                      },
                      {
                        "type": "house",
                        "count": 61,
                        "perSqm": 30000.00
                      },
                      {
                        "type": "commercial",
                        "count": 24,
                        "perSqm": 8291.67
                      }
                    ],
                    "listingsUsed": 302,
                    "fromQuarter": "2026-Q3",
                    "toQuarter": "2026-Q4"
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.property",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/market.traffic/quote": {
      "post": {
        "operationId": "market.traffic.quote",
        "summary": "Quote market.traffic",
        "description": "Quotes market.traffic without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nRoad and foot traffic around an Australian address or point: the busiest roads within a radius with their band of vehicles a day, measured where an official count exists and estimated elsewhere, road length by band, and the pedestrian grade (1 very low to 5 very high) of the streets. Always bands, never a single figure for a road. One call; priced as a Traffic \u0026 Footfall analysis (30 credits). Quote first, then execute with the quoted credits.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point, WGS84. Give lat and lng, or address"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point, WGS84"
                  },
                  "address": {
                    "type": "string",
                    "description": "Australian street address, number first, e.g. \u0027151 George Street, Sydney NSW 2000\u0027. Alternative to lat/lng"
                  },
                  "radius": {
                    "type": "integer",
                    "description": "Radius around the point in metres, 200 to 3,000. Default 1,000"
                  }
                },
                "required": []
              },
              "example": {
                "address": "500 Oxford Street, Bondi Junction NSW 2022",
                "radius": 1000,
                "preview": true,
                "idempotencyKey": "example-2ddcad4e114d4fc9a88ae019c7d44586"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.traffic"
      }
    },
    "/api/v1/actions/market.traffic/execute": {
      "post": {
        "operationId": "market.traffic",
        "summary": "Run market.traffic (charged)",
        "description": "Road and foot traffic around an Australian address or point: the busiest roads within a radius with their band of vehicles a day, measured where an official count exists and estimated elsewhere, road length by band, and the pedestrian grade (1 very low to 5 very high) of the streets. Always bands, never a single figure for a road. One call; priced as a Traffic \u0026 Footfall analysis (30 credits). Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "lat": {
                    "type": "number",
                    "description": "Latitude of the point, WGS84. Give lat and lng, or address"
                  },
                  "lng": {
                    "type": "number",
                    "description": "Longitude of the point, WGS84"
                  },
                  "address": {
                    "type": "string",
                    "description": "Australian street address, number first, e.g. \u0027151 George Street, Sydney NSW 2000\u0027. Alternative to lat/lng"
                  },
                  "radius": {
                    "type": "integer",
                    "description": "Radius around the point in metres, 200 to 3,000. Default 1,000"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "quotedCredits"
                ]
              },
              "example": {
                "address": "500 Oxford Street, Bondi Junction NSW 2022",
                "radius": 1000,
                "preview": false,
                "idempotencyKey": "example-49b7b1ce8a21464ca94eae3983473cb4"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "What the run costs, or cost: quoted before running, charged after"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "True when the run was carried out and charged"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits charged by this run"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run was blocked (e.g. organization_balance), or null"
                        },
                        "location": {
                          "type": "object",
                          "properties": {
                            "lat": {
                              "type": "number",
                              "description": "Latitude, WGS84"
                            },
                            "lng": {
                              "type": "number",
                              "description": "Longitude, WGS84"
                            },
                            "address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The address the input resolved to, in Australian order (number, street, suburb, state, postcode); null when coordinates were given"
                            }
                          },
                          "required": [
                            "lat",
                            "lng"
                          ],
                          "description": "The centre of the radius"
                        },
                        "radius": {
                          "type": "integer",
                          "description": "Radius around the point, metres"
                        },
                        "period": {
                          "type": "object",
                          "properties": {
                            "unit": {
                              "type": "string",
                              "enum": [
                                "day",
                                "hour"
                              ],
                              "description": "Unit of the bands: vehicles a day or vehicles in the hour"
                            },
                            "month": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Month, 1-12, or null for the whole year"
                            },
                            "dayType": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "enum": [
                                "weekday",
                                "saturday",
                                "sunday",
                                null
                              ],
                              "description": "Type of day, or null for any day"
                            },
                            "hour": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Hour, 0-23, or null for the whole day"
                            },
                            "date": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "The date asked for, if any"
                            },
                            "factors": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              },
                              "description": "For vehicles, the factor of each road class from 1 (motorway) to 7 (residential) that turns the average day into this period; for pedestrians one factor for every street. The map multiplies the average day of each road by it"
                            },
                            "bandLimits": {
                              "type": "array",
                              "items": {
                                "type": "integer"
                              },
                              "description": "The band limits of this unit: six for vehicles (seven bands), four for pedestrians (five grades)"
                            },
                            "dateTo": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Last date of the range asked for, if any"
                            },
                            "hourTo": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Last hour of the range of hours asked for, if any: the bands are then the average hour from hour to hourTo"
                            },
                            "days": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Number of days of the date range, if any"
                            }
                          },
                          "required": [
                            "unit",
                            "factors",
                            "bandLimits"
                          ],
                          "description": "The period and unit of the vehicle bands: the average day of the year, vehicles a day"
                        },
                        "calibrated": {
                          "type": "boolean",
                          "description": "False when part of the radius lies in a state without official counts: the bands there are less certain"
                        },
                        "bands": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "band": {
                                "type": "integer",
                                "description": "Traffic band, 1 to 7, in the unit of period"
                              },
                              "km": {
                                "type": "number",
                                "description": "Length of the roads of the territory in this band, km"
                              }
                            },
                            "required": [
                              "band",
                              "km"
                            ]
                          },
                          "description": "Road length by vehicle band"
                        },
                        "streets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Street name; empty for unnamed roads"
                              },
                              "roadClass": {
                                "type": "string",
                                "enum": [
                                  "motorway",
                                  "trunk",
                                  "primary",
                                  "secondary",
                                  "tertiary",
                                  "unclassified",
                                  "residential",
                                  "living_street",
                                  "service",
                                  "pedestrian",
                                  "footway",
                                  "path",
                                  "cycleway",
                                  "steps",
                                  "track"
                                ],
                                "description": "Road class; with who=pedestrians also the streets and paths for people on foot (living_street to track)"
                              },
                              "band": {
                                "type": "integer",
                                "description": "Traffic band of the busiest stretch of the street inside the territory, 1-7"
                              },
                              "km": {
                                "type": "number",
                                "description": "Length of the street inside the territory, km"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude of a point on the busiest stretch"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude of a point on the busiest stretch"
                              },
                              "measured": {
                                "type": "boolean",
                                "description": "True when an official count was taken on this street inside the territory"
                              }
                            },
                            "required": [
                              "name",
                              "roadClass",
                              "band",
                              "km",
                              "lng",
                              "lat",
                              "measured"
                            ]
                          },
                          "description": "The busiest named roads in the radius with their vehicle band, busiest first"
                        },
                        "measured": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "road": {
                                "type": "string",
                                "description": "Road where the count was taken, as the source names it"
                              },
                              "source": {
                                "type": "string",
                                "description": "Count source, e.g. \u0027Transport for NSW\u0027"
                              },
                              "year": {
                                "type": "integer",
                                "description": "Year of the count"
                              },
                              "band": {
                                "type": "integer",
                                "description": "Traffic band of the measured value, 1-7"
                              },
                              "attribution": {
                                "type": "string",
                                "description": "Attribution the source licence requires"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude of the counting point"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude of the counting point"
                              }
                            },
                            "required": [
                              "road",
                              "source",
                              "year",
                              "band",
                              "attribution",
                              "lng",
                              "lat"
                            ]
                          },
                          "description": "Official counts taken inside the radius, shown as Measured with source and year"
                        },
                        "pedestrianStreets": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "name": {
                                "type": "string",
                                "description": "Street name; empty for unnamed roads"
                              },
                              "roadClass": {
                                "type": "string",
                                "enum": [
                                  "motorway",
                                  "trunk",
                                  "primary",
                                  "secondary",
                                  "tertiary",
                                  "unclassified",
                                  "residential",
                                  "living_street",
                                  "service",
                                  "pedestrian",
                                  "footway",
                                  "path",
                                  "cycleway",
                                  "steps",
                                  "track"
                                ],
                                "description": "Road class; with who=pedestrians also the streets and paths for people on foot (living_street to track)"
                              },
                              "band": {
                                "type": "integer",
                                "description": "Traffic band of the busiest stretch of the street inside the territory, 1-7"
                              },
                              "km": {
                                "type": "number",
                                "description": "Length of the street inside the territory, km"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude of a point on the busiest stretch"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude of a point on the busiest stretch"
                              },
                              "measured": {
                                "type": "boolean",
                                "description": "True when an official count was taken on this street inside the territory"
                              }
                            },
                            "required": [
                              "name",
                              "roadClass",
                              "band",
                              "km",
                              "lng",
                              "lat",
                              "measured"
                            ]
                          },
                          "description": "Pedestrian grade by street, 1 very low to 5 very high: the busiest streets for people on foot"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "location",
                        "radius",
                        "period",
                        "calibrated",
                        "bands",
                        "streets",
                        "measured",
                        "pedestrianStreets"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "market.traffic",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.traffic",
                          "quantity": 1,
                          "unit": "territories",
                          "credits": 30.00
                        }
                      ],
                      "totalCredits": 30
                    },
                    "charged": true,
                    "creditsCharged": 30,
                    "blockedBy": null,
                    "location": {
                      "lat": -33.89114359999999,
                      "lng": 151.2507464,
                      "address": "500 Oxford Street, Bondi Junction NSW 2022"
                    },
                    "radius": 1000,
                    "period": {
                      "unit": "day",
                      "month": null,
                      "dayType": null,
                      "hour": null,
                      "date": null,
                      "factors": [
                        1,
                        1,
                        1,
                        1,
                        1,
                        1,
                        1
                      ],
                      "bandLimits": [
                        1000,
                        3000,
                        8000,
                        15000,
                        30000,
                        60000
                      ],
                      "dateTo": null,
                      "hourTo": null,
                      "days": null
                    },
                    "calibrated": true,
                    "bands": [
                      {
                        "band": 1,
                        "km": 17.96
                      },
                      {
                        "band": 2,
                        "km": 11.14
                      },
                      {
                        "band": 3,
                        "km": 7.88
                      }
                    ],
                    "streets": [
                      {
                        "name": "Oxford Street",
                        "roadClass": "primary",
                        "band": 7,
                        "km": 1.69,
                        "lng": 151.240153,
                        "lat": -33.890143,
                        "measured": true
                      },
                      {
                        "name": "Syd Einfeld Drive",
                        "roadClass": "primary",
                        "band": 6,
                        "km": 2.23,
                        "lng": 151.250001,
                        "lat": -33.890678,
                        "measured": true
                      },
                      {
                        "name": "Bondi Road",
                        "roadClass": "primary",
                        "band": 6,
                        "km": 0.98,
                        "lng": 151.253325,
                        "lat": -33.89109,
                        "measured": false
                      }
                    ],
                    "measured": [
                      {
                        "road": "Oxford Street, North of Syd Einfeld Drive",
                        "source": "Transport for NSW",
                        "year": 2018,
                        "band": 7,
                        "attribution": "\u00A9 Transport for NSW, CC BY",
                        "lng": 151.239777,
                        "lat": -33.890221
                      },
                      {
                        "road": "Syd Einfeld Drive, East of Grosvenor Street",
                        "source": "Transport for NSW",
                        "year": 2022,
                        "band": 6,
                        "attribution": "\u00A9 Transport for NSW, CC BY",
                        "lng": 151.250137,
                        "lat": -33.89072
                      }
                    ],
                    "pedestrianStreets": [
                      {
                        "name": "Bronte Road",
                        "roadClass": "secondary",
                        "band": 4,
                        "km": 1.07,
                        "lng": 151.249685,
                        "lat": -33.892737,
                        "measured": false
                      },
                      {
                        "name": "Oxford Street",
                        "roadClass": "primary",
                        "band": 4,
                        "km": 1.69,
                        "lng": 151.250096,
                        "lat": -33.892043,
                        "measured": false
                      },
                      {
                        "name": "Oxford Street Mall",
                        "roadClass": "pedestrian",
                        "band": 4,
                        "km": 0.22,
                        "lng": 151.247873,
                        "lat": -33.891903,
                        "measured": false
                      }
                    ]
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "market.traffic",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/markets.sectors/execute": {
      "post": {
        "operationId": "markets.sectors",
        "summary": "Run markets.sectors",
        "description": "List of the Markets \u0026 Brands sectors: a tree of groups \u2192 sectors, with the availability of precomputed data (available=true) and the number of players. Free.\n\nFree action.",
        "tags": [
          "markets"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "continent": {
                    "type": "string",
                    "enum": [
                      "oceania",
                      "europa"
                    ]
                  }
                },
                "required": [
                  "continent"
                ]
              },
              "example": {
                "continent": "oceania"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "code": {
                            "type": "string"
                          },
                          "name": {
                            "type": "string"
                          },
                          "groupCode": {
                            "type": "string"
                          },
                          "groupName": {
                            "type": "string"
                          },
                          "available": {
                            "type": "boolean"
                          },
                          "players": {
                            "type": [
                              "integer",
                              "null"
                            ]
                          },
                          "spendingModel": {
                            "type": [
                              "boolean",
                              "null"
                            ],
                            "description": "False for sectors that contain other businesses (shopping centres, outlet villages, food halls): they have no spending model, so analysis.markets_sector gives their supply, competition and stores, and leaves demand and opportunity null"
                          }
                        },
                        "required": [
                          "code",
                          "name",
                          "groupCode",
                          "groupName",
                          "available"
                        ]
                      }
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "markets.sectors",
                  "result": [
                    {
                      "code": "supermarkets",
                      "name": "Supermarkets",
                      "groupCode": "gdo",
                      "groupName": "Grocery \u0026 Food retail",
                      "available": true,
                      "players": 8189,
                      "spendingModel": true
                    },
                    {
                      "code": "hypermarkets",
                      "name": "Hypermarkets",
                      "groupCode": "gdo",
                      "groupName": "Grocery \u0026 Food retail",
                      "available": true,
                      "players": 27,
                      "spendingModel": true
                    },
                    {
                      "code": "discount",
                      "name": "Discount stores",
                      "groupCode": "gdo",
                      "groupName": "Grocery \u0026 Food retail",
                      "available": true,
                      "players": 959,
                      "spendingModel": true
                    }
                  ],
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/network.coverage/quote": {
      "post": {
        "operationId": "network.coverage.quote",
        "summary": "Quote network.coverage",
        "description": "Quotes network.coverage without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nCoverage of a store network: draws a catchment from every store (2 to 500) and counts the residents once: covered by one store, by two or more (cannibalization, with the pairs that overlap most), and not covered in the administrative areas the network touches (white spots, ranked by uncovered residents). Per store: residents reached, the exclusive part, the shared part and the stores it overlaps with. Optional plans: closeCount gives the order in which stores can close losing the fewest people (each step re-measured on the network that is left), candidates with openCount the order in which candidate sites add the most people not yet covered; measure counts residents, families, under-5s or people aged 65\u002B/70\u002B. 5 credits per store and per candidate. Quote first, then execute with the quoted credits.",
        "tags": [
          "network"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "stores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the store, returned with its row; max 80 characters"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the id, or \u0027Store 1\u0027, \u0027Store 2\u0027... without one"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The stores of the network, 2 to 500"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Catchment of every store in minutes of travel, 1-60. Default 10"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk"
                    ],
                    "description": "How customers travel. Default car"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic assumption for driving times. Default normal"
                  },
                  "whiteSpotLevel": {
                    "type": "integer",
                    "description": "Administrative level of the white spots, 4 (local government area) to 9; 5 = postcode. Default 5"
                  },
                  "whiteSpots": {
                    "type": "integer",
                    "description": "How many white spots to return, ranked by uncovered residents, 1-100. Default 20"
                  },
                  "closeCount": {
                    "type": "integer",
                    "description": "Closure plan: how many stores to close, 1-50, chosen one at a time as the one whose closure leaves the fewest people uncovered. Omitted: no plan"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the store, returned with its row; max 80 characters"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the id, or \u0027Store 1\u0027, \u0027Store 2\u0027... without one"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Candidate sites for new stores, up to 100: they do not change the network figures, they feed the opening plan"
                  },
                  "openCount": {
                    "type": "integer",
                    "description": "Opening plan: how many candidates to choose, 1-20, one at a time as the one that adds the most people not covered yet. Default: all the candidates, ranked"
                  },
                  "measure": {
                    "type": "string",
                    "enum": [
                      "population",
                      "families",
                      "households",
                      "under_5",
                      "aged_65_plus",
                      "aged_70_plus"
                    ],
                    "description": "What the plans count: residents (default), families (families as the national statistics office counts them; in Australia (ABS) these are census families: couples with or without children and one-parent families, without people living alone and group households. \u0027households\u0027 is the former name of the same measure, still accepted), children under 5, people aged 65 and over or 70 and over"
                  }
                },
                "required": [
                  "stores"
                ]
              },
              "example": {
                "stores": [
                  {
                    "id": "s1",
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Bondi Junction"
                  },
                  {
                    "id": "s2",
                    "lat": -33.882,
                    "lng": 151.207,
                    "name": "Surry Hills"
                  },
                  {
                    "id": "s3",
                    "lat": -33.8915,
                    "lng": 151.2767,
                    "name": "Bondi Beach"
                  }
                ],
                "minutes": 10,
                "mode": "car",
                "traffic": "normal",
                "whiteSpotLevel": 5,
                "whiteSpots": 10,
                "preview": true,
                "idempotencyKey": "example-15de9c05c0c24283a40518d869f62605"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "network.coverage"
      }
    },
    "/api/v1/actions/network.coverage/execute": {
      "post": {
        "operationId": "network.coverage",
        "summary": "Run network.coverage (charged)",
        "description": "Coverage of a store network: draws a catchment from every store (2 to 500) and counts the residents once: covered by one store, by two or more (cannibalization, with the pairs that overlap most), and not covered in the administrative areas the network touches (white spots, ranked by uncovered residents). Per store: residents reached, the exclusive part, the shared part and the stores it overlaps with. Optional plans: closeCount gives the order in which stores can close losing the fewest people (each step re-measured on the network that is left), candidates with openCount the order in which candidate sites add the most people not yet covered; measure counts residents, families, under-5s or people aged 65\u002B/70\u002B. 5 credits per store and per candidate. Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "network"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "stores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the store, returned with its row; max 80 characters"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the id, or \u0027Store 1\u0027, \u0027Store 2\u0027... without one"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The stores of the network, 2 to 500"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Catchment of every store in minutes of travel, 1-60. Default 10"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk"
                    ],
                    "description": "How customers travel. Default car"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ],
                    "description": "Traffic assumption for driving times. Default normal"
                  },
                  "whiteSpotLevel": {
                    "type": "integer",
                    "description": "Administrative level of the white spots, 4 (local government area) to 9; 5 = postcode. Default 5"
                  },
                  "whiteSpots": {
                    "type": "integer",
                    "description": "How many white spots to return, ranked by uncovered residents, 1-100. Default 20"
                  },
                  "closeCount": {
                    "type": "integer",
                    "description": "Closure plan: how many stores to close, 1-50, chosen one at a time as the one whose closure leaves the fewest people uncovered. Omitted: no plan"
                  },
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the store, returned with its row; max 80 characters"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the id, or \u0027Store 1\u0027, \u0027Store 2\u0027... without one"
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "Candidate sites for new stores, up to 100: they do not change the network figures, they feed the opening plan"
                  },
                  "openCount": {
                    "type": "integer",
                    "description": "Opening plan: how many candidates to choose, 1-20, one at a time as the one that adds the most people not covered yet. Default: all the candidates, ranked"
                  },
                  "measure": {
                    "type": "string",
                    "enum": [
                      "population",
                      "families",
                      "households",
                      "under_5",
                      "aged_65_plus",
                      "aged_70_plus"
                    ],
                    "description": "What the plans count: residents (default), families (families as the national statistics office counts them; in Australia (ABS) these are census families: couples with or without children and one-parent families, without people living alone and group households. \u0027households\u0027 is the former name of the same measure, still accepted), children under 5, people aged 65 and over or 70 and over"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "stores",
                  "quotedCredits"
                ]
              },
              "example": {
                "stores": [
                  {
                    "id": "s1",
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Bondi Junction"
                  },
                  {
                    "id": "s2",
                    "lat": -33.882,
                    "lng": 151.207,
                    "name": "Surry Hills"
                  },
                  {
                    "id": "s3",
                    "lat": -33.8915,
                    "lng": 151.2767,
                    "name": "Bondi Beach"
                  }
                ],
                "minutes": 10,
                "mode": "car",
                "traffic": "normal",
                "whiteSpotLevel": 5,
                "whiteSpots": 10,
                "preview": false,
                "idempotencyKey": "example-021a9b42bbc54f30923f15176ffaa88f"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "The quote: 5 credits per store and per candidate"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when the run was paid and the figures are there"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, api_key_limit"
                        },
                        "minutes": {
                          "type": "integer",
                          "description": "Catchment minutes used for every store"
                        },
                        "mode": {
                          "type": "string",
                          "description": "Travel mode used"
                        },
                        "polesInvolved": {
                          "type": "integer",
                          "description": "Address poles reached by the network, counted once"
                        },
                        "network": {
                          "type": "object",
                          "properties": {
                            "stores": {
                              "type": "integer",
                              "description": "Stores analysed"
                            },
                            "populationCovered": {
                              "type": "integer",
                              "description": "Residents reached by at least one store, counted once"
                            },
                            "coveredOnce": {
                              "type": "integer",
                              "description": "Residents reached by exactly one store"
                            },
                            "coveredTwiceOrMore": {
                              "type": "integer",
                              "description": "Residents reached by two or more stores"
                            },
                            "cannibalizationPct": {
                              "type": "number",
                              "description": "Share of the covered residents reached by two or more stores, percent: the network\u0027s cannibalization"
                            },
                            "regionPopulation": {
                              "type": "integer",
                              "description": "Residents of the administrative areas the network touches (at the white-spot level)"
                            },
                            "regionCoveredPct": {
                              "type": "number",
                              "description": "Covered residents as a share of the region\u0027s residents, percent"
                            },
                            "areasTouched": {
                              "type": "integer",
                              "description": "Administrative areas touched by at least one catchment"
                            }
                          },
                          "required": [
                            "stores",
                            "populationCovered",
                            "coveredOnce",
                            "coveredTwiceOrMore",
                            "cannibalizationPct",
                            "regionPopulation",
                            "regionCoveredPct",
                            "areasTouched"
                          ],
                          "description": "The network as a whole"
                        },
                        "stores": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "index": {
                                "type": "integer",
                                "description": "Position of the store in the request, from 0"
                              },
                              "id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Your identifier of the store, as given"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the store"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              },
                              "population": {
                                "type": "integer",
                                "description": "Residents within the store\u0027s catchment"
                              },
                              "exclusive": {
                                "type": "integer",
                                "description": "Residents reached by this store only"
                              },
                              "shared": {
                                "type": "integer",
                                "description": "Residents this store shares with other stores of the network"
                              },
                              "sharedPct": {
                                "type": "number",
                                "description": "Shared residents as a share of the store\u0027s residents, percent"
                              },
                              "overlapsWith": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "store": {
                                      "type": "integer",
                                      "description": "Index of the other store in the request, from 0"
                                    },
                                    "name": {
                                      "type": "string",
                                      "description": "Name of the other store"
                                    },
                                    "sharedPopulation": {
                                      "type": "integer",
                                      "description": "Residents reached by both stores"
                                    }
                                  },
                                  "required": [
                                    "store",
                                    "name",
                                    "sharedPopulation"
                                  ]
                                },
                                "description": "The three stores it overlaps most with"
                              }
                            },
                            "required": [
                              "index",
                              "name",
                              "lat",
                              "lng",
                              "population",
                              "exclusive",
                              "shared",
                              "sharedPct",
                              "overlapsWith"
                            ]
                          },
                          "description": "One row per store, in the order of the request"
                        },
                        "overlaps": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "storeA": {
                                "type": "integer",
                                "description": "Index of the first store, from 0"
                              },
                              "storeB": {
                                "type": "integer",
                                "description": "Index of the second store, from 0"
                              },
                              "nameA": {
                                "type": "string",
                                "description": "Name of the first store"
                              },
                              "nameB": {
                                "type": "string",
                                "description": "Name of the second store"
                              },
                              "sharedPopulation": {
                                "type": "integer",
                                "description": "Residents reached by both"
                              },
                              "pctOfA": {
                                "type": "number",
                                "description": "Shared residents as a share of the first store\u0027s residents, percent"
                              },
                              "pctOfB": {
                                "type": "number",
                                "description": "Shared residents as a share of the second store\u0027s residents, percent"
                              }
                            },
                            "required": [
                              "storeA",
                              "storeB",
                              "nameA",
                              "nameB",
                              "sharedPopulation",
                              "pctOfA",
                              "pctOfB"
                            ]
                          },
                          "description": "The pairs of stores that overlap most, up to 20, by shared residents"
                        },
                        "whiteSpotLevel": {
                          "type": "integer",
                          "description": "Administrative level of the white spots"
                        },
                        "whiteSpots": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "level": {
                                "type": "integer",
                                "description": "Administrative level of the area"
                              },
                              "areaId": {
                                "type": "integer",
                                "description": "Area id at that level (usable in areas of the analyses)"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the area"
                              },
                              "population": {
                                "type": "integer",
                                "description": "Residents of the area"
                              },
                              "covered": {
                                "type": "integer",
                                "description": "Residents of the area reached by the network"
                              },
                              "coveredPct": {
                                "type": "number",
                                "description": "Covered residents as a share of the area\u0027s residents, percent"
                              },
                              "uncovered": {
                                "type": "integer",
                                "description": "Residents of the area no store reaches"
                              }
                            },
                            "required": [
                              "level",
                              "areaId",
                              "name",
                              "population",
                              "covered",
                              "coveredPct",
                              "uncovered"
                            ]
                          },
                          "description": "The areas the network touches with the most residents no store reaches, best first"
                        },
                        "measure": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "What the plans count, as in the request"
                        },
                        "closurePlan": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "step": {
                                "type": "integer",
                                "description": "Step of the plan, from 1: the order of closing"
                              },
                              "store": {
                                "type": "integer",
                                "description": "Index of the store in the request, from 0"
                              },
                              "id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Your identifier of the store, as given"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the store"
                              },
                              "lost": {
                                "type": "integer",
                                "description": "People (in the chosen measure) left with no store at all by this closure; the others move to a store that still reaches them"
                              },
                              "coveredAfter": {
                                "type": "integer",
                                "description": "People still covered by the network after this step"
                              },
                              "coveredAfterPct": {
                                "type": "number",
                                "description": "CoveredAfter as a share of the people the full network covers, percent"
                              }
                            },
                            "required": [
                              "step",
                              "store",
                              "name",
                              "lost",
                              "coveredAfter",
                              "coveredAfterPct"
                            ]
                          },
                          "description": "The closure plan when closeCount was given, in the order of closing; empty otherwise"
                        },
                        "openingPlan": {
                          "type": [
                            "array",
                            "null"
                          ],
                          "items": {
                            "type": "object",
                            "properties": {
                              "step": {
                                "type": "integer",
                                "description": "Step of the plan, from 1: the order of opening"
                              },
                              "candidate": {
                                "type": "integer",
                                "description": "Index of the candidate in the request, from 0"
                              },
                              "id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Your identifier of the candidate, as given"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the candidate"
                              },
                              "gain": {
                                "type": "integer",
                                "description": "People (in the chosen measure) this candidate adds that neither the network nor the candidates chosen before reach"
                              },
                              "coveredAfter": {
                                "type": "integer",
                                "description": "People covered by the network plus the candidates chosen so far"
                              },
                              "coveredAfterPct": {
                                "type": "number",
                                "description": "CoveredAfter as a share of the people the network covers today, percent (over 100 = growth)"
                              }
                            },
                            "required": [
                              "step",
                              "candidate",
                              "name",
                              "gain",
                              "coveredAfter",
                              "coveredAfterPct"
                            ]
                          },
                          "description": "The opening plan when candidates were given, in the order of opening; empty otherwise"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "minutes",
                        "mode",
                        "polesInvolved",
                        "network",
                        "stores",
                        "overlaps",
                        "whiteSpotLevel",
                        "whiteSpots"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "network.coverage",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "network.coverage",
                          "quantity": 3,
                          "unit": "stores",
                          "credits": 15.00
                        }
                      ],
                      "totalCredits": 15
                    },
                    "charged": true,
                    "creditsCharged": 15,
                    "blockedBy": null,
                    "minutes": 10,
                    "mode": "car",
                    "polesInvolved": 102752,
                    "network": {
                      "stores": 3,
                      "populationCovered": 555558,
                      "coveredOnce": 304987,
                      "coveredTwiceOrMore": 250571,
                      "cannibalizationPct": 45.1,
                      "regionPopulation": 806666,
                      "regionCoveredPct": 68.9,
                      "areasTouched": 50
                    },
                    "stores": [
                      {
                        "index": 0,
                        "id": "s1",
                        "name": "Bondi Junction",
                        "lat": -33.89106,
                        "lng": 151.24843,
                        "population": 304928,
                        "exclusive": 54357,
                        "shared": 250571,
                        "sharedPct": 82.2,
                        "overlapsWith": [
                          {
                            "store": 1,
                            "name": "Surry Hills",
                            "sharedPopulation": 197874
                          },
                          {
                            "store": 2,
                            "name": "Bondi Beach",
                            "sharedPopulation": 65290
                          }
                        ]
                      },
                      {
                        "index": 1,
                        "id": "s2",
                        "name": "Surry Hills",
                        "lat": -33.882,
                        "lng": 151.207,
                        "population": 448504,
                        "exclusive": 250630,
                        "shared": 197874,
                        "sharedPct": 44.1,
                        "overlapsWith": [
                          {
                            "store": 0,
                            "name": "Bondi Junction",
                            "sharedPopulation": 197874
                          },
                          {
                            "store": 2,
                            "name": "Bondi Beach",
                            "sharedPopulation": 12593
                          }
                        ]
                      },
                      {
                        "index": 2,
                        "id": "s3",
                        "name": "Bondi Beach",
                        "lat": -33.8915,
                        "lng": 151.2767,
                        "population": 65290,
                        "exclusive": 0,
                        "shared": 65290,
                        "sharedPct": 100,
                        "overlapsWith": [
                          {
                            "store": 0,
                            "name": "Bondi Junction",
                            "sharedPopulation": 65290
                          },
                          {
                            "store": 1,
                            "name": "Surry Hills",
                            "sharedPopulation": 12593
                          }
                        ]
                      }
                    ],
                    "overlaps": [
                      {
                        "storeA": 0,
                        "storeB": 1,
                        "nameA": "Bondi Junction",
                        "nameB": "Surry Hills",
                        "sharedPopulation": 197874,
                        "pctOfA": 64.9,
                        "pctOfB": 44.1
                      },
                      {
                        "storeA": 0,
                        "storeB": 2,
                        "nameA": "Bondi Junction",
                        "nameB": "Bondi Beach",
                        "sharedPopulation": 65290,
                        "pctOfA": 21.4,
                        "pctOfB": 100
                      },
                      {
                        "storeA": 1,
                        "storeB": 2,
                        "nameA": "Surry Hills",
                        "nameB": "Bondi Beach",
                        "sharedPopulation": 12593,
                        "pctOfA": 2.8,
                        "pctOfB": 19.3
                      }
                    ],
                    "whiteSpotLevel": 5,
                    "whiteSpots": [
                      {
                        "level": 5,
                        "areaId": 2035,
                        "name": "2035",
                        "population": 37301,
                        "covered": 157,
                        "coveredPct": 0.4,
                        "uncovered": 37144
                      },
                      {
                        "level": 5,
                        "areaId": 2204,
                        "name": "2204",
                        "population": 27840,
                        "covered": 2466,
                        "coveredPct": 8.9,
                        "uncovered": 25374
                      },
                      {
                        "level": 5,
                        "areaId": 2065,
                        "name": "2065",
                        "population": 33677,
                        "covered": 15071,
                        "coveredPct": 44.8,
                        "uncovered": 18606
                      }
                    ],
                    "measure": "population",
                    "closurePlan": [],
                    "openingPlan": []
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "network.coverage",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/actions/realestate.comparables/execute": {
      "post": {
        "operationId": "realestate.comparables",
        "summary": "Run realestate.comparables",
        "description": "Real estate, one property, at no cost: picks the comparables again from a saved run of analysis.realestate_property, with another description of the property, other filters, other listings left out or another discount on advertised prices, and returns the comparables and the estimated range exactly as that run would. It reads only the listings already in the run: the point, the territory, the contract and the data stay those of the run (a new point or fresher data is a new run). Needs read access to the analysis. Free.\n\nFree action.",
        "tags": [
          "realestate"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "analysisCode": {
                    "type": "string",
                    "description": "Public code of the analysis holding the run (12 characters, the last segment of its web URL)"
                  },
                  "version": {
                    "type": "integer",
                    "description": "Version number of the run; default the latest analysis.realestate_property version of the analysis"
                  },
                  "property": {
                    "type": "object",
                    "properties": {
                      "type": {
                        "type": "string",
                        "enum": [
                          "house",
                          "apartment",
                          "townhouse",
                          "unit",
                          "land",
                          "commercial"
                        ],
                        "description": "Property type"
                      },
                      "floorArea": {
                        "type": "number",
                        "description": "Floor area in square metres (land area for land). Without it, comparables are matched on bedrooms and bathrooms and compared on whole prices."
                      },
                      "beds": {
                        "type": "integer",
                        "description": "Bedrooms"
                      },
                      "baths": {
                        "type": "integer",
                        "description": "Bathrooms"
                      },
                      "cars": {
                        "type": "integer",
                        "description": "Car spaces"
                      },
                      "listingId": {
                        "type": "integer",
                        "description": "The portal listing of this very property, when it is or was on the market: it is left out of its own comparables"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "description": "The property\u0027s description; default the one of the run"
                  },
                  "filters": {
                    "type": "object",
                    "properties": {
                      "areaTolerancePct": {
                        "type": "integer",
                        "description": "Floor area tolerance around the property\u0027s, percent, 5 to 100 (default 25)"
                      },
                      "monthsBack": {
                        "type": "integer",
                        "description": "Only listings seen, sold or withdrawn in the last N months, 1 to 36 (default 12)"
                      },
                      "includeActive": {
                        "type": "boolean",
                        "description": "Include properties still on the market (default true)"
                      },
                      "includeSold": {
                        "type": "boolean",
                        "description": "Include sold properties; for rent, properties that left the portal (default true)"
                      },
                      "otherTypes": {
                        "type": "boolean",
                        "description": "Also listings of other property types (default false)"
                      },
                      "excludedIds": {
                        "type": "array",
                        "items": {
                          "type": "integer"
                        },
                        "description": "Ids of listings the user leaves out: they keep their number but do not count"
                      }
                    },
                    "required": [],
                    "description": "How comparables are picked; default the filters of the run"
                  },
                  "discountPct": {
                    "type": "number",
                    "description": "Discount on advertised prices, percent, 0 to 50; default the one of the run. Sale prices are never discounted."
                  }
                },
                "required": [
                  "analysisCode"
                ]
              },
              "example": {
                "analysisCode": "SJHyj92mko85",
                "property": {
                  "type": "apartment",
                  "floorArea": 100,
                  "beds": 2,
                  "baths": 2
                },
                "discountPct": 5
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "analysisCode": {
                          "type": "string",
                          "description": "Public code of the analysis"
                        },
                        "version": {
                          "type": "integer",
                          "description": "Version number of the run the comparables come from"
                        },
                        "property": {
                          "type": "object",
                          "properties": {
                            "lat": {
                              "type": "number",
                              "description": "Latitude of the property"
                            },
                            "lng": {
                              "type": "number",
                              "description": "Longitude of the property"
                            },
                            "contract": {
                              "type": "string",
                              "description": "sale or rent"
                            },
                            "type": {
                              "type": "string",
                              "description": "Property type"
                            },
                            "floorArea": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Floor area in square metres, as given"
                            },
                            "beds": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Bedrooms, as given"
                            },
                            "baths": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Bathrooms, as given"
                            },
                            "cars": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Car spaces, as given"
                            },
                            "address": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "Address, as given"
                            },
                            "snapDistM": {
                              "type": "number",
                              "description": "Distance in metres from the point to the road network"
                            },
                            "state": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "State of the property, used when the local sample is too small"
                            },
                            "listingId": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "The portal listing of this very property, left out of its own comparables; null when none was given"
                            }
                          },
                          "required": [
                            "lat",
                            "lng",
                            "contract",
                            "type",
                            "snapDistM"
                          ],
                          "description": "The property: the run\u0027s point and contract with the description used here"
                        },
                        "value": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "basis": {
                              "type": "string",
                              "description": "per_sqm: price per square metre of the comparables times the floor area; whole_price: whole prices of comparables with the same rooms"
                            },
                            "measure": {
                              "type": "string",
                              "description": "price: total value in AUD; weekly_rent: weekly rent in AUD"
                            },
                            "low": {
                              "type": "number",
                              "description": "Low end of the range: first quartile of the comparables"
                            },
                            "mid": {
                              "type": "number",
                              "description": "Middle of the range: median of the comparables"
                            },
                            "high": {
                              "type": "number",
                              "description": "High end of the range: third quartile of the comparables"
                            },
                            "perSqmLow": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "First quartile per square metre (rent: per square metre per year)"
                            },
                            "perSqmMid": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median per square metre (rent: per square metre per year)"
                            },
                            "perSqmHigh": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Third quartile per square metre (rent: per square metre per year)"
                            },
                            "n": {
                              "type": "integer",
                              "description": "Comparables with a usable price behind the range"
                            },
                            "soldMedian": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median of the sold comparables in use (per square metre, or whole price)"
                            },
                            "soldN": {
                              "type": "integer",
                              "description": "Sold comparables behind SoldMedian"
                            },
                            "advertisedMedian": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median of the advertised comparables in use, before the discount (per square metre, or whole price)"
                            },
                            "advertisedN": {
                              "type": "integer",
                              "description": "Advertised comparables behind AdvertisedMedian"
                            }
                          },
                          "required": [
                            "basis",
                            "measure",
                            "low",
                            "mid",
                            "high",
                            "n",
                            "soldN",
                            "advertisedN"
                          ],
                          "description": "Estimated range; null when no comparable has a usable price"
                        },
                        "comparables": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "number": {
                                "type": "integer",
                                "description": "Number by drive time from the property: the same on the map, in the table and in the report"
                              },
                              "used": {
                                "type": "boolean",
                                "description": "false when the user left it out or it has no usable price"
                              },
                              "id": {
                                "type": "integer",
                                "description": "Listing id"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address as published"
                              },
                              "suburb": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Suburb"
                              },
                              "postcode": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Postcode"
                              },
                              "type": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Normalised property type"
                              },
                              "status": {
                                "type": "string",
                                "description": "active, sold or left"
                              },
                              "statusDate": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Date of the sale or of the departure from the portal"
                              },
                              "price": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Sale price for sold listings, lowest advertised figure for the others; weekly rent for rentals"
                              },
                              "priceWithheld": {
                                "type": "boolean",
                                "description": "true when the portal does not show the price"
                              },
                              "area": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Floor area in square metres (land area for land)"
                              },
                              "beds": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bedrooms"
                              },
                              "baths": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Bathrooms"
                              },
                              "cars": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Car spaces"
                              },
                              "perSqm": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price per square metre (rent: per year), before any discount"
                              },
                              "perSqmUsed": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Price per square metre after the discount, which applies only to advertised prices"
                              },
                              "minutes": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Drive time in minutes from the property"
                              },
                              "metres": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "Road distance in metres from the property"
                              },
                              "lat": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Latitude"
                              },
                              "lng": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Longitude"
                              },
                              "lastSeen": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "format": "date-time",
                                "description": "Last time the portal showed the listing"
                              }
                            },
                            "required": [
                              "number",
                              "used",
                              "id",
                              "status",
                              "priceWithheld"
                            ]
                          },
                          "description": "Every listing of the run\u0027s pool that matches the filters, numbered by drive time from the property"
                        },
                        "soldVsAdvertised": {
                          "type": [
                            "object",
                            "null"
                          ],
                          "properties": {
                            "kind": {
                              "type": "string",
                              "description": "sale_vs_advertised: sale price against the last advertised figure seen before the sale; rent_while_listed: last against first asking rent"
                            },
                            "scope": {
                              "type": "string",
                              "description": "local: the territory; state: the property\u0027s state, used because the territory had fewer than 20 cases"
                            },
                            "state": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "State of the figures when Scope is state"
                            },
                            "n": {
                              "type": "integer",
                              "description": "Cases behind the figures"
                            },
                            "abovePct": {
                              "type": "number",
                              "description": "Share of cases above the advertised figure, percent"
                            },
                            "equalPct": {
                              "type": "number",
                              "description": "Share of cases within half a percent of it, percent"
                            },
                            "belowPct": {
                              "type": "number",
                              "description": "Share of cases below it, percent"
                            },
                            "medianGapPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median gap, percent (positive: above the advertised figure)"
                            },
                            "medianBelowPct": {
                              "type": [
                                "number",
                                "null"
                              ],
                              "description": "Median gap of the cases below the advertised figure, percent (negative)"
                            }
                          },
                          "required": [
                            "kind",
                            "scope",
                            "n",
                            "abovePct",
                            "equalPct",
                            "belowPct"
                          ],
                          "description": "How sale prices compared with the advertised figure for the property\u0027s type (for rent: how asking rents moved while listed)"
                        },
                        "liquidity": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "scope": {
                                "type": "string",
                                "enum": [
                                  "local",
                                  "state",
                                  "australia"
                                ],
                                "description": "local: the territory; state: the property\u0027s state; australia: the whole country"
                              },
                              "state": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "State code when Scope is state"
                              },
                              "exited": {
                                "type": "integer",
                                "description": "Listings of the property\u0027s type and contract that left the portal in the last 24 months"
                              },
                              "sold": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "For sale: how many of them left as sold. Null for rent: the portal does not say whether a property was leased"
                              },
                              "soldPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "For sale: share of the listings that left the portal as sold, percent. Null for rent"
                              },
                              "medianDays": {
                                "type": [
                                  "integer",
                                  "null"
                                ],
                                "description": "For sale: median days from publication to the sale date published by the portal. Null while the listing data does not carry the portal\u0027s publication date, and always for rent, where no lease date is published"
                              },
                              "daysN": {
                                "type": "integer",
                                "description": "Sold listings behind MedianDays and DaysBands; 0 when the days cannot be counted"
                              },
                              "daysBands": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "band": {
                                      "type": "string",
                                      "description": "Label of the band"
                                    },
                                    "count": {
                                      "type": "integer",
                                      "description": "Listings in the band"
                                    },
                                    "median": {
                                      "type": [
                                        "number",
                                        "null"
                                      ],
                                      "description": "Median value inside the band, where it means something"
                                    }
                                  },
                                  "required": [
                                    "band",
                                    "count"
                                  ]
                                },
                                "description": "The same sold listings by days to sell: 0-14, 15-30, 31-60, 61-90, \u003E90"
                              },
                              "trackedN": {
                                "type": "integer",
                                "description": "Listings still advertised or withdrawn whose asking price could be followed: a known starting price, then a recorded change or the listing seen again at least a day later"
                              },
                              "cutPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Share of them whose asking price was lowered, percent"
                              },
                              "medianCutPct": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Median cut of the lowered ones, percent of the starting asking price"
                              }
                            },
                            "required": [
                              "scope",
                              "exited",
                              "daysN",
                              "daysBands",
                              "trackedN"
                            ]
                          },
                          "description": "How fast the market moves for the property\u0027s type: local, state, australia"
                        },
                        "marketFromRun": {
                          "type": "boolean",
                          "description": "true when SoldVsAdvertised and Liquidity are the run\u0027s (same property type); false when the type changed: the local figures come from the run\u0027s pool, the state and Australia figures from today\u0027s data"
                        },
                        "filters": {
                          "type": "object",
                          "properties": {
                            "areaTolerancePct": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Floor area tolerance around the property\u0027s, percent, 5 to 100 (default 25)"
                            },
                            "monthsBack": {
                              "type": [
                                "integer",
                                "null"
                              ],
                              "description": "Only listings seen, sold or withdrawn in the last N months, 1 to 36 (default 12)"
                            },
                            "includeActive": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "Include properties still on the market (default true)"
                            },
                            "includeSold": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "Include sold properties; for rent, properties that left the portal (default true)"
                            },
                            "otherTypes": {
                              "type": [
                                "boolean",
                                "null"
                              ],
                              "description": "Also listings of other property types (default false)"
                            },
                            "excludedIds": {
                              "type": [
                                "array",
                                "null"
                              ],
                              "items": {
                                "type": "integer"
                              },
                              "description": "Ids of listings the user leaves out: they keep their number but do not count"
                            }
                          },
                          "required": [],
                          "description": "The filters applied"
                        },
                        "discountPct": {
                          "type": "number",
                          "description": "Discount applied to advertised prices, percent"
                        },
                        "dataAsOf": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "format": "date-time",
                          "description": "Most recent update of the listings of the run"
                        },
                        "runAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "When the run was computed (UTC): the months-back filter counts from here"
                        }
                      },
                      "required": [
                        "analysisCode",
                        "version",
                        "property",
                        "comparables",
                        "liquidity",
                        "marketFromRun",
                        "filters",
                        "discountPct",
                        "runAt"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "realestate.comparables",
                  "result": {
                    "analysisCode": "SJHyj92mko85",
                    "version": 1,
                    "property": {
                      "lat": -33.89106,
                      "lng": 151.24843,
                      "contract": "sale",
                      "type": "apartment",
                      "floorArea": 100,
                      "beds": 2,
                      "baths": 2,
                      "cars": null,
                      "address": null,
                      "snapDistM": 8.4,
                      "state": "NSW",
                      "listingId": null
                    },
                    "value": {
                      "basis": "per_sqm",
                      "measure": "price",
                      "low": 913100,
                      "mid": 1202500,
                      "high": 1565300,
                      "perSqmLow": 9131,
                      "perSqmMid": 12025,
                      "perSqmHigh": 15653,
                      "n": 121,
                      "soldMedian": 12500,
                      "soldN": 17,
                      "advertisedMedian": 12616,
                      "advertisedN": 104
                    },
                    "comparables": [
                      {
                        "number": 1,
                        "used": false,
                        "id": 632746,
                        "address": "601/300 Oxford Street, Bondi Junction, NSW 2022",
                        "suburb": "Bondi Junction",
                        "postcode": "2022",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": 95.00,
                        "beds": 2,
                        "baths": 2,
                        "cars": 1,
                        "perSqm": null,
                        "perSqmUsed": null,
                        "minutes": 1,
                        "metres": 432,
                        "lat": -33.89089384,
                        "lng": 151.24524034,
                        "lastSeen": "2026-07-22T06:39:02.320688"
                      },
                      {
                        "number": 2,
                        "used": false,
                        "id": 4486683,
                        "address": "2/14 Chester Street, Woollahra, NSW 2025",
                        "suburb": "Woollahra",
                        "postcode": "2025",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": 77.00,
                        "beds": 2,
                        "baths": 1,
                        "cars": 0,
                        "perSqm": null,
                        "perSqmUsed": null,
                        "minutes": 1,
                        "metres": 686,
                        "lat": -33.88819904,
                        "lng": 151.24548934,
                        "lastSeen": "2026-09-24T00:41:28.78691"
                      },
                      {
                        "number": 3,
                        "used": false,
                        "id": 4486959,
                        "address": "505/3 Gray Street, Bondi Junction, NSW 2022",
                        "suburb": "Bondi Junction",
                        "postcode": "2022",
                        "type": "apartment",
                        "status": "active",
                        "statusDate": null,
                        "price": null,
                        "priceWithheld": true,
                        "area": 90.00,
                        "beds": 1,
                        "baths": 1,
                        "cars": 1,
                        "perSqm": null,
                        "perSqmUsed": null,
                        "minutes": 2,
                        "metres": 768,
                        "lat": -33.89344852,
                        "lng": 151.24997092,
                        "lastSeen": "2026-09-24T00:48:12.267421"
                      }
                    ],
                    "soldVsAdvertised": {
                      "kind": "sale_vs_advertised",
                      "scope": "state",
                      "state": "NSW",
                      "n": 19,
                      "abovePct": 73.7,
                      "equalPct": 0,
                      "belowPct": 26.3,
                      "medianGapPct": 1.5,
                      "medianBelowPct": -4.3
                    },
                    "liquidity": [
                      {
                        "scope": "local",
                        "state": null,
                        "exited": 348,
                        "sold": 192,
                        "soldPct": 55.2,
                        "medianDays": null,
                        "daysN": 0,
                        "daysBands": [
                          {
                            "band": "0-14",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "15-30",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "31-60",
                            "count": 0,
                            "median": null
                          }
                        ],
                        "trackedN": 1,
                        "cutPct": 100,
                        "medianCutPct": 35.8
                      },
                      {
                        "scope": "state",
                        "state": "NSW",
                        "exited": 3853,
                        "sold": 2464,
                        "soldPct": 64.0,
                        "medianDays": null,
                        "daysN": 0,
                        "daysBands": [
                          {
                            "band": "0-14",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "15-30",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "31-60",
                            "count": 0,
                            "median": null
                          }
                        ],
                        "trackedN": 28,
                        "cutPct": 46.4,
                        "medianCutPct": 6.3
                      },
                      {
                        "scope": "australia",
                        "state": null,
                        "exited": 9742,
                        "sold": 6036,
                        "soldPct": 62.0,
                        "medianDays": null,
                        "daysN": 0,
                        "daysBands": [
                          {
                            "band": "0-14",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "15-30",
                            "count": 0,
                            "median": null
                          },
                          {
                            "band": "31-60",
                            "count": 0,
                            "median": null
                          }
                        ],
                        "trackedN": 1944,
                        "cutPct": 66.9,
                        "medianCutPct": 4.8
                      }
                    ],
                    "marketFromRun": true,
                    "filters": {
                      "areaTolerancePct": 25,
                      "monthsBack": 12,
                      "includeActive": true,
                      "includeSold": true,
                      "otherTypes": false,
                      "excludedIds": []
                    },
                    "discountPct": 5,
                    "dataAsOf": "2026-09-24T03:47:28.752787",
                    "runAt": "2026-10-18T08:16:58.7342761\u002B00:00"
                  },
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/search.addresses/execute": {
      "post": {
        "operationId": "search.addresses",
        "summary": "Run search.addresses",
        "description": "Searches addresses by street and house number, for autocomplete. Returns up to 5 results with coordinates.\n\nFree action.",
        "tags": [
          "search"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string",
                    "description": "Street with the house number if any, in Australian order: number first, then the street \u2014 e.g. \u0027151 George Street\u0027. The locality can follow, to tell apart streets with the same name: after a comma (\u0027151 George Street, Sydney NSW 2000\u0027) or straight after the street type (\u002712 Station Street Box Hill\u0027). Suburb, postcode, local government area and state rank the results, in that order, and the exact house number comes first; they do not filter them. Never a city on its own: use areas.list for that."
                  },
                  "continent": {
                    "type": "string",
                    "enum": [
                      "oceania",
                      "europa"
                    ]
                  }
                },
                "required": [
                  "query",
                  "continent"
                ]
              },
              "example": {
                "query": "151 George Street",
                "continent": "oceania"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "pid": {
                            "type": "integer"
                          },
                          "street": {
                            "type": "string"
                          },
                          "number": {
                            "type": "string"
                          },
                          "locality": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "The suburb or locality of the address, as it is written in an address (e.g. \u0027Bondi Junction\u0027); the local government area where the suburb is not known."
                          },
                          "state": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "postcode": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "lat": {
                            "type": "number"
                          },
                          "lng": {
                            "type": "number"
                          },
                          "country": {
                            "type": [
                              "string",
                              "null"
                            ],
                            "description": "Country of the address, ISO 3166 alpha-2 (e.g. \u0027AU\u0027). Addresses are written the way that country writes them: in Australia the house number first, then the street, then suburb, state code and postcode."
                          }
                        },
                        "required": [
                          "pid",
                          "street",
                          "number",
                          "lat",
                          "lng"
                        ]
                      }
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "search.addresses",
                  "result": [
                    {
                      "pid": 92879233,
                      "street": "GEORGE STREET",
                      "number": "151",
                      "locality": "Redfern",
                      "state": "New South Wales",
                      "postcode": "2016",
                      "lat": -33.89417472251819,
                      "lng": 151.20185309742695,
                      "country": "AU"
                    },
                    {
                      "pid": 88779170,
                      "street": "GEORGE STREET",
                      "number": "151",
                      "locality": "Doncaster",
                      "state": "Victoria",
                      "postcode": "3108",
                      "lat": -37.78030333841154,
                      "lng": 145.1445519599038,
                      "country": "AU"
                    },
                    {
                      "pid": 89862117,
                      "street": "GEORGE STREET",
                      "number": "151",
                      "locality": "Robinvale",
                      "state": "Victoria",
                      "postcode": "3549",
                      "lat": -34.593025085280345,
                      "lng": 142.78202203434452,
                      "country": "AU"
                    }
                  ],
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/search.brands/execute": {
      "post": {
        "operationId": "search.brands",
        "summary": "Run search.brands",
        "description": "Searches brands by name in the points-of-interest database, aggregated by brand. With an empty query, the 20 best-known brands; by name, up to 8 results. With sector (a code from markets.sectors), the main brands of that sector (a website shared by at least two stores, with the name its shops have in common), the best known first, up to 50, filtered by name if query is also given.\n\nFree action.",
        "tags": [
          "search"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "query": {
                    "type": "string"
                  },
                  "continent": {
                    "type": "string",
                    "enum": [
                      "oceania",
                      "europa"
                    ]
                  },
                  "sector": {
                    "type": "string",
                    "description": "Sector code from markets.sectors (e.g. footwear): the main brands of that sector, the best known first, up to 50. A brand is a website shared by at least two stores, named with the words most of its stores have in common (Coles for \u0027Coles Epping\u0027, \u0027Coles Burnside\u0027); sites of the same name are merged. Combined with query it filters them by name"
                  }
                },
                "required": [
                  "query",
                  "continent"
                ]
              },
              "example": {
                "query": "Subway",
                "continent": "oceania"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string"
                          },
                          "category": {
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "locations": {
                            "type": "integer"
                          },
                          "logo": {
                            "type": [
                              "string",
                              "null"
                            ]
                          }
                        },
                        "required": [
                          "name",
                          "locations"
                        ]
                      }
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "search.brands",
                  "result": [
                    {
                      "name": "Subway",
                      "category": "Fast food restaurant",
                      "locations": 1205,
                      "logo": "/brands/subway.com.png"
                    },
                    {
                      "name": "Subway Mitchell Park",
                      "category": "Fast food restaurant",
                      "locations": 1,
                      "logo": null
                    },
                    {
                      "name": "Subway Forest Lakes",
                      "category": "Fast food restaurant",
                      "locations": 1,
                      "logo": null
                    }
                  ],
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/search.resolve_address/execute": {
      "post": {
        "operationId": "search.resolve_address",
        "summary": "Run search.resolve_address",
        "description": "Resolves a street and an optional house number in a local government area to an address: returns the address pole (pid) and its coordinates, or null if the street is not there. When the number is not found, a number that starts the same way, otherwise the first number of the street. Free.\n\nFree action.",
        "tags": [
          "search"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "street": {
                    "type": "string"
                  },
                  "l4Id": {
                    "type": "integer",
                    "description": "Id of the local government area (level 4) the street is in: the id of a level-4 area from areas.list"
                  },
                  "number": {
                    "type": "string",
                    "description": "House number typed by the user, if any"
                  },
                  "continent": {
                    "type": "string",
                    "enum": [
                      "oceania",
                      "europa"
                    ]
                  }
                },
                "required": [
                  "street",
                  "l4Id",
                  "continent"
                ]
              },
              "example": {
                "street": "OXFORD STREET",
                "l4Id": 18050,
                "number": "1",
                "continent": "oceania"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "pid": {
                          "type": "integer"
                        },
                        "street": {
                          "type": "string"
                        },
                        "number": {
                          "type": "string"
                        },
                        "locality": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The suburb or locality of the address, as it is written in an address (e.g. \u0027Bondi Junction\u0027); the local government area where the suburb is not known."
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postcode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Country of the address, ISO 3166 alpha-2 (e.g. \u0027AU\u0027). Addresses are written the way that country writes them: in Australia the house number first, then the street, then suburb, state code and postcode."
                        }
                      },
                      "required": [
                        "pid",
                        "street",
                        "number",
                        "lat",
                        "lng"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "search.resolve_address",
                  "result": {
                    "pid": 111681733,
                    "street": "OXFORD STREET",
                    "number": "125, 137, 139, 119, 1A, 133-135, 133, 46, 141, 123, 121, 1, 139-141",
                    "locality": "Bondi Junction",
                    "state": "New South Wales",
                    "postcode": "2022",
                    "lat": -33.892065111611224,
                    "lng": 151.2473930224885,
                    "country": "AU"
                  },
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/search.reverse_address/execute": {
      "post": {
        "operationId": "search.reverse_address",
        "summary": "Run search.reverse_address",
        "description": "Nearest address to a point (lat/lng). Returns the address pole with street, house number and locality, or null if there is nothing within range.\n\nFree action.",
        "tags": [
          "search"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "lat": {
                    "type": "number"
                  },
                  "lng": {
                    "type": "number"
                  },
                  "continent": {
                    "type": "string",
                    "enum": [
                      "oceania",
                      "europa"
                    ]
                  }
                },
                "required": [
                  "lat",
                  "lng",
                  "continent"
                ]
              },
              "example": {
                "lat": -33.89106,
                "lng": 151.24843,
                "continent": "oceania"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "properties": {
                        "pid": {
                          "type": "integer"
                        },
                        "street": {
                          "type": "string"
                        },
                        "number": {
                          "type": "string"
                        },
                        "locality": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "The suburb or locality of the address, as it is written in an address (e.g. \u0027Bondi Junction\u0027); the local government area where the suburb is not known."
                        },
                        "state": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "postcode": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "lat": {
                          "type": "number"
                        },
                        "lng": {
                          "type": "number"
                        },
                        "country": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Country of the address, ISO 3166 alpha-2 (e.g. \u0027AU\u0027). Addresses are written the way that country writes them: in Australia the house number first, then the street, then suburb, state code and postcode."
                        }
                      },
                      "required": [
                        "pid",
                        "street",
                        "number",
                        "lat",
                        "lng"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "search.reverse_address",
                  "result": {
                    "pid": 90473420,
                    "street": "GRAFTON STREET",
                    "number": "93, 95, 95-97, 97",
                    "locality": "Bondi Junction",
                    "state": "New South Wales",
                    "postcode": "2022",
                    "lat": -33.89135755156959,
                    "lng": 151.24860279047755,
                    "country": "AU"
                  },
                  "version": null
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        }
      }
    },
    "/api/v1/actions/site.rank/quote": {
      "post": {
        "operationId": "site.rank.quote",
        "summary": "Quote site.rank",
        "description": "Quotes site.rank without charging. Repeat \u0060quotedCredits\u0060 on /execute.\n\nRanks 2 to 20 candidate sites for one sector: for each candidate the catchment (the sector\u0027s own by default), residents and families reached, income and spending indices, the sector\u0027s resident spend within reach, competitors inside, the spend the site would capture (Huff share of the sector model against the competition and your own stores), the part taken from your own stores and the net new spend. The ranking is by net new spend; every row carries a score (best = 100) and the reasons in words. 20 credits per candidate. Quote first, then execute with the quoted credits.",
        "tags": [
          "site"
        ],
        "x-kstra-scope": "read",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the site, returned with its row; max 80 characters"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: \u0027Site 1\u0027, \u0027Site 2\u0027..."
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The candidate sites, 2 to 20"
                  },
                  "sectorCode": {
                    "type": "string",
                    "description": "Sector whose spending model prices the sites (code from markets.sectors), e.g. \u0027supermarkets\u0027"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Catchment of each candidate in minutes, 1-30. Omitted: the sector\u0027s own catchment"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk"
                    ],
                    "description": "How customers travel. Omitted: the sector\u0027s own mode"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ]
                  },
                  "ownStores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "catalog",
                            "dataset",
                            "manual"
                          ]
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "mine",
                            "competitor"
                          ]
                        },
                        "planned": {
                          "type": "boolean",
                          "description": "The point does not exist yet: it enters the before/after comparison"
                        },
                        "playerId": {
                          "type": "integer",
                          "description": "source=catalog: id of the store"
                        },
                        "datasetId": {
                          "type": "integer",
                          "description": "source=dataset: id of the point dataset; its points inside the area are included"
                        },
                        "lat": {
                          "type": "number",
                          "description": "source=manual: latitude"
                        },
                        "lng": {
                          "type": "number",
                          "description": "source=manual: longitude"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the catalogue or dataset name is used"
                        }
                      },
                      "required": [
                        "source",
                        "role"
                      ]
                    },
                    "description": "Your existing stores, to measure how much each candidate would take from them (max 100); same shape as in analysis.site_comparison"
                  }
                },
                "required": [
                  "candidates",
                  "sectorCode"
                ]
              },
              "example": {
                "candidates": [
                  {
                    "id": "bj",
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Bondi Junction"
                  },
                  {
                    "id": "sh",
                    "lat": -33.882,
                    "lng": 151.207,
                    "name": "Surry Hills"
                  },
                  {
                    "id": "nw",
                    "lat": -33.839,
                    "lng": 151.207,
                    "name": "Neutral Bay"
                  }
                ],
                "sectorCode": "supermarkets",
                "preview": true,
                "idempotencyKey": "example-1ba22d6480924e0d9a5e775ca5703e9c"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "quote": {
                      "$ref": "#/components/schemas/Quote"
                    },
                    "quotedCredits": {
                      "type": "number"
                    },
                    "polesInvolved": {
                      "type": "integer"
                    },
                    "blockedBy": {
                      "type": [
                        "string",
                        "null"
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "site.rank"
      }
    },
    "/api/v1/actions/site.rank/execute": {
      "post": {
        "operationId": "site.rank",
        "summary": "Run site.rank (charged)",
        "description": "Ranks 2 to 20 candidate sites for one sector: for each candidate the catchment (the sector\u0027s own by default), residents and families reached, income and spending indices, the sector\u0027s resident spend within reach, competitors inside, the spend the site would capture (Huff share of the sector model against the competition and your own stores), the part taken from your own stores and the net new spend. The ranking is by net new spend; every row carries a score (best = 100) and the reasons in words. 20 credits per candidate. Quote first, then execute with the quoted credits.\n\nCharged action: call /quote first and pass \u0060quotedCredits\u0060. 409 if the quote changed, 402 if credits are insufficient; nothing is charged in either case.",
        "tags": [
          "site"
        ],
        "x-kstra-scope": "run",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "candidates": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "lat": {
                          "type": "number",
                          "description": "Latitude, WGS84"
                        },
                        "lng": {
                          "type": "number",
                          "description": "Longitude, WGS84"
                        },
                        "id": {
                          "type": "string",
                          "description": "Your identifier of the site, returned with its row; max 80 characters"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: \u0027Site 1\u0027, \u0027Site 2\u0027..."
                        }
                      },
                      "required": [
                        "lat",
                        "lng"
                      ]
                    },
                    "description": "The candidate sites, 2 to 20"
                  },
                  "sectorCode": {
                    "type": "string",
                    "description": "Sector whose spending model prices the sites (code from markets.sectors), e.g. \u0027supermarkets\u0027"
                  },
                  "idempotencyKey": {
                    "type": "string",
                    "description": "Optional: a key of yours that makes a repeated call return the same result without charging twice. Without it, every call is a new run."
                  },
                  "minutes": {
                    "type": "integer",
                    "description": "Catchment of each candidate in minutes, 1-30. Omitted: the sector\u0027s own catchment"
                  },
                  "mode": {
                    "type": "string",
                    "enum": [
                      "car",
                      "car_no_highway",
                      "walk"
                    ],
                    "description": "How customers travel. Omitted: the sector\u0027s own mode"
                  },
                  "traffic": {
                    "type": "string",
                    "enum": [
                      "normal",
                      "heavy"
                    ]
                  },
                  "ownStores": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "source": {
                          "type": "string",
                          "enum": [
                            "catalog",
                            "dataset",
                            "manual"
                          ]
                        },
                        "role": {
                          "type": "string",
                          "enum": [
                            "mine",
                            "competitor"
                          ]
                        },
                        "planned": {
                          "type": "boolean",
                          "description": "The point does not exist yet: it enters the before/after comparison"
                        },
                        "playerId": {
                          "type": "integer",
                          "description": "source=catalog: id of the store"
                        },
                        "datasetId": {
                          "type": "integer",
                          "description": "source=dataset: id of the point dataset; its points inside the area are included"
                        },
                        "lat": {
                          "type": "number",
                          "description": "source=manual: latitude"
                        },
                        "lng": {
                          "type": "number",
                          "description": "source=manual: longitude"
                        },
                        "name": {
                          "type": "string",
                          "description": "Name to show; omitted: the catalogue or dataset name is used"
                        }
                      },
                      "required": [
                        "source",
                        "role"
                      ]
                    },
                    "description": "Your existing stores, to measure how much each candidate would take from them (max 100); same shape as in analysis.site_comparison"
                  },
                  "quotedCredits": {
                    "type": "number",
                    "description": "The quotedCredits returned by the quote for this same input. The run is refused (quote_changed) if the quote changed."
                  }
                },
                "required": [
                  "candidates",
                  "sectorCode",
                  "quotedCredits"
                ]
              },
              "example": {
                "candidates": [
                  {
                    "id": "bj",
                    "lat": -33.89106,
                    "lng": 151.24843,
                    "name": "Bondi Junction"
                  },
                  {
                    "id": "sh",
                    "lat": -33.882,
                    "lng": 151.207,
                    "name": "Surry Hills"
                  },
                  {
                    "id": "nw",
                    "lat": -33.839,
                    "lng": 151.207,
                    "name": "Neutral Bay"
                  }
                ],
                "sectorCode": "supermarkets",
                "preview": false,
                "idempotencyKey": "example-905c67a7b583498891964f732f19c872"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "actionId": {
                      "type": "string"
                    },
                    "result": {
                      "type": "object",
                      "properties": {
                        "quote": {
                          "type": "object",
                          "properties": {
                            "lines": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "actionCode": {
                                    "type": "string",
                                    "description": "Tariff item code, e.g. \u0027analysis.markets.brand\u0027"
                                  },
                                  "quantity": {
                                    "type": "number",
                                    "description": "How many units of the item the run uses"
                                  },
                                  "unit": {
                                    "type": "string",
                                    "description": "What the unit counts: brands, areas, poles, topics, points..."
                                  },
                                  "credits": {
                                    "type": "number",
                                    "description": "Credits of this line, before the total is rounded"
                                  }
                                },
                                "required": [
                                  "actionCode",
                                  "quantity",
                                  "unit",
                                  "credits"
                                ]
                              },
                              "description": "One line per tariff item the run is billed on"
                            },
                            "totalCredits": {
                              "type": "number",
                              "description": "Credits the run costs in total, already rounded up as it will be charged"
                            }
                          },
                          "required": [
                            "lines",
                            "totalCredits"
                          ],
                          "description": "The quote: 20 credits per candidate"
                        },
                        "charged": {
                          "type": "boolean",
                          "description": "true when the run was paid and the figures are there"
                        },
                        "creditsCharged": {
                          "type": "number",
                          "description": "Credits actually charged"
                        },
                        "blockedBy": {
                          "type": [
                            "string",
                            "null"
                          ],
                          "description": "Why the run did not start when it was not charged: organization_balance, team_limit, user_limit, api_key_limit"
                        },
                        "sector": {
                          "type": "string",
                          "description": "Sector code the sites were priced on"
                        },
                        "minutes": {
                          "type": "integer",
                          "description": "Catchment minutes used for every candidate"
                        },
                        "mode": {
                          "type": "string",
                          "description": "Travel mode used for every catchment"
                        },
                        "currency": {
                          "type": "string",
                          "description": "Currency of the spend figures, e.g. \u0027AUD\u0027"
                        },
                        "ranking": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "rank": {
                                "type": "integer",
                                "description": "Rank, 1 = best (by net new spend)"
                              },
                              "score": {
                                "type": "number",
                                "description": "Score relative to the best site: 100 for the first, then net new spend as a share of the best"
                              },
                              "id": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Your identifier of the site, as given"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the site"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              },
                              "netNewSpend": {
                                "type": "number",
                                "description": "Captured spend minus what is taken from your own stores: the spend the network gains, in currency per year"
                              },
                              "capturedSpend": {
                                "type": "number",
                                "description": "Yearly spend the site would capture, in currency (Huff share of the sector model)"
                              },
                              "capturedShare": {
                                "type": "number",
                                "description": "Captured spend as a share of the resident spend within reach, 0-100"
                              },
                              "residentSpend": {
                                "type": "number",
                                "description": "Yearly spend of the sector by the residents reached, in currency"
                              },
                              "population": {
                                "type": "integer",
                                "description": "Residents within the catchment"
                              },
                              "households": {
                                "type": "integer",
                                "description": "Deprecated: same value as families, the former name of the field, kept for existing callers"
                              },
                              "competitors": {
                                "type": "integer",
                                "description": "Points of sale of the sector inside the catchment, your own stores excluded"
                              },
                              "incomeIndex": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Income index of the residents reached, 100 = national average"
                              },
                              "spendingIndex": {
                                "type": [
                                  "number",
                                  "null"
                                ],
                                "description": "Spending index of the residents reached, 100 = national average"
                              },
                              "takenFromOwnStores": {
                                "type": "number",
                                "description": "Part of the captured spend taken from your own stores, in currency: cannibalization"
                              },
                              "reasons": {
                                "type": "array",
                                "items": {
                                  "type": "string"
                                },
                                "description": "Why the site ranks where it does, in words: what stands out against the other candidates, and the caveat"
                              },
                              "families": {
                                "type": "integer",
                                "description": "Families within the catchment: families as the national statistics office counts them; in Australia (ABS) these are census families: couples with or without children and one-parent families, without people living alone and group households"
                              }
                            },
                            "required": [
                              "rank",
                              "score",
                              "name",
                              "lat",
                              "lng",
                              "netNewSpend",
                              "capturedSpend",
                              "capturedShare",
                              "residentSpend",
                              "population",
                              "households",
                              "competitors",
                              "takenFromOwnStores",
                              "reasons",
                              "families"
                            ]
                          },
                          "description": "The candidates from the best to the worst"
                        },
                        "ownStores": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "id": {
                                "type": "integer",
                                "description": "Catalogue id for catalogue points, a negative sequence number for the others"
                              },
                              "name": {
                                "type": "string",
                                "description": "Name of the point"
                              },
                              "address": {
                                "type": [
                                  "string",
                                  "null"
                                ],
                                "description": "Street address when known"
                              },
                              "source": {
                                "type": "string",
                                "enum": [
                                  "catalog",
                                  "dataset",
                                  "manual"
                                ],
                                "description": "Where the point came from: the places catalogue, a user dataset or map coordinates"
                              },
                              "role": {
                                "type": "string",
                                "enum": [
                                  "mine",
                                  "competitor"
                                ],
                                "description": "Whose point it is"
                              },
                              "planned": {
                                "type": "boolean",
                                "description": "The point does not exist yet: it only enters the \u0027after\u0027 scenario"
                              },
                              "lat": {
                                "type": "number",
                                "description": "Latitude, WGS84"
                              },
                              "lng": {
                                "type": "number",
                                "description": "Longitude, WGS84"
                              },
                              "outside": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "A dataset point just outside the analysis area, taken because its catchment may reach into it. In a preview it is a candidate; in the result it is kept only if its catchment does reach the area, and the ones that do not are dropped and not charged"
                              },
                              "sectorStore": {
                                "type": [
                                  "boolean",
                                  "null"
                                ],
                                "description": "A store of the sector the platform added because it is inside the area (analysis.brand_coverage with includeSectorStores): a competitor with its own catchment, not charged. Always false in the other actions that return these points"
                              },
                              "sales": {
                                "type": [
                                  "object",
                                  "null"
                                ],
                                "properties": {
                                  "band": {
                                    "type": "string",
                                    "description": "Band of estimated annual sales in millions of the currency field, excluding GST: \u0027\u003C0.25\u0027, \u00270.25-0.5\u0027, \u00270.5-1\u0027, \u00271-2\u0027, \u00272-5\u0027, \u00275-10\u0027, \u002710-20\u0027, \u002720-50\u0027 or \u0027\u003E50\u0027"
                                  },
                                  "confidence": {
                                    "type": "string",
                                    "enum": [
                                      "high",
                                      "medium",
                                      "low"
                                    ],
                                    "description": "high: the chain\u0027s own accounts shared among its stores by measured size; medium: accounts shared with a correction, a store of measured size within the national retail totals, or a store of a brand whose estimates were checked against other chains; low: an independent store estimated from the typical size of its category, its review activity or official counts of businesses by turnover, within the national retail totals"
                                  },
                                  "source": {
                                    "type": "string",
                                    "enum": [
                                      "chain_accounts",
                                      "company_accounts",
                                      "store_size",
                                      "review_activity",
                                      "turnover_bands"
                                    ],
                                    "description": "What the estimate is built from: chain_accounts = the chain\u0027s annual accounts; company_accounts = the accounts of the company that runs the sites; store_size = the size of the store within the national retail totals; review_activity = the store\u0027s review activity within the national retail totals; turnover_bands = official counts of businesses by turnover band"
                                  },
                                  "version": {
                                    "type": "integer",
                                    "description": "Version of the sales model the estimate comes from"
                                  },
                                  "currency": {
                                    "type": [
                                      "string",
                                      "null"
                                    ],
                                    "description": "Currency of the band, ISO 4217 (AUD in Australia): the currency of the national retail totals the estimate comes from"
                                  }
                                },
                                "required": [
                                  "band",
                                  "confidence",
                                  "source",
                                  "version"
                                ],
                                "description": "Estimated annual sales of the store, as a band with its confidence and source; present only with include [\u0027sales\u0027] and only for stores with an estimate. Estimates, not reported figures: read the confidence before relying on a band"
                              }
                            },
                            "required": [
                              "id",
                              "name",
                              "source",
                              "role",
                              "planned",
                              "lat",
                              "lng"
                            ]
                          },
                          "description": "Your own stores as resolved (a dataset expands into its points)"
                        }
                      },
                      "required": [
                        "quote",
                        "charged",
                        "creditsCharged",
                        "sector",
                        "minutes",
                        "mode",
                        "currency",
                        "ranking",
                        "ownStores"
                      ]
                    },
                    "version": {
                      "oneOf": [
                        {
                          "$ref": "#/components/schemas/Version"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  }
                },
                "example": {
                  "actionId": "site.rank",
                  "result": {
                    "quote": {
                      "lines": [
                        {
                          "actionCode": "analysis.site_comparison",
                          "quantity": 3,
                          "unit": "candidates",
                          "credits": 60.00
                        }
                      ],
                      "totalCredits": 60
                    },
                    "charged": true,
                    "creditsCharged": 60,
                    "blockedBy": null,
                    "sector": "supermarkets",
                    "minutes": 10,
                    "mode": "car",
                    "currency": "AUD",
                    "ranking": [
                      {
                        "rank": 1,
                        "score": 100,
                        "id": "bj",
                        "name": "Bondi Junction",
                        "lat": -33.89106,
                        "lng": 151.24843,
                        "netNewSpend": 7654392,
                        "capturedSpend": 7654392,
                        "capturedShare": 1.1,
                        "residentSpend": 697018444,
                        "population": 304928,
                        "households": 65945,
                        "competitors": 79,
                        "incomeIndex": 123.8,
                        "spendingIndex": 122.3,
                        "takenFromOwnStores": 0,
                        "reasons": [
                          "fewest competitors of the set (79 inside the catchment)"
                        ],
                        "families": 65945
                      },
                      {
                        "rank": 2,
                        "score": 90.3,
                        "id": "nw",
                        "name": "Neutral Bay",
                        "lat": -33.839,
                        "lng": 151.207,
                        "netNewSpend": 6911240,
                        "capturedSpend": 6911240,
                        "capturedShare": 0.8,
                        "residentSpend": 912732653,
                        "population": 393259,
                        "households": 90386,
                        "competitors": 114,
                        "incomeIndex": 128.2,
                        "spendingIndex": 126.5,
                        "takenFromOwnStores": 0,
                        "reasons": [
                          "highest income index of the set (128)"
                        ],
                        "families": 90386
                      },
                      {
                        "rank": 3,
                        "score": 73.6,
                        "id": "sh",
                        "name": "Surry Hills",
                        "lat": -33.882,
                        "lng": 151.207,
                        "netNewSpend": 5634770,
                        "capturedSpend": 5634770,
                        "capturedShare": 0.5,
                        "residentSpend": 1038738948,
                        "population": 448504,
                        "households": 99257,
                        "competitors": 148,
                        "incomeIndex": 127.6,
                        "spendingIndex": 125.9,
                        "takenFromOwnStores": 0,
                        "reasons": [
                          "largest resident spend of the set (A$1038.7M a year within reach)"
                        ],
                        "families": 99257
                      }
                    ],
                    "ownStores": []
                  },
                  "version": null
                }
              }
            },
            "headers": {
              "Idempotent-Replayed": {
                "description": "true when the response repeats a run already charged with the same Idempotency-Key and input: nothing was charged this time.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "true"
                  ]
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "402": {
            "$ref": "#/components/responses/402"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          },
          "409": {
            "$ref": "#/components/responses/409"
          },
          "429": {
            "$ref": "#/components/responses/429"
          }
        },
        "x-kstra-tariff": "site.rank",
        "parameters": [
          {
            "name": "Idempotency-Key",
            "in": "header",
            "required": false,
            "description": "A key of yours, up to 80 characters, for this request: repeated with the same input it returns the same result without charging again; with a different input it is refused (409 idempotency_key_conflict). Same as idempotencyKey in the body.",
            "schema": {
              "type": "string",
              "maxLength": 80
            }
          },
          {
            "name": "X-Analysis-Id",
            "in": "header",
            "required": false,
            "description": "The code of one of your saved analyses: the paid result is stored as its new version, returned in version.",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/api/v1/me": {
      "get": {
        "operationId": "me",
        "summary": "Who the key is: user, organization, team, scopes, limits and credits",
        "tags": [
          "account"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/api/v1/actions": {
      "get": {
        "operationId": "actions.list",
        "summary": "The actions this key can call, with input and output schemas",
        "tags": [
          "account"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/api/v1/credits": {
      "get": {
        "operationId": "credits",
        "summary": "Balance, reserved credits, limits and this month\u0027s usage",
        "tags": [
          "account"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/api/v1/data": {
      "get": {
        "operationId": "data",
        "summary": "Version stamps of the data families (territory, sociodemo, realestate, players)",
        "tags": [
          "account"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/api/v1/analyses": {
      "get": {
        "operationId": "analyses.list",
        "summary": "Your analyses and the ones shared with you, with the last run",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      },
      "post": {
        "operationId": "analyses.create",
        "summary": "Create an analysis: the code comes back as id; bind charged runs to it with the X-Analysis-Id header",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The code of the analysis"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "state"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  },
                  "state": {
                    "type": "object",
                    "description": "The configuration the web app reopens: {} when the analysis lives only in the API. At most 512 KB."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analyses/{code}": {
      "get": {
        "operationId": "analyses.get",
        "summary": "One analysis with its latest saved results (free to read)",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          }
        ]
      },
      "delete": {
        "operationId": "analyses.delete",
        "summary": "Delete one of your analyses",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "Deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          }
        ]
      }
    },
    "/api/v1/analyses/{code}/versions": {
      "get": {
        "operationId": "analyses.versions",
        "summary": "The version history of an analysis",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          }
        ]
      }
    },
    "/api/v1/analyses/{code}/versions/{no}": {
      "get": {
        "operationId": "analyses.version",
        "summary": "One version in full: input, state and results",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          },
          {
            "name": "no",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/api/v1/analyses/{code}/name": {
      "put": {
        "operationId": "analyses.rename",
        "summary": "Rename one of your analyses",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "Renamed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "ok": {
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name"
                ],
                "properties": {
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 255
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/analyses/{code}/duplicate": {
      "post": {
        "operationId": "analyses.duplicate",
        "summary": "Copy an analysis you can read into a new one of yours, without its permissions or versions; with withResults=true the latest results are copied too",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "The new analysis",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "description": "The code of the new analysis"
                    },
                    "versionsCopied": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          },
          {
            "name": "withResults",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ]
      }
    },
    "/api/v1/analyses/{code}/shares": {
      "get": {
        "operationId": "analyses.shares",
        "summary": "Who can read one of your analyses, with its url",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "The permissions as they are now",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          }
        ]
      },
      "put": {
        "operationId": "analyses.shares.set",
        "summary": "Replace all the permissions of one of your analyses",
        "tags": [
          "analyses"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "The permissions as they are now",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "description": "The public code of the analysis, 12 base58 characters (the last segment of its URL, /a/\u003Ccode\u003E).",
            "schema": {
              "type": "string",
              "pattern": "^[1-9A-HJ-NP-Za-km-z]{12}$"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "team",
                  "organization",
                  "anyone"
                ],
                "properties": {
                  "team": {
                    "type": "boolean",
                    "description": "Everyone in your team can read it."
                  },
                  "organization": {
                    "type": "boolean",
                    "description": "Everyone in your organization can read it."
                  },
                  "anyone": {
                    "type": "boolean",
                    "description": "Anyone with the link can read it."
                  },
                  "anyoneExpiresDays": {
                    "type": [
                      "integer",
                      "null"
                    ],
                    "enum": [
                      7,
                      30,
                      null
                    ],
                    "description": "Expiry of the link for anyone, in days; null for no expiry."
                  },
                  "people": {
                    "type": "array",
                    "maxItems": 50,
                    "items": {
                      "type": "string",
                      "format": "email"
                    },
                    "description": "Specific people by email, notified once."
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/market/v1/{name}": {
      "post": {
        "operationId": "market.run",
        "summary": "One-call analysis for API marketplaces: quotes and executes market.\u003Cname\u003E in the same request and returns its result",
        "description": "name is catchment, competition, property or traffic. The input and the result are those of the market.\u003Cname\u003E action; the full specification of this route is at /api/market/v1/openapi.json, and that of each analysis at /api/market/v1/{name}/openapi.json. Credits run out: 503 temporarily_unavailable, nothing charged.",
        "tags": [
          "market"
        ],
        "x-kstra-scope": "run",
        "parameters": [
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "catchment",
                "competition",
                "property",
                "traffic"
              ]
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The result of the analysis",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      }
    },
    "/api/v1/webhooks": {
      "get": {
        "operationId": "webhooks.list",
        "summary": "The organization\u0027s webhook endpoints and the events they listen to",
        "tags": [
          "webhooks"
        ],
        "x-kstra-scope": "manage",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        }
      },
      "post": {
        "operationId": "webhooks.create",
        "summary": "Register a webhook endpoint (the signing secret is returned once)",
        "tags": [
          "webhooks"
        ],
        "x-kstra-scope": "manage",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url",
                  "events"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "format": "uri",
                    "description": "Public https URL that receives the POST."
                  },
                  "events": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "job.completed",
                        "job.failed",
                        "analysis.version.created",
                        "ping"
                      ]
                    }
                  },
                  "description": {
                    "type": "string",
                    "maxLength": 200
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created: the webhook and its secret (shown once)",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "403": {
            "$ref": "#/components/responses/403"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}": {
      "delete": {
        "operationId": "webhooks.delete",
        "summary": "Delete a webhook endpoint",
        "tags": [
          "webhooks"
        ],
        "x-kstra-scope": "manage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}/enable": {
      "post": {
        "operationId": "webhooks.enable",
        "summary": "Re-enable an endpoint disabled after repeated failures",
        "tags": [
          "webhooks"
        ],
        "x-kstra-scope": "manage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}/deliveries": {
      "get": {
        "operationId": "webhooks.deliveries",
        "summary": "The last deliveries to an endpoint: event, status, attempts, response",
        "tags": [
          "webhooks"
        ],
        "x-kstra-scope": "manage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/api/v1/webhooks/{id}/ping": {
      "post": {
        "operationId": "webhooks.ping",
        "summary": "Send a signed test event now and return the delivery outcome",
        "tags": [
          "webhooks"
        ],
        "x-kstra-scope": "manage",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          },
          "401": {
            "$ref": "#/components/responses/401"
          },
          "404": {
            "$ref": "#/components/responses/404"
          }
        }
      }
    },
    "/api/v1/jobs/{jobId}": {
      "get": {
        "operationId": "jobs.get",
        "summary": "The state of a background job; when it is done, result is its summary as an object (for an enrich.points batch: points, done, skipped, failed, credits charged, why it stopped)",
        "tags": [
          "account"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    },
    "/api/v1/jobs/{jobId}/results": {
      "get": {
        "operationId": "jobs.results",
        "summary": "The results of an enrich.points job, one row per point (status, credits, why skipped), paged with offset and limit",
        "tags": [
          "enrich"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "offset",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 0
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 100,
              "maximum": 500
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "result: each row carries its full enrich.point result, and a page holds at most 50 rows",
            "schema": {
              "type": "string",
              "enum": [
                "result"
              ]
            }
          }
        ]
      }
    },
    "/api/v1/jobs/{jobId}/results/{index}": {
      "get": {
        "operationId": "jobs.result",
        "summary": "One point of an enrich.points job with its full enrich.point result",
        "tags": [
          "enrich"
        ],
        "x-kstra-scope": "read",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/401"
          }
        },
        "parameters": [
          {
            "name": "jobId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "index",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer"
            }
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "apiKey": {
        "type": "http",
        "scheme": "bearer",
        "description": "An API key created in Account \u2192 API. Scopes: read (free actions, reading analyses and credits), run (charged actions), manage (writing analyses)."
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 Problem Details. \u0060type\u0060 is stable per error code; \u0060error\u0060 is the code; \u0060errorCode\u0060 correlates the request in our logs.",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "errorCode": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "blockedBy": {
            "type": "string",
            "description": "On 402: organization_balance, team_limit, user_limit or api_key_limit."
          },
          "credits": {
            "type": "number"
          },
          "quotedCredits": {
            "type": "number"
          },
          "declaredCredits": {
            "type": "number"
          }
        }
      },
      "Quote": {
        "type": "object",
        "description": "A quote: what the run would cost, line by line.",
        "properties": {
          "totalCredits": {
            "type": "number",
            "description": "Credits the run will charge. Repeat it as quotedCredits on /execute."
          },
          "lines": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "actionCode": {
                  "type": "string"
                },
                "quantity": {
                  "type": "number"
                },
                "unit": {
                  "type": "string"
                },
                "credits": {
                  "type": "number"
                }
              }
            }
          }
        }
      },
      "Version": {
        "type": "object",
        "description": "The saved version a charged run became (null when the run was not bound to an analysis).",
        "properties": {
          "versionNo": {
            "type": "integer"
          },
          "actionId": {
            "type": "string"
          },
          "creditsCharged": {
            "type": "number"
          },
          "dataVersion": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time"
          },
          "author": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      }
    },
    "responses": {
      "400": {
        "description": "Invalid input (validation_error, invalid_input, quote_required, not_chargeable; on the analyses routes invalid_name, invalid_id, invalid_state, state_too_large, invalid_expiry, invalid_email).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "401": {
        "description": "No valid API key (not_authenticated).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "402": {
        "description": "Credits insufficient or a limit reached: nothing was charged (insufficient_credits, with blockedBy).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "403": {
        "description": "The key lacks the scope, the action is not allowed, or the user is a Viewer in their team (scope_required, forbidden, read_only_role).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "404": {
        "description": "Unknown action or resource (unknown_action, not_found).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "409": {
        "description": "Nothing was run or charged: the quote changed since /quote (quote_changed, with quotedCredits), or the idempotency key was already used for a different request or for a run that did not complete (idempotency_key_conflict).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "429": {
        "description": "Too many requests; retry after Retry-After seconds (rate_limited).",
        "content": {
          "application/problem\u002Bjson": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    }
  }
}