{
  "openapi": "3.1.0",
  "info": {
    "title": "Andare Homes free renovation tools",
    "version": "1.0.0",
    "description": "Read-only GET endpoints that return the same answers as the free tools at https://andarehomes.com/tools/. Preliminary planning only."
  },
  "servers": [
    {
      "url": "https://andarehomes.com"
    }
  ],
  "paths": {
    "/api/tools/": {
      "get": {
        "operationId": "listTools",
        "summary": "List every free tool with its parameters and an example URL",
        "parameters": [
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for a JSON list; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The tool list",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/toronto-building-permit-checker": {
      "get": {
        "operationId": "toronto_building_permit_checker",
        "summary": "Toronto building permit checker",
        "description": "Says whether a project in Toronto needs a building permit, usually does not, or depends, with the City source for the answer. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/toronto-building-permit-checker?project=deck&h=high&att=yes&exit=no",
        "parameters": [
          {
            "name": "project",
            "in": "query",
            "required": true,
            "schema": {
              "description": "What is being built",
              "type": "string",
              "enum": [
                "basement",
                "deck",
                "wall",
                "opening",
                "kitchen",
                "plumbing",
                "shed",
                "roofing",
                "fence"
              ]
            },
            "description": "What is being built"
          },
          {
            "name": "suite",
            "in": "query",
            "required": false,
            "schema": {
              "description": "basement: Will the work create a second suite or any additional dwelling unit?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "basement: Will the work create a second suite or any additional dwelling unit?"
          },
          {
            "name": "struct",
            "in": "query",
            "required": false,
            "schema": {
              "description": "basement: Will it include structural or material alterations, such as adding or removing walls, excavation, underpinning or a new basement entrance? | roofing: Will the work include any structural repair, such as replacing rafters, trusses or framing, or changing the roof shape?",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "basement: Will it include structural or material alterations, such as adding or removing walls, excavation, underpinning or a new basement entrance? | roofing: Will the work include any structural repair, such as replacing rafters, trusses or framing, or changing the roof shape?"
          },
          {
            "name": "mech",
            "in": "query",
            "required": false,
            "schema": {
              "description": "basement: Will it include new plumbing or heating work?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "basement: Will it include new plumbing or heating work?"
          },
          {
            "name": "h",
            "in": "query",
            "required": false,
            "schema": {
              "description": "deck: How high will the finished deck level be above the adjacent finished grade?",
              "type": "string",
              "enum": [
                "low",
                "high",
                "unsure"
              ]
            },
            "description": "deck: How high will the finished deck level be above the adjacent finished grade?"
          },
          {
            "name": "att",
            "in": "query",
            "required": false,
            "schema": {
              "description": "deck: Will the deck be attached to the house? | shed: Will it be attached to a house, garage or any other structure?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "deck: Will the deck be attached to the house? | shed: Will it be attached to a house, garage or any other structure?"
          },
          {
            "name": "exit",
            "in": "query",
            "required": false,
            "schema": {
              "description": "deck: Will it have a roof, or will it be part of a required exit from the house?",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "deck: Will it have a roof, or will it be part of a required exit from the house?"
          },
          {
            "name": "lb",
            "in": "query",
            "required": false,
            "schema": {
              "description": "wall: Is the wall load bearing?",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "wall: Is the wall load bearing?"
          },
          {
            "name": "kind",
            "in": "query",
            "required": false,
            "schema": {
              "description": "opening: What is the work? | plumbing: What is the plumbing work?",
              "type": "string",
              "enum": [
                "new",
                "repl",
                "add",
                "valve"
              ]
            },
            "description": "opening: What is the work? | plumbing: What is the plumbing work?"
          },
          {
            "name": "bt",
            "in": "query",
            "required": false,
            "schema": {
              "description": "opening: What kind of building is it?",
              "type": "string",
              "enum": [
                "house",
                "other"
              ]
            },
            "description": "opening: What kind of building is it?"
          },
          {
            "name": "chg",
            "in": "query",
            "required": false,
            "schema": {
              "description": "opening: Will the work affect the structural support or create a new exit?",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "opening: Will the work affect the structural support or create a new exit?"
          },
          {
            "name": "plumb",
            "in": "query",
            "required": false,
            "schema": {
              "description": "kitchen: Will you add or move plumbing, such as relocating a sink, shower, tub, toilet or drain? | shed: Will it have plumbing?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "kitchen: Will you add or move plumbing, such as relocating a sink, shower, tub, toilet or drain? | shed: Will it have plumbing?"
          },
          {
            "name": "walls",
            "in": "query",
            "required": false,
            "schema": {
              "description": "kitchen: Will you add or remove any walls or change any openings?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "kitchen: Will you add or remove any walls or change any openings?"
          },
          {
            "name": "scope",
            "in": "query",
            "required": false,
            "schema": {
              "description": "kitchen: Is the work limited to replacing cabinets, counters, finishes and fixtures in the same locations?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "kitchen: Is the work limited to replacing cabinets, counters, finishes and fixtures in the same locations?"
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "description": "shed: What is the gross floor area?",
              "type": "string",
              "enum": [
                "small",
                "exact",
                "big"
              ]
            },
            "description": "shed: What is the gross floor area?"
          },
          {
            "name": "pool",
            "in": "query",
            "required": false,
            "schema": {
              "description": "fence: Is the fence a swimming pool enclosure?",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "fence: Is the fence a swimming pool enclosure?"
          },
          {
            "name": "where",
            "in": "query",
            "required": false,
            "schema": {
              "description": "fence: Where will the fence be?",
              "type": "string",
              "enum": [
                "front",
                "other"
              ]
            },
            "description": "fence: Where will the fence be?"
          },
          {
            "name": "ht",
            "in": "query",
            "required": false,
            "schema": {
              "description": "fence: How tall will it be?",
              "type": "string",
              "enum": [
                "t12",
                "t20",
                "over"
              ]
            },
            "description": "fence: How tall will it be?"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/garden-suite-zoning-checker": {
      "get": {
        "operationId": "garden_suite_zoning_checker",
        "summary": "Garden suite zoning checker",
        "description": "Checks height, separation, floor area, setbacks and lot coverage of a garden suite against Toronto By-law 849-2025. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/garden-suite-zoning-checker?zone=yes&laneway=no&lot_area=400&lot_depth=40&lot_frontage=10&house_gfa=180&house_footprint=90&ancillary_footprint=40&suite_height=4&separation=5&suite_gfa=50&rear_setback=2&side_setback=1.5&one_storey=yes&rear_openings=no&side_openings=yes",
        "parameters": [
          {
            "name": "zone",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Property is in a residential zone (R, RD, RS, RT, RM)",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "Property is in a residential zone (R, RD, RS, RT, RM)"
          },
          {
            "name": "laneway",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Property abuts a public laneway",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Property abuts a public laneway"
          },
          {
            "name": "lot_area",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Lot area Unit: m2.",
              "type": "number"
            },
            "description": "Lot area"
          },
          {
            "name": "lot_depth",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Lot depth Unit: m.",
              "type": "number"
            },
            "description": "Lot depth"
          },
          {
            "name": "lot_frontage",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Lot frontage Unit: m.",
              "type": "number"
            },
            "description": "Lot frontage"
          },
          {
            "name": "house_gfa",
            "in": "query",
            "required": true,
            "schema": {
              "description": "House gross floor area, all floors Unit: m2.",
              "type": "number"
            },
            "description": "House gross floor area, all floors"
          },
          {
            "name": "house_footprint",
            "in": "query",
            "required": true,
            "schema": {
              "description": "House footprint Unit: m2.",
              "type": "number"
            },
            "description": "House footprint"
          },
          {
            "name": "ancillary_footprint",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Footprint of all ancillary buildings together, including the suite Unit: m2.",
              "type": "number"
            },
            "description": "Footprint of all ancillary buildings together, including the suite"
          },
          {
            "name": "suite_height",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Suite height from average grade Unit: m.",
              "type": "number"
            },
            "description": "Suite height from average grade"
          },
          {
            "name": "separation",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Distance from the main wall of the house Unit: m.",
              "type": "number"
            },
            "description": "Distance from the main wall of the house"
          },
          {
            "name": "suite_gfa",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Suite gross floor area, all floors including a basement Unit: m2.",
              "type": "number"
            },
            "description": "Suite gross floor area, all floors including a basement"
          },
          {
            "name": "rear_setback",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Rear yard setback Unit: m.",
              "type": "number"
            },
            "description": "Rear yard setback"
          },
          {
            "name": "side_setback",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Smallest side yard setback Unit: m.",
              "type": "number"
            },
            "description": "Smallest side yard setback"
          },
          {
            "name": "one_storey",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Suite is one storey",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Suite is one storey"
          },
          {
            "name": "rear_openings",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Rear lot line abuts a residential-zone lot and the rear wall has openings more than 4.0 m above grade",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Rear lot line abuts a residential-zone lot and the rear wall has openings more than 4.0 m above grade"
          },
          {
            "name": "side_openings",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Side wall facing a side lot line (not a street) has doors or windows",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Side wall facing a side lot line (not a street) has doors or windows"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/toronto-permit-review-time-calculator": {
      "get": {
        "operationId": "toronto_permit_review_time_calculator",
        "summary": "Toronto permit review time calculator",
        "description": "Gives the last day of the City of Toronto published review time for a complete building permit application, by review stream. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/toronto-permit-review-time-calculator?stream=house&date=2026-12-01&zoning_certificate=yes",
        "parameters": [
          {
            "name": "stream",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Review stream: house = House Stream (10 business days); small = Small Building Stream (15); large = Large and Complex, large building (20); complex = Large and Complex, complex building (30); express = Express Services (goal of 3)",
              "type": "string",
              "enum": [
                "house",
                "small",
                "large",
                "complex",
                "express"
              ]
            },
            "description": "Review stream: house = House Stream (10 business days); small = Small Building Stream (15); large = Large and Complex, large building (20); complex = Large and Complex, complex building (30); express = Express Services (goal of 3)"
          },
          {
            "name": "date",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Date the complete application is taken in Unit: YYYY-MM-DD.",
              "type": "string",
              "format": "date"
            },
            "description": "Date the complete application is taken in"
          },
          {
            "name": "zoning_certificate",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Application includes an issued Zoning Applicable Law Certificate and all fees paid",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "Application includes an issued Zoning Applicable Law Certificate and all fees paid"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/accessible-ramp-and-doorway-calculator": {
      "get": {
        "operationId": "accessible_ramp_and_doorway_calculator",
        "summary": "Accessible ramp and doorway calculator",
        "description": "Ramp length for a rise at the Ontario Building Code 1 in 12 gradient, a slope check, or a doorway clear width check, using Section 3.8. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/accessible-ramp-and-doorway-calculator?mode=len&units=mm&rise=600",
        "parameters": [
          {
            "name": "mode",
            "in": "query",
            "required": true,
            "schema": {
              "description": "len = ramp length needed for a rise (needs rise); slope = check an existing slope (needs rise and run); door = doorway clear width (needs width and door)",
              "type": "string",
              "enum": [
                "len",
                "slope",
                "door"
              ]
            },
            "description": "len = ramp length needed for a rise (needs rise); slope = check an existing slope (needs rise and run); door = doorway clear width (needs width and door)"
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of rise, run and width",
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units of rise, run and width"
          },
          {
            "name": "rise",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Total rise (modes len and slope) Unit: units.",
              "type": "number"
            },
            "description": "Total rise (modes len and slope)"
          },
          {
            "name": "run",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Horizontal run (mode slope) Unit: units.",
              "type": "number"
            },
            "description": "Horizontal run (mode slope)"
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Clear width with the door open (mode door) Unit: units.",
              "type": "number"
            },
            "description": "Clear width with the door open (mode door)"
          },
          {
            "name": "door",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Which doorway (mode door): path = barrier-free path of travel; suite-wide = bathroom or bedroom door in a suite served by a corridor 1,060 mm or wider; suite-narrow = same, corridor narrower than 1,060 mm",
              "type": "string",
              "enum": [
                "path",
                "suite-wide",
                "suite-narrow"
              ]
            },
            "description": "Which doorway (mode door): path = barrier-free path of travel; suite-wide = bathroom or bedroom door in a suite served by a corridor 1,060 mm or wider; suite-narrow = same, corridor narrower than 1,060 mm"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/bathroom-exhaust-fan-calculator": {
      "get": {
        "operationId": "bathroom_exhaust_fan_calculator",
        "summary": "Bathroom exhaust fan calculator",
        "description": "Minimum bathroom exhaust fan rating in CFM from room size, ceiling height and fixtures, using the Home Ventilating Institute guidance. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/bathroom-exhaust-fan-calculator?units=ft&length=8&width=10&height=8",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of length, width and height",
              "type": "string",
              "enum": [
                "ft",
                "m"
              ],
              "default": "ft"
            },
            "description": "Units of length, width and height"
          },
          {
            "name": "length",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Room length Unit: units.",
              "type": "number"
            },
            "description": "Room length"
          },
          {
            "name": "width",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Room width Unit: units.",
              "type": "number"
            },
            "description": "Room width"
          },
          {
            "name": "height",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Ceiling height Unit: units.",
              "type": "number"
            },
            "description": "Ceiling height"
          },
          {
            "name": "fixtures",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Comma separated fixtures in the room; needed only when the room is over 100 sq ft",
              "type": "string"
            },
            "description": "Comma separated fixtures in the room; needed only when the room is over 100 sq ft"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/basement-ceiling-height-and-egress-checker": {
      "get": {
        "operationId": "basement_ceiling_height_and_egress_checker",
        "summary": "Basement ceiling height and egress checker",
        "description": "Tests basement ceiling height, height under beams and ducts, and stair headroom against Ontario Building Code Part 9, for a house basement or a secondary suite. Window sizes are tested by the egress window size calculator. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/basement-ceiling-height-and-egress-checker?units=mm&type=suite&ceiling=2000&obstruction=1900&stair=1980",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of every height",
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units of every height"
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "description": "house = basement of a house without a secondary suite; suite = secondary suite",
              "type": "string",
              "enum": [
                "house",
                "suite"
              ]
            },
            "description": "house = basement of a house without a secondary suite; suite = secondary suite"
          },
          {
            "name": "ceiling",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Finished ceiling height over the main part of the space, floor to underside of the finished ceiling Unit: units.",
              "type": "number"
            },
            "description": "Finished ceiling height over the main part of the space, floor to underside of the finished ceiling"
          },
          {
            "name": "share",
            "in": "query",
            "required": false,
            "schema": {
              "description": "house only: percent of the basement floor area with a ceiling of 2,100 mm or more (default 100 when the ceiling is 2,100 mm or more, otherwise 0) Unit: %.",
              "type": "number"
            },
            "description": "house only: percent of the basement floor area with a ceiling of 2,100 mm or more (default 100 when the ceiling is 2,100 mm or more, otherwise 0)"
          },
          {
            "name": "obstruction",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Lowest clear height under a beam or duct Unit: units.",
              "type": "number"
            },
            "description": "Lowest clear height under a beam or duct"
          },
          {
            "name": "bedroom",
            "in": "query",
            "required": false,
            "schema": {
              "description": "house only: a bedroom is planned in the basement",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ],
              "default": "no"
            },
            "description": "house only: a bedroom is planned in the basement"
          },
          {
            "name": "bedroom_low",
            "in": "query",
            "required": false,
            "schema": {
              "description": "house with bedroom only: lowest ceiling in the bedroom Unit: units.",
              "type": "number"
            },
            "description": "house with bedroom only: lowest ceiling in the bedroom"
          },
          {
            "name": "bedroom_share",
            "in": "query",
            "required": false,
            "schema": {
              "description": "house with bedroom only: percent of the required bedroom floor area with a ceiling of 2,300 mm or more Unit: %.",
              "type": "number"
            },
            "description": "house with bedroom only: percent of the required bedroom floor area with a ceiling of 2,300 mm or more"
          },
          {
            "name": "stair",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Clear height over the basement stair, measured from the line through the tread nosings Unit: units.",
              "type": "number"
            },
            "description": "Clear height over the basement stair, measured from the line through the tread nosings"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/egress-window-size-calculator": {
      "get": {
        "operationId": "egress_window_size_calculator",
        "summary": "Egress window size calculator",
        "description": "Tests a bedroom escape window against Ontario Building Code Article 9.9.10.1: open area of at least 0.35 m2, no dimension under 380 mm, sill height and window well clearance. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/egress-window-size-calculator?units=mm&type=casement&width=600&height=700&floor=basement&well=yes&well_clearance=600",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of width, height, sill and clearance",
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units of width, height, sill and clearance"
          },
          {
            "name": "type",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Window type",
              "type": "string",
              "enum": [
                "casement",
                "awning",
                "single-hung",
                "double-hung",
                "sliding",
                "hopper",
                "other"
              ]
            },
            "description": "Window type"
          },
          {
            "name": "width",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Clear width of the unobstructed open portion with the window fully open Unit: units.",
              "type": "number"
            },
            "description": "Clear width of the unobstructed open portion with the window fully open"
          },
          {
            "name": "height",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Clear height of the unobstructed open portion with the window fully open Unit: units.",
              "type": "number"
            },
            "description": "Clear height of the unobstructed open portion with the window fully open"
          },
          {
            "name": "floor",
            "in": "query",
            "required": true,
            "schema": {
              "description": "basement = window in a basement area; above = any other floor",
              "type": "string",
              "enum": [
                "basement",
                "above"
              ]
            },
            "description": "basement = window in a basement area; above = any other floor"
          },
          {
            "name": "sill",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Sill height above the floor (tested only when floor is above) Unit: units.",
              "type": "number"
            },
            "description": "Sill height above the floor (tested only when floor is above)"
          },
          {
            "name": "well",
            "in": "query",
            "required": false,
            "schema": {
              "description": "The window opens into a window well",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ],
              "default": "no"
            },
            "description": "The window opens into a window well"
          },
          {
            "name": "well_clearance",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Clearance in front of the window inside the well Unit: units.",
              "type": "number"
            },
            "description": "Clearance in front of the window inside the well"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/second-suite-requirements-checklist": {
      "get": {
        "operationId": "second_suite_requirements_checklist",
        "summary": "Second suite requirements checklist",
        "description": "A checklist of Ontario Building Code, Planning Act, Fire Code and City of Toronto items to check before adding a secondary suite to a house, each with its section number. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/second-suite-requirements-checklist?building=detached&smaller=yes&units_now=1&location=basement&fuel=yes&parking=one&rental=yes",
        "parameters": [
          {
            "name": "building",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Existing building type",
              "type": "string",
              "enum": [
                "detached",
                "semi",
                "row",
                "other"
              ]
            },
            "description": "Existing building type"
          },
          {
            "name": "smaller",
            "in": "query",
            "required": true,
            "schema": {
              "description": "The new unit will be smaller than the main unit",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "The new unit will be smaller than the main unit"
          },
          {
            "name": "units_now",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Dwelling units in the house now",
              "type": "string",
              "enum": [
                "1",
                "2"
              ]
            },
            "description": "Dwelling units in the house now"
          },
          {
            "name": "location",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Where the suite will be",
              "type": "string",
              "enum": [
                "basement",
                "above",
                "addition"
              ]
            },
            "description": "Where the suite will be"
          },
          {
            "name": "fuel",
            "in": "query",
            "required": true,
            "schema": {
              "description": "A fuel-burning appliance, flue, fireplace or attached garage is in or next to the suite",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "A fuel-burning appliance, flue, fireplace or attached garage is in or next to the suite"
          },
          {
            "name": "parking",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Parking spaces available for the suite",
              "type": "string",
              "enum": [
                "none",
                "one",
                "more"
              ]
            },
            "description": "Parking spaces available for the suite"
          },
          {
            "name": "rental",
            "in": "query",
            "required": true,
            "schema": {
              "description": "The suite will be rented",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "The suite will be rented"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/deck-permit-and-guard-checker-toronto": {
      "get": {
        "operationId": "deck_permit_and_guard_checker_toronto",
        "summary": "Deck permit and guard checker for Toronto",
        "description": "Says whether a deck in Toronto needs a building permit, whether a guard is required, the minimum guard height, opening size and stair handrail rule, from the City of Toronto and Ontario Building Code Part 9. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/deck-permit-and-guard-checker-toronto?units=mm&height=900&attached=yes&roofed=no&exit=no&risers=4&guard_height=900&gap=90",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of height, guard height and gap",
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units of height, guard height and gap"
          },
          {
            "name": "height",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Height of the finished deck surface above the adjacent finished grade Unit: units.",
              "type": "number"
            },
            "description": "Height of the finished deck surface above the adjacent finished grade"
          },
          {
            "name": "attached",
            "in": "query",
            "required": true,
            "schema": {
              "description": "The deck is attached to the house",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "The deck is attached to the house"
          },
          {
            "name": "roofed",
            "in": "query",
            "required": true,
            "schema": {
              "description": "The deck has a roof",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ]
            },
            "description": "The deck has a roof"
          },
          {
            "name": "exit",
            "in": "query",
            "required": true,
            "schema": {
              "description": "The deck forms part of an exit required under the Building Code",
              "type": "string",
              "enum": [
                "yes",
                "no",
                "unsure"
              ]
            },
            "description": "The deck forms part of an exit required under the Building Code"
          },
          {
            "name": "risers",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Number of risers on the deck stairs (whole number)",
              "type": "number"
            },
            "description": "Number of risers on the deck stairs (whole number)"
          },
          {
            "name": "guard_height",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Planned guard height Unit: units.",
              "type": "number"
            },
            "description": "Planned guard height"
          },
          {
            "name": "gap",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Planned clear opening between pickets or balusters Unit: units.",
              "type": "number"
            },
            "description": "Planned clear opening between pickets or balusters"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/stair-calculator-ontario": {
      "get": {
        "operationId": "stair_calculator_ontario",
        "summary": "Stair calculator for Ontario",
        "description": "Gives the number of risers allowed for a total rise, the rise and run of each option, and tests headroom and width against Ontario Building Code Part 9 Section 9.8. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/stair-calculator-ontario?units=mm&type=private&rise=2600&run=3500&headroom=1980&width=900",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of rise, run, headroom and width",
              "type": "string",
              "enum": [
                "mm",
                "in"
              ],
              "default": "mm"
            },
            "description": "Units of rise, run, headroom and width"
          },
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "description": "private = stairs inside or outside a house or dwelling unit; public = public stairs in a residential building",
              "type": "string",
              "enum": [
                "private",
                "public"
              ],
              "default": "private"
            },
            "description": "private = stairs inside or outside a house or dwelling unit; public = public stairs in a residential building"
          },
          {
            "name": "rise",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Total rise from finished floor to finished floor Unit: units.",
              "type": "number"
            },
            "description": "Total rise from finished floor to finished floor"
          },
          {
            "name": "run",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Total horizontal run available Unit: units.",
              "type": "number"
            },
            "description": "Total horizontal run available"
          },
          {
            "name": "headroom",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Clear height over the stair Unit: units.",
              "type": "number"
            },
            "description": "Clear height over the stair"
          },
          {
            "name": "width",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Stair width Unit: units.",
              "type": "number"
            },
            "description": "Stair width"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/renovation-materials-calculator": {
      "get": {
        "operationId": "renovation_materials_calculator",
        "summary": "Paint, drywall and flooring calculator",
        "description": "How much paint, how many drywall sheets or how many boxes of flooring a rectangular room needs, with an adjustable waste allowance. Quantities only. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/renovation-materials-calculator?material=paint&units=ft&length=12&width=10&height=8&openings=40&coats=2&coverage=350",
        "parameters": [
          {
            "name": "material",
            "in": "query",
            "required": true,
            "schema": {
              "description": "What to calculate",
              "type": "string",
              "enum": [
                "paint",
                "drywall",
                "floor"
              ]
            },
            "description": "What to calculate"
          },
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "ft = feet, sq ft and gallons; m = metres, m2 and litres",
              "type": "string",
              "enum": [
                "ft",
                "m"
              ],
              "default": "ft"
            },
            "description": "ft = feet, sq ft and gallons; m = metres, m2 and litres"
          },
          {
            "name": "length",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Room length Unit: units.",
              "type": "number"
            },
            "description": "Room length"
          },
          {
            "name": "width",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Room width Unit: units.",
              "type": "number"
            },
            "description": "Room width"
          },
          {
            "name": "height",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Ceiling height (paint and drywall) Unit: units.",
              "type": "number"
            },
            "description": "Ceiling height (paint and drywall)"
          },
          {
            "name": "openings",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Doors and windows to subtract (paint and drywall) Unit: area in sq ft or m2.",
              "type": "number"
            },
            "description": "Doors and windows to subtract (paint and drywall)"
          },
          {
            "name": "ceiling",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Include the ceiling (paint and drywall)",
              "type": "string",
              "enum": [
                "yes",
                "no"
              ],
              "default": "no"
            },
            "description": "Include the ceiling (paint and drywall)"
          },
          {
            "name": "coats",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Number of coats (paint)",
              "type": "number"
            },
            "description": "Number of coats (paint)"
          },
          {
            "name": "coverage",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Coverage printed on the paint can (paint) Unit: sq ft per gallon or m2 per litre.",
              "type": "number"
            },
            "description": "Coverage printed on the paint can (paint)"
          },
          {
            "name": "sheet",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Drywall sheet length in feet, 4 ft wide (drywall)",
              "type": "string",
              "enum": [
                "8",
                "10",
                "12"
              ],
              "default": "8"
            },
            "description": "Drywall sheet length in feet, 4 ft wide (drywall)"
          },
          {
            "name": "box_coverage",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Coverage printed on one box of flooring (floor) Unit: sq ft or m2.",
              "type": "number"
            },
            "description": "Coverage printed on one box of flooring (floor)"
          },
          {
            "name": "waste",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Waste allowance in percent (drywall and floor) Unit: %.",
              "type": "number"
            },
            "description": "Waste allowance in percent (drywall and floor)"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/tools/addition-lot-coverage-calculator": {
      "get": {
        "operationId": "addition_lot_coverage_calculator",
        "summary": "Addition lot coverage calculator",
        "description": "Compares up to three home addition footprints with a lot: coverage per cent and the area left under a maximum coverage figure you enter. Arithmetic only, no zoning ruling. Preliminary planning only. Each answer names its source and links to the tool page and the free quote form. Example: https://andarehomes.com/api/tools/addition-lot-coverage-calculator?units=m2&lot_area=400&existing=90&limit=35&add1=30&add2=60",
        "parameters": [
          {
            "name": "units",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Units of every area",
              "type": "string",
              "enum": [
                "m2",
                "ft2"
              ],
              "default": "m2"
            },
            "description": "Units of every area"
          },
          {
            "name": "lot_area",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Lot area from your survey or zoning summary Unit: units.",
              "type": "number"
            },
            "description": "Lot area from your survey or zoning summary"
          },
          {
            "name": "existing",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Footprint of the buildings now counted toward coverage Unit: units.",
              "type": "number"
            },
            "description": "Footprint of the buildings now counted toward coverage"
          },
          {
            "name": "limit",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Maximum lot coverage for the property, in per cent, taken from its zoning summary Unit: per cent.",
              "type": "number"
            },
            "description": "Maximum lot coverage for the property, in per cent, taken from its zoning summary"
          },
          {
            "name": "add1",
            "in": "query",
            "required": true,
            "schema": {
              "description": "Footprint added by concept A Unit: units.",
              "type": "number"
            },
            "description": "Footprint added by concept A"
          },
          {
            "name": "add2",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Footprint added by concept B Unit: units.",
              "type": "number"
            },
            "description": "Footprint added by concept B"
          },
          {
            "name": "add3",
            "in": "query",
            "required": false,
            "schema": {
              "description": "Footprint added by concept C Unit: units.",
              "type": "number"
            },
            "description": "Footprint added by concept C"
          },
          {
            "name": "format",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json"
              ]
            },
            "description": "Use json for JSON; the default is plain text."
          }
        ],
        "responses": {
          "200": {
            "description": "The answer, with inputs, result, source and links",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              },
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "A parameter is missing or not valid; the body lists the accepted parameters and an example",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}