{"$id":"https://datosmcp.com/schema/query.json","title":"datosmcp query","type":"object","additionalProperties":false,"required":["indicators","geo"],"properties":{"indicators":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string"},"description":"Indicator ids from find_indicators, e.g. FIN.BRANCHES_PER_100K_ADULTS."},"geo":{"type":"object","additionalProperties":false,"required":["in"],"properties":{"in":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"string"},"description":"Country codes (GT, SV, HN, NI, CR, PA, BZ, DO), groups (CA7, SICA8, NTCA), or department/municipality codes (GT01, GT0101) from list_places."},"drill":{"enum":["department","municipality","district"],"description":"Expand each place to its units at this level: GT + drill=municipality → every municipio of Guatemala."},"rollup":{"type":"boolean","default":false,"description":"true: each group becomes one aggregated value. false: groups expand to their member countries."}}},"time":{"type":"object","additionalProperties":false,"description":"Omit for the latest available year.","properties":{"from":{"type":"integer","minimum":1960,"maximum":2100},"to":{"type":"integer","minimum":1960,"maximum":2100},"last":{"type":"integer","minimum":1,"maximum":30,"description":"The N most recent years with data."}}},"format":{"type":"array","uniqueItems":true,"items":{"enum":["rows","matrix","geojson"]},"description":"Output parts. Default ['rows','matrix']. 'geojson' adds a FeatureCollection of the places' boundaries with each year's value in properties (departments and municipalities; countries as points)."},"by":{"type":"array","uniqueItems":true,"items":{"enum":["indicator","geo","time"]},"description":"Matrix axes, outermost first. Defaults to every dimension that has more than one value."}}}