{"openapi":"3.1.0","info":{"title":"Noisy Neighbour","summary":"Who to contact about neighbourhood noise in Australia.","description":"The check behind noisyneighbour.au as JSON: the next question, or the answer. Same data and same logic as the website, so what it says matches the pages. General information, not legal advice. Every claim has a `source` (official page, date checked, and `verify: true` if it isn't confirmed yet) unless it's plain advice. Ids, names and links to our own pages are labels, not claims, and carry none. Fields with no value are left out. See /llms.txt for the answers each state accepts.","version":"1"},"paths":{"/states":{"get":{"summary":"The states and territories we cover","operationId":"api_states_states_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/StateRef"},"type":"array","title":"Response Api States States Get"}}}}}}},"/{code}":{"get":{"summary":"A state's questions, kinds of noise and councils","operationId":"api_state__code__get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","description":"The state's code, as listed by `GET /api/states`.","enum":["nsw","vic","qld","wa","sa"],"examples":["nsw"],"title":"Code"},"description":"The state's code, as listed by `GET /api/states`."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StateOut"}}}},"404":{"description":"No such state. `GET /api/states` lists the ones we cover."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/{code}/check":{"get":{"summary":"The next question, or the answer","description":"Pass any answers so far as query parameters: `noise`, `freq`, `when`, `home`, `council` (or `postcode`). Each state's `GET /api/{code}` lists the ids it accepts. With a question still to answer you get `status: question` and a link for each option; otherwise `status: answer`. Answers that can't change the result are left out of `answers` and named in `ignored`.","operationId":"api_check__code__check_get","parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","description":"The state's code, as listed by `GET /api/states`.","enum":["nsw","vic","qld","wa","sa"],"examples":["nsw"],"title":"Code"},"description":"The state's code, as listed by `GET /api/states`."},{"name":"noise","in":"query","required":false,"schema":{"type":"string"},"description":"The kind of noise. The ids are different in each state: see `noise_types` in `GET /api/{code}`.","example":"dog-barking"},{"name":"freq","in":"query","required":false,"schema":{"type":"string","enum":["now","ongoing","once"]},"description":"How often it happens. `now` means it's happening right now: the answer uses the clock in the state's time zone. Only asked for some kinds of noise; see each noise type's `asks`.","example":"now"},{"name":"when","in":"query","required":false,"schema":{"type":"string","enum":["early","day","evening","night"]},"description":"When it happens: early morning, day, evening or night.","example":"night"},{"name":"home","in":"query","required":false,"schema":{"type":"string","enum":["house","strata"]},"description":"Whether you live in a house or in a strata (apartment) building.","example":"strata"},{"name":"council","in":"query","required":false,"schema":{"type":"string"},"description":"Your council's id, or `other`. The ids are in `councils` in `GET /api/{code}`.","example":"other"},{"name":"postcode","in":"query","required":false,"schema":{"type":"string"},"description":"A four-digit postcode, instead of `council`. Where it matches one council we cover, that council is used.","example":"2000"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Check"}}}},"404":{"description":"No such state. `GET /api/states` lists the ones we cover."},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AllowedNow":{"properties":{"label":{"type":"string","title":"Label"},"allowed":{"type":"boolean","title":"Allowed"},"changes_at":{"type":"string","format":"date-time","title":"Changes At"},"today":{"type":"string","title":"Today"},"conditions":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Conditions","default":[]},"source":{"$ref":"#/components/schemas/Source"}},"type":"object","required":["label","allowed","changes_at","today","source"],"title":"AllowedNow"},"AlsoContact":{"properties":{"headline":{"type":"string","title":"Headline"},"contact":{"$ref":"#/components/schemas/OtherContact"},"text":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Text"}},"type":"object","required":["headline","contact","text"],"title":"AlsoContact"},"Answer":{"properties":{"noise":{"type":"string","title":"Noise"},"noise_label":{"type":"string","title":"Noise Label"},"headline":{"type":"string","title":"Headline"},"outcome":{"type":"string","enum":["contact","allowed_now"],"title":"Outcome"},"contact":{"anyOf":[{"$ref":"#/components/schemas/Contact"},{"type":"null"}]},"why":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Why"},"evidence":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Evidence","default":[]},"council_notes":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Council Notes","default":[]},"also_contact":{"items":{"$ref":"#/components/schemas/AlsoContact"},"type":"array","title":"Also Contact","default":[]},"also_tell":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Also Tell","default":[]},"addenda":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Addenda","default":[]},"likely_outside_allowed_hours":{"type":"boolean","title":"Likely Outside Allowed Hours","default":false},"allowed_now":{"items":{"$ref":"#/components/schemas/AllowedNow"},"type":"array","title":"Allowed Now","default":[]},"next_steps":{"items":{"$ref":"#/components/schemas/Claim"},"type":"array","title":"Next Steps"},"escalation":{"items":{"$ref":"#/components/schemas/Escalation"},"type":"array","title":"Escalation","default":[]},"next_contacts":{"items":{"$ref":"#/components/schemas/OtherContact"},"type":"array","title":"Next Contacts","default":[]}},"type":"object","required":["noise","noise_label","headline","outcome","why","next_steps"],"title":"Answer"},"Answered":{"properties":{"question":{"type":"string","title":"Question"},"answer":{"type":"string","title":"Answer"},"label":{"type":"string","title":"Label"}},"type":"object","required":["question","answer","label"],"title":"Answered"},"Check":{"properties":{"status":{"type":"string","enum":["question","answer"],"title":"Status"},"state":{"type":"string","title":"State"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"answers":{"items":{"$ref":"#/components/schemas/Answered"},"type":"array","title":"Answers"},"ignored":{"items":{"type":"string"},"type":"array","title":"Ignored","default":[]},"url":{"type":"string","title":"Url"},"markdown_url":{"type":"string","title":"Markdown Url"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"question":{"anyOf":[{"$ref":"#/components/schemas/QuestionOut"},{"type":"null"}]},"answer":{"anyOf":[{"$ref":"#/components/schemas/Answer"},{"type":"null"}]}},"type":"object","required":["status","state","checked_at","answers","url","markdown_url"],"title":"Check"},"Claim":{"properties":{"text":{"type":"string","title":"Text"},"source":{"anyOf":[{"$ref":"#/components/schemas/Source"},{"type":"null"}]}},"type":"object","required":["text"],"title":"Claim","description":"A sentence of advice (source is null) or a claim from an official page (source says where)."},"Contact":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"short_name":{"type":"string","title":"Short Name"},"phone":{"anyOf":[{"$ref":"#/components/schemas/Phone"},{"type":"null"}]},"after_hours":{"anyOf":[{"$ref":"#/components/schemas/Phone"},{"type":"null"}]},"hours":{"anyOf":[{"$ref":"#/components/schemas/Claim"},{"type":"null"}]},"report_online":{"anyOf":[{"$ref":"#/components/schemas/Link"},{"type":"null"}]},"links":{"items":{"$ref":"#/components/schemas/Link"},"type":"array","title":"Links","default":[]},"researched":{"type":"boolean","title":"Researched","default":true}},"type":"object","required":["id","name","short_name"],"title":"Contact","description":"Who to contact first, as the answer page shows them."},"CouncilOut":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","name","url"],"title":"CouncilOut"},"Escalation":{"properties":{"id":{"type":"string","title":"Id"},"title":{"type":"string","title":"Title"},"summary":{"type":"string","title":"Summary"},"url":{"type":"string","title":"Url"}},"type":"object","required":["id","title","summary","url"],"title":"Escalation"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"Link":{"properties":{"label":{"type":"string","title":"Label"},"url":{"type":"string","title":"Url"},"source":{"anyOf":[{"$ref":"#/components/schemas/Source"},{"type":"null"}]}},"type":"object","required":["label","url"],"title":"Link"},"NoiseTypeOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"asks":{"items":{"type":"string"},"type":"array","title":"Asks"},"check_url":{"type":"string","title":"Check Url"},"api_url":{"type":"string","title":"Api Url"},"rules_url":{"type":"string","title":"Rules Url"}},"type":"object","required":["id","label","asks","check_url","api_url","rules_url"],"title":"NoiseTypeOut"},"OptionDef":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"}},"type":"object","required":["id","label"],"title":"OptionDef"},"OptionOut":{"properties":{"id":{"type":"string","title":"Id"},"label":{"type":"string","title":"Label"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"url":{"type":"string","title":"Url"},"api_url":{"type":"string","title":"Api Url"}},"type":"object","required":["id","label","url","api_url"],"title":"OptionOut"},"OtherContact":{"properties":{"name":{"type":"string","title":"Name"},"phone":{"anyOf":[{"$ref":"#/components/schemas/Phone"},{"type":"null"}]},"handles":{"anyOf":[{"$ref":"#/components/schemas/Claim"},{"type":"null"}]}},"type":"object","required":["name"],"title":"OtherContact","description":"Someone else to try: police while it's happening, or where to go if the first contact doesn't work."},"Phone":{"properties":{"number":{"type":"string","title":"Number"},"tel":{"type":"string","title":"Tel"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"source":{"$ref":"#/components/schemas/Source"}},"type":"object","required":["number","tel","source"],"title":"Phone"},"QuestionDef":{"properties":{"id":{"type":"string","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"options":{"anyOf":[{"items":{"$ref":"#/components/schemas/OptionDef"},"type":"array"},{"type":"null"}],"title":"Options"},"options_from":{"anyOf":[{"type":"string","enum":["noise_types","councils"]},{"type":"null"}],"title":"Options From"}},"type":"object","required":["id","prompt"],"title":"QuestionDef"},"QuestionOut":{"properties":{"id":{"type":"string","title":"Id"},"prompt":{"type":"string","title":"Prompt"},"hint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Hint"},"options":{"items":{"$ref":"#/components/schemas/OptionOut"},"type":"array","title":"Options"}},"type":"object","required":["id","prompt","options"],"title":"QuestionOut"},"Source":{"properties":{"url":{"type":"string","title":"Url"},"checked":{"type":"string","format":"date","title":"Checked"},"verify":{"type":"boolean","title":"Verify","default":false},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note"}},"type":"object","required":["url","checked"],"title":"Source"},"StateOut":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"timezone":{"type":"string","title":"Timezone"},"url":{"type":"string","title":"Url"},"markdown_url":{"type":"string","title":"Markdown Url"},"api_url":{"type":"string","title":"Api Url"},"check_url":{"type":"string","title":"Check Url"},"questions":{"items":{"$ref":"#/components/schemas/QuestionDef"},"type":"array","title":"Questions"},"noise_types":{"items":{"$ref":"#/components/schemas/NoiseTypeOut"},"type":"array","title":"Noise Types"},"councils":{"items":{"$ref":"#/components/schemas/CouncilOut"},"type":"array","title":"Councils"}},"type":"object","required":["code","name","timezone","url","markdown_url","api_url","check_url","questions","noise_types","councils"],"title":"StateOut"},"StateRef":{"properties":{"code":{"type":"string","title":"Code"},"name":{"type":"string","title":"Name"},"url":{"type":"string","title":"Url"},"markdown_url":{"type":"string","title":"Markdown Url"},"api_url":{"type":"string","title":"Api Url"}},"type":"object","required":["code","name","url","markdown_url","api_url"],"title":"StateRef"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"servers":[{"url":"/api"}]}