{"openapi":"3.1.0","info":{"title":"Religious Liberty in the States","description":"Look up the Religious Liberty in the States index: state rankings, index scores, year-over-year trends, and the 20 legal safeguards that make up the index. Data spans 2022 onward; per-safeguard detail is available from 2024.","version":"1.1.0"},"servers":[{"url":"https://mcp.religiouslibertyinthestates.com"}],"paths":{"/v1/about":{"get":{"operationId":"about","summary":"Overview of the index: publisher, the years available, and the 20 safeguards measured.","parameters":[{"name":"year","in":"query","schema":{"type":"integer"},"description":"Index year (2022 onward). Defaults to the latest available year."}],"responses":{"200":{"description":"OK"}}}},"/v1/safeguards":{"get":{"operationId":"listSafeguards","summary":"List all 20 safeguards measured by the index, with their page URLs.","responses":{"200":{"description":"OK"}}}},"/v1/states":{"get":{"operationId":"rankStates","summary":"Full 50-state ranking by index score for a given year.","parameters":[{"name":"year","in":"query","schema":{"type":"integer"},"description":"Index year (2022 onward). Defaults to the latest available year."},{"name":"limit","in":"query","schema":{"type":"integer"},"description":"Return only the first N states."},{"name":"order","in":"query","schema":{"type":"string","enum":["asc","desc"]},"description":"asc = best-ranked first (default), desc = worst first."}],"responses":{"200":{"description":"OK"}}}},"/v1/states/{state}":{"get":{"operationId":"getState","summary":"Full profile for one state in a given year: rank, index score, and (2024 onward) its score on every safeguard.","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"},"description":"State name, e.g. Texas."},{"name":"year","in":"query","schema":{"type":"integer"},"description":"Index year (2022 onward). Defaults to the latest available year."}],"responses":{"200":{"description":"OK"}}}},"/v1/trend/{state}":{"get":{"operationId":"stateTrend","summary":"One state's rank and index score across every available year, for year-over-year trends.","parameters":[{"name":"state","in":"path","required":true,"schema":{"type":"string"},"description":"State name, e.g. Texas."}],"responses":{"200":{"description":"OK"}}}},"/v1/compare":{"get":{"operationId":"compareStates","summary":"Compare two or more states side by side for a given year.","parameters":[{"name":"states","in":"query","required":true,"schema":{"type":"string"},"description":"Comma-separated state names, e.g. 'Texas,New York'."},{"name":"year","in":"query","schema":{"type":"integer"},"description":"Index year (2022 onward). Defaults to the latest available year."}],"responses":{"200":{"description":"OK"}}}},"/v1/safeguards/{safeguard}":{"get":{"operationId":"getSafeguard","summary":"Summary for one safeguard in a given year: national average and the top/bottom states (2024 onward).","parameters":[{"name":"safeguard","in":"path","required":true,"schema":{"type":"string"},"description":"Safeguard name, e.g. 'Religious Freedom Restoration Act'."},{"name":"year","in":"query","schema":{"type":"integer"},"description":"Index year (2022 onward). Defaults to the latest available year."}],"responses":{"200":{"description":"OK"}}}},"/v1/safeguards/{safeguard}/states":{"get":{"operationId":"statesBySafeguard","summary":"How all 50 states score on one safeguard in a given year, ranked (2024 onward).","parameters":[{"name":"safeguard","in":"path","required":true,"schema":{"type":"string"},"description":"Safeguard name, e.g. 'Religious Freedom Restoration Act'."},{"name":"year","in":"query","schema":{"type":"integer"},"description":"Index year (2022 onward). Defaults to the latest available year."}],"responses":{"200":{"description":"OK"}}}}}}