{
  "name": "house-prices-ireland",
  "title": "House Prices in Ireland: Residential Property Price Index and Median Prices, Monthly",
  "description": "Monthly Residential Property Price Index (RPPI) for Ireland from the Central Statistics Office (CSO), January 2005 onwards, base year 2015=100, for all residential properties, houses and apartments, nationally, in Dublin and outside Dublin, with house indices for the four Dublin areas and seven regions outside Dublin (from 2010), and CSO's 1, 3 and 12 month percentage changes (CSO table HPM09). Plus monthly market-based household purchases of residential dwellings from January 2010: number of dwellings, total value, mean and median price, by region and county and by dwelling type, by month of stamp duty filing (CSO table HPM05). Both are compiled from Revenue stamp duty returns. Source: Central Statistics Office, Ireland, PxStat API.",
  "status": "monitored",
  "licenses": [
    {
      "name": "CC-BY-4.0",
      "title": "Creative Commons Attribution 4.0. CSO: \"Statistical information on this website is accessible free of charge and licensed under Creative Commons Attribution (CC BY 4.0).\" Attribution: Central Statistics Office, Ireland.",
      "path": "https://www.cso.ie/en/aboutus/whoweare/copyrightpolicy/"
    }
  ],
  "sources": [
    {
      "title": "Central Statistics Office, Ireland, table HPM09: Residential Property Price Index (monthly, base 2015=100), via the PxStat API",
      "path": "https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset/HPM09/CSV/1.0/en"
    },
    {
      "title": "Central Statistics Office, Ireland, table HPM05: Market-based Household Purchases of Residential Dwellings (monthly), via the PxStat API",
      "path": "https://ws.cso.ie/public/api.restful/PxStat.Data.Cube_API.ReadDataset/HPM05/CSV/1.0/en"
    },
    {
      "title": "CSO Residential Property Price Index release page and background notes (definitions and method)",
      "path": "https://www.cso.ie/en/statistics/prices/residentialpropertypriceindex/"
    }
  ],
  "upkeep": { "mode": "living", "refresh": "monthly", "workflow": ".github/workflows/update.yml" },
  "resources": [
    {
      "path": "data/residential-property-price-index.csv",
      "name": "residential-property-price-index",
      "title": "Residential Property Price Index, Ireland, monthly, 2015=100",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "date", "type": "date", "description": "Month, written as its first day (YYYY-MM-01). From January 2005." },
          { "name": "region", "type": "string", "description": "Area as CSO names it: National, Dublin, National excluding Dublin (CSO also calls it Rest of Ireland); the Dublin areas Dublin City, Dun Laoghaire-Rathdown, Fingal, South Dublin; and the regions outside Dublin Border (Cavan, Donegal, Leitrim, Monaghan, Sligo), Midland (Laois, Longford, Offaly, Westmeath), West (Galway, Mayo, Roscommon), Mid-East (Kildare, Louth, Meath, Wicklow), Mid-West (Clare, Limerick, Tipperary), South-East (Carlow, Kilkenny, Waterford, Wexford), South-West (Cork, Kerry)." },
          { "name": "dwelling_type", "type": "string", "description": "all (all residential properties), houses or apartments. The Dublin areas and the regions outside Dublin have house indices only." },
          { "name": "index", "type": "number", "description": "CSO Residential Property Price Index, base year 2015 = 100 (the 2015 annual average is 100). A hedonic, mix-adjusted and smoothed index of prices paid by households in market transactions. Empty for the eleven Dublin-area and regional house indices before January 2010, where CSO publishes none. The latest three months are provisional." },
          { "name": "change_1m_pct", "type": "number", "description": "Percentage change over 1 month, as published by CSO." },
          { "name": "change_3m_pct", "type": "number", "description": "Percentage change over 3 months, as published by CSO." },
          { "name": "change_12m_pct", "type": "number", "description": "Percentage change over 12 months, as published by CSO." }
        ],
        "primaryKey": ["date", "region", "dwelling_type"]
      }
    },
    {
      "path": "data/household-purchases.csv",
      "name": "household-purchases",
      "title": "Market-based household purchases of residential dwellings, Ireland, monthly: number, value, mean and median price",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "date", "type": "date", "description": "Month in which the stamp duty return was filed with the Revenue Commissioners (CSO 'Filings'), written as its first day (YYYY-MM-01). From January 2010. Not the month of sale." },
          { "name": "region", "type": "string", "description": "National, one of CSO's eight RPPI regions (Border Excluding Louth, Midland, West, Dublin, Mid-East including Louth, Mid-West including South Tipperary, South-East excluding South Tipperary, South-West) or a county or city within one (Dublin is split into Dublin City, Dún Laoghaire-Rathdown, Fingal, South Dublin). Names as CSO gives them, except CSO's 'All' is written National." },
          { "name": "dwelling_type", "type": "string", "description": "all, houses or apartments. CSO imputes the dwelling type in roughly one case in four, so the house and apartment splits are estimates." },
          { "name": "volume", "type": "integer", "description": "Number of dwellings bought by households at market prices, new and existing, filed in the month." },
          { "name": "value_eur_million", "type": "number", "description": "Total value of those purchases, in millions of euro." },
          { "name": "mean_price_eur", "type": "number", "description": "Mean price in euro for purchases filed in the month, as published by CSO. It may differ from the published total value divided by volume because the total value is rounded to 0.1 million euro. Empty when volume is 0." },
          { "name": "median_price_eur", "type": "number", "description": "Median price in euro for purchases whose stamp-duty returns were filed in the month: at least half the transaction prices are at or below it and at least half at or above it. Empty when volume is 0. This is a single filing-month median; CSO's headline median covers 12 months (table HPM07, not included)." }
        ],
        "primaryKey": ["date", "region", "dwelling_type"]
      }
    }
  ],
  "views": [
    {
      "name": "rppi-chart",
      "title": "Residential Property Price Index, Ireland, all residential properties, 2015=100",
      "resources": ["residential-property-price-index"],
      "specType": "vega-lite",
      "spec": {
        "width": "container",
        "height": 340,
        "transform": [
          { "filter": "datum.dwelling_type == 'all'" }
        ],
        "mark": { "type": "line", "strokeWidth": 1.5 },
        "encoding": {
          "x": { "field": "date", "type": "temporal", "axis": { "title": null } },
          "y": { "field": "index", "type": "quantitative", "axis": { "title": "Index, 2015 = 100" } },
          "color": { "field": "region", "type": "nominal", "title": null, "sort": ["National", "Dublin", "National excluding Dublin"] },
          "tooltip": [
            { "field": "date", "type": "temporal", "format": "%b %Y" },
            { "field": "region", "type": "nominal" },
            { "field": "index", "type": "quantitative", "format": ".1f" },
            { "field": "change_12m_pct", "type": "quantitative", "title": "12-month change, %" }
          ]
        }
      }
    }
  ]
}
