{"openapi":"3.1.0","info":{"title":"AgentMind public calculators","description":"Free Ontario real estate calculators from AgentMind (agentmind.ca): land transfer tax, closing costs, realtor commission, the HST new housing rebate and offer deadlines. Every response includes a quotable `summary`, a `calculator_url` with the same figures on agentmind.ca, and an `attribution`. Estimates, not legal, tax or mortgage advice.","version":"1.0.0","contact":{"name":"AgentMind","url":"https://agentmind.ca","email":"hello@agentmind.ca"}},"servers":[{"url":"https://api.agentmind.ca"}],"paths":{"/api/public/tools/land-transfer-tax":{"get":{"tags":["calculators"],"summary":"Ontario and Toronto land transfer tax, with first-time buyer rebates","operationId":"landTransferTax","parameters":[{"name":"price","in":"query","required":true,"schema":{"type":"number","maximum":50000000.0,"minimum":0.0,"description":"Purchase or sale price in Canadian dollars.","title":"Price"},"description":"Purchase or sale price in Canadian dollars."},{"name":"city","in":"query","required":false,"schema":{"enum":["toronto","ontario"],"type":"string","description":"'toronto' inside the City of Toronto (Ontario + municipal tax), 'ontario' anywhere else in Ontario.","default":"toronto","title":"City"},"description":"'toronto' inside the City of Toronto (Ontario + municipal tax), 'ontario' anywhere else in Ontario."},{"name":"first_time","in":"query","required":false,"schema":{"type":"boolean","description":"First-time home buyer (refund up to $4,000 Ontario and $4,475 Toronto).","default":false,"title":"First Time"},"description":"First-time home buyer (refund up to $4,000 Ontario and $4,475 Toronto)."},{"name":"property","in":"query","required":false,"schema":{"enum":["home","other"],"type":"string","description":"'home' = one or two single family residences; 'other' = commercial or three or more units (no 2.5% top rate).","default":"home","title":"Property"},"description":"'home' = one or two single family residences; 'other' = commercial or three or more units (no 2.5% top rate)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/tools/closing-costs":{"get":{"tags":["calculators"],"summary":"Ontario closing costs and the cash needed on closing","operationId":"closingCosts","parameters":[{"name":"price","in":"query","required":true,"schema":{"type":"number","maximum":50000000.0,"minimum":0.0,"description":"Purchase or sale price in Canadian dollars.","title":"Price"},"description":"Purchase or sale price in Canadian dollars."},{"name":"city","in":"query","required":false,"schema":{"enum":["toronto","ontario"],"type":"string","description":"'toronto' inside the City of Toronto (Ontario + municipal tax), 'ontario' anywhere else in Ontario.","default":"toronto","title":"City"},"description":"'toronto' inside the City of Toronto (Ontario + municipal tax), 'ontario' anywhere else in Ontario."},{"name":"first_time","in":"query","required":false,"schema":{"type":"boolean","description":"First-time home buyer (land transfer tax rebates).","default":false,"title":"First Time"},"description":"First-time home buyer (land transfer tax rebates)."},{"name":"down_payment_pct","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"description":"Down payment as a percent of the price. Omit for the legal minimum. A figure below the minimum is raised to it.","title":"Down Payment Pct"},"description":"Down payment as a percent of the price. Omit for the legal minimum. A figure below the minimum is raised to it."},{"name":"lawyer","in":"query","required":false,"schema":{"type":"number","maximum":100000.0,"minimum":0.0,"description":"Estimate: legal fees, disbursements and HST.","default":2200,"title":"Lawyer"},"description":"Estimate: legal fees, disbursements and HST."},{"name":"title_insurance","in":"query","required":false,"schema":{"type":"number","maximum":100000.0,"minimum":0.0,"description":"Estimate: title insurance premium.","default":350,"title":"Title Insurance"},"description":"Estimate: title insurance premium."},{"name":"inspection","in":"query","required":false,"schema":{"type":"number","maximum":100000.0,"minimum":0.0,"description":"Estimate: home inspection.","default":500,"title":"Inspection"},"description":"Estimate: home inspection."},{"name":"adjustments","in":"query","required":false,"schema":{"type":"number","maximum":100000.0,"minimum":0.0,"description":"Estimate: property tax or condo fees the seller prepaid.","default":0,"title":"Adjustments"},"description":"Estimate: property tax or condo fees the seller prepaid."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/tools/commission":{"get":{"tags":["calculators"],"summary":"What an Ontario realtor keeps from a commission","operationId":"realtorCommission","parameters":[{"name":"price","in":"query","required":true,"schema":{"type":"number","maximum":50000000.0,"minimum":0.0,"description":"Sale price in Canadian dollars.","title":"Price"},"description":"Sale price in Canadian dollars."},{"name":"rate","in":"query","required":false,"schema":{"type":"number","maximum":10.0,"minimum":0.0,"description":"Commission rate on one side, in percent (on the part above $100,000 when rate_first_100k is set).","default":2.5,"title":"Rate"},"description":"Commission rate on one side, in percent (on the part above $100,000 when rate_first_100k is set)."},{"name":"rate_first_100k","in":"query","required":false,"schema":{"anyOf":[{"type":"number","maximum":10.0,"minimum":0.0},{"type":"null"}],"description":"A different rate on the first $100,000, in percent. Omit for one rate.","title":"Rate First 100K"},"description":"A different rate on the first $100,000, in percent. Omit for one rate."},{"name":"split_keep_pct","in":"query","required":false,"schema":{"type":"number","maximum":100.0,"minimum":0.0,"description":"The agent's share of the brokerage split, in percent (70 = a 70/30 split).","default":70,"title":"Split Keep Pct"},"description":"The agent's share of the brokerage split, in percent (70 = a 70/30 split)."},{"name":"brokerage_fee","in":"query","required":false,"schema":{"type":"number","maximum":100000.0,"minimum":0.0,"description":"Brokerage fee per deal, in dollars.","default":0,"title":"Brokerage Fee"},"description":"Brokerage fee per deal, in dollars."},{"name":"referral_pct","in":"query","required":false,"schema":{"type":"number","maximum":100.0,"minimum":0.0,"description":"Referral fee, in percent of the side, paid before the split.","default":0,"title":"Referral Pct"},"description":"Referral fee, in percent of the side, paid before the split."},{"name":"deals_per_year","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Deals like this a year, for the annual figure.","default":12,"title":"Deals Per Year"},"description":"Deals like this a year, for the annual figure."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/tools/hst-rebate":{"get":{"tags":["calculators"],"summary":"Ontario HST new housing rebate, incl. the 2026-2027 enhanced rebate","operationId":"hstNewHousingRebate","parameters":[{"name":"price","in":"query","required":true,"schema":{"type":"number","maximum":50000000.0,"minimum":0.0,"description":"Price of the new home, before HST.","title":"Price"},"description":"Price of the new home, before HST."},{"name":"use","in":"query","required":false,"schema":{"enum":["primary","rental"],"type":"string","description":"'primary' = the buyer's or a relation's home; 'rental' = bought to rent out.","default":"primary","title":"Use"},"description":"'primary' = the buyer's or a relation's home; 'rental' = bought to rent out."},{"name":"signed","in":"query","required":false,"schema":{"enum":["enhanced","fthb","before"],"type":"string","description":"When the agreement with the builder was signed: 'enhanced' = April 1, 2026 to March 31, 2027; 'fthb' = March 20, 2025 to March 31, 2026; 'before' = before March 20, 2025.","default":"enhanced","title":"Signed"},"description":"When the agreement with the builder was signed: 'enhanced' = April 1, 2026 to March 31, 2027; 'fthb' = March 20, 2025 to March 31, 2026; 'before' = before March 20, 2025."},{"name":"first_time","in":"query","required":false,"schema":{"type":"boolean","description":"First-time home buyer (matters for agreements signed March 20, 2025 to March 31, 2026).","default":false,"title":"First Time"},"description":"First-time home buyer (matters for agreements signed March 20, 2025 to March 31, 2026)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/tools/offer-deadline":{"get":{"tags":["calculators"],"summary":"Ontario condition or irrevocable deadline, counted every way practice counts it","operationId":"offerDeadline","parameters":[{"name":"accepted","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Date of acceptance (the last signature), YYYY-MM-DD, between 2026-01-01 and 2028-12-31.","title":"Accepted"},"description":"Date of acceptance (the last signature), YYYY-MM-DD, between 2026-01-01 and 2028-12-31."},{"name":"days","in":"query","required":true,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Length of the period in days, as the clause says.","title":"Days"},"description":"Length of the period in days, as the clause says."},{"name":"include_day_zero","in":"query","required":false,"schema":{"type":"boolean","description":"Count the day of acceptance as day one. The more common reading excludes it.","default":false,"title":"Include Day Zero"},"description":"Count the day of acceptance as day one. The more common reading excludes it."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/tools/reco-ad-check":{"get":{"tags":["calculators"],"summary":"Check real estate ad text against RECO advertising bulletins 5.1 to 5.4","operationId":"recoAdCheck","parameters":[{"name":"text","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":5000,"description":"The ad, post, sold announcement or bio, as published.","title":"Text"},"description":"The ad, post, sold announcement or bio, as published."},{"name":"role","in":"query","required":false,"schema":{"enum":["salesperson","broker","broker_of_record"],"type":"string","description":"The registration of the person advertising.","default":"salesperson","title":"Role"},"description":"The registration of the person advertising."},{"name":"crea_member","in":"query","required":false,"schema":{"type":"boolean","description":"CREA member in good standing (may use REALTOR®).","default":true,"title":"Crea Member"},"description":"CREA member in good standing (may use REALTOR®)."},{"name":"brokerage","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"Brokerage name exactly as registered, to check it appears.","default":"","title":"Brokerage"},"description":"Brokerage name exactly as registered, to check it appears."},{"name":"registered_name","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"The agent's registered name, to check it appears as registered.","default":"","title":"Registered Name"},"description":"The agent's registered name, to check it appears as registered."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/api/public/tools/":{"get":{"tags":["calculators"],"summary":"List the public calculators","operationId":"listCalculators","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","title":"Response Listcalculators"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ToolResult":{"properties":{"tool":{"type":"string","title":"Tool","description":"Which calculator answered."},"summary":{"type":"string","title":"Summary","description":"One plain-English sentence with the answer, safe to quote as is."},"inputs":{"type":"object","title":"Inputs","description":"The inputs used, after defaults and limits were applied."},"result":{"type":"object","title":"Result","description":"The figures, in whole Canadian dollars (dates as YYYY-MM-DD for offer-deadline)."},"calculator_url":{"type":"string","title":"Calculator Url","description":"The same calculation on agentmind.ca, with these inputs filled in."},"disclaimer":{"type":"string","title":"Disclaimer","description":"What the figure is and is not."},"rules_checked":{"type":"string","title":"Rules Checked","description":"When the rules behind the figure were last checked."},"attribution":{"type":"string","title":"Attribution","description":"Credit to show with the figure."}},"type":"object","required":["tool","summary","inputs","result","calculator_url","disclaimer","rules_checked","attribution"],"title":"ToolResult"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}