{"schema_version":"1.0","country":"es","country_name":"Spain","topic":"wastewater-treatment-plants","question":"Where can I get a list of urban wastewater treatment plants in Spain, with location, design capacity, treated volume and treatment level?","territory":"es","territory_level":"country","parent_url":null,"published_on":"2026-11-19","research_reviewed_on":"2026-11-16","access_checked_on":null,"answer":{"official_data":"structured","non_official_data":"partial","summary":"Spain reports its plants to the EU under Directive 91/271/CEE. The EEA public layer (ArcGIS REST, 2,138 Spanish plants, status 31/12/2022) has coordinates, design capacity (p.e.), treatment flags and treated volume (m3/year, filled for 1,666). MITECO publishes the same report as GeoPackage with 2,357 plants but only name/id/status. Plants below the reporting threshold exist only in regional lists.","main_caveats":["EEA and MITECO layers are Spain's UWWTD report at 31/12/2022 (Q2023); the EEA output is flagged provisional pending the Commission compliance check.","uwwCapacity and load are in population equivalents (p.e.), not m3/day; Spain notes capacity is a mean project capacity while load is the weekly maximum, so load can exceed capacity (227 plants).","MITECO GPKG (INSPIRE form) has no capacity, volume or treatment fields; the SHP with those fields sits behind an Altcha download page and the WMS host fails TLS validation.","Capacity differs between sources: BOE 2025 gives 19,632 p.e. for the Mazagon expansion, EEA layer 53,140 p.e. for MAZAGON; reason not established.","Regional codes differ: ACA codi_aglomeracio ES09080010001010 equals EEA uwwCode ES9080010001010E (leading 0 dropped, E added)."],"confidence":"medium","confidence_reason":"Core fields were queried and counted on the live EEA service; MITECO SHP, OSM for Spain and several regions were not opened, and EEA data is provisional.","attributes":[{"attribute":"location","covered":"yes","source_ids":["s001"],"note":"uwwLatitude/uwwLongitude filled for all 2,138; sample check by region found no points outside their region. EEA states 100 m resolution.","gap":null,"gap_note":null},{"attribute":"design_capacity","covered":"yes","source_ids":["s001","s003"],"note":"uwwCapacity in p.e. for all 2,138; regional lists add m3/day (ACA, EPSAR) or p.e. (Madrid, Aragon).","gap":null,"gap_note":null},{"attribute":"treated_volume","covered":"partial","source_ids":["s001"],"note":"uwwWasteWaterTreated (m3/year) filled for 1,666 of 2,138 plants; blank for 472. No plant-level source for the rest found.","gap":"not_published","gap_note":"Looked in MITECO Q2023 field list (no volume field), ACA, Madrid IDEM, Aragon, Baleares, EPSAR lists and EPSAR 2019 report (only per-province volume); Idescat has aggregates only."},{"attribute":"treatment_level","covered":"yes","source_ids":["s001","s002","s003"],"note":"Boolean flags primary, secondary, more stringent, N and P removal, UV etc.; text type in ACA. Compliance codes P/F per parameter.","gap":null,"gap_note":null}]},"sources":[{"source_id":"s001","name":"UWWTD Treatment plants, data call 2023, public final version (Oct. 2025)","publisher":"European Environment Agency (data reported by Spain under Directive 91/271/EEC)","official":true,"landing_url":"https://sdi.eea.europa.eu/catalogue/srv/api/records/88b3b08d-3b1b-4a65-9406-365b218e09da","data_url":"https://water.discomap.eea.europa.eu/arcgis/rest/services/WISE_UWWTD/TreatmentPlants_2022/MapServer/0","access":"api","format":"ArcGIS REST (JSON); also GeoPackage, File Geodatabase, WMS","license":"CC-BY 4.0","language":"English","has_coordinates":true,"location_precision":"exact","summary":"UWWTD Treatment plants, data call 2023, public final version (Oct. 2025)","coverage_note":"EU/EEA member states plus others; Spain rptMStateKey=ES (2,138 of 22,554 records)","data_date":"2022-12-31 (reporting exercise 2023)","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"test":{"tested_on":"2026-11-16","method":"api_query","http_status":200,"problems":["Provisional until the Commission compliance check ends (stated in the metadata)"]},"example":{"example_request":"curl -s -G 'https://water.discomap.eea.europa.eu/arcgis/rest/services/WISE_UWWTD/TreatmentPlants_2022/MapServer/0/query' --data-urlencode \"where=rptMStateKey='ES'\" --data-urlencode 'outFields=*' --data-urlencode 'orderByFields=OBJECTID' --data-urlencode 'resultOffset=0' --data-urlencode 'resultRecordCount=1000' --data-urlencode 'returnGeometry=false' --data-urlencode 'f=json'   (repeat with resultOffset=1000 and 2000; count query: same URL with returnCountOnly=true returns {\"count\":2138})","example_result":"{\"uwwCode\":\"ES10030140002011E\",\"uwwName\":\"MONTE ORGEGIA\",\"uwwLatitude\":38.383221,\"uwwLongitude\":-0.464619,\"uwwNUTS\":\"ES521\",\"uwwCapacity\":600000,\"uwwLoadEnteringUWWTP\":235118,\"uwwWasteWaterTreated\":12183178,\"uwwPrimaryTreatment\":1,\"uwwSecondaryTreatment\":1,\"uwwOtherTreatment\":1,\"uwwNRemoval\":0,\"uwwPRemoval\":1}"},"members_summary":null},{"source_id":"s002","name":"Depuradoras de aguas residuales (Q2023. Dir 91/271/CEE)","publisher":"MITECO, Subdireccion General de Planificacion Hidrologica","official":true,"landing_url":"https://www.miteco.gob.es/es/cartografia-y-sig/ide/descargas/agua/situacion-q2023.html","data_url":"https://www.miteco.gob.es/content/dam/miteco/es/cartografia-y-sig/ide/descargas/depuradorasq2023_gpkg.zip","access":"direct_download","format":"GeoPackage (INSPIRE EnvironmentalManagementFacility), SHP, KMZ, GML, WMS","license":"CC BY 4.0 (datos.gob.es record); free use crediting MITECO (download page)","language":"Spanish","has_coordinates":true,"location_precision":"exact","summary":"Depuradoras de aguas residuales (Q2023. Dir 91/271/CEE)","coverage_note":"Spain, including islands","data_date":"2022-12-31","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"test":{"tested_on":"2026-11-16","method":"download","http_status":200,"problems":["SHP, KMZ and GML downloads sit behind an Altcha challenge page","WMS host certificate not accepted by curl or WebFetch","OGC API wmts.mapama.gob.es/sig-api listed in datos.gob.es returned 30 collections, none about water"]},"example":{"example_request":"curl -sL -o dep_gpkg.zip \"https://www.miteco.gob.es/content/dam/miteco/es/cartografia-y-sig/ide/descargas/depuradorasq2023_gpkg.zip\"; python3 -I with sqlite3: select name, inspireId_Identifier_localId, status_xlink_title from EnvironmentalManagementFacility limit 2","example_result":"{\"name\":\"AGOST\",\"inspireId_Identifier_localId\":\"ES10030020001010E\",\"status_xlink_title\":\"functional\"}, {\"name\":\"ALBATERA - SAN ISIDRO\",\"inspireId_Identifier_localId\":\"ES10030050002010E\",\"status_xlink_title\":\"functional\"}"},"members_summary":null},{"source_id":"s003","name":"Regional lists of treatment plants","publisher":"Autonomous-community bodies and operators (ACA, Comunidad de Madrid/Canal de Isabel II, Aragon, Baleares, EPSAR and others)","official":true,"landing_url":"https://datos.gob.es/apidata/catalog/dataset/title/depuradoras?_pageSize=50&_page=0&_sort=title","data_url":"https://analisi.transparenciacatalunya.cat/resource/k288-dig3.json","access":"api","format":"Socrata JSON/CSV, WFS GeoJSON, CSV, SHP, HTML (varies by region)","license":"varies (ACA: terms of use; Navarra: CC BY 4.0)","language":"Spanish, Catalan","has_coordinates":true,"location_precision":"exact","summary":"Regional lists of treatment plants","coverage_note":"Per region; 8 of 17 regions listed, 5 opened with data","data_date":"ACA: 31 December of each closed year; current year at last update","caveats":["Consult the main caveats and the complete reading traps and access evidence in the detail."],"test":{"tested_on":"2026-11-16","method":"api_query","http_status":200,"problems":[]},"example":null,"members_summary":{"total":null,"listed":8,"tested":5,"data_found":0,"scope_note":"Inherited members; data findings were not reclassified during this structural migration. Consult each member note.","pattern":null}}],"other_sources_count":1,"if_unstructured":{"summary":null},"local_terms":[{"term":"EDAR","language":"es","meaning":"estacion depuradora de aguas residuales, treatment plant"},{"term":"depuradora / ERAR / EDARU","language":"es","meaning":"common names for the same plants"},{"term":"habitante equivalente (h-e)","language":"es","meaning":"unit of load: 60 g BOD5/day"},{"term":"aglomeracion urbana","language":"es","meaning":"area served by a collecting system; unit of the 91/271 report"},{"term":"Cuestionario Q2023 / Directiva 91/271/CEE","language":"es","meaning":"the biennial report to the Commission"},{"term":"saneamiento en alta","language":"es/ca","meaning":"trunk collectors and plants (regional or state), versus municipal sewers"},{"term":"caudal de diseno / cabal de disseny","language":"es/ca","meaning":"design flow, m3/day"},{"term":"tratamiento mas riguroso / mas exigente","language":"es","meaning":"more stringent treatment, nutrient removal"}],"provenance":{"pass_count":1,"models":["Claude Sonnet 5.5 (High)"],"minutes_estimate":16,"pages_opened":33,"passes":[{"pass":1,"date":"2026-11-16","model":"Claude Sonnet 5.5 (High)"}],"note":"Minutes are researcher estimates. Counts describe documented passes, not publication approval. Missing history or effort is not reconstructed."},"card_url":"https://georutter.org/v1/es/wastewater-treatment-plants.json","detail_url":"https://georutter.org/v1/es/wastewater-treatment-plants/detail.json","html_url":"https://georutter.org/es/wastewater-treatment-plants/","country_url":"https://georutter.org/v1/countries/es.json"}
