{"id":"d87ef181-956a-4234-b2bd-c8757e3feab8","type":"API","name":"Housing inventory and secondary homes rate","slug":"housing-inventory-and-secondary-homes-rate","description":"The apartment inventory map service shows the status in blue primer of the municipalities that are subject to the building regulations of the Second Housing Act (ZWG, SR 702) and are only allowed to set up second homes under strict conditions (ZWG Art. 7ff.). The Second Homes Act defines the limit…","free_access_class":"FREE_NO_AUTH","auth_type":"NONE","homepage_url":"http://data.europa.eu/88u/dataset/ed80ebde-99a0-4523-bc8a-4ec23426d966-bundesamt-fur-raumentwicklung-are","docs_url":"http://data.europa.eu/88u/dataset/ed80ebde-99a0-4523-bc8a-4ec23426d966-bundesamt-fur-raumentwicklung-are","repo_url":null,"status":"ACTIVE","verification_state":"VERIFIED","tags":["housing","legislation","geospatial"],"logo_url":"data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAjJJREFUeNpi/P//P8NAAiaGAQajDhhwB7Cw+C86MKAOAGL7IRsF+vKPGOw1b9DXAfkeO+GWz0+bzTAPiP2Nz6LI0cwBfTFLGXqjl4Hpiw/lGD584wKLbzxrzFAXtJ6hLnA92EECXN9ISgMEAchAkGUgSy89kgPTIJA0MxXFEQ7A6ADxQVhB5A3DgzciBM1mZPZb+J9QPMfbHmZ4CDRs/1UthkuPZeEOwuZIPdnHDIpirxji7Y4wNK4LhDuWoijwNz7HkOe+i+HTd04wH91yZLFHb4XBlvsZnQOGwmvKowDkg41njcAWEBOkIHUHr2uA8YM3otSJAphDSAWgqFt42BavGmYm9cAG3EF/Fpiq5zB46F1mePGRn+HmcymiLAYlwH3V7QzhFicYONh+A0NDk7w0AErZH6GpGsQmFoCi6gI4m3IzLDpkS1kUgHwDM5QUANIHS5jYEi3RuQBksb3mdXhaILbcyAOWirAygaJcAEoHoJIPBJzaqggmRpDloPjXk3sEVksoERJ0ACjuD944As8JoMoHlMVw5RiQmgNAeVAauPBInvJsiAxA5X287RGgr2wYmoClHMi3IAyKJlBFBCqsQHKTdrgTDHqS6gIYePhahEEemLhAOQPk23z3nQwKom8YJu5wY3gAlcNWTFPNAaCSTaWwl0EeaCkoqEGW68s9BOdzkMXGNc0k1YQkRwE6sIfWfqCQIcXXZIcAOsCVGEl1wMGBbBMyjnbNRh0w0A4ACDAADLUDJHo7TiUAAAAASUVORK5CYII=","primary_source_url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil","extraction_confidence":"0.40","created_at":"2026-06-29T02:44:56.284Z","updated_at":"2026-11-23T03:02:03.625Z","last_verified_at":"2026-11-23T03:02:03.625Z","deprecated_at":null,"ranking_score":52,"last_ranked_at":"2026-11-18T13:11:52.318Z","last_seen_at":null,"last_validated_at":null,"last_uptime_at":"2026-11-20T12:45:06.870Z","popularity_score":"0.0000","maintenance_score":"0.6000","institution_id":"e6610aa1-093d-4dd5-9dea-b71951ae3eb2","institution_type":"GOVERNMENT","country_code":"CH","official_confidence":40,"proof_summary":"40% - Official domain (admin.ch)","source_seed_url":null,"is_public_sector":true,"published_at":"2026-06-30T07:14:40.014Z","geographic_scope":"NATIONAL","name_en":null,"description_en":"This API provides a map service showing municipalities subject to the Swiss Second Homes Act (Zweitwohnungsgesetz, ZWG, SR 702), which restricts the construction of second homes in municipalities where the share of secondary residences exceeds 20 percent. Municipalities affected are highlighted, and the underlying housing inventory data indicates the secondary-home rate per municipality. It is published by the Swiss Federal Office for Spatial Development (ARE), part of the Swiss Confederation, and covers the national territory. The service supports planning authorities, municipalities, and property developers in determining whether building permit restrictions under the ZWG apply to a given location.","native_lang":"de","access_level":"direct","formats":[],"capability_tier":"sample","trust_score":63.82352941176471,"merged_into_entry_id":null,"identity_key":"API|https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil|housing inventory and secondary homes rate","upstream_ref":"data.europa.eu:dataset:ed80ebde-99a0-4523-bc8a-4ec23426d966-bundesamt-fur-raumentwicklung-are","content_changed_at":null,"upstream_gone_checks":0,"upstream_gone_since":null,"institution":null,"title_qualifier":null,"access":{"level":"direct","primary":{"kind":"query","label":"Run verified request","method":"GET","url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil?f=json","source":"probe","runnable":true},"actions":[{"kind":"query","label":"Run verified request","method":"GET","url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil?f=json","source":"probe","runnable":true},{"kind":"query","label":"API base URL","method":"GET","url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil","source":"base_url","runnable":false},{"kind":"landing","label":"Read the docs","method":"GET","url":"http://data.europa.eu/88u/dataset/ed80ebde-99a0-4523-bc8a-4ec23426d966-bundesamt-fur-raumentwicklung-are","source":"docs","runnable":false}],"formats":[]},"maturity":{"entry_id":"d87ef181-956a-4234-b2bd-c8757e3feab8","granularity":"entry","granularity_label":"One unit = one catalog entry. A PROXY for the SCOPE.md §4 ladder, which governs source families, not entries: a family with 400 entries moves this reading 400 times as much as a family with one. Never compare or combine with the source_family reading.","level":"profiled","level_index":3,"level_label":"Profiled","meaning":"Schema, dimensions and licence understood","counts_as_coverage":false,"blocked_by":null,"rungs":[{"level":"discovered","level_index":1,"label":"Discovered","meaning":"Source and metadata recorded","evidence":"membership of the named population the ladder is taken over","counts_as_coverage":false,"met":true,"reached":true,"criterion":"TRUE"},{"level":"verified","level_index":2,"label":"Verified","meaning":"Access tested successfully","evidence":"entries.verification_state = 'VERIFIED'","counts_as_coverage":false,"met":true,"reached":true,"criterion":"entries.verification_state = 'VERIFIED'"},{"level":"profiled","level_index":3,"label":"Profiled","meaning":"Schema, dimensions and licence understood","evidence":"a data profile with at least one field (entry_data_profiles.field_count > 0)","counts_as_coverage":false,"met":true,"reached":true,"criterion":"EXISTS (SELECT 1 FROM entry_data_profiles p WHERE p.entry_id = entries.id AND COALESCE(p.field_count, 0) > 0)"},{"level":"executable","level_index":4,"label":"Executable","meaning":"Queries run through Commodity","evidence":"entries.capability_tier = 'live' — today's proxy for \"queryable through us\"","counts_as_coverage":true,"met":false,"reached":false,"criterion":"entries.capability_tier = 'live'"},{"level":"joinable","level_index":5,"label":"Joinable","meaning":"Canonical identifiers and concepts mapped","evidence":"a field link to a canonical identifier whose sampled VALUES match its format, on a field the current profile still has (entry_data_profiles.fields names it, field_count > 0)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_field_links efl JOIN entry_data_profiles jp ON jp.entry_id = efl.entry_id WHERE efl.entry_id = entries.id AND efl.identifier_id IS NOT NULL AND efl.value_status = 'match' AND COALESCE(jp.field_count, 0) > 0 AND COALESCE(jp.fields @> jsonb_build_array(jsonb_build_object('name', efl.field_name)), false))"},{"level":"reproducible","level_index":6,"label":"Reproducible","meaning":"Snapshots and transformation evidence retained","evidence":"at least one retained evidence manifest (migration 078) that names at least one column, every one of them a field of the current profile — except, on a grouped citation, the computed columns 'count' and '<fn>_<field>'","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM evidence_manifests em JOIN entry_data_profiles rp ON rp.entry_id = em.entry_id WHERE em.entry_id = entries.id AND COALESCE(rp.field_count, 0) > 0 AND jsonb_array_length(em.columns) > 0 AND (CASE WHEN em.query_params ? 'aggregate' THEN em.columns - 'count' - (COALESCE(em.query_params->'aggregate'->>'fn', '') || '_' || COALESCE(em.query_params->'aggregate'->>'field', '')) ELSE em.columns END) <@ COALESCE((SELECT jsonb_agg(f->'name') FROM jsonb_array_elements(CASE WHEN jsonb_typeof(rp.fields) = 'array' THEN rp.fields END) f), '[]'::jsonb))"},{"level":"guaranteed","level_index":7,"label":"Guaranteed","meaning":"Monitored against an operational reliability target","evidence":"an active reliability target with a named monitor (migration 096)","counts_as_coverage":true,"met":false,"reached":false,"criterion":"EXISTS (SELECT 1 FROM entry_reliability_targets rt WHERE rt.entry_id = entries.id AND rt.is_active = true)"}],"officialness":{"basis":"catalog_inherited","label":"Inherited from the upstream catalog: this item came from a trusted official government catalog, and that provenance — not per-item proof — is the warrant. Its own proof score is below 80 or it matched no registered institution (apps/worker/src/connectors/catalog/qualify-store.ts).","proof_confidence":40,"proven_threshold":80,"institution_id":"e6610aa1-093d-4dd5-9dea-b71951ae3eb2","definition":"CASE WHEN COALESCE(entries.is_public_sector, false) IS NOT TRUE THEN 'not_official' WHEN COALESCE(entries.official_confidence, 0) >= 80 AND entries.institution_id IS NOT NULL THEN CASE WHEN EXISTS (SELECT 1 FROM api_candidates oc WHERE oc.merged_into_entry_id = entries.id AND oc.official_confidence >= 80 AND oc.proposed_institution_id IS NOT NULL) THEN 'per_item_proven' ELSE 'integrator_asserted' END ELSE 'catalog_inherited' END"},"source_family":{"key":"api3.geo.admin.ch","label":"One unit = one source family, approximated by the serving host of the entry's primary source URL (e.g. bdl.stat.gov.pl). A COMPUTED stand-in for the curated families of SCOPE.md §5, which no table holds yet. A family sits at the highest level any of its entries has reached, because a family is integrated to the depth of its deepest working integration. Never compare or combine with the entry reading."},"generated_at":"2026-11-23T22:49:51.434Z"},"update_schedule":null,"legal_basis":{"source":"data.europa.eu High-Value Dataset records (dcatap:applicableLegislation), matched to this entry by URL","legislation":[],"statements":[],"record_publishers":[],"harvested_at":null},"distribution_role":null,"publisher_organisation":null,"api_details":{"id":"16f09f8f-d9df-440d-a414-2f1dc05931d4","entry_id":"d87ef181-956a-4234-b2bd-c8757e3feab8","base_url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil","openapi_url":null,"graphql_url":null,"api_version":null,"spec_format":null,"endpoints_count":null,"endpoints":[],"rate_limit_info":null,"free_tier_limits":null,"ping_url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil","created_at":"2026-06-29T02:44:56.680Z","updated_at":"2026-06-29T02:44:56.680Z"},"dataset_details":null,"license":null,"reuse":{"license_id":null,"license_name":null,"license_url":null,"commercial_use":{"status":"unknown","value":null},"redistribution":{"status":"unknown","value":null},"attribution_required":{"status":"unknown","value":null},"share_alike":{"status":"unknown","value":null},"personal_data_warning":{"status":"unknown","value":null},"cache_and_mirror":{"status":"unknown","value":null},"derivatives":{"status":"unknown","value":null},"undetermined":["commercial_use","redistribution","attribution_required","share_alike","personal_data_warning","cache_and_mirror","derivatives"],"basis":"unverified","confidence":0.1,"confidence_tier":"low","source_text":null,"source_url":null,"reviewed_at":null},"license_raw":null,"licence":{"licence_id":null,"status":"none_stated","basis":"no_licence_recorded","terms":[],"redistribution":"unknown","commercial":"unknown","licence_url":null,"licence_raw":null,"source_url":null,"notice":"licence: none stated — redistribution: not stated; commercial reuse: not stated"},"latest_check":{"id":"adba8e57-8225-43ff-8509-e43fbb06d5c7","entry_id":"d87ef181-956a-4234-b2bd-c8757e3feab8","status":"VERIFIED","last_checked_at":"2026-11-23T03:02:03.298Z","p50_latency_ms":983,"p95_latency_ms":null,"last_error":null,"consecutive_failures":0,"created_at":"2026-06-29T03:45:04.110Z","updated_at":"2026-11-23T03:02:03.298Z","consecutive_successes":71,"probe_url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil?f=json","probe_method":"GET","probe_http_status":200,"probe_content_type":"application/json","probe_succeeded_at":"2026-11-23T03:02:03.298Z"},"data_profile":{"id":"f021cf73-fcb8-4d36-9ecf-d064a1ca33ca","entry_id":"d87ef181-956a-4234-b2bd-c8757e3feab8","profile_source":"arcgis","profile_kind":"dataset","dataset_id":null,"fields":[{"name":"status","type":"integer","label":null,"description":null,"description_en":"Code indicating the current status of the record."},{"name":"zwg_3100","type":"integer","label":"Anzahl Erstwohnungen gleichgestellte Wohnungen","label_en":"Total number of appartements considered as primary homes","label_lang":"de","description":null,"description_en":"Number of dwellings treated as equivalent to primary residences."},{"name":"gemeinde_nummer","type":"integer","label":"BFS-Nummer","label_en":"FSO nummer","label_lang":"de","description":null,"description_en":"Federal Statistical Office (BFS) municipality number."},{"name":"zwg_3110","type":"float","label":"Erstwohnungsanteil","label_en":"Primary home ratio","label_lang":"de","description":null,"description_en":"Share of primary residences in the municipality."},{"name":"zwg_3120","type":"float","label":"Zweitwohnungsanteil","label_en":"Secondary home ratio","label_lang":"de","description":null,"description_en":"Share of second homes in the municipality."},{"name":"verfahren","type":"integer","label":"Verfahren","label_en":"Case","label_lang":"de","description":null,"description_en":"Code identifying the procedure applied."},{"name":"gemeinde_name","type":"varchar","label":null,"description":null,"description_en":"Name of the municipality."},{"name":"id","type":"integer","label":null,"description":null,"description_en":"Unique identifier of the housing inventory record."},{"name":"zwg_3010","type":"integer","label":"Anzahl Erstwohnungen","label_en":"Number of primary homes","label_lang":"de","description":null,"description_en":"Number of primary residences in the municipality."},{"name":"zwg_3150","type":"integer","label":"Gesamtzahl aller Wohnungen","label_en":"Total number of homes","label_lang":"de","description":null,"description_en":"Total number of dwellings in the municipality."}],"field_count":10,"sample_records":[],"record_count":null,"data_size_bytes":null,"dataset_count":null,"query_examples":[{"url":"https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil?f=json","curl":"curl -s 'https://api3.geo.admin.ch/rest/services/api/MapServer/ch.are.wohnungsinventar-zweitwohnungsanteil?f=json' -H 'Accept: application/json'","label":"Layer metadata","method":"GET","description":"Layer definition: fields, geometry type, capabilities."}],"status":"ok","error_message":null,"profiled_at":"2026-11-19T05:33:17.133Z","run_id":"6f544912-be20-44b2-9d8a-9f8a04bbcef9","created_at":"2026-06-29T02:48:46.477Z","updated_at":"2026-11-19T05:33:17.302Z","license_raw":null,"license_id":null,"consecutive_failure_count":0,"last_error_at":null,"last_error_message":null,"fields_with_example_values":0,"example_values_counted_at":"2026-11-19T05:33:17.133Z","previewable":false,"declared_periods":null,"declared_areas":null,"declared_population":null,"personal_data":{"status":"none","basis":"no_person_column_cited","grain":"none","allowed":true,"columns":{"direct_identifiers":[],"family_names":[],"given_names":[],"attributes":[],"unresolved_names":[],"measures":[],"entity_identifiers":[]},"publication":null,"publication_evidence":null,"notice":"personal data: no cited column names a natural person (the cited columns are all this reads)"}},"datasets":[],"limits":[],"manifest":{"answer_sha256":"af653633c2b20526ec57fb8978a74a445c49a1c17877c2f0408e777945a71882","answer_sha256_rule":"sha256 (hex, UTF-8) of JSON.stringify(this body) after deleting the keys listed in manifest.stamped_keys from manifest, and deleting manifest itself if it is then empty. The hash was computed before the stamp existed, so no field of the stamp is inside it.","stamped_keys":["answer_sha256","answer_sha256_rule","stamped_keys","row_count","row_count_basis","live","live_basis","created_at","created_at_basis","durable_citation"],"row_count":21,"row_count_basis":"Objects that are elements of a JSON array anywhere in this body, excluding manifest. Not a claim about which collection is the answer. Largest single collection: data_profile.fields[] (10 rows).","live":true,"live_basis":"This body was produced by executing the request.","created_at":"2026-11-23T22:49:51.444Z","created_at_basis":"When this response body was assembled, deliberately OUTSIDE the hashed bytes so the same answer hashes identically on every request. Not the upstream read time — that is provenance[].retrieved_at. A zone-cached replay carries the assembly time, not your receipt time.","durable_citation":"This manifest is produced at response time and is NOT stored. A durable, replayable citation is persisted only on an explicit cite: GET /api/v1/entries/{id-or-slug}/evidence or the MCP cite_query tool for one entry, and POST /api/v1/answer/cite for a domain answer, which stores this same answer_sha256 with the sources the answer consulted."}}