{"openapi":"3.1.0","info":{"title":"The State of Montana data API","version":"2026.1","description":"Read-only, no authentication. Weighted survey figures from The State of Montana 2026, a random-sample survey of Montana adults fielded by Montana State University for Last Best Future. Percentages are of everyone who answered each question (Unsure included); no respondent counts are returned.","contact":{"url":"https://thestateofmontana.org/contact"}},"servers":[{"url":"https://thestateofmontana.org"}],"paths":{"/data/findings.json":{"get":{"operationId":"getFindings","summary":"Every statewide figure in the report","responses":{"200":{"description":"The report","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}}}}}}},"/api/results":{"get":{"operationId":"getResultsForGroup","summary":"The report for a group of respondents","description":"Combine any filters. Groups matching fewer than 30 respondents return everyone's figures with suppressed: true.","parameters":[{"name":"party","in":"query","required":false,"description":"Party identification","schema":{"type":"string","enum":["republican","democrat","independent","other"]}},{"name":"ideology","in":"query","required":false,"description":"Ideology","schema":{"type":"string","enum":["extremely-liberal","liberal","slightly-liberal","moderate","slightly-conservative","conservative","extremely-conservative"]}},{"name":"education","in":"query","required":false,"description":"Highest level of school","schema":{"type":"string","enum":["less-than-hs","hs","associate","bachelors","graduate"]}},{"name":"ownRent","in":"query","required":false,"description":"Own or rent their home","schema":{"type":"string","enum":["own","rent","other"]}},{"name":"age","in":"query","required":false,"description":"Age bracket, or a range joined by \"..\": 18-34, 35-44, 45-54, 55-64, 65-74, 75-84, 85+","schema":{"type":"string"}},{"name":"yearsInMontana","in":"query","required":false,"description":"Years in Montana, or a range joined by \"..\": under 2, 2-5, 6-10, 11-20, 20+","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"md for Markdown instead of JSON","schema":{"type":"string","enum":["json","md"]}}],"responses":{"200":{"description":"The report for the group","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Report"}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"An unknown filter value","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"},"parameters":{"type":"object"}}}}}}}}},"/report.md":{"get":{"operationId":"getReportMarkdown","summary":"The full report as Markdown","responses":{"200":{"description":"Markdown","content":{"text/markdown":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"Result":{"type":"object","properties":{"label":{"type":"string"},"percent":{"type":"number"}},"required":["label","percent"]},"Report":{"type":"object","properties":{"title":{"type":"string"},"survey":{"type":"object"},"lens":{"type":["array","null"],"items":{"type":"string"}},"suppressed":{"type":"boolean"},"charts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"chapter":{"type":"string"},"headline":{"type":"string"},"question":{"type":"string"},"note":{"type":"string"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Result"}},"items":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"grade":{"type":"string","description":"Report card: the weighted median letter grade, Unsure excluded"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Result"}}}}},"table":{"type":"object"}}}},"bigIdeas":{"type":"array","items":{"type":"string"}}}}}}}