One area rolled up as of Y, and optionally its child areas.
Returns JSON. Limit class: api.
No parameters.
Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"data": {
"$ref": "#/$defs/Aggregates"
},
"meta": {
"$ref": "#/$defs/PublicMeta"
}
},
"required": [
"data",
"meta"
],
"additionalProperties": false,
"$defs": {
"Aggregates": {
"type": "object",
"properties": {
"area": {
"$ref": "#/$defs/Area"
},
"asOfYear": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"gidaOnly": {
"type": "boolean"
},
"coverage": {
"$ref": "#/$defs/Coverage"
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/IndicatorValue"
}
},
"otherPriorityNeeds": {
"type": "array",
"items": {
"$ref": "#/$defs/OtherPriorityNeed"
}
},
"children": {
"type": "array",
"items": {
"$ref": "#/$defs/AggregateChild"
}
}
},
"required": [
"area",
"asOfYear",
"gidaOnly",
"coverage",
"values",
"otherPriorityNeeds"
],
"additionalProperties": false
},
"Area": {
"type": "object",
"properties": {
"level": {
"type": "string",
"enum": [
"province",
"municipality",
"barangay",
"sitio"
]
},
"code": {
"description": "PSGC code; the sitio id for a sitio; null for the province.",
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
},
"path": {
"type": "array",
"items": {
"$ref": "#/$defs/AreaRef"
}
}
},
"required": [
"level",
"code",
"name",
"path"
],
"additionalProperties": false,
"description": "An area and its ancestors, province first."
},
"AreaRef": {
"type": "object",
"properties": {
"level": {
"type": "string",
"enum": [
"province",
"municipality",
"barangay",
"sitio"
]
},
"code": {
"description": "PSGC code; the sitio id for a sitio; null for the province.",
"type": [
"string",
"null"
]
},
"name": {
"type": "string"
}
},
"required": [
"level",
"code",
"name"
],
"additionalProperties": false
},
"Coverage": {
"type": "object",
"properties": {
"sitioCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sitiosReporting": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sitiosOlderThanY": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"dataYears": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
}
},
"required": [
"sitioCount",
"sitiosReporting",
"sitiosOlderThanY",
"dataYears"
],
"additionalProperties": false
},
"IndicatorValue": {
"anyOf": [
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "ok"
},
"value": {
"type": "number"
},
"n": {
"type": "number"
},
"d": {
"type": "number"
},
"sitios": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"status",
"value",
"n"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "ok"
},
"n": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
},
"d": {
"type": "number"
},
"sitios": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"status",
"n",
"d"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"noData",
"absent",
"notApplicable"
]
},
"value": {
"type": "null"
},
"n": {
"anyOf": [
{
"type": "number"
},
{
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"type": "number"
}
}
]
},
"d": {
"type": "number"
},
"sitios": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
}
},
"required": [
"status"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "updating"
},
"value": {
"type": "null"
}
},
"required": [
"status",
"value"
],
"additionalProperties": false
}
],
"description": "One shape at every level. `value` is a number only when status is `ok` (and absent on a distribution, whose `n` is a bucket map); `updating` carries no parts. A missing value is never 0."
},
"OtherPriorityNeed": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"priorityLevel": {
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"sitio": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
}
},
"required": [
"id",
"name"
],
"additionalProperties": false
}
},
"required": [
"text",
"priorityLevel",
"sitio"
],
"additionalProperties": false
},
"AggregateChild": {
"type": "object",
"properties": {
"area": {
"$ref": "#/$defs/AreaRef"
},
"dataYear": {
"description": "Sitios only.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"coverage": {
"$ref": "#/$defs/ChildCoverage"
},
"values": {
"type": "object",
"propertyNames": {
"type": "string"
},
"additionalProperties": {
"$ref": "#/$defs/IndicatorValue"
}
}
},
"required": [
"area",
"values"
],
"additionalProperties": false
},
"ChildCoverage": {
"description": "As `coverage`, without `dataYears`.",
"type": "object",
"properties": {
"sitioCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sitiosReporting": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"sitiosOlderThanY": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
}
},
"required": [
"sitioCount",
"sitiosReporting",
"sitiosOlderThanY"
],
"additionalProperties": false
},
"PublicMeta": {
"type": "object",
"properties": {
"apiVersion": {
"type": "number",
"const": 1
},
"dataVersion": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"dataChangedAt": {
"type": "string",
"description": "UTC timestamp, ISO 8601 with Z."
},
"indicatorVersion": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"license": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string"
}
},
"required": [
"name",
"url"
],
"additionalProperties": false
},
"attribution": {
"type": "string"
}
},
"required": [
"apiVersion",
"dataVersion",
"dataChangedAt",
"indicatorVersion",
"license",
"attribution"
],
"additionalProperties": false,
"description": "Provenance of every response."
}
}
}