{"openapi":"3.1.0","info":{"title":"PhilFacilities API","description":"PhilFacilities is an independent, source-linked registry of Philippine facilities\nacross 16 categories (schools, health facilities, government offices, libraries,\npublic spaces, and others). This API exposes canonical facility records, original\nsource identifiers, dated domain observations, provenance, and measured quality\nsignals. Authoritative typed profiles exist mainly for schools and health facilities,\nwhere rights-cleared official sources exist; other categories are largely\ndiscovery-layer records served by the generic facility endpoints. Use\n`/v1/taxonomy` for the authoritative category list and `/v1/statistics#by_category`\nfor published counts, and `/v1/fields` to see how populated each field is.\n\n**Read the fields carefully.** `updated_at` is when PhilFacilities changed its canonical\nrecord, not when an agency updated a source. Source publication dates, reference periods,\nretrieval times, and processing times are separate fields on every source record.\n\nNo authentication is required for the public read endpoints in this release. Only\nrecords linked to a rights-cleared, publication-approved source release are exposed;\nrestricted, internal-only, quarantined, and blocked source records are excluded. Any\nremaining synthetic demonstration records are labelled with `is_synthetic: true` and\nmust not be treated as official government records.","contact":{"name":"PhilFacilities","url":"https://github.com/philfacilities"},"license":{"name":"Apache-2.0 (code only; data rights vary by source)"},"version":"0.1.0"},"paths":{"/v1/facilities":{"get":{"tags":["facilities"],"summary":"Search and list facilities","operationId":"list_facilities_v1_facilities_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"facility_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"description":"Alias for `type`; both are accepted and equivalent.","title":"Facility Type"},"description":"Alias for `type`; both are accepted and equivalent."},{"name":"subtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Subtype"}},{"name":"inclusion_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"type":"string"},{"type":"null"}],"title":"Inclusion Class"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"enum":["government","private","unknown"],"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"ownership_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Ownership Type"}},{"name":"operator_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Operator Type"}},{"name":"public_access_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Public Access Class"}},{"name":"facility_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"type":"string"},{"type":"null"}],"title":"Facility Kind"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Municipality Code"}},{"name":"barangay_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Barangay Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Source"}},{"name":"has_coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Coordinates"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"Start of the source-release reference period (inclusive).","title":"Reference Period Start"},"description":"Start of the source-release reference period (inclusive)."},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"description":"End of the source-release reference period (inclusive).","title":"Reference Period End"},"description":"End of the source-release reference period (inclusive)."},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"total","in":"query","required":false,"schema":{"type":"boolean","description":"Set false to skip the count(*) query.","default":true,"title":"Total"},"description":"Set false to skip the count(*) query."},{"name":"view","in":"query","required":false,"schema":{"enum":["full","compact"],"type":"string","description":"compact returns twelve-key cards instead of full summaries.","default":"full","title":"View"},"description":"compact returns twelve-key cards instead of full summaries."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/facilities/within":{"get":{"tags":["facilities"],"summary":"Facilities inside a bbox","operationId":"facilities_within_v1_facilities_within_get","parameters":[{"name":"bbox","in":"query","required":true,"schema":{"type":"string","description":"min_lon,min_lat,max_lon,max_lat","title":"Bbox"},"description":"min_lon,min_lat,max_lon,max_lat"},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"facility_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"description":"Alias for `type`; both are accepted and equivalent.","title":"Facility Type"},"description":"Alias for `type`; both are accepted and equivalent."},{"name":"subtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Subtype"}},{"name":"inclusion_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"type":"string"},{"type":"null"}],"title":"Inclusion Class"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"enum":["government","private","unknown"],"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"ownership_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Ownership Type"}},{"name":"operator_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Operator Type"}},{"name":"public_access_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Public Access Class"}},{"name":"facility_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"type":"string"},{"type":"null"}],"title":"Facility Kind"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Municipality Code"}},{"name":"barangay_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Barangay Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Source"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityMapResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/facilities/map":{"get":{"tags":["facilities"],"summary":"Clustered map points for a viewport","description":"Return viewport points or a bounded grid of count clusters.\n\nThe browser map cannot download hundreds of thousands of full facility\nsummaries. This endpoint asks only for the coordinates and labels it needs,\nand switches to server-side clusters once the viewport exceeds\n``max_map_points``. The viewport is never rejected for being large: wide\nzoom levels return a small number of large count circles instead of failing.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"facilities_map_v1_facilities_map_get","parameters":[{"name":"bbox","in":"query","required":true,"schema":{"type":"string","description":"min_lon,min_lat,max_lon,max_lat","title":"Bbox"},"description":"min_lon,min_lat,max_lon,max_lat"},{"name":"zoom","in":"query","required":false,"schema":{"type":"integer","maximum":22,"minimum":0,"description":"Client zoom level; tunes cluster density.","default":6,"title":"Zoom"},"description":"Client zoom level; tunes cluster density."},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"facility_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"description":"Alias for `type`; both are accepted and equivalent.","title":"Facility Type"},"description":"Alias for `type`; both are accepted and equivalent."},{"name":"subtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Subtype"}},{"name":"inclusion_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"type":"string"},{"type":"null"}],"title":"Inclusion Class"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"enum":["government","private","unknown"],"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"ownership_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Ownership Type"}},{"name":"operator_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Operator Type"}},{"name":"public_access_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Public Access Class"}},{"name":"facility_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"type":"string"},{"type":"null"}],"title":"Facility Kind"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Municipality Code"}},{"name":"barangay_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Barangay Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Source"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityMapPointsResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/facilities/nearby":{"get":{"tags":["facilities"],"summary":"Facilities near a point","operationId":"facilities_nearby_v1_facilities_nearby_get","parameters":[{"name":"lat","in":"query","required":true,"schema":{"type":"number","maximum":90,"minimum":-90,"title":"Lat"}},{"name":"lon","in":"query","required":true,"schema":{"type":"number","maximum":180,"minimum":-180,"title":"Lon"}},{"name":"radius_m","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":5000,"title":"Radius M"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"facility_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"description":"Alias for `type`; both are accepted and equivalent.","title":"Facility Type"},"description":"Alias for `type`; both are accepted and equivalent."},{"name":"subtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Subtype"}},{"name":"inclusion_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"type":"string"},{"type":"null"}],"title":"Inclusion Class"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"enum":["government","private","unknown"],"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"ownership_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Ownership Type"}},{"name":"operator_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Operator Type"}},{"name":"public_access_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Public Access Class"}},{"name":"facility_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"type":"string"},{"type":"null"}],"title":"Facility Kind"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Municipality Code"}},{"name":"barangay_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Barangay Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Source"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NearbyResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/facilities/{facility_id}":{"get":{"tags":["facilities"],"summary":"Facility detail","description":"view=full (default) returns the complete, byte-for-byte unchanged FacilityDetail. view=compact returns a twelve-key identity/location card built only from the summary projection, with `name` as an alias of `display_name`. Both views apply the same publication gate.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"get_facility_v1_facilities__facility_id__get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"view","in":"query","required":false,"schema":{"enum":["full","compact"],"type":"string","default":"full","title":"View"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityDetail"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/facilities/{facility_id}/sources":{"get":{"tags":["facilities"],"summary":"Source records behind a facility","operationId":"get_facility_sources_v1_facilities__facility_id__sources_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceEvidence"},"title":"Response Get Facility Sources V1 Facilities  Facility Id  Sources Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/facilities/{facility_id}/assertions":{"get":{"tags":["facilities"],"summary":"Field-level source claims behind a facility","operationId":"get_facility_assertions_v1_facilities__facility_id__assertions_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"attribute","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"description":"Only return claims for this canonical attribute.","title":"Attribute"},"description":"Only return claims for this canonical attribute."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":200,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AttributeAssertionOut"},"title":"Response Get Facility Assertions V1 Facilities  Facility Id  Assertions Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/facilities/{facility_id}/accreditations":{"get":{"tags":["facilities"],"summary":"Dated accreditation assertions","operationId":"get_facility_accreditations_v1_facilities__facility_id__accreditations_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccreditationOut"},"title":"Response Get Facility Accreditations V1 Facilities  Facility Id  Accreditations Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/facilities/{facility_id}/history":{"get":{"tags":["facilities"],"summary":"Canonical change timeline","operationId":"get_facility_history_v1_facilities__facility_id__history_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/schools":{"get":{"tags":["schools"],"summary":"List schools","operationId":"list_schools_v1_schools_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"has_coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Coordinates"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"total","in":"query","required":false,"schema":{"type":"boolean","description":"Set false to skip the count(*) query.","default":true,"title":"Total"},"description":"Set false to skip the count(*) query."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/schools/{facility_id}":{"get":{"tags":["schools"],"summary":"School detail","description":"The default `shape=wrapper` keeps the historical `{facility, resources}` keys. `shape=detail` opts in to the unified FacilityDetail shared with `GET /v1/facilities/{id}`. `view=compact` returns the twelve-key card, and `include=sources,assertions,domain` attaches only the requested sections to a compact card. `assertions` is capped at 200 rows; use the paginated `/v1/facilities/{facility_id}/assertions` endpoint for the complete claim set. School resource observations are currently empty in the working database until a public observation source is ingested.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"get_school_v1_schools__facility_id__get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"view","in":"query","required":false,"schema":{"enum":["full","compact"],"type":"string","default":"full","title":"View"}},{"name":"shape","in":"query","required":false,"schema":{"enum":["wrapper","detail"],"type":"string","default":"wrapper","title":"Shape"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated optional sections: sources, assertions, domain. Assertions are capped at 200; use /assertions for all claims.","title":"Include"},"description":"Comma-separated optional sections: sources, assertions, domain. Assertions are capped at 200; use /assertions for all claims."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/SchoolDetailResponse"},{"$ref":"#/components/schemas/FacilityDetail"},{"$ref":"#/components/schemas/FacilityCompact"},{"$ref":"#/components/schemas/FacilityCompactExtended"}],"title":"Response Get School V1 Schools  Facility Id  Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/schools/{facility_id}/resources":{"get":{"tags":["schools"],"summary":"School resource observations","description":"Currently empty in the working database: no rights-cleared public resource-observation source has been ingested. The endpoint is kept in /v1 for compatibility and will populate when such a source is published.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"get_school_resources_v1_schools__facility_id__resources_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"school_year","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Year"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ResourceObservationOut"},"title":"Response Get School Resources V1 Schools  Facility Id  Resources Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/health-facilities":{"get":{"tags":["health"],"summary":"List health facilities","operationId":"list_health_facilities_v1_health_facilities_get","parameters":[{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source"}},{"name":"has_coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Coordinates"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"total","in":"query","required":false,"schema":{"type":"boolean","description":"Set false to skip the count(*) query.","default":true,"title":"Total"},"description":"Set false to skip the count(*) query."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/health-facilities/{facility_id}":{"get":{"tags":["health"],"summary":"Health facility detail","description":"The default `shape=wrapper` keeps the historical `{facility, licenses, accreditations}` keys. `shape=detail` opts in to the unified FacilityDetail shared with `GET /v1/facilities/{id}` (which already includes gated accreditations). `view=compact` returns the twelve-key card, and `include=sources,assertions,domain` attaches only the requested sections. `assertions` is capped at 200 rows; use the paginated `/v1/facilities/{facility_id}/assertions` endpoint for the complete claim set. Licences stay on this endpoint and on `/licenses`; accreditation and licensure are not claims of current operation.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"get_health_facility_v1_health_facilities__facility_id__get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}},{"name":"view","in":"query","required":false,"schema":{"enum":["full","compact"],"type":"string","default":"full","title":"View"}},{"name":"shape","in":"query","required":false,"schema":{"enum":["wrapper","detail"],"type":"string","default":"wrapper","title":"Shape"}},{"name":"include","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated optional sections: sources, assertions, domain. Assertions are capped at 200; use /assertions for all claims.","title":"Include"},"description":"Comma-separated optional sections: sources, assertions, domain. Assertions are capped at 200; use /assertions for all claims."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/HealthDetailResponse"},{"$ref":"#/components/schemas/FacilityDetail"},{"$ref":"#/components/schemas/FacilityCompact"},{"$ref":"#/components/schemas/FacilityCompactExtended"}],"title":"Response Get Health Facility V1 Health Facilities  Facility Id  Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/health-facilities/{facility_id}/licenses":{"get":{"tags":["health"],"summary":"Health facility licenses","operationId":"get_health_licenses_v1_health_facilities__facility_id__licenses_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/LicenseOut"},"title":"Response Get Health Licenses V1 Health Facilities  Facility Id  Licenses Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/health-facilities/{facility_id}/accreditations":{"get":{"tags":["health"],"summary":"Health facility accreditations","operationId":"get_health_accreditations_v1_health_facilities__facility_id__accreditations_get","parameters":[{"name":"facility_id","in":"path","required":true,"schema":{"type":"string","title":"Facility Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AccreditationOut"},"title":"Response Get Health Accreditations V1 Health Facilities  Facility Id  Accreditations Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/accreditations":{"get":{"tags":["health"],"summary":"List health accreditations","operationId":"list_accreditations_v1_accreditations_get","parameters":[{"name":"facility_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Id"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"provider_category","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider Category"}},{"name":"authority","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authority"}},{"name":"sector_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector Code"}},{"name":"source_status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Status"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality Code"}},{"name":"valid_on","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid On"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":20,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccreditationListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/geographies":{"get":{"tags":["geography"],"summary":"PSGC administrative units","operationId":"list_geographies_v1_geographies_get","parameters":[{"name":"release","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"PSGC release label","title":"Release"},"description":"PSGC release label"},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"region, province, municipality, barangay","title":"Level"},"description":"region, province, municipality, barangay"},{"name":"parent","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Parent PSGC code","title":"Parent"},"description":"Parent PSGC code"},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/AdministrativeUnitOut"},"title":"Response List Geographies V1 Geographies Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/geographies/{psgc_code}":{"get":{"tags":["geography"],"summary":"One PSGC administrative unit","operationId":"get_geography_v1_geographies__psgc_code__get","parameters":[{"name":"psgc_code","in":"path","required":true,"schema":{"type":"string","title":"Psgc Code"}},{"name":"release","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Release"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdministrativeUnitOut"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/geographies/{psgc_code}/facilities":{"get":{"tags":["geography"],"summary":"Facilities in a PSGC area","operationId":"get_geography_facilities_v1_geographies__psgc_code__facilities_get","parameters":[{"name":"psgc_code","in":"path","required":true,"schema":{"type":"string","title":"Psgc Code"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"default":20,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}},{"name":"total","in":"query","required":false,"schema":{"type":"boolean","description":"Set false to skip the count(*) query.","default":true,"title":"Total"},"description":"Set false to skip the count(*) query."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FacilityListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/geography-releases":{"get":{"tags":["geography"],"summary":"PSGC release history","operationId":"list_geography_releases_v1_geography_releases_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/GeographyReleaseOut"},"type":"array","title":"Response List Geography Releases V1 Geography Releases Get"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/geography-crosswalk":{"get":{"tags":["geography"],"summary":"Code changes between two PSGC releases","operationId":"get_geography_crosswalk_v1_geography_crosswalk_get","parameters":[{"name":"from_release","in":"query","required":true,"schema":{"type":"string","title":"From Release"}},{"name":"to_release","in":"query","required":true,"schema":{"type":"string","title":"To Release"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/GeographyCrosswalkOut"},"title":"Response Get Geography Crosswalk V1 Geography Crosswalk Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/population":{"get":{"tags":["statistics"],"summary":"Approved 2024 Census population observations","operationId":"population_v1_population_get","parameters":[{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"description":"Exact PSGC code, e.g. 1300000000.","title":"Psgc"},"description":"Exact PSGC code, e.g. 1300000000."},{"name":"level","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"description":"region, province_or_huc, municipality, barangay.","title":"Level"},"description":"region, province_or_huc, municipality, barangay."},{"name":"indicator","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}],"description":"Indicator code or exact label.","title":"Indicator"},"description":"Indicator code or exact label."},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}],"description":"Search the source geographic name.","title":"Q"},"description":"Search the source geographic name."},{"name":"release_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Release Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":100000,"minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PopulationListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/sources":{"get":{"tags":["sources"],"summary":"Dataset and source catalogue","operationId":"list_sources_v1_sources_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/DatasetOut"},"type":"array","title":"Response List Sources V1 Sources Get"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/sources/{source_id}":{"get":{"tags":["sources"],"summary":"One dataset","operationId":"get_source_v1_sources__source_id__get","parameters":[{"name":"source_id","in":"path","required":true,"schema":{"type":"string","title":"Source Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetOut"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/source-checks":{"get":{"tags":["sources"],"summary":"Append-only source monitoring checks","operationId":"list_source_checks_v1_source_checks_get","parameters":[{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/SourceCheckOut"},"title":"Response List Source Checks V1 Source Checks Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/monitoring":{"get":{"tags":["sources"],"summary":"Source monitoring dashboard","operationId":"monitoring_v1_monitoring_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"$ref":"#/components/schemas/SourceMonitoringOut"},"type":"array","title":"Response Monitoring V1 Monitoring Get"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/source-releases":{"get":{"tags":["sources"],"summary":"Source releases","operationId":"list_source_releases_v1_source_releases_get","parameters":[{"name":"dataset","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/ReleaseOut"},"title":"Response List Source Releases V1 Source Releases Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/quality/summary":{"get":{"tags":["sources"],"summary":"Quality overview","operationId":"quality_summary_v1_quality_summary_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QualitySummary"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/quality/issues":{"get":{"tags":["sources"],"summary":"Open data quality issues","operationId":"quality_issues_v1_quality_issues_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","default":"open","title":"Status"}},{"name":"severity","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Severity"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/QualityIssueOut"},"title":"Response Quality Issues V1 Quality Issues Get"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/quality/match-candidates":{"get":{"tags":["sources"],"summary":"Deterministic identity-match review queue","operationId":"list_match_candidates_v1_quality_match_candidates_get","parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchCandidateListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/quality/match-candidates/{candidate_id}":{"get":{"tags":["sources"],"summary":"One identity-match candidate","operationId":"get_match_candidate_v1_quality_match_candidates__candidate_id__get","parameters":[{"name":"candidate_id","in":"path","required":true,"schema":{"type":"string","title":"Candidate Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchCandidateOut"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/statistics":{"get":{"tags":["sources"],"summary":"Measured coverage statistics","operationId":"statistics_v1_statistics_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatisticsOut"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/coverage":{"get":{"tags":["sources"],"summary":"Registry coverage by class and source","operationId":"coverage_v1_coverage_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CoverageOut"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/changes":{"get":{"tags":["sources"],"summary":"Canonical change feed","operationId":"changes_v1_changes_get","parameters":[{"name":"since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Since"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"default":50,"title":"Limit"}},{"name":"cursor","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cursor"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChangeListResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/downloads/facilities.csv":{"get":{"tags":["sources"],"summary":"Bulk facility CSV","description":"Streams publication-approved facilities in stable display-name order. Accepts the same filters as GET /v1/facilities (including the `facility_type` alias for `type`) so every category has a path to a filtered bulk export. CSV injection neutralization and keyset pagination are unchanged.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"download_facilities_csv_v1_downloads_facilities_csv_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"facility_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"description":"Alias for `type`; both are additive and equivalent.","title":"Facility Type"},"description":"Alias for `type`; both are additive and equivalent."},{"name":"subtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Subtype"}},{"name":"inclusion_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"type":"string"},{"type":"null"}],"title":"Inclusion Class"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"enum":["government","private","unknown"],"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"ownership_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Ownership Type"}},{"name":"operator_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Operator Type"}},{"name":"public_access_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Public Access Class"}},{"name":"facility_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"type":"string"},{"type":"null"}],"title":"Facility Kind"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Municipality Code"}},{"name":"barangay_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Barangay Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Source"}},{"name":"has_coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Coordinates"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/downloads/schools.csv":{"get":{"tags":["sources"],"summary":"Bulk school CSV","operationId":"download_schools_csv_v1_downloads_schools_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/downloads/health-facilities.csv":{"get":{"tags":["sources"],"summary":"Bulk health facility CSV","operationId":"download_health_csv_v1_downloads_health_facilities_csv_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1/downloads/facilities.parquet":{"get":{"tags":["sources"],"summary":"Bulk facility Parquet","description":"Filtered Parquet export. Accepts the same filters as GET /v1/facilities and applies the same publication gate and CSV-free column set.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"download_facilities_parquet_v1_downloads_facilities_parquet_get","parameters":[{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"title":"Type"}},{"name":"facility_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"type":"string"},{"type":"null"}],"description":"Alias for `type`; both are additive and equivalent.","title":"Facility Type"},"description":"Alias for `type`; both are additive and equivalent."},{"name":"subtype","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}],"title":"Subtype"}},{"name":"inclusion_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"type":"string"},{"type":"null"}],"title":"Inclusion Class"}},{"name":"ownership","in":"query","required":false,"schema":{"anyOf":[{"enum":["government","private","unknown"],"type":"string"},{"type":"null"}],"title":"Ownership"}},{"name":"ownership_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Ownership Type"}},{"name":"operator_type","in":"query","required":false,"schema":{"anyOf":[{"enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Operator Type"}},{"name":"public_access_class","in":"query","required":false,"schema":{"anyOf":[{"enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"type":"string"},{"type":"null"}],"title":"Public Access Class"}},{"name":"facility_kind","in":"query","required":false,"schema":{"anyOf":[{"enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"type":"string"},{"type":"null"}],"title":"Facility Kind"}},{"name":"function","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":60},{"type":"null"}],"title":"Function"}},{"name":"q","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}],"title":"Q"}},{"name":"psgc","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Psgc"}},{"name":"region_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Region Code"}},{"name":"province_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Province Code"}},{"name":"municipality_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Municipality Code"}},{"name":"barangay_code","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}],"title":"Barangay Code"}},{"name":"source","in":"query","required":false,"schema":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}],"title":"Source"}},{"name":"has_coordinates","in":"query","required":false,"schema":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Has Coordinates"}},{"name":"location_precision","in":"query","required":false,"schema":{"anyOf":[{"enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"type":"string"},{"type":"null"}],"title":"Location Precision"}},{"name":"reference_period_start","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"}},{"name":"reference_period_end","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"}},{"name":"updated_since","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updated Since"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/taxonomy":{"get":{"tags":["taxonomy"],"summary":"Controlled vocabularies and display labels","description":"Return the controlled codes, labels, and category-to-subtype mapping.\n\nClients should use this reference instead of hardcoding a private copy of\nthe vocabulary. It is static for a given API release and safe to cache.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"get_taxonomy_v1_taxonomy_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaxonomyResponse"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/v1/fields":{"get":{"tags":["facilities"],"summary":"Public field coverage and null/empty semantics","description":"Reports how many public facilities have an established value for each canonical field. Every entry carries its own scope and denominator, and all counts use the same publication gate as GET /v1/facilities. Pass by_category=true to include per-category denominators. Counts are read from a materialized view refreshed after publication and cached for one hour; databases without that view compute the same figures on demand.\n\n**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records).","operationId":"get_field_coverage_v1_fields_get","parameters":[{"name":"by_category","in":"query","required":false,"schema":{"type":"boolean","description":"Include per-category populated/total denominators.","default":false,"title":"By Category"},"description":"Include per-category populated/total denominators."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FieldCoverageResponse"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}}}},"/healthz":{"get":{"tags":["system"],"summary":"Service health","operationId":"healthz_healthz_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}},"/v1":{"get":{"tags":["system"],"summary":"API index","operationId":"api_index_v1_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"400":{"description":"Invalid filter or request parameter.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"}}}},"404":{"description":"No publication-approved resource with that identifier.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"}}}},"422":{"description":"One or more query parameters are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"}}}},"429":{"description":"Too many requests. Retry after the current window.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"}}}},"500":{"description":"An unexpected error occurred.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorBody"},"example":{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}}}}},"description":"**Publication gate:** only rights-cleared, publication-approved records are returned. **Freshness:** `updated_at` is a PhilFacilities edit time, not an agency update time. **Coordinates:** WGS 84 and often approximate; read `location.precision` before presenting a point as a building. **Coverage:** `GET /v1/fields` reports how populated each field is (synthetic examples in the schemas are labelled and are not official records)."}}},"components":{"schemas":{"AccreditationListItem":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"authority":{"type":"string","title":"Authority"},"provider_category":{"type":"string","title":"Provider Category"},"benefit_package":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefit Package"},"accreditation_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accreditation Category"},"bed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Count"},"sector_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector Code"},"source_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Status"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"source_as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Source As Of"},"telephone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"street_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Address"},"municipality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality"},"page_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Reference"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"},"facility_id":{"type":"string","format":"uuid","title":"Facility Id"},"facility_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Slug"},"facility_name":{"type":"string","title":"Facility Name"},"facility_type":{"type":"string","enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"title":"Facility Type"},"is_synthetic":{"type":"boolean","title":"Is Synthetic","default":false}},"type":"object","required":["id","authority","provider_category","facility_id","facility_name","facility_type"],"title":"AccreditationListItem"},"AccreditationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/AccreditationListItem"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"}},"type":"object","required":["items","total","limit","offset"],"title":"AccreditationListResponse"},"AccreditationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"authority":{"type":"string","title":"Authority"},"provider_category":{"type":"string","title":"Provider Category"},"benefit_package":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Benefit Package"},"accreditation_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accreditation Category"},"bed_count":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Count"},"sector_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector Code"},"source_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Status"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"source_as_of":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Source As Of"},"telephone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Telephone"},"email":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Email"},"street_address":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Street Address"},"municipality":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality"},"page_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Page Reference"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","required":["id","authority","provider_category"],"title":"AccreditationOut"},"AdministrativeUnitOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"release_id":{"type":"string","format":"uuid","title":"Release Id"},"psgc_code":{"type":"string","title":"Psgc Code"},"name":{"type":"string","title":"Name"},"geographic_level":{"type":"string","title":"Geographic Level"},"parent_psgc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Psgc Code"},"correspondence_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correspondence Code"},"old_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Old Name"},"city_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City Class"},"income_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Income Classification"},"urban_rural":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Urban Rural"},"island_region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Island Region"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"}},"type":"object","required":["id","release_id","psgc_code","name","geographic_level"],"title":"AdministrativeUnitOut"},"AttributeAssertionOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"attribute":{"type":"string","title":"Attribute"},"source_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Field"},"raw_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Value"},"normalized_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Normalized Value"},"transformation_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transformation Version"},"review_status":{"type":"string","title":"Review Status"},"asserted_at":{"type":"string","format":"date-time","title":"Asserted At"},"source":{"$ref":"#/components/schemas/SourceEvidence"}},"type":"object","required":["id","attribute","review_status","asserted_at","source"],"title":"AttributeAssertionOut","description":"One source's claim about one canonical field."},"ChangeEventOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"facility_id":{"type":"string","format":"uuid","title":"Facility Id"},"change_type":{"type":"string","title":"Change Type"},"attribute_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribute Name"},"old_value":{"anyOf":[{},{"type":"null"}],"title":"Old Value"},"new_value":{"anyOf":[{},{"type":"null"}],"title":"New Value"},"changed_at":{"type":"string","format":"date-time","title":"Changed At"},"changed_by":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Changed By"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","required":["id","facility_id","change_type","changed_at"],"title":"ChangeEventOut"},"ChangeListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/ChangeEventOut"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["items"],"title":"ChangeListResponse"},"CompactGeographyOut":{"properties":{"psgc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc Code"},"region_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Name"},"province_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province Name"},"municipality_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality Name"}},"type":"object","title":"CompactGeographyOut","description":"Just the labels a card needs; the full hierarchy stays on detail."},"CompactLocationOut":{"properties":{"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"precision":{"type":"string","enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"title":"Precision","default":"unknown"},"address_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Text"},"psgc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc Code"}},"type":"object","title":"CompactLocationOut","description":"Location fields needed to render a card; full precision data stays on detail."},"ContactOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"contact_type":{"type":"string","enum":["phone","email","website","opening_hours","other"],"title":"Contact Type"},"value":{"type":"string","title":"Value"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"source_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Field"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"review_status":{"type":"string","title":"Review Status"}},"type":"object","required":["id","contact_type","value","review_status"],"title":"ContactOut"},"CoverageOut":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"registry_records":{"type":"integer","title":"Registry Records"},"published_records":{"type":"integer","title":"Published Records"},"by_inclusion_class":{"items":{"$ref":"#/components/schemas/CoverageRow"},"type":"array","title":"By Inclusion Class"},"by_category":{"items":{"$ref":"#/components/schemas/CoverageRow"},"type":"array","title":"By Category"},"by_subtype":{"items":{"$ref":"#/components/schemas/CoverageSubtypeRow"},"type":"array","title":"By Subtype"},"by_ownership_type":{"items":{"$ref":"#/components/schemas/CoverageRow"},"type":"array","title":"By Ownership Type"},"by_access_class":{"items":{"$ref":"#/components/schemas/CoverageRow"},"type":"array","title":"By Access Class"},"by_region":{"items":{"$ref":"#/components/schemas/CoverageRow"},"type":"array","title":"By Region"},"by_lgu_coverage":{"items":{"$ref":"#/components/schemas/LguCoverageRow"},"type":"array","title":"By Lgu Coverage"},"source_coverage":{"items":{"$ref":"#/components/schemas/SourceCoverageRow"},"type":"array","title":"Source Coverage"},"coverage_stale_after_days":{"type":"integer","title":"Coverage Stale After Days","default":365},"stale_source_count":{"type":"integer","title":"Stale Source Count","default":0},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"}},"type":"object","required":["as_of","registry_records","published_records","by_inclusion_class","by_category","by_ownership_type","by_access_class","by_region","source_coverage"],"title":"CoverageOut"},"CoverageRow":{"properties":{"key":{"type":"string","title":"Key"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"facility_count":{"type":"integer","title":"Facility Count"},"published_count":{"type":"integer","title":"Published Count"},"with_coordinates":{"type":"integer","title":"With Coordinates","default":0}},"type":"object","required":["key","facility_count","published_count"],"title":"CoverageRow"},"CoverageSubtypeRow":{"properties":{"category":{"type":"string","title":"Category"},"subtype":{"type":"string","title":"Subtype"},"label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Label"},"facility_count":{"type":"integer","title":"Facility Count"},"published_count":{"type":"integer","title":"Published Count"},"with_coordinates":{"type":"integer","title":"With Coordinates","default":0}},"type":"object","required":["category","subtype","facility_count","published_count"],"title":"CoverageSubtypeRow"},"DatasetOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agency":{"type":"string","title":"Agency"},"agency_code":{"type":"string","title":"Agency Code"},"slug":{"type":"string","title":"Slug"},"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"access_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Method"},"terms_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Terms Url"},"license_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Identifier"},"redistribution_status":{"type":"string","title":"Redistribution Status"},"rights_basis":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rights Basis"},"attribution_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Text"},"personal_data_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Personal Data Status"},"publication_status":{"type":"string","title":"Publication Status","default":"blocked"},"coverage_scope":{"anyOf":[{"type":"string","enum":["NATIONAL","NATIONAL_OFFICIAL_INVENTORY","NATIONAL_PARTIAL","REGIONAL","PARTICIPATING_LGUS","SELECTED_LGUS","SINGLE_LGU","DIRECTORY_SUBSET","DISCOVERY_LAYER","UNKNOWN_COVERAGE"]},{"type":"null"}],"title":"Coverage Scope"},"coverage_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Note"},"update_pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Update Pattern"},"schema_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Schema Version"},"is_public_source":{"type":"boolean","title":"Is Public Source"},"is_synthetic":{"type":"boolean","title":"Is Synthetic"},"publication_gate_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Publication Gate Status"},"latest_release":{"anyOf":[{"$ref":"#/components/schemas/LatestReleaseOut"},{"type":"null"}]},"latest_geography_release":{"anyOf":[{"$ref":"#/components/schemas/GeographyReleaseOut"},{"type":"null"}]}},"type":"object","required":["id","agency","agency_code","slug","name","redistribution_status","is_public_source","is_synthetic"],"title":"DatasetOut"},"FacilityCompact":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"facility_type":{"type":"string","enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"title":"Facility Type"},"facility_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Subtype"},"inclusion_class":{"type":"string","enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"title":"Inclusion Class"},"ownership":{"type":"string","enum":["government","private","unknown"],"title":"Ownership"},"location":{"$ref":"#/components/schemas/CompactLocationOut"},"geography":{"$ref":"#/components/schemas/CompactGeographyOut"},"source_refs":{"items":{"$ref":"#/components/schemas/SourceRefOut"},"type":"array","title":"Source Refs"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","name","display_name","facility_type","inclusion_class","ownership","location","geography","updated_at"],"title":"FacilityCompact","description":"Twelve-key identity and location view for cards and link resolution.\n\n``name`` is an alias of ``display_name`` shared with map points so clients\ncan render either surface without a field mapping. Constant fields, typed\nprofiles, detail-only collections and quality are intentionally omitted.","examples":[{"id":"00000000-0000-4000-8000-000000000001","name":"Synthetic Example Library","slug":"synthetic-example-library","display_name":"Synthetic Example Library","facility_type":"library","facility_subtype":null,"inclusion_class":"DISCOVERY_CANDIDATE","ownership":"unknown","location":{"latitude":14.6,"longitude":120.98,"precision":"map_geocoded","address_text":"1 Synthetic Road, Example City","psgc_code":"9901000001"},"geography":{"psgc_code":"9901000001","region_name":"Synthetic Region (demo)","province_name":"Synthetic Province (demo)","municipality_name":"Example City (demo)"},"source_refs":[{"agency_code":"SYN","dataset_slug":"synthetic-example-directory","source_record_id":"SYN-EXAMPLE-0001"}],"updated_at":"2026-11-21T09:00:00Z"}]},"FacilityCompactExtended":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"name":{"type":"string","title":"Name"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"facility_type":{"type":"string","enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"title":"Facility Type"},"facility_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Subtype"},"inclusion_class":{"type":"string","enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"title":"Inclusion Class"},"ownership":{"type":"string","enum":["government","private","unknown"],"title":"Ownership"},"location":{"$ref":"#/components/schemas/CompactLocationOut"},"geography":{"$ref":"#/components/schemas/CompactGeographyOut"},"source_refs":{"items":{"$ref":"#/components/schemas/SourceRefOut"},"type":"array","title":"Source Refs"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"school":{"anyOf":[{"$ref":"#/components/schemas/SchoolProfileOut"},{"type":"null"}]},"health":{"anyOf":[{"$ref":"#/components/schemas/HealthProfileOut"},{"type":"null"}]},"utility":{"anyOf":[{"$ref":"#/components/schemas/UtilityProfileOut"},{"type":"null"}]},"accreditations":{"anyOf":[{"items":{"$ref":"#/components/schemas/AccreditationOut"},"type":"array"},{"type":"null"}],"title":"Accreditations"},"licenses":{"anyOf":[{"items":{"$ref":"#/components/schemas/LicenseOut"},"type":"array"},{"type":"null"}],"title":"Licenses"},"resources":{"anyOf":[{"items":{"$ref":"#/components/schemas/ResourceObservationOut"},"type":"array"},{"type":"null"}],"title":"Resources"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/SourceEvidence"},"type":"array"},{"type":"null"}],"title":"Sources"},"assertions":{"anyOf":[{"items":{"$ref":"#/components/schemas/AttributeAssertionOut"},"type":"array"},{"type":"null"}],"title":"Assertions"}},"type":"object","required":["id","name","display_name","facility_type","inclusion_class","ownership","location","geography","updated_at"],"title":"FacilityCompactExtended","description":"Opt-in sections attached to a compact card via ``include=``.\n\nUnrequested sections are omitted by the response helper rather than\nrendered as null collections that could be mistaken for \"no published rows\nexist\". Base compact fields keep their nulls.","examples":[{"display_name":"Synthetic Example Library","facility_type":"library","geography":{"municipality_name":"Example City (demo)","province_name":"Synthetic Province (demo)","psgc_code":"9901000001","region_name":"Synthetic Region (demo)"},"id":"00000000-0000-4000-8000-000000000001","inclusion_class":"DISCOVERY_CANDIDATE","location":{"address_text":"1 Synthetic Road, Example City","latitude":14.6,"longitude":120.98,"precision":"map_geocoded","psgc_code":"9901000001"},"name":"Synthetic Example Library","ownership":"unknown","slug":"synthetic-example-library","source_refs":[{"agency_code":"SYN","dataset_slug":"synthetic-example-directory","source_record_id":"SYN-EXAMPLE-0001"}],"updated_at":"2026-11-21T09:00:00Z"}]},"FacilityDetail":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"facility_type":{"type":"string","enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"title":"Facility Type"},"facility_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Subtype"},"facility_kind":{"type":"string","enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"title":"Facility Kind","default":"facility"},"inclusion_class":{"type":"string","enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"title":"Inclusion Class"},"ownership":{"type":"string","enum":["government","private","unknown"],"title":"Ownership"},"ownership_type":{"type":"string","enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"title":"Ownership Type","default":"UNKNOWN"},"operator_type":{"type":"string","enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"title":"Operator Type","default":"UNKNOWN"},"public_access_class":{"type":"string","enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"title":"Public Access Class","default":"UNKNOWN"},"record_status":{"type":"string","enum":["active_in_registry","inactive_in_registry","unknown","under_review","merged"],"title":"Record Status"},"publication_status":{"type":"string","title":"Publication Status"},"is_synthetic":{"type":"boolean","title":"Is Synthetic","default":false},"functions":{"items":{"type":"string"},"type":"array","title":"Functions"},"location":{"$ref":"#/components/schemas/LocationOut"},"geography":{"$ref":"#/components/schemas/GeographyOut"},"source_count":{"type":"integer","title":"Source Count","default":0},"source_refs":{"items":{"$ref":"#/components/schemas/SourceRefOut"},"type":"array","title":"Source Refs"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"official_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Official Name"},"access_conditions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Conditions"},"school":{"anyOf":[{"$ref":"#/components/schemas/SchoolProfileOut"},{"type":"null"}]},"health":{"anyOf":[{"$ref":"#/components/schemas/HealthProfileOut"},{"type":"null"}]},"utility":{"anyOf":[{"$ref":"#/components/schemas/UtilityProfileOut"},{"type":"null"}]},"accreditations":{"items":{"$ref":"#/components/schemas/AccreditationOut"},"type":"array","title":"Accreditations"},"contacts":{"items":{"$ref":"#/components/schemas/ContactOut"},"type":"array","title":"Contacts"},"function_details":{"items":{"$ref":"#/components/schemas/FacilityFunctionOut"},"type":"array","title":"Function Details"},"services":{"items":{"$ref":"#/components/schemas/FacilityServiceOut"},"type":"array","title":"Services"},"roles":{"items":{"$ref":"#/components/schemas/FacilityRoleOut"},"type":"array","title":"Roles"},"relationships":{"items":{"$ref":"#/components/schemas/FacilityRelationshipOut"},"type":"array","title":"Relationships"},"sources":{"items":{"$ref":"#/components/schemas/SourceEvidence"},"type":"array","title":"Sources"},"quality":{"$ref":"#/components/schemas/FacilityQuality"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","display_name","facility_type","inclusion_class","ownership","record_status","publication_status","location","geography","updated_at","quality","created_at"],"title":"FacilityDetail","examples":[{"id":"00000000-0000-4000-8000-000000000001","slug":"synthetic-example-library","display_name":"Synthetic Example Library","facility_type":"library","facility_subtype":null,"facility_kind":"facility","inclusion_class":"DISCOVERY_CANDIDATE","ownership":"unknown","ownership_type":"UNKNOWN","operator_type":"UNKNOWN","public_access_class":"UNKNOWN","record_status":"active","publication_status":"public","is_synthetic":true,"functions":[],"location":{"latitude":14.6,"longitude":120.98,"precision":"map_geocoded","method":null,"address_text":"1 Synthetic Road, Example City","postal_code":null,"psgc_code":"9901000001","review_status":"source_supplied"},"geography":{"psgc_code":"9901000001","region_name":"Synthetic Region (demo)","province_name":"Synthetic Province (demo)","municipality_name":"Example City (demo)"},"source_count":1,"source_refs":[{"agency_code":"SYN","dataset_slug":"synthetic-example-directory","source_record_id":"SYN-EXAMPLE-0001"}],"updated_at":"2026-11-21T09:00:00Z","official_name":null,"access_conditions":null,"school":null,"health":null,"utility":null,"accreditations":[],"contacts":[],"function_details":[],"services":[],"roles":[],"relationships":[],"sources":[{"id":"00000000-0000-4000-8000-000000000002","agency":"Synthetic Agency (demo)","agency_code":"SYN","dataset":"Synthetic Example Directory (demo)","dataset_slug":"synthetic-example-directory","release_id":"00000000-0000-4000-8000-000000000003","release_label":"SYNTHETIC-DEMO-2026-11-21","source_record_id":"SYN-EXAMPLE-0001","source_record_uuid":"00000000-0000-4000-8000-000000000002","retrieved_at":"2026-11-21T09:00:00Z","match_method":"source_key","match_status":"single_source","match_confidence":1.0,"is_synthetic":true}],"quality":{"identity_status":"source_linked","location_precision":"map_geocoded","warnings":[{"code":"approximate_coordinate","severity":"info","message":"This point is geocoded, not a verified building location."}],"source_count":1},"created_at":"2026-11-21T09:00:00Z"}]},"FacilityFunctionOut":{"properties":{"function_code":{"type":"string","title":"Function Code"},"source_value":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Value"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"capacity_value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Capacity Value"},"capacity_unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Capacity Unit"},"designation_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Designation Status"}},"type":"object","required":["function_code"],"title":"FacilityFunctionOut"},"FacilityListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FacilitySummary"},"type":"array","title":"Items"},"next_cursor":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Next Cursor"},"has_more":{"type":"boolean","title":"Has More","default":false},"total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["items","limit"],"title":"FacilityListResponse"},"FacilityMapCluster":{"properties":{"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"},"count":{"type":"integer","title":"Count"},"label":{"type":"string","title":"Label"}},"type":"object","required":["latitude","longitude","count","label"],"title":"FacilityMapCluster"},"FacilityMapPoint":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"name":{"type":"string","title":"Name"},"facility_type":{"type":"string","enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"title":"Facility Type"},"inclusion_class":{"type":"string","enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"title":"Inclusion Class"},"precision":{"type":"string","enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"title":"Precision","default":"unknown"},"latitude":{"type":"number","title":"Latitude"},"longitude":{"type":"number","title":"Longitude"}},"type":"object","required":["id","name","facility_type","inclusion_class","latitude","longitude"],"title":"FacilityMapPoint","description":"Minimal map feature; deliberately excludes detail-only summary fields.","examples":[{"id":"00000000-0000-4000-8000-000000000001","slug":"synthetic-example-library","name":"Synthetic Example Library","facility_type":"library","inclusion_class":"DISCOVERY_CANDIDATE","precision":"map_geocoded","latitude":14.6,"longitude":120.98}]},"FacilityMapPointsResponse":{"properties":{"bbox":{"type":"string","title":"Bbox"},"zoom":{"type":"integer","title":"Zoom"},"total":{"type":"integer","title":"Total"},"mode":{"type":"string","enum":["points","clusters"],"title":"Mode"},"points":{"items":{"$ref":"#/components/schemas/FacilityMapPoint"},"type":"array","title":"Points"},"clusters":{"items":{"$ref":"#/components/schemas/FacilityMapCluster"},"type":"array","title":"Clusters"},"cell_deg":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Cell Deg"},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["bbox","zoom","total","mode"],"title":"FacilityMapPointsResponse"},"FacilityMapResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FacilitySummary"},"type":"array","title":"Items"},"limit":{"type":"integer","title":"Limit"},"truncated":{"type":"boolean","title":"Truncated","default":false},"bbox":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bbox"}},"type":"object","required":["items","limit"],"title":"FacilityMapResponse"},"FacilityQuality":{"properties":{"identity_status":{"type":"string","title":"Identity Status","default":"source_linked"},"location_precision":{"type":"string","enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"title":"Location Precision","default":"unknown"},"warnings":{"items":{"$ref":"#/components/schemas/QualityWarning"},"type":"array","title":"Warnings"},"source_count":{"type":"integer","title":"Source Count","default":0}},"type":"object","title":"FacilityQuality"},"FacilityRelationshipOut":{"properties":{"relationship_type":{"type":"string","title":"Relationship Type"},"related_facility_id":{"type":"string","format":"uuid","title":"Related Facility Id"},"related_facility_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Facility Name"},"related_facility_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Related Facility Slug"}},"type":"object","required":["relationship_type","related_facility_id"],"title":"FacilityRelationshipOut"},"FacilityRoleOut":{"properties":{"role_type":{"type":"string","title":"Role Type"},"entity_name":{"type":"string","title":"Entity Name"},"entity_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity Type"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["role_type","entity_name"],"title":"FacilityRoleOut"},"FacilityServiceOut":{"properties":{"service_code":{"type":"string","title":"Service Code"},"service_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Service Name"},"source_field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Field"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_to":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid To"}},"type":"object","required":["service_code"],"title":"FacilityServiceOut"},"FacilitySummary":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Slug"},"display_name":{"type":"string","title":"Display Name"},"facility_type":{"type":"string","enum":["school","health_facility","government_office","community_facility","emergency_facility","library","museum","social_welfare_facility","public_market","transport_facility","utility_facility","environmental_monitoring","public_space","cultural_facility","agricultural_facility","justice_facility","housing_service","other_qualifying_facility"],"title":"Facility Type"},"facility_subtype":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Subtype"},"facility_kind":{"type":"string","enum":["facility","site","building","facility_unit","infrastructure_asset","project"],"title":"Facility Kind","default":"facility"},"inclusion_class":{"type":"string","enum":["GOVERNMENT_FACILITY","PRIVATE_PUBLIC_SERVICE_PROVIDER","PUBLIC_ACCESS_VENUE","DISCOVERY_CANDIDATE"],"title":"Inclusion Class"},"ownership":{"type":"string","enum":["government","private","unknown"],"title":"Ownership"},"ownership_type":{"type":"string","enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"title":"Ownership Type","default":"UNKNOWN"},"operator_type":{"type":"string","enum":["NATIONAL_GOVERNMENT","LOCAL_GOVERNMENT","GOCC","PUBLIC_EDUCATIONAL_INSTITUTION","OTHER_PUBLIC_BODY","GOVERNMENT_UNSPECIFIED","PRIVATE_CORPORATE","PRIVATE_INDIVIDUAL_OR_PARTNERSHIP","NGO_NON_PROFIT","COOPERATIVE","RELIGIOUS_FAITH_BASED","PUBLIC_PRIVATE_JOINT","PRIVATE_UNSPECIFIED","UNKNOWN"],"title":"Operator Type","default":"UNKNOWN"},"public_access_class":{"type":"string","enum":["PUBLIC_FREE","PUBLIC_PAID_OR_CONDITIONAL","SERVICE_USERS_ONLY","APPOINTMENT_ONLY","MEMBERS_STUDENTS_ONLY","STAFF_ONLY","RESTRICTED","UNKNOWN"],"title":"Public Access Class","default":"UNKNOWN"},"record_status":{"type":"string","enum":["active_in_registry","inactive_in_registry","unknown","under_review","merged"],"title":"Record Status"},"publication_status":{"type":"string","title":"Publication Status"},"is_synthetic":{"type":"boolean","title":"Is Synthetic","default":false},"functions":{"items":{"type":"string"},"type":"array","title":"Functions"},"location":{"$ref":"#/components/schemas/LocationOut"},"geography":{"$ref":"#/components/schemas/GeographyOut"},"source_count":{"type":"integer","title":"Source Count","default":0},"source_refs":{"items":{"$ref":"#/components/schemas/SourceRefOut"},"type":"array","title":"Source Refs"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","display_name","facility_type","inclusion_class","ownership","record_status","publication_status","location","geography","updated_at"],"title":"FacilitySummary","examples":[{"id":"00000000-0000-4000-8000-000000000001","slug":"synthetic-example-library","display_name":"Synthetic Example Library","facility_type":"library","facility_subtype":null,"facility_kind":"facility","inclusion_class":"DISCOVERY_CANDIDATE","ownership":"unknown","ownership_type":"UNKNOWN","operator_type":"UNKNOWN","public_access_class":"UNKNOWN","record_status":"active","publication_status":"public","is_synthetic":true,"functions":[],"location":{"latitude":14.6,"longitude":120.98,"precision":"map_geocoded","method":null,"address_text":"1 Synthetic Road, Example City","postal_code":null,"psgc_code":"9901000001","review_status":"source_supplied"},"geography":{"psgc_code":"9901000001","region_name":"Synthetic Region (demo)","province_name":"Synthetic Province (demo)","municipality_name":"Example City (demo)"},"source_count":1,"source_refs":[{"agency_code":"SYN","dataset_slug":"synthetic-example-directory","source_record_id":"SYN-EXAMPLE-0001"}],"updated_at":"2026-11-21T09:00:00Z"}]},"FieldCoverageEntry":{"properties":{"field":{"type":"string","title":"Field"},"scope":{"type":"string","enum":["summary","detail","profile_school","profile_health","profile_utility"],"title":"Scope"},"populated":{"type":"integer","title":"Populated"},"total":{"type":"integer","title":"Total"},"fill_ratio":{"type":"number","title":"Fill Ratio"},"semantics":{"type":"string","title":"Semantics"}},"type":"object","required":["field","scope","populated","total","fill_ratio","semantics"],"title":"FieldCoverageEntry","description":"How fully one public field is populated, with an explicit denominator."},"FieldCoverageResponse":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"version":{"type":"string","title":"Version"},"fields":{"items":{"$ref":"#/components/schemas/FieldCoverageEntry"},"type":"array","title":"Fields"},"by_category":{"anyOf":[{"additionalProperties":{"items":{"$ref":"#/components/schemas/FieldCoverageEntry"},"type":"array"},"type":"object"},{"type":"null"}],"title":"By Category"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"}},"type":"object","required":["as_of","version","fields","caveats"],"title":"FieldCoverageResponse","examples":[{"as_of":"2026-11-21T09:00:00Z","version":"1.3","fields":[{"field":"relationships[]","scope":"detail","populated":0,"total":229274,"fill_ratio":0.0,"semantics":"[] means no publication-cleared rows exist for this collection."},{"field":"location.postal_code","scope":"summary","populated":27924,"total":227911,"fill_ratio":0.1225,"semantics":"null means no value supplied or established."}],"caveats":["Counts are derived from public facilities using the API publication gate."]}]},"GeographyCrosswalkOut":{"properties":{"from_psgc_code":{"type":"string","title":"From Psgc Code"},"to_psgc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"To Psgc Code"},"change_type":{"type":"string","title":"Change Type"},"from_release":{"type":"string","title":"From Release"},"to_release":{"type":"string","title":"To Release"},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"}},"type":"object","required":["from_psgc_code","change_type","from_release","to_release"],"title":"GeographyCrosswalkOut"},"GeographyOut":{"properties":{"psgc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc Code"},"psgc_release":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc Release"},"region_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Code"},"region_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region Name"},"province_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province Code"},"province_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Province Name"},"municipality_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality Code"},"municipality_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Municipality Name"},"barangay_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Barangay Code"},"barangay_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Barangay Name"},"urban_rural":{"anyOf":[{"type":"string","enum":["urban","rural"]},{"type":"null"}],"title":"Urban Rural"}},"type":"object","title":"GeographyOut"},"GeographyReleaseOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"release_label":{"type":"string","title":"Release Label"},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date"},"published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Published At"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"is_synthetic":{"type":"boolean","title":"Is Synthetic","default":false}},"type":"object","required":["id","release_label","retrieved_at"],"title":"GeographyReleaseOut"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthDetailResponse":{"properties":{"facility":{"$ref":"#/components/schemas/FacilityDetail"},"licenses":{"items":{"$ref":"#/components/schemas/LicenseOut"},"type":"array","title":"Licenses"},"accreditations":{"items":{"$ref":"#/components/schemas/AccreditationOut"},"type":"array","title":"Accreditations"}},"type":"object","required":["facility","licenses","accreditations"],"title":"HealthDetailResponse","description":"Legacy wrapper, kept as the default for /v1/health-facilities/{id}."},"HealthProfileOut":{"properties":{"doh_facility_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doh Facility Id"},"facility_major_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Major Type"},"facility_type_detail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Type Detail"},"facility_category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Facility Category"},"ownership_subclassification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ownership Subclassification"},"licensing_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Licensing Status"},"bed_capacity":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Bed Capacity"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","title":"HealthProfileOut"},"IngestionRunSummary":{"properties":{"dataset":{"type":"string","title":"Dataset"},"status":{"type":"string","title":"Status"},"started_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Started At"},"finished_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Finished At"},"report_path":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Report Path"}},"type":"object","required":["dataset","status"],"title":"IngestionRunSummary"},"LatestReleaseOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"label":{"type":"string","title":"Label"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"source_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Published At"},"reference_period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"},"reference_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"},"ingestion_status":{"type":"string","title":"Ingestion Status"},"terms_review_status":{"type":"string","title":"Terms Review Status"},"publication_status":{"type":"string","title":"Publication Status","default":"blocked"},"row_count_parsed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row Count Parsed"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["id","label","retrieved_at","ingestion_status","terms_review_status","sha256"],"title":"LatestReleaseOut"},"LguCoverageRow":{"properties":{"state":{"type":"string","enum":["NATIONAL","REGIONAL","PARTICIPATING_LGUS","SELECTED_LGUS","UNKNOWN"],"title":"State"},"label":{"type":"string","title":"Label"},"source_count":{"type":"integer","title":"Source Count"},"dataset_slugs":{"items":{"type":"string"},"type":"array","title":"Dataset Slugs"}},"type":"object","required":["state","label","source_count"],"title":"LguCoverageRow"},"LicenseOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"issuing_authority":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Issuing Authority"},"license_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Number"},"license_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Type"},"source_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Status"},"valid_from":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid From"},"valid_until":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Valid Until"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","required":["id"],"title":"LicenseOut"},"LocationOut":{"properties":{"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude"},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude"},"precision":{"type":"string","enum":["gps_verified","field_verified","source_gps","map_geocoded","barangay_centroid","unknown"],"title":"Precision","default":"unknown"},"method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Method"},"address_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Address Text"},"postal_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Postal Code"},"psgc_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Psgc Code"},"review_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review Status"}},"type":"object","title":"LocationOut"},"MatchCandidateListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/MatchCandidateOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Status"},"limit":{"type":"integer","title":"Limit"}},"type":"object","required":["items","total","limit"],"title":"MatchCandidateListResponse"},"MatchCandidateOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"candidate_key":{"type":"string","title":"Candidate Key"},"match_status":{"type":"string","title":"Match Status"},"match_method":{"type":"string","title":"Match Method"},"algorithm_version":{"type":"string","title":"Algorithm Version"},"match_confidence":{"type":"number","title":"Match Confidence"},"source_record_id":{"type":"string","format":"uuid","title":"Source Record Id"},"source_facility_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Facility Id"},"source_facility_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Facility Name"},"source_facility_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Facility Slug"},"candidate_facility_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Candidate Facility Id"},"candidate_facility_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Facility Name"},"candidate_facility_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Facility Slug"},"source_agency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Agency Code"},"candidate_agency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Candidate Agency Code"},"evidence":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Evidence"},"reviewed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Reviewed At"},"resolution":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Resolution"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","candidate_key","match_status","match_method","algorithm_version","match_confidence","source_record_id","created_at"],"title":"MatchCandidateOut"},"NearbyResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/FacilitySummary"},"type":"array","title":"Items"},"center":{"additionalProperties":{"type":"number"},"type":"object","title":"Center"},"radius_m":{"type":"integer","title":"Radius M"},"limit":{"type":"integer","title":"Limit"},"truncated":{"type":"boolean","title":"Truncated","default":false}},"type":"object","required":["items","center","radius_m","limit"],"title":"NearbyResponse"},"PopulationListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/PopulationObservationOut"},"type":"array","title":"Items"},"total":{"type":"integer","title":"Total"},"limit":{"type":"integer","title":"Limit"},"offset":{"type":"integer","title":"Offset"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"}},"type":"object","required":["items","total","limit","offset"],"title":"PopulationListResponse"},"PopulationObservationOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"psgc_code":{"type":"string","title":"Psgc Code"},"geographic_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Geographic Level"},"geographic_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Geographic Name"},"indicator_code":{"type":"string","title":"Indicator Code"},"indicator_label":{"type":"string","title":"Indicator Label"},"value":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"reference_date":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Date"},"reference_period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reference Period"},"dimensions":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dimensions"},"source_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Url"},"source_updated_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Updated At"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"},"release_id":{"type":"string","format":"uuid","title":"Release Id"},"release_label":{"type":"string","title":"Release Label"},"dataset_slug":{"type":"string","title":"Dataset Slug"},"attribution_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Text"}},"type":"object","required":["id","psgc_code","indicator_code","indicator_label","release_id","release_label","dataset_slug"],"title":"PopulationObservationOut"},"QualityIssueOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"facility_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Facility Id"},"release_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Release Id"},"issue_code":{"type":"string","title":"Issue Code"},"severity":{"type":"string","title":"Severity"},"message":{"type":"string","title":"Message"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"status":{"type":"string","title":"Status"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Resolved At"}},"type":"object","required":["id","issue_code","severity","message","status","created_at"],"title":"QualityIssueOut"},"QualitySummary":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"facility_count":{"type":"integer","title":"Facility Count"},"published_facility_count":{"type":"integer","title":"Published Facility Count"},"synthetic_facility_count":{"type":"integer","title":"Synthetic Facility Count"},"coordinate_precision":{"additionalProperties":{"type":"integer"},"type":"object","title":"Coordinate Precision"},"open_issues_by_severity":{"additionalProperties":{"type":"integer"},"type":"object","title":"Open Issues By Severity"},"match_candidates_by_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Match Candidates By Status"},"datasets_by_redistribution_status":{"additionalProperties":{"type":"integer"},"type":"object","title":"Datasets By Redistribution Status"},"last_successful_runs":{"items":{"$ref":"#/components/schemas/IngestionRunSummary"},"type":"array","title":"Last Successful Runs"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"}},"type":"object","required":["as_of","facility_count","published_facility_count","synthetic_facility_count","coordinate_precision","open_issues_by_severity","datasets_by_redistribution_status","last_successful_runs"],"title":"QualitySummary"},"QualityWarning":{"properties":{"code":{"type":"string","title":"Code"},"severity":{"type":"string","title":"Severity"},"message":{"type":"string","title":"Message"}},"type":"object","required":["code","severity","message"],"title":"QualityWarning"},"ReleaseOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"dataset_slug":{"type":"string","title":"Dataset Slug"},"dataset_name":{"type":"string","title":"Dataset Name"},"agency":{"type":"string","title":"Agency"},"source_release_label":{"type":"string","title":"Source Release Label"},"source_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Published At"},"reference_period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"},"reference_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"file_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Format"},"file_size_bytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"File Size Bytes"},"row_count_parsed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row Count Parsed"},"ingestion_status":{"type":"string","title":"Ingestion Status"},"terms_review_status":{"type":"string","title":"Terms Review Status"},"publication_status":{"type":"string","title":"Publication Status","default":"blocked"},"parser_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parser Version"},"sha256":{"type":"string","title":"Sha256"}},"type":"object","required":["id","dataset_slug","dataset_name","agency","source_release_label","retrieved_at","ingestion_status","terms_review_status","sha256"],"title":"ReleaseOut"},"ResourceObservationOut":{"properties":{"school_year":{"type":"string","title":"School Year"},"resource_category":{"type":"string","title":"Resource Category"},"resource_code":{"type":"string","title":"Resource Code"},"value_numeric":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Value Numeric"},"value_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Value Text"},"unit":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Unit"},"observed_at":{"type":"string","format":"date-time","title":"Observed At"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","required":["school_year","resource_category","resource_code","observed_at"],"title":"ResourceObservationOut"},"SchoolDetailResponse":{"properties":{"facility":{"$ref":"#/components/schemas/FacilityDetail"},"resources":{"items":{"$ref":"#/components/schemas/ResourceObservationOut"},"type":"array","title":"Resources"}},"type":"object","required":["facility","resources"],"title":"SchoolDetailResponse","description":"Legacy wrapper, kept as the default for /v1/schools/{id}.\n\nThe generated client keeps ``facility: FacilityDetail``; compact variants\nare returned as explicit JSON and documented in the operation description."},"SchoolProfileOut":{"properties":{"deped_school_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Deped School Id"},"sector":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sector"},"school_management":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"School Management"},"division":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Division"},"district":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"District"},"legislative_district":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Legislative District"},"settlement_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Settlement Type"},"offering_classification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Offering Classification"},"offers_es":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Offers Es"},"offers_jhs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Offers Jhs"},"offers_shs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Offers Shs"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","title":"SchoolProfileOut"},"SourceCheckOut":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"dataset_slug":{"type":"string","title":"Dataset Slug"},"agency_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Agency Code"},"checked_at":{"type":"string","format":"date-time","title":"Checked At"},"status":{"type":"string","title":"Status"},"url":{"type":"string","title":"Url"},"final_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Url"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status"},"etag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Etag"},"last_modified":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Modified"},"content_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content Type"},"content_length":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Content Length"},"sha256":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details"},"next_check_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Check At"}},"type":"object","required":["id","dataset_id","dataset_slug","checked_at","status","url"],"title":"SourceCheckOut"},"SourceCoverageRow":{"properties":{"dataset_slug":{"type":"string","title":"Dataset Slug"},"dataset_name":{"type":"string","title":"Dataset Name"},"agency_code":{"type":"string","title":"Agency Code"},"coverage_scope":{"type":"string","title":"Coverage Scope","default":"UNKNOWN_COVERAGE"},"coverage_note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Coverage Note"},"latest_release_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Release Label"},"source_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Published At"},"reference_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"},"retrieved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Retrieved At"},"row_count_parsed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Row Count Parsed"},"publication_status":{"type":"string","title":"Publication Status","default":"blocked"},"rights_status":{"type":"string","title":"Rights Status","default":"unknown"},"freshness_days":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Freshness Days"},"is_stale":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Stale"}},"type":"object","required":["dataset_slug","dataset_name","agency_code"],"title":"SourceCoverageRow"},"SourceEvidence":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"agency":{"type":"string","title":"Agency"},"agency_code":{"type":"string","title":"Agency Code"},"dataset":{"type":"string","title":"Dataset"},"dataset_slug":{"type":"string","title":"Dataset Slug"},"release_id":{"type":"string","format":"uuid","title":"Release Id"},"release_label":{"type":"string","title":"Release Label"},"source_record_id":{"type":"string","title":"Source Record Id"},"source_record_uuid":{"type":"string","format":"uuid","title":"Source Record Uuid"},"row_reference":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Row Reference"},"source_published_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Source Published At"},"reference_period_start":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period Start"},"reference_period_end":{"anyOf":[{"type":"string","format":"date"},{"type":"null"}],"title":"Reference Period End"},"retrieved_at":{"type":"string","format":"date-time","title":"Retrieved At"},"processed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Processed At"},"match_method":{"type":"string","title":"Match Method"},"match_status":{"type":"string","title":"Match Status"},"match_confidence":{"type":"number","title":"Match Confidence"},"rights_status":{"type":"string","title":"Rights Status","default":"unknown"},"publication_status":{"type":"string","title":"Publication Status","default":"blocked"},"license_identifier":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"License Identifier"},"attribution_text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Attribution Text"},"is_synthetic":{"type":"boolean","title":"Is Synthetic","default":false}},"type":"object","required":["id","agency","agency_code","dataset","dataset_slug","release_id","release_label","source_record_id","source_record_uuid","retrieved_at","match_method","match_status","match_confidence"],"title":"SourceEvidence"},"SourceMonitoringOut":{"properties":{"dataset_id":{"type":"string","format":"uuid","title":"Dataset Id"},"dataset_slug":{"type":"string","title":"Dataset Slug"},"dataset_name":{"type":"string","title":"Dataset Name"},"agency":{"type":"string","title":"Agency"},"agency_code":{"type":"string","title":"Agency Code"},"access_method":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Access Method"},"rights_status":{"type":"string","title":"Rights Status"},"publication_status":{"type":"string","title":"Publication Status"},"last_checked_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Checked At"},"last_successful_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Successful At"},"check_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Check Status"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status"},"last_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Message"},"latest_release_label":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Release Label"},"latest_release_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Release At"},"latest_release_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Latest Release Rows"},"latest_run_acceptance_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latest Run Acceptance Rate"},"latest_run_rejection_rate":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latest Run Rejection Rate"},"latest_run_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Latest Run Status"},"latest_run_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Latest Run At"},"latest_run_duration_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latest Run Duration Ms"},"next_check_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Check At"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning"}},"type":"object","required":["dataset_id","dataset_slug","dataset_name","agency","agency_code","rights_status","publication_status"],"title":"SourceMonitoringOut"},"SourceRefOut":{"properties":{"agency_code":{"type":"string","title":"Agency Code"},"dataset_slug":{"type":"string","title":"Dataset Slug"},"source_record_id":{"type":"string","title":"Source Record Id"}},"type":"object","required":["agency_code","dataset_slug","source_record_id"],"title":"SourceRefOut","description":"Compact public identity of one source record behind a facility.\n\nRaw source values are preserved in the source record; this ref exists so a\nlist result can distinguish registries that publish the same facility name."},"StatisticsOut":{"properties":{"as_of":{"type":"string","format":"date-time","title":"As Of"},"facilities_total":{"type":"integer","title":"Facilities Total"},"published_facilities":{"type":"integer","title":"Published Facilities"},"schools":{"type":"integer","title":"Schools"},"health_facilities":{"type":"integer","title":"Health Facilities"},"with_coordinates":{"type":"integer","title":"With Coordinates"},"synthetic":{"type":"integer","title":"Synthetic"},"by_precision":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Precision"},"by_region":{"items":{"additionalProperties":true,"type":"object"},"type":"array","title":"By Region"},"by_inclusion_class":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Inclusion Class"},"by_ownership_type":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Ownership Type"},"by_category":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Category"},"by_access_class":{"additionalProperties":{"type":"integer"},"type":"object","title":"By Access Class"},"source_releases":{"type":"integer","title":"Source Releases"},"caveats":{"items":{"type":"string"},"type":"array","title":"Caveats"}},"type":"object","required":["as_of","facilities_total","published_facilities","schools","health_facilities","with_coordinates","synthetic","by_precision","by_region","source_releases"],"title":"StatisticsOut"},"TaxonomyCategoryOut":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"},"subtypes":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Subtypes"}},"type":"object","required":["code","label"],"title":"TaxonomyCategoryOut"},"TaxonomyResponse":{"properties":{"version":{"type":"string","title":"Version"},"categories":{"items":{"$ref":"#/components/schemas/TaxonomyCategoryOut"},"type":"array","title":"Categories"},"facility_kinds":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Facility Kinds"},"inclusion_classes":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Inclusion Classes"},"ownership_types":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Ownership Types"},"operator_types":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Operator Types"},"access_classes":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Access Classes"},"record_statuses":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Record Statuses"},"contact_types":{"items":{"$ref":"#/components/schemas/TaxonomyTermOut"},"type":"array","title":"Contact Types"}},"type":"object","required":["version","categories","facility_kinds","inclusion_classes","ownership_types","operator_types","access_classes","record_statuses","contact_types"],"title":"TaxonomyResponse"},"TaxonomyTermOut":{"properties":{"code":{"type":"string","title":"Code"},"label":{"type":"string","title":"Label"}},"type":"object","required":["code","label"],"title":"TaxonomyTermOut"},"UtilityProfileOut":{"properties":{"doe_facility_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Doe Facility Code"},"resource_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resource Type"},"technology_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Technology Type"},"connection_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Connection Type"},"grid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Grid"},"owner_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Type"},"contract_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Contract Type"},"installed_mw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Installed Mw"},"dependable_mw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dependable Mw"},"number_of_units":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Number Of Units"},"date_commissioned":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Date Commissioned"},"source_record_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Source Record Id"}},"type":"object","title":"UtilityProfileOut"},"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"},"ErrorBody":{"description":"The flat error envelope returned by every /v1 handler.\n\n``details`` is ``None`` when there is no structured context and a list of\nvalidation issues for 422 responses. The object is never wrapped under an\n``error`` key inside /v1; doing so would be a breaking change.","examples":[{"code":"invalid_bbox","message":"bbox must be min_lon,min_lat,max_lon,max_lat.","details":null,"request_id":"synthetic-request-id"},{"code":"facility_not_found","message":"No published facility exists with that ID.","details":null,"request_id":"synthetic-request-id"},{"code":"validation_error","message":"One or more query parameters are invalid.","details":[],"request_id":"synthetic-request-id"},{"code":"rate_limit_exceeded","message":"Too many requests. Retry after the current window.","details":{"limit":120,"window_seconds":60},"request_id":"synthetic-request-id"},{"code":"internal_error","message":"An unexpected error occurred.","details":null,"request_id":"synthetic-request-id"}],"properties":{"code":{"title":"Code","type":"string"},"message":{"title":"Message","type":"string"},"details":{"anyOf":[{},{"type":"null"}],"default":null,"title":"Details"},"request_id":{"title":"Request Id","type":"string"}},"required":["code","message","request_id"],"title":"ErrorBody","type":"object"}}},"tags":[{"name":"facilities","description":"Canonical facility search, detail, and provenance."},{"name":"schools","description":"DepEd-linked school profiles and observations."},{"name":"health","description":"Health facility profiles, licenses, and accreditations."},{"name":"geography","description":"Versioned PSA PSGC geography."},{"name":"sources","description":"Datasets, releases, quality, changes, and downloads."},{"name":"taxonomy","description":"Controlled facility vocabularies and display labels."},{"name":"system","description":"Service health."}]}