Skip to content

EPCs

An Energy Performance Certificate (EPC) provides an overview of a property’s energy efficiency. EPCs assign each property a grade between A (most efficient) and G (least efficient) and highlight the efficiency of key property features such as windows, walls and heating systems. EPCs are generally required when a property is built, sold or let, and are normally valid for 10 years. EPCs are managed separately for England and Wales, and Scotland.

The EPCs API can be used to retrieve a variety of information about the EPC(s) of a domestic property in England, Scotland or Wales. This includes the following:

  • Raw EPCs. These are unmodified EPCs taken directly from government sources. Note that raw EPCs often contain inconsistencies and unsanitised data points, so we recommend working with our enhanced EPCs instead.
  • Enhanced EPCs. These are modified EPCs that have been taken through a standardisation process to sanitise their contents and remove inconsistencies. We recommend working with these rather than raw EPCs.
  • EPC Estimates. For properties that have no available EPC, the API provides an estimated assessment (where possible) based on the attributes of nearby properties.
  • EPC Statistics. A statistical analysis of the energy efficiency of the wider housing stock that is designed to help you assess the relative performance of the property you are searching for.
  • EPC Recommendations. Recommended retrofit measures and their indicative costs.

You can access, test and subscribe to the API at www.propeco.io/api.


GET /epcs?uprn={uprn}

📄❓ See Code Samples (page bottom) for an example request.

Retrieves information about a property's EPCs, including raw unmodified EPCs, enhanced EPCs, and EPC statistics.

Query Parameters

uprn string Required

The Unique Property Reference Number (UPRN) of the property.


Response

📄❓ See Code Samples (page bottom) for an example response.

An object containing a range of information about a UK property's EPCs, as follows:

Raw EPCs

These are unmodified EPCs taken directly from government sources.

England & Wales

{
    "certificate_number": "8788-7424-5370-3747-2996",
    "address1": "30, Tynemouth Street",
    "address2": null,
    "address3": null,
    "postcode": "SW6 2QT",
    "posttown": "LONDON",
    "address": "30, Tynemouth Street",
    "constituency": "E14001160",
    "constituency_label": "Chelsea and Fulham",
    "local_authority": "E09000013",
    "local_authority_label": "Hammersmith and Fulham",
    "built_form": "Mid-Terrace",
    "co2_emiss_curr_per_floor_area": "35",
    "co2_emissions_current": "4.9",
    "co2_emissions_potential": "2.7",
    "construction_age_band": "England and Wales: 1900-1929",
    "current_energy_efficiency": 64,
    "current_energy_rating": "D",
    "energy_consumption_current": 197,
    "energy_consumption_potential": 107,
    "energy_tariff": "Single",
    "environment_impact_current": 55,
    "environment_impact_potential": 72,
    "extension_count": 1,
    "fixed_lighting_outlets_count": 23,
    "flat_storey_count": "2",
    "flat_top_storey": "N",
    "floor_description": "Suspended, no insulation (assumed)",
    "floor_energy_eff": "N/A",
    "floor_height": "2.62",
    "floor_level": null,
    "glazed_area": "Normal",
    "glazed_type": "double glazing installed during or after 2002",
    "heat_loss_corridor": null,
    "heating_cost_current": 822,
    "heating_cost_potential": 641,
    "hot_water_cost_current": 140,
    "hot_water_cost_potential": 86,
    "hot_water_energy_eff": "Good",
    "hot_water_env_eff": "Good",
    "hotwater_description": "From main system",
    "inspection_date": "2018-04-13T00:00:00.000Z",
    "lighting_cost_current": 85,
    "lighting_cost_potential": 85,
    "lighting_description": "Low energy lighting in 96% of fixed outlets",
    "lighting_energy_eff": "Very Good",
    "lighting_env_eff": "Very Good",
    "lodgement_date": "2018-04-13T00:00:00.000Z",
    "lodgement_datetime": "2018-04-13T17:05:00.000Z",
    "low_energy_lighting": 96,
    "low_energy_fixed_lighting_outlets_count": 22,
    "main_fuel": "mains gas (not community)",
    "mainheat_description": "Boiler and radiators, mains gas",
    "mainheat_energy_eff": "Good",
    "mainheat_env_eff": "Good",
    "mainheatc_energy_eff": "Good",
    "mainheatc_env_eff": "Good",
    "mainheatcont_description": "Programmer, room thermostat and TRVs",
    "main_heating_controls": "Programmer, room thermostat and TRVs",
    "mains_gas_flag": "Y",
    "mechanical_ventilation": "natural",
    "multi_glaze_proportion": 100,
    "number_habitable_rooms": 6,
    "number_heated_rooms": 6,
    "number_open_fireplaces": 2,
    "photo_supply": 0,
    "potential_energy_efficiency": 78,
    "potential_energy_rating": "C",
    "property_type": "House",
    "report_type": 2,
    "roof_description": "Pitched, 300 mm loft insulation",
    "roof_energy_eff": "Very Good",
    "roof_env_eff": "Very Good",
    "secondheat_description": "Room heaters, mains gas",
    "sheating_energy_eff": "N/A",
    "sheating_env_eff": "N/A",
    "solar_water_heating_flag": "N",
    "tenure": "owner-occupied",
    "total_floor_area": "141",
    "transaction_type": "Marketed sale",
    "unheated_corridor_length": null,
    "walls_description": "Solid brick, as built, no insulation (assumed)",
    "walls_energy_eff": "Very Poor",
    "walls_env_eff": "Very Poor",
    "wind_turbine_count": 0,
    "windows_description": "Fully double glazed",
    "windows_energy_eff": "Good",
    "windows_env_eff": "Good",
    "floor_env_eff": "N/A",
    "region": "E12000007",
    "country": "England",
    "uprn": "34076006",
    "uprn_source": "Energy Assessor"
}

For properties in England and Wales, all EPCs (current, expired, replaced etc) will be returned.

For more information on these please see the official docs.

Scotland

{
    "id": "1814841",
    "historic": false,
    "building_reference_number": "1001366242",
    "osg_reference_number": "906178651",
    "address1": "136 NEWHAVEN ROAD",
    "address2": null,
    "address3": "EDINBURGH",
    "postcode": "EH6 4NR",
    "inspection_date": "2017-03-24T00:00:00.000Z",
    "type_of_assessment": "RdSAP, existing dwelling",
    "lodgement_date": "2017-03-28T00:00:00.000Z",
    "energy_consumption_current": "249.00",
    "total_floor_area": "123",
    "3_yr_energy_cost_current": "3588.0000",
    "3_yr_energy_savings_potential": "996.0000",
    "current_energy_efficiency": "65",
    "current_energy_rating": "D",
    "potential_energy_efficiency": "83",
    "potential_energy_rating": "B",
    "environment_impact_current": "59",
    "current_environmental_rating": "D",
    "environment_impact_potential": "79",
    "potential_environmental_rating": "C",
    "co2_emiss_curr_per_floor_area": "44.00",
    "improvements": "Description: Low energy lighting for all fixed outlets; Indicative Cost: £60; Typical Saving: 61; Energy Rating after improvement: C 71; Environmental Rating after improvement: D 66; Green Deal Eligible: N | Description: Solar water heating; Indicative Cost: £4,000 - £6,000; Typical Saving: 47; Energy Rating after improvement: C 72; Environmental Rating after improvement: D 68; Green Deal Eligible: Y | Description: Solar photovoltaic panels, 2.5 kWp; Indicative Cost: £5,000 - £8,000; Typical Saving: 264; Energy Rating after improvement: B 83; Environmental Rating after improvement: C 79; Green Deal Eligible: Y | Description: Replace single glazed windows with low-E double glazed windows; Indicative Cost: £3,300 - £6,500; Typical Saving: 101; Energy Rating after improvement: C 75; Environmental Rating after improvement: C 72; Green Deal Eligible: Y | Description: Floor insulation (suspended floor); Indicative Cost: £800 - £1,200; Typical Saving: 123; Energy Rating after improvement: C 69; Environmental Rating after improvement: D 64; Green Deal Eligible: Y |",
    "wall_description": "Cavity wall, filled cavity",
    "wall_energy_eff": "Good",
    "wall_env_eff": "Good",
    "roof_description": "Pitched, 200 mm loft insulation",
    "roof_energy_eff": "Good",
    "roof_env_eff": "Good",
    "floor_description": "Suspended, no insulation (assumed)",
    "floor_energy_eff": "N/A",
    "floor_env_eff": "N/A",
    "windows_description": "Description: Single glazed",
    "windows_energy_eff": "Very Poor",
    "windows_env_eff": "Very Poor",
    "mainheat_description": "Boiler and radiators, mains gas",
    "mainheat_energy_eff": "Good",
    "mainheat_env_eff": "Good",
    "mainheatcont_description": "Programmer, room thermostat and TRVs",
    "mainheatc_energy_eff": "Good",
    "mainheatc_env_eff": "Good",
    "secondheat_description": "None",
    "sheating_energy_eff": "N/A",
    "sheating_env_eff": "N/A",
    "hotwater_description": "From main system",
    "hot_water_energy_eff": "Good",
    "hot_water_env_eff": "Good",
    "lighting_description": "No low energy lighting",
    "lighting_energy_eff": "Very Poor",
    "lighting_env_eff": "Very Poor",
    "air_tightness_description": null,
    "air_tightness_energy_eff": null,
    "air_tightness_env_eff": null,
    "co2_emissions_current": "5.40",
    "co2_emissions_potential": "2.50",
    "heating_cost_current": "2748.0000",
    "heating_cost_potential": "2112.0000",
    "hot_water_cost_current": "414.00",
    "hot_water_cost_potential": "264.00",
    "lighting_cost_current": "426.00",
    "lighting_cost_potential": "216.00",
    "alternative_improvements": null,
    "lzc_energy_sources": null,
    "space_heating_demand": "17136",
    "water_heating_demand": "2822",
    "impact_loft_insulation": "0",
    "impact_cavity_wall_insulation": "0",
    "impact_solid_wall_insulation": "0",
    "addendum_text": null,
    "construction_age_band": "1965-1975",
    "floor_height": "2.4",
    "data_zone": "S01002294 (East Trinity and Bonnyhaugh)",
    "energy_consumption_potential": "132.00",
    "extension_count": "0",
    "fixed_lighting_outlets_count": "12",
    "low_energy_fixed_light_count": "0",
    "low_energy_lighting": "0.00",
    "floor_level": null,
    "flat_top_storey": null,
    "glazed_area": "1",
    "number_habitable_rooms": "4",
    "heat_loss_corridoor": null,
    "number_heated_rooms": "4",
    "local_authority_label": "Edinburgh City",
    "mains_gas_flag": null,
    "main_heating_category": "boiler with radiators or underfloor heating",
    "main_fuel": "mains gas (not community)",
    "main_heating_controls": "2106",
    "mechanical_ventilation": "natural",
    "energy_tariff": "Single",
    "multi_glaze_proportion": "0",
    "glazed_type": "not defined",
    "number_open_fireplaces": "0",
    "photo_supply": "Array: Roof Area: 0%; Connection: not applicable (FGHRS or no PV);  |",
    "solar_water_heating_flag": "N",
    "tenure": "owner-occupied",
    "transaction_type": "none of the above",
    "unheated_corridor_length": null,
    "constituency": "00QPMD",
    "constituency_label": "Forth",
    "wind_turbine_count": "0",
    "built_form": "Detached",
    "property_type": "Bungalow",
    "data_zone_2011": "S01008823 (Trinity East and The Dudleys - 03)",
    "created_at": "28/03/2017 17:16:57",
    "report_reference_number": null,
    "ingest_id": "1410300"
}

For properties in Scotland, all EPCs (current, expired, replaced etc) will be returned.

For more information on these please see the official docs.

Enhanced EPCs

The raw EPCs come with basic cleaning, but are still somewhat messy and unstandardised, making it challenging to use them for analytical purposes. The API therefore provides enhanced versions of the EPC datasets, which are designed to save you considerable time and effort when integrating EPC data into analytical workflows. In doing this, we have tried to make minimal assumptions about the downstream tasks, such as data analysis or machine learning.

Key improvements include:

  • Standardising null-ish values
  • Removing trailing spaces and commas
  • Removing special characters
  • Removing empty columns
  • Removing unnecessary prefixes
  • Fixing broken dates
  • Converting to sensible types
  • Standardising formatting
  • Standardising categorical variables
  • Standardising UK descriptors (across England and Wales, and Scotland)

For properties in England & Wales, the mapping of 'raw' to 'enhanced' EPC fields is as follows:

{
    "address": "address",
    "address1": "address1",
    "address2": "address2",
    "address3": "address3",
    "building_reference_number": "building_reference_number",
    "built_form": "built_form",
    "co2_emiss_curr_per_floor_area": "co2_emissions_per_floor_area_m2_current",
    "co2_emissions_current": "co2_emissions_current",
    "co2_emissions_potential": "co2_emissions_potential",
    "constituency": "constituency",
    "constituency_label": "constituency_label",
    "construction_age_band": "construction_age_band",
    "county": "county",
    "current_energy_efficiency": "energy_efficiency_current",
    "current_energy_rating": "energy_rating_current",
    "energy_consumption_current": "energy_consumption_per_floor_area_m2_current",
    "energy_consumption_potential": "energy_consumption_per_floor_area_m2_potential",
    "energy_tariff": "energy_tariff",
    "environment_impact_current": "environmental_impact_current",
    "environment_impact_potential": "environmental_impact_potential",
    "extension_count": "extension_count",
    "fixed_lighting_outlet_count": "fixed_lighting_outlets_count",
    "flat_storey_count": "flat_storey_count",
    "flat_top_storey": "is_flat_top_storey",
    "floor_description": "floor_description",
    "floor_energy_eff": "floor_energy_efficiency",
    "floor_env_eff": "floor_environmental_efficiency",
    "floor_height": "floor_height",
    "floor_level": "floor_level",
    "glazed_area": "glazed_area",
    "glazed_type": "glazed_type",
    "heat_loss_corridor": "heat_loss_corridor",
    "heating_cost_current": "heating_cost_current",
    "heating_cost_potential": "heating_cost_potential",
    "hot_water_cost_current": "hot_water_cost_current",
    "hot_water_cost_potential": "hot_water_cost_potential",
    "hot_water_energy_eff": "hot_water_energy_efficiency",
    "hot_water_env_eff": "hot_water_environmental_efficiency",
    "hotwater_description": "hot_water_description",
    "inspection_date": "inspection_date",
    "lighting_cost_current": "lighting_cost_current",
    "lighting_cost_potential": "lighting_cost_potential",
    "lighting_description": "lighting_description",
    "lighting_energy_eff": "lighting_energy_efficiency",
    "lighting_env_eff": "lighting_environmental_efficiency",
    "lmk_key": "lmk_key",
    "local_authority": "local_authority",
    "local_authority_label": "local_authority_label",
    "lodgement_date": "lodgement_date",
    "lodgement_datetime": "lodgement_datetime",
    "low_energy_fixed_light_count": "low_energy_fixed_light_count",
    "low_energy_lighting": "low_energy_lighting_percentage",
    "main_fuel": "main_fuel",
    "main_heating_controls": "main_heating_controls",
    "mainheat_description": "main_heating_description",
    "mainheat_energy_eff": "main_heating_energy_efficiency",
    "mainheat_env_eff": "main_heating_environmental_efficiency",
    "mainheatc_energy_eff": "main_heating_controls_energy_efficiency",
    "mainheatc_env_eff": "main_heating_controls_environmental_efficiency",
    "mainheatcont_description": "main_heating_controls_description",
    "mains_gas_flag": "has_mains_gas",
    "mechanical_ventilation": "mechanical_ventilation",
    "multi_glaze_proportion": "multi_glaze_percentage",
    "number_habitable_rooms": "habitable_room_count",
    "number_heated_rooms": "heated_room_count",
    "number_open_fireplaces": "open_fireplace_count",
    "photo_supply": "roof_photovoltaic_supply",
    "postcode": "postcode",
    "posttown": "post_town",
    "potential_energy_efficiency": "energy_efficiency_potential",
    "potential_energy_rating": "energy_rating_potential",
    "property_type": "property_type",
    "roof_description": "roof_description",
    "roof_energy_eff": "roof_energy_efficiency",
    "roof_env_eff": "roof_environmental_efficiency",
    "secondheat_description": "second_heating_description",
    "solar_water_heating_flag": "has_solar_water_heating",
    "tenure": "tenure",
    "total_floor_area": "total_floor_area",
    "transaction_type": "transaction_type",
    "unheated_corridor_length": "unheated_corridor_length",
    "uprn": "uprn",
    "uprn_source": "uprn_source",
    "walls_description": "walls_description",
    "walls_energy_eff": "walls_energy_efficiency",
    "walls_env_eff": "walls_environmental_efficiency",
    "wind_turbine_count": "wind_turbine_count",
    "windows_description": "windows_description",
    "windows_energy_eff": "windows_energy_efficiency",
    "windows_env_eff": "windows_environmental_efficiency"
}

For properties in Scotland, the mapping of 'raw' to 'enhanced' EPC fields is as follows:

{
    "3_yr_energy_cost_current": "three_year_energy_cost_current",
    "3_yr_energy_savings_potential": "three_year_energy_saving_potential",
    "address1": "address1",
    "address2": "address2",
    "address3": "post_town",
    "air_tightness_description": "air_tightness_description",
    "air_tightness_energy_eff": "air_tightness_energy_efficiency",
    "air_tightness_env_eff": "air_tightness_environmental_efficiency",
    "alternative_improvements": "alternative_improvements",
    "building_reference_number": "building_reference_number",
    "built_form": "built_form",
    "co2_emiss_curr_per_floor_area": "co2_emissions_per_floor_area_m2_current",
    "co2_emissions_current": "co2_emissions_current",
    "co2_emissions_potential": "co2_emissions_reduction_potential",
    "constituency": "constituency",
    "constituency_label": "constituency_label",
    "construction_age_band": "construction_age_band",
    "current_energy_efficiency": "energy_efficiency_current",
    "current_energy_rating": "energy_rating_current",
    "current_environmental_rating": "environmental_rating_current",
    "data_zone": "data_zone",
    "data_zone_2011": "data_zone_2011",
    "energy_consumption_current": "energy_consumption_per_floor_area_m2_current",
    "energy_consumption_potential": "energy_consumption_per_floor_area_m2_potential",
    "energy_tariff": "energy_tariff",
    "environment_impact_current": "environmental_impact_current",
    "environment_impact_potential": "environmental_impact_potential",
    "extension_count": "extension_count",
    "fixed_lighting_outlets_count": "fixed_lighting_outlets_count",
    "flat_top_storey": "flat_storey_count",
    "floor_description": "floor_description",
    "floor_energy_eff": "floor_energy_efficiency",
    "floor_env_eff": "floor_environmental_efficiency",
    "floor_height": "floor_height",
    "floor_level": "floor_level",
    "glazed_area": "glazed_area",
    "glazed_type": "glazed_type",
    "heat_loss_corridoor": "heat_loss_corridor",
    "heating_cost_current": "heating_cost_current",
    "heating_cost_potential": "heating_cost_potential",
    "hot_water_cost_current": "hot_water_cost_current",
    "hot_water_cost_potential": "hot_water_cost_potential",
    "hot_water_energy_eff": "hot_water_energy_efficiency",
    "hot_water_env_eff": "hot_water_environmental_efficiency",
    "hotwater_description": "hot_water_description",
    "impact_cavity_wall_insulation": "impact_cavity_wall_insulation",
    "impact_loft_insulation": "impact_loft_insulation",
    "impact_solid_wall_insulation": "impact_solid_wall_insulation",
    "improvements": "improvements",
    "inspection_date": "inspection_date",
    "lighting_cost_current": "lighting_cost_current",
    "lighting_cost_potential": "lighting_cost_potential",
    "lighting_description": "lighting_description",
    "lighting_energy_eff": "lighting_energy_efficiency",
    "lighting_env_eff": "lighting_environmental_efficiency",
    "local_authority_label": "local_authority_label",
    "lodgement_date": "lodgement_date",
    "low_energy_fixed_light_count": "low_energy_fixed_light_count",
    "low_energy_lighting": "low_energy_lighting_percentage",
    "lzc_energy_sources": "lzc_energy_sources",
    "main_fuel": "main_fuel",
    "main_heating_category": "main_heating_category",
    "main_heating_controls": "main_heating_controls",
    "mainheat_description": "main_heating_description",
    "mainheat_energy_eff": "main_heating_energy_efficiency",
    "mainheat_env_eff": "main_heating_environmental_efficiency",
    "mainheatc_energy_eff": "main_heating_controls_energy_efficiency",
    "mainheatc_env_eff": "main_heating_controls_environmental_efficiency",
    "mainheatcont_description": "main_heating_controls_description",
    "mains_gas_flag": "has_mains_gas",
    "mechanical_ventilation": "mechanical_ventilation",
    "multi_glaze_proportion": "multi_glaze_percentage",
    "number_habitable_rooms": "habitable_room_count",
    "number_heated_rooms": "heated_room_count",
    "number_open_fireplaces": "open_fireplace_count",
    "osg_reference_number": "uprn",
    "photo_supply": "roof_photovoltaic_supply",
    "postcode": "postcode",
    "potential_energy_efficiency": "energy_efficiency_potential",
    "potential_energy_rating": "energy_rating_potential",
    "potential_environmental_rating": "environmental_rating_potential",
    "property_type": "property_type",
    "roof_description": "roof_description",
    "roof_energy_eff": "roof_energy_efficiency",
    "roof_env_eff": "roof_environmental_efficiency",
    "secondheat_description": "second_heating_description",
    "solar_water_heating_flag": "has_solar_water_heating",
    "space_heating_demand": "space_heating_demand",
    "tenure": "tenure",
    "total_floor_area": "total_floor_area",
    "transaction_type": "transaction_type",
    "type_of_assessment": "type_of_assessment",
    "unheated_corridor_length": "unheated_corridor_length",
    "wall_description": "walls_description",
    "wall_energy_eff": "walls_energy_efficiency",
    "wall_env_eff": "walls_environmental_efficiency",
    "water_heating_demand": "water_heating_demand",
    "wind_turbine_count": "wind_turbine_count",
    "windows_description": "windows_description",
    "windows_energy_eff": "windows_energy_efficiency",
    "windows_env_eff": "windows_environmental_efficiency"
}

We also make several additions to Enhanced EPCs, including:

  • Adjusting the original EPC cost estimates to reflect current energy prices.
  • Highlighting floor type (suspended or solid), wall type (solid or cavity), roof type (flat, pitched or thatched) and the presence of a heat pump (based on an assessment of the unstructured data within the EPC).

Note that, in order to align more closely with the England and Wales dataset, enhanced EPCs for properties in Scotland contain the following additional fields with annual (instead of three year) cost projections:

  • heating_cost_current
  • hot_water_cost_current
  • lighting_cost_current
  • energy_saving_potential
  • heating_cost_potential
  • hot_water_cost_potential
  • lighting_cost_potential
  • energy_cost_current

Enhanced EPCs for properties in Scotland also contain a 'co2_emissions_potential' field, which reflects the current estimated CO2 emissions minus the potential co2 savings projected in the original EPC.

An enhanced version of each EPC will be returned, as below.

{
    "address": "30, Tynemouth Street",
    "address1": "30, Tynemouth Street",
    "address2": null,
    "address3": null,
    "adjusted_costs": {
        "heating_cost_current": 1299.6,
        "heating_cost_potential": 1013.5,
        "hot_water_cost_current": 221.3,
        "hot_water_cost_potential": 136,
        "lighting_cost_current": 137.1,
        "lighting_cost_potential": 137.1,
        "total_fuel_cost_current": 1658,
        "total_fuel_cost_potential": 1286.6,
        "standing_charges": 305
    },
    "built_form": "Mid-Terrace",
    "certificate_number": "8788-7424-5370-3747-2996",
    "co2_emissions_current": 4.9,
    "co2_emissions_per_floor_area_m2_current": 35,
    "co2_emissions_potential": 2.7,
    "co2_emissions_reduction_potential": 2.2,
    "constituency": "E14001160",
    "constituency_label": "Chelsea and Fulham",
    "construction_age_band": "1900-1929",
    "country": "England",
    "dwelling_type": "Existing dwellings",
    "energy_consumption_per_floor_area_m2_current": 197,
    "energy_consumption_per_floor_area_m2_potential": 107,
    "energy_efficiency_current": 64,
    "energy_efficiency_potential": 78,
    "energy_rating_current": "D",
    "energy_rating_potential": "C",
    "energy_tariff": "Single",
    "environmental_impact_current": 55,
    "environmental_impact_potential": 72,
    "extension_count": 1,
    "fixed_lighting_outlet_count": 23,
    "flat_storey_count": 2,
    "floor_description": "Suspended, no insulation (assumed)",
    "floor_energy_efficiency": "N/A",
    "floor_environmental_efficiency": "N/A",
    "floor_height": 2.62,
    "floor_level": null,
    "floor_thermal_transmittance": null,
    "floor_type": "suspended",
    "glazed_area": "Normal",
    "glazed_type": "Double",
    "habitable_room_count": 6,
    "has_mains_gas": true,
    "has_solar_water_heating": false,
    "heat_loss_corridor": null,
    "heat_pump": false,
    "heated_room_count": 6,
    "heating_cost_current": 822,
    "heating_cost_potential": 641,
    "hot_water_cost_current": 140,
    "hot_water_cost_potential": 86,
    "hot_water_description": "From main system",
    "hot_water_energy_efficiency": "Good",
    "hot_water_environmental_efficiency": "Good",
    "inspection_date": "2018-04-13T00:00:00.000Z",
    "is_flat_top_storey": false,
    "lighting_cost_current": 85,
    "lighting_cost_potential": 85,
    "lighting_description": "Low energy lighting in 96% of fixed outlets",
    "lighting_energy_efficiency": "Very Good",
    "lighting_environmental_efficiency": "Very Good",
    "local_authority": "E09000013",
    "local_authority_label": "Hammersmith and Fulham",
    "lodgement_date": "2018-04-13T00:00:00.000Z",
    "lodgement_datetime": "2018-04-13T17:05:00.000Z",
    "low_energy_fixed_light_count": 22,
    "low_energy_lighting_percentage": 96,
    "main_fuel": "Mains gas (not community)",
    "main_heating_controls": "Programmer, room thermostat and TRVs",
    "main_heating_controls_description": "Programmer, room thermostat and TRVs",
    "main_heating_controls_energy_efficiency": "Good",
    "main_heating_controls_environmental_efficiency": "Good",
    "main_heating_description": "Boiler and radiators, mains gas",
    "main_heating_energy_efficiency": "Good",
    "main_heating_environmental_efficiency": "Good",
    "mechanical_ventilation": "Natural",
    "multi_glaze_percentage": 100,
    "open_fireplace_count": 2,
    "post_town": "London",
    "postcode": "SW6 2QT",
    "property_type": "House",
    "region": "E12000007",
    "report_type": "Reduced Standard Assessment Procedure (RdSAP)",
    "roof_description": "Pitched, 300 mm loft insulation",
    "roof_energy_efficiency": "Very Good",
    "roof_environmental_efficiency": "Very Good",
    "roof_photovoltaic_supply": 0,
    "roof_thermal_transmittance": null,
    "roof_type": "pitched",
    "second_heating_description": "Room heaters, mains gas",
    "second_heating_energy_efficiency": "N/A",
    "second_heating_environmental_efficiency": "N/A",
    "tenure": "Owner-Occupied",
    "total_energy_consumption_current": 27777,
    "total_energy_consumption_potential": 15087,
    "total_floor_area": 141,
    "transaction_type": "Marketed sale",
    "unheated_corridor_length": null,
    "uprn": 34076006,
    "uprn_source": "Energy Assessor",
    "walls_description": "Solid brick, as built, no insulation (assumed)",
    "walls_energy_efficiency": "Very Poor",
    "walls_environmental_efficiency": "Very Poor",
    "walls_thermal_transmittance": null,
    "walls_type": "solid",
    "wind_turbine_count": 0,
    "windows_description": "Fully Double Glazed",
    "windows_energy_efficiency": "Good",
    "windows_environmental_efficiency": "Good"
}

EPC Stats

The API also provides various summary statistics for a subset of EPC fields:

  • Current energy rating
  • Potential energy rating
  • Current energy consumption
  • Potential energy consumption
  • Current energy efficiency
  • Potential energy efficiency
  • Current CO2 emissions
  • Potential CO2 emissions

Statistics provided include:

  • Counts
  • Average
  • Standard deviation
  • Mode
  • Min
  • Max
  • Percentiles: 10, 25, 50, 75, 90

These have been grouped by:

  • Postcode
  • Outcode
  • Local authority
  • Region
  • Country
  • Local authority and property type
  • Country and property type
{
    "postcode_stats": {
        "postcode": "SW6 2QT",
        "property_count": 30,
        "mode_energy_rating_current": "D",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.5508613944197478,
        "min_energy_rating_current": "C",
        "max_energy_rating_current": "E",
        "perc_10_energy_rating_current": 4,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 4,
        "perc_75_energy_rating_current": 4.75,
        "perc_90_energy_rating_current": 5,
        "energy_rating_a_count_current": 0,
        "energy_rating_b_count_current": 0,
        "energy_rating_c_count_current": 8,
        "energy_rating_d_count_current": 20,
        "energy_rating_e_count_current": 2,
        "energy_rating_f_count_current": 0,
        "energy_rating_g_count_current": 0,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "D",
        "stddev_energy_rating_potential": 0.5560534167675355,
        "min_energy_rating_potential": "B",
        "max_energy_rating_potential": "E",
        "perc_10_energy_rating_potential": 4.9,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 5,
        "perc_75_energy_rating_potential": 5,
        "perc_90_energy_rating_potential": 5.1000000000000005,
        "energy_rating_a_count_potential": 0,
        "energy_rating_b_count_potential": 3,
        "energy_rating_c_count_potential": 24,
        "energy_rating_d_count_potential": 2,
        "energy_rating_e_count_potential": 1,
        "energy_rating_f_count_potential": 0,
        "energy_rating_g_count_potential": 0,
        "avg_energy_consumption_per_floor_area_m2_current": 230.06666666666666,
        "stddev_energy_consumption_per_floor_area_m2_current": 53.75033814381741,
        "min_energy_consumption_per_floor_area_m2_current": 132,
        "max_energy_consumption_per_floor_area_m2_current": 351,
        "perc_10_energy_consumption_per_floor_area_m2_current": 176.9,
        "perc_25_energy_consumption_per_floor_area_m2_current": 192.5,
        "perc_50_energy_consumption_per_floor_area_m2_current": 223,
        "perc_75_energy_consumption_per_floor_area_m2_current": 263,
        "perc_90_energy_consumption_per_floor_area_m2_current": 307.3,
        "avg_energy_consumption_per_floor_area_m2_potential": 144.93333333333334,
        "stddev_energy_consumption_per_floor_area_m2_potential": 54.10585622796223,
        "min_energy_consumption_per_floor_area_m2_potential": 60,
        "max_energy_consumption_per_floor_area_m2_potential": 338,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 105,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 118.25,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 132,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 157.5,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 213.4,
        "avg_energy_efficiency_current": 65.6,
        "stddev_energy_efficiency_current": 5.4684045457392845,
        "min_energy_efficiency_current": 53,
        "max_energy_efficiency_current": 74,
        "perc_10_energy_efficiency_current": 57.8,
        "perc_25_energy_efficiency_current": 63.25,
        "perc_50_energy_efficiency_current": 67.5,
        "perc_75_energy_efficiency_current": 68.75,
        "perc_90_energy_efficiency_current": 72.1,
        "avg_energy_efficiency_potential": 75.96666666666667,
        "stddev_energy_efficiency_potential": 6.008518856638024,
        "min_energy_efficiency_potential": 54,
        "max_energy_efficiency_potential": 87,
        "perc_10_energy_efficiency_potential": 71.4,
        "perc_25_energy_efficiency_potential": 74,
        "perc_50_energy_efficiency_potential": 78,
        "perc_75_energy_efficiency_potential": 79,
        "perc_90_energy_efficiency_potential": 79.3,
        "avg_total_floor_area": 72.26666666666667,
        "avg_co2_emissions_current": 2.8666666666666663,
        "stddev_co2_emissions_current": 0.8797857628455616,
        "min_co2_emissions_current": 1.5,
        "max_co2_emissions_current": 4.9,
        "perc_10_co2_emissions_current": 1.88,
        "perc_25_co2_emissions_current": 2.225,
        "perc_50_co2_emissions_current": 2.75,
        "perc_75_co2_emissions_current": 3.3,
        "perc_90_co2_emissions_current": 3.8800000000000003,
        "avg_co2_emissions_potential": 1.7933333333333337,
        "stddev_co2_emissions_potential": 0.7234654786861462,
        "min_co2_emissions_potential": 1,
        "max_co2_emissions_potential": 3.8,
        "perc_10_co2_emissions_potential": 1.2,
        "perc_25_co2_emissions_potential": 1.3,
        "perc_50_co2_emissions_potential": 1.4,
        "perc_75_co2_emissions_potential": 2.4,
        "perc_90_co2_emissions_potential": 2.7,
        "avg_energy_rating_current_numerical": 4.2,
        "avg_energy_rating_potential_numerical": 4.966666666666667
    },
    "outcode_stats": {
        "outcode": "SW6",
        "property_count": 26807,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.8862848755495365,
        "min_energy_rating_current": "A",
        "max_energy_rating_current": "G",
        "perc_10_energy_rating_current": 4,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 5,
        "perc_75_energy_rating_current": 5,
        "perc_90_energy_rating_current": 6,
        "energy_rating_a_count_current": 11,
        "energy_rating_b_count_current": 3962,
        "energy_rating_c_count_current": 11282,
        "energy_rating_d_count_current": 9068,
        "energy_rating_e_count_current": 2182,
        "energy_rating_f_count_current": 216,
        "energy_rating_g_count_current": 86,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.664982057561173,
        "min_energy_rating_potential": "A",
        "max_energy_rating_potential": "G",
        "perc_10_energy_rating_potential": 5,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 5,
        "perc_75_energy_rating_potential": 6,
        "perc_90_energy_rating_potential": 6,
        "energy_rating_a_count_potential": 92,
        "energy_rating_b_count_potential": 9307,
        "energy_rating_c_count_potential": 14925,
        "energy_rating_d_count_potential": 2143,
        "energy_rating_e_count_potential": 301,
        "energy_rating_f_count_potential": 23,
        "energy_rating_g_count_potential": 16,
        "avg_energy_consumption_per_floor_area_m2_current": 203.07315665613368,
        "stddev_energy_consumption_per_floor_area_m2_current": 101.45439656826528,
        "min_energy_consumption_per_floor_area_m2_current": -1,
        "max_energy_consumption_per_floor_area_m2_current": 1790,
        "perc_10_energy_consumption_per_floor_area_m2_current": 88,
        "perc_25_energy_consumption_per_floor_area_m2_current": 141,
        "perc_50_energy_consumption_per_floor_area_m2_current": 191,
        "perc_75_energy_consumption_per_floor_area_m2_current": 252,
        "perc_90_energy_consumption_per_floor_area_m2_current": 320,
        "avg_energy_consumption_per_floor_area_m2_potential": 138.81249897414855,
        "stddev_energy_consumption_per_floor_area_m2_potential": 73.48058983190619,
        "min_energy_consumption_per_floor_area_m2_potential": -79,
        "max_energy_consumption_per_floor_area_m2_potential": 1616,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 69,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 95,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 124,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 163,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 231,
        "avg_energy_efficiency_current": 68.8733539747081,
        "stddev_energy_efficiency_current": 11.134857072871709,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 94,
        "perc_10_energy_efficiency_current": 55,
        "perc_25_energy_efficiency_current": 63,
        "perc_50_energy_efficiency_current": 70,
        "perc_75_energy_efficiency_current": 76,
        "perc_90_energy_efficiency_current": 83,
        "avg_energy_efficiency_potential": 77.61323534897602,
        "stddev_energy_efficiency_potential": 7.172551719974821,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 110,
        "perc_10_energy_efficiency_potential": 69,
        "perc_25_energy_efficiency_potential": 75,
        "perc_50_energy_efficiency_potential": 79,
        "perc_75_energy_efficiency_potential": 82,
        "perc_90_energy_efficiency_potential": 85,
        "avg_total_floor_area": 92.43808205857052,
        "avg_co2_emissions_current": 3.1423766180475456,
        "stddev_co2_emissions_current": 2.42592412026071,
        "min_co2_emissions_current": 0,
        "max_co2_emissions_current": 84,
        "perc_10_co2_emissions_current": 1,
        "perc_25_co2_emissions_current": 1.6,
        "perc_50_co2_emissions_current": 2.4,
        "perc_75_co2_emissions_current": 4,
        "perc_90_co2_emissions_current": 6.2,
        "avg_co2_emissions_potential": 2.0942813444249477,
        "stddev_co2_emissions_potential": 1.6956758749134722,
        "min_co2_emissions_potential": -1.2,
        "max_co2_emissions_potential": 70,
        "perc_10_co2_emissions_potential": 0.8,
        "perc_25_co2_emissions_potential": 1.2,
        "perc_50_co2_emissions_potential": 1.6,
        "perc_75_co2_emissions_potential": 2.5,
        "perc_90_co2_emissions_potential": 3.8,
        "avg_energy_rating_current_numerical": 4.6105494833439025,
        "avg_energy_rating_potential_numerical": 5.24668929757153
    },
    "local_authority_stats": {
        "local_authority_district_code": "E09000013",
        "property_count": 73891,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.8860409805762881,
        "min_energy_rating_current": "A",
        "max_energy_rating_current": "G",
        "perc_10_energy_rating_current": 4,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 5,
        "perc_75_energy_rating_current": 5,
        "perc_90_energy_rating_current": 6,
        "energy_rating_a_count_current": 29,
        "energy_rating_b_count_current": 12061,
        "energy_rating_c_count_current": 31157,
        "energy_rating_d_count_current": 24323,
        "energy_rating_e_count_current": 5545,
        "energy_rating_f_count_current": 581,
        "energy_rating_g_count_current": 195,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.658290024737231,
        "min_energy_rating_potential": "A",
        "max_energy_rating_potential": "G",
        "perc_10_energy_rating_potential": 5,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 5,
        "perc_75_energy_rating_potential": 6,
        "perc_90_energy_rating_potential": 6,
        "energy_rating_a_count_potential": 238,
        "energy_rating_b_count_potential": 26588,
        "energy_rating_c_count_potential": 40637,
        "energy_rating_d_count_potential": 5604,
        "energy_rating_e_count_potential": 720,
        "energy_rating_f_count_potential": 62,
        "energy_rating_g_count_potential": 42,
        "avg_energy_consumption_per_floor_area_m2_current": 205.43041187958457,
        "stddev_energy_consumption_per_floor_area_m2_current": 109.25492003983284,
        "min_energy_consumption_per_floor_area_m2_current": -27,
        "max_energy_consumption_per_floor_area_m2_current": 1790,
        "perc_10_energy_consumption_per_floor_area_m2_current": 65,
        "perc_25_energy_consumption_per_floor_area_m2_current": 141,
        "perc_50_energy_consumption_per_floor_area_m2_current": 195,
        "perc_75_energy_consumption_per_floor_area_m2_current": 257,
        "perc_90_energy_consumption_per_floor_area_m2_current": 330,
        "avg_energy_consumption_per_floor_area_m2_potential": 138.92133899933685,
        "stddev_energy_consumption_per_floor_area_m2_potential": 79.16218940868285,
        "min_energy_consumption_per_floor_area_m2_potential": -117,
        "max_energy_consumption_per_floor_area_m2_potential": 1616,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 57,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 93,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 123,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 165,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 240,
        "avg_energy_efficiency_current": 69.43062077925593,
        "stddev_energy_efficiency_current": 11.132360496725514,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 105,
        "perc_10_energy_efficiency_current": 56,
        "perc_25_energy_efficiency_current": 63,
        "perc_50_energy_efficiency_current": 70,
        "perc_75_energy_efficiency_current": 77,
        "perc_90_energy_efficiency_current": 84,
        "avg_energy_efficiency_potential": 78.01059668971864,
        "stddev_energy_efficiency_potential": 7.065998542397473,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 115,
        "perc_10_energy_efficiency_potential": 70,
        "perc_25_energy_efficiency_potential": 76,
        "perc_50_energy_efficiency_potential": 79,
        "perc_75_energy_efficiency_potential": 82,
        "perc_90_energy_efficiency_potential": 86,
        "avg_total_floor_area": 80.98114665220928,
        "avg_co2_emissions_current": 2.7837448403729734,
        "stddev_co2_emissions_current": 2.2355451075904864,
        "min_co2_emissions_current": -0.2,
        "max_co2_emissions_current": 84,
        "perc_10_co2_emissions_current": 0.8,
        "perc_25_co2_emissions_current": 1.4,
        "perc_50_co2_emissions_current": 2.2,
        "perc_75_co2_emissions_current": 3.5,
        "perc_90_co2_emissions_current": 5.4,
        "avg_co2_emissions_potential": 1.8275730467851092,
        "stddev_co2_emissions_potential": 1.5068037516569077,
        "min_co2_emissions_potential": -1.5,
        "max_co2_emissions_potential": 70,
        "perc_10_co2_emissions_potential": 0.7,
        "perc_25_co2_emissions_potential": 1,
        "perc_50_co2_emissions_potential": 1.4,
        "perc_75_co2_emissions_potential": 2.1,
        "perc_90_co2_emissions_potential": 3.3,
        "avg_energy_rating_current_numerical": 4.650606975139056,
        "avg_energy_rating_potential_numerical": 5.2661487867263945
    },
    "region_stats": {
        "region_code": "E12000007",
        "property_count": 2899330,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.9286071873273314,
        "min_energy_rating_current": "A",
        "max_energy_rating_current": "G",
        "perc_10_energy_rating_current": 3,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 5,
        "perc_75_energy_rating_current": 5,
        "perc_90_energy_rating_current": 6,
        "energy_rating_a_count_current": 6079,
        "energy_rating_b_count_current": 470518,
        "energy_rating_c_count_current": 1119465,
        "energy_rating_d_count_current": 997350,
        "energy_rating_e_count_current": 265323,
        "energy_rating_f_count_current": 32342,
        "energy_rating_g_count_current": 8253,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.6825665269973957,
        "min_energy_rating_potential": "A",
        "max_energy_rating_potential": "G",
        "perc_10_energy_rating_potential": 5,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 5,
        "perc_75_energy_rating_potential": 6,
        "perc_90_energy_rating_potential": 6,
        "energy_rating_a_count_potential": 26907,
        "energy_rating_b_count_potential": 1254454,
        "energy_rating_c_count_potential": 1388636,
        "energy_rating_d_count_potential": 197262,
        "energy_rating_e_count_potential": 26844,
        "energy_rating_f_count_potential": 3769,
        "energy_rating_g_count_potential": 1458,
        "avg_energy_consumption_per_floor_area_m2_current": 212.25095545831343,
        "stddev_energy_consumption_per_floor_area_m2_current": 111.79978462068331,
        "min_energy_consumption_per_floor_area_m2_current": -406,
        "max_energy_consumption_per_floor_area_m2_current": 1978,
        "perc_10_energy_consumption_per_floor_area_m2_current": 73,
        "perc_25_energy_consumption_per_floor_area_m2_current": 143,
        "perc_50_energy_consumption_per_floor_area_m2_current": 202,
        "perc_75_energy_consumption_per_floor_area_m2_current": 268,
        "perc_90_energy_consumption_per_floor_area_m2_current": 343,
        "avg_energy_consumption_per_floor_area_m2_potential": 136.7470180556145,
        "stddev_energy_consumption_per_floor_area_m2_potential": 82.41583956073235,
        "min_energy_consumption_per_floor_area_m2_potential": -406,
        "max_energy_consumption_per_floor_area_m2_potential": 2000,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 56,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 85,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 121,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 163,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 243,
        "avg_energy_efficiency_current": 68.58951885690358,
        "stddev_energy_efficiency_current": 11.7230647972771,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 149,
        "perc_10_energy_efficiency_current": 54,
        "perc_25_energy_efficiency_current": 62,
        "perc_50_energy_efficiency_current": 70,
        "perc_75_energy_efficiency_current": 77,
        "perc_90_energy_efficiency_current": 83,
        "avg_energy_efficiency_potential": 78.84839527565953,
        "stddev_energy_efficiency_potential": 7.41538040946841,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 149,
        "perc_10_energy_efficiency_potential": 70,
        "perc_25_energy_efficiency_potential": 76,
        "perc_50_energy_efficiency_potential": 80,
        "perc_75_energy_efficiency_potential": 84,
        "perc_90_energy_efficiency_potential": 86,
        "avg_total_floor_area": 80.77978364524891,
        "avg_co2_emissions_current": 2.95340010450773,
        "stddev_co2_emissions_current": 2.356442231744167,
        "min_co2_emissions_current": -11,
        "max_co2_emissions_current": 96.6,
        "perc_10_co2_emissions_current": 0.8,
        "perc_25_co2_emissions_current": 1.5,
        "perc_50_co2_emissions_current": 2.4,
        "perc_75_co2_emissions_current": 3.8,
        "perc_90_co2_emissions_current": 5.5,
        "avg_co2_emissions_potential": 1.8182141339546218,
        "stddev_co2_emissions_potential": 1.5045976585727199,
        "min_co2_emissions_potential": -11,
        "max_co2_emissions_potential": 100,
        "perc_10_co2_emissions_potential": 0.7,
        "perc_25_co2_emissions_potential": 1,
        "perc_50_co2_emissions_potential": 1.5,
        "perc_75_co2_emissions_potential": 2.2,
        "perc_90_co2_emissions_potential": 3.2,
        "avg_energy_rating_current_numerical": 4.5946104789727285,
        "avg_energy_rating_potential_numerical": 5.35876530094884
    },
    "country_stats": {
        "country_code": "E92000001",
        "property_count": 19029650,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.9916974088664158,
        "min_energy_rating_current": "A",
        "max_energy_rating_current": "G",
        "perc_10_energy_rating_current": 3,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 5,
        "perc_75_energy_rating_current": 5,
        "perc_90_energy_rating_current": 6,
        "energy_rating_a_count_current": 146454,
        "energy_rating_b_count_current": 2675526,
        "energy_rating_c_count_current": 6833747,
        "energy_rating_d_count_current": 6802966,
        "energy_rating_e_count_current": 2080977,
        "energy_rating_f_count_current": 385628,
        "energy_rating_g_count_current": 104352,
        "mode_energy_rating_potential": "B",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.7764454061649956,
        "min_energy_rating_potential": "A",
        "max_energy_rating_potential": "G",
        "perc_10_energy_rating_potential": 5,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 6,
        "perc_75_energy_rating_potential": 6,
        "perc_90_energy_rating_potential": 6,
        "energy_rating_a_count_potential": 1508909,
        "energy_rating_b_count_potential": 9070764,
        "energy_rating_c_count_potential": 7221194,
        "energy_rating_d_count_potential": 999360,
        "energy_rating_e_count_potential": 180512,
        "energy_rating_f_count_potential": 38039,
        "energy_rating_g_count_potential": 10872,
        "avg_energy_consumption_per_floor_area_m2_current": 227.42663799222672,
        "stddev_energy_consumption_per_floor_area_m2_current": 115.2974275079285,
        "min_energy_consumption_per_floor_area_m2_current": -488,
        "max_energy_consumption_per_floor_area_m2_current": 1999,
        "perc_10_energy_consumption_per_floor_area_m2_current": 93,
        "perc_25_energy_consumption_per_floor_area_m2_current": 158,
        "perc_50_energy_consumption_per_floor_area_m2_current": 214,
        "perc_75_energy_consumption_per_floor_area_m2_current": 279,
        "perc_90_energy_consumption_per_floor_area_m2_current": 360,
        "avg_energy_consumption_per_floor_area_m2_potential": 130.14909117958436,
        "stddev_energy_consumption_per_floor_area_m2_potential": 83.30607372935727,
        "min_energy_consumption_per_floor_area_m2_potential": -499,
        "max_energy_consumption_per_floor_area_m2_potential": 2000,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 47,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 83,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 117,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 162,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 226,
        "avg_energy_efficiency_current": 67.18314891598206,
        "stddev_energy_efficiency_current": 12.75787200185356,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 150,
        "perc_10_energy_efficiency_current": 51,
        "perc_25_energy_efficiency_current": 61,
        "perc_50_energy_efficiency_current": 69,
        "perc_75_energy_efficiency_current": 75,
        "perc_90_energy_efficiency_current": 83,
        "avg_energy_efficiency_potential": 80.84690981543525,
        "stddev_energy_efficiency_potential": 8.73752272242714,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 150,
        "perc_10_energy_efficiency_potential": 72,
        "perc_25_energy_efficiency_potential": 77,
        "perc_50_energy_efficiency_potential": 82,
        "perc_75_energy_efficiency_potential": 86,
        "perc_90_energy_efficiency_potential": 90,
        "avg_total_floor_area": 89.6522202537852,
        "avg_co2_emissions_current": 3.5428446364289172,
        "stddev_co2_emissions_current": 2.747715671293062,
        "min_co2_emissions_current": -19.9,
        "max_co2_emissions_current": 100,
        "perc_10_co2_emissions_current": 1.2,
        "perc_25_co2_emissions_current": 1.9,
        "perc_50_co2_emissions_current": 3,
        "perc_75_co2_emissions_current": 4.4,
        "perc_90_co2_emissions_current": 6.3,
        "avg_co2_emissions_potential": 2.0059824267495334,
        "stddev_co2_emissions_potential": 1.7199244925131567,
        "min_co2_emissions_potential": -20,
        "max_co2_emissions_potential": 100,
        "perc_10_co2_emissions_potential": 0.6,
        "perc_25_co2_emissions_potential": 1.1,
        "perc_50_co2_emissions_potential": 1.6,
        "perc_75_co2_emissions_potential": 2.5,
        "perc_90_co2_emissions_potential": 3.7,
        "avg_energy_rating_current_numerical": 4.497059693688533,
        "avg_energy_rating_potential_numerical": 5.555480158594614
    },
    "property_type_stats": {
        "local_authority_stats": {
            "local_authority_district_code": "E09000013",
            "property_type": "House",
            "property_count": 15051,
            "mode_energy_rating_current": "D",
            "avg_energy_rating_current": "D",
            "stddev_energy_rating_current": 0.8215751145700824,
            "min_energy_rating_current": "A",
            "max_energy_rating_current": "G",
            "perc_10_energy_rating_current": 3,
            "perc_25_energy_rating_current": 4,
            "perc_50_energy_rating_current": 4,
            "perc_75_energy_rating_current": 5,
            "perc_90_energy_rating_current": 5,
            "energy_rating_a_count_current": 7,
            "energy_rating_b_count_current": 402,
            "energy_rating_c_count_current": 4277,
            "energy_rating_d_count_current": 7543,
            "energy_rating_e_count_current": 2437,
            "energy_rating_f_count_current": 295,
            "energy_rating_g_count_current": 90,
            "mode_energy_rating_potential": "B",
            "avg_energy_rating_potential": "C",
            "stddev_energy_rating_potential": 0.7938071707775423,
            "min_energy_rating_potential": "A",
            "max_energy_rating_potential": "G",
            "perc_10_energy_rating_potential": 4,
            "perc_25_energy_rating_potential": 5,
            "perc_50_energy_rating_potential": 6,
            "perc_75_energy_rating_potential": 6,
            "perc_90_energy_rating_potential": 6,
            "energy_rating_a_count_potential": 199,
            "energy_rating_b_count_potential": 8000,
            "energy_rating_c_count_potential": 5272,
            "energy_rating_d_count_potential": 1143,
            "energy_rating_e_count_potential": 382,
            "energy_rating_f_count_potential": 32,
            "energy_rating_g_count_potential": 23,
            "avg_energy_consumption_per_floor_area_m2_current": 221.45305959736893,
            "stddev_energy_consumption_per_floor_area_m2_current": 83.04982917114184,
            "min_energy_consumption_per_floor_area_m2_current": -27,
            "max_energy_consumption_per_floor_area_m2_current": 1219,
            "perc_10_energy_consumption_per_floor_area_m2_current": 135,
            "perc_25_energy_consumption_per_floor_area_m2_current": 168,
            "perc_50_energy_consumption_per_floor_area_m2_current": 211,
            "perc_75_energy_consumption_per_floor_area_m2_current": 261,
            "perc_90_energy_consumption_per_floor_area_m2_current": 319,
            "avg_energy_consumption_per_floor_area_m2_potential": 115.60959404690718,
            "stddev_energy_consumption_per_floor_area_m2_potential": 69.54715027425935,
            "min_energy_consumption_per_floor_area_m2_potential": -117,
            "max_energy_consumption_per_floor_area_m2_potential": 1022,
            "perc_10_energy_consumption_per_floor_area_m2_potential": 60,
            "perc_25_energy_consumption_per_floor_area_m2_potential": 78,
            "perc_50_energy_consumption_per_floor_area_m2_potential": 98,
            "perc_75_energy_consumption_per_floor_area_m2_potential": 127,
            "perc_90_energy_consumption_per_floor_area_m2_potential": 201,
            "avg_energy_efficiency_current": 62.55431532788519,
            "stddev_energy_efficiency_current": 10.984345088558918,
            "min_energy_efficiency_current": 1,
            "max_energy_efficiency_current": 105,
            "perc_10_energy_efficiency_current": 49,
            "perc_25_energy_efficiency_current": 57,
            "perc_50_energy_efficiency_current": 64,
            "perc_75_energy_efficiency_current": 70,
            "perc_90_energy_efficiency_current": 74,
            "avg_energy_efficiency_potential": 79.06471330808584,
            "stddev_energy_efficiency_potential": 9.251434186160477,
            "min_energy_efficiency_potential": 1,
            "max_energy_efficiency_potential": 115,
            "perc_10_energy_efficiency_potential": 68,
            "perc_25_energy_efficiency_potential": 77,
            "perc_50_energy_efficiency_potential": 81,
            "perc_75_energy_efficiency_potential": 85,
            "perc_90_energy_efficiency_potential": 87,
            "avg_total_floor_area": 143.50365448504982,
            "avg_co2_emissions_current": 5.4247890505614285,
            "stddev_co2_emissions_current": 2.9512267982935176,
            "min_co2_emissions_current": -0.2,
            "max_co2_emissions_current": 84,
            "perc_10_co2_emissions_current": 2.6,
            "perc_25_co2_emissions_current": 3.5,
            "perc_50_co2_emissions_current": 4.8,
            "perc_75_co2_emissions_current": 6.6,
            "perc_90_co2_emissions_current": 9,
            "avg_co2_emissions_potential": 3.0623147963590465,
            "stddev_co2_emissions_potential": 2.4100096490411405,
            "min_co2_emissions_potential": -1.5,
            "max_co2_emissions_potential": 70,
            "perc_10_co2_emissions_potential": 1,
            "perc_25_co2_emissions_potential": 1.6,
            "perc_50_co2_emissions_potential": 2.4,
            "perc_75_co2_emissions_potential": 3.8,
            "perc_90_co2_emissions_potential": 5.8,
            "avg_energy_rating_current_numerical": 4.119925586339778,
            "avg_energy_rating_potential_numerical": 5.418776161052421
        },
        "country_stats": {
            "country_code": "E92000001",
            "property_type": "House",
            "property_count": 11897511,
            "mode_energy_rating_current": "D",
            "avg_energy_rating_current": "D",
            "stddev_energy_rating_current": 1.011748142137592,
            "min_energy_rating_current": "A",
            "max_energy_rating_current": "G",
            "perc_10_energy_rating_current": 3,
            "perc_25_energy_rating_current": 4,
            "perc_50_energy_rating_current": 4,
            "perc_75_energy_rating_current": 5,
            "perc_90_energy_rating_current": 6,
            "energy_rating_a_count_current": 117657,
            "energy_rating_b_count_current": 1505330,
            "energy_rating_c_count_current": 3697112,
            "energy_rating_d_count_current": 4736640,
            "energy_rating_e_count_current": 1474517,
            "energy_rating_f_count_current": 290183,
            "energy_rating_g_count_current": 76072,
            "mode_energy_rating_potential": "B",
            "avg_energy_rating_potential": "C",
            "stddev_energy_rating_potential": 0.7847010089387065,
            "min_energy_rating_potential": "A",
            "max_energy_rating_potential": "G",
            "perc_10_energy_rating_potential": 5,
            "perc_25_energy_rating_potential": 5,
            "perc_50_energy_rating_potential": 6,
            "perc_75_energy_rating_potential": 6,
            "perc_90_energy_rating_potential": 7,
            "energy_rating_a_count_potential": 1355723,
            "energy_rating_b_count_potential": 6575163,
            "energy_rating_c_count_potential": 3316860,
            "energy_rating_d_count_potential": 499957,
            "energy_rating_e_count_potential": 115763,
            "energy_rating_f_count_potential": 26420,
            "energy_rating_g_count_potential": 7625,
            "avg_energy_consumption_per_floor_area_m2_current": 225.60169256016266,
            "stddev_energy_consumption_per_floor_area_m2_current": 106.02793809901311,
            "min_energy_consumption_per_floor_area_m2_current": -486,
            "max_energy_consumption_per_floor_area_m2_current": 1998,
            "perc_10_energy_consumption_per_floor_area_m2_current": 92,
            "perc_25_energy_consumption_per_floor_area_m2_current": 165,
            "perc_50_energy_consumption_per_floor_area_m2_current": 215,
            "perc_75_energy_consumption_per_floor_area_m2_current": 276,
            "perc_90_energy_consumption_per_floor_area_m2_current": 348,
            "avg_energy_consumption_per_floor_area_m2_potential": 110.77574858101595,
            "stddev_energy_consumption_per_floor_area_m2_potential": 69.94835891333659,
            "min_energy_consumption_per_floor_area_m2_potential": -492,
            "max_energy_consumption_per_floor_area_m2_potential": 1991,
            "perc_10_energy_consumption_per_floor_area_m2_potential": 35,
            "perc_25_energy_consumption_per_floor_area_m2_potential": 73,
            "perc_50_energy_consumption_per_floor_area_m2_potential": 104,
            "perc_75_energy_consumption_per_floor_area_m2_potential": 139,
            "perc_90_energy_consumption_per_floor_area_m2_potential": 187,
            "avg_energy_efficiency_current": 65.85353251870568,
            "stddev_energy_efficiency_current": 13.037566814803426,
            "min_energy_efficiency_current": 1,
            "max_energy_efficiency_current": 150,
            "perc_10_energy_efficiency_current": 50,
            "perc_25_energy_efficiency_current": 59,
            "perc_50_energy_efficiency_current": 67,
            "perc_75_energy_efficiency_current": 73,
            "perc_90_energy_efficiency_current": 83,
            "avg_energy_efficiency_potential": 82.42977349313983,
            "stddev_energy_efficiency_potential": 8.892243466534898,
            "min_energy_efficiency_potential": 1,
            "max_energy_efficiency_potential": 150,
            "perc_10_energy_efficiency_potential": 73,
            "perc_25_energy_efficiency_potential": 79,
            "perc_50_energy_efficiency_potential": 83,
            "perc_75_energy_efficiency_potential": 87,
            "perc_90_energy_efficiency_potential": 92,
            "avg_total_floor_area": 104.82024266976424,
            "avg_co2_emissions_current": 4.163972808439585,
            "stddev_co2_emissions_current": 3.010957750240059,
            "min_co2_emissions_current": -19.2,
            "max_co2_emissions_current": 100,
            "perc_10_co2_emissions_current": 1.6,
            "perc_25_co2_emissions_current": 2.5,
            "perc_50_co2_emissions_current": 3.5,
            "perc_75_co2_emissions_current": 5,
            "perc_90_co2_emissions_current": 7.1,
            "avg_co2_emissions_potential": 2.1782858011232187,
            "stddev_co2_emissions_potential": 1.9634001936716987,
            "min_co2_emissions_potential": -20,
            "max_co2_emissions_potential": 100,
            "perc_10_co2_emissions_potential": 0.6,
            "perc_25_co2_emissions_potential": 1.1,
            "perc_50_co2_emissions_potential": 1.8,
            "perc_75_co2_emissions_potential": 2.7,
            "perc_90_co2_emissions_potential": 4.1,
            "avg_energy_rating_current_numerical": 4.40156668062757,
            "avg_energy_rating_potential_numerical": 5.709843092391341
        }
    }
}

EPC Compare

If the property has an EPC, the API provides an assessment of how its energy efficiency and carbon footprint compare to average values within relevant administrative boundaries. Where possible, an assessment against similar properties is provided.

{
    "relative_to_postcode": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 65.6,
        "average_carbon_footprint": 2.8666666666666663
    },
    "relative_to_outcode": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 68.8733539747081,
        "average_carbon_footprint": 3.1423766180475456
    },
    "relative_to_local_authority": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 69.43062077925593,
        "average_carbon_footprint": 2.7837448403729734
    },
    "relative_to_region": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 68.58951885690358,
        "average_carbon_footprint": 2.95340010450773
    },
    "relative_to_country": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 67.18314891598206,
        "average_carbon_footprint": 3.5428446364289172
    },
    "relative_to_similar_properties_local_authority": {
        "energy_efficiency": "better",
        "carbon_footprint": "lower",
        "average_energy_efficiency_score": 62.55431532788519,
        "average_carbon_footprint": 5.4247890505614285
    },
    "relative_to_similar_properties_country": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 65.85353251870568,
        "average_carbon_footprint": 4.163972808439585
    }
}

EPC Retrofit Recommendations

The API response provides EPC retrofit recommendations (if they exist) for properties in England and Wales (these are included within the EPC itself for properties in Scotland). Results comprise a brief description of the upgrade and an indicative cost range.

[
    {
        "certificate_number": "8788-7424-5370-3747-2996",
        "improvement_id": 7,
        "improvement_summary_text": "50 mm internal or external wall insulation",
        "improvement_description_text": "Solid wall insulation involves adding a layer of insulation to either the inside or the outside surface of the external walls, which reduces heat loss and lowers fuel bills. As it is more expensive than cavity wall insulation it is only recommended for walls without a cavity, or where for technical reasons a cavity cannot be filled. Internal insulation, known as dry-lining, is where a layer of insulation is fixed to the inside surface of external walls; this type of insulation is best applied when rooms require redecorating and can be installed by a competent DIY enthusiast. External solid wall insulation is the application of an insulant and a weather-protective finish to the outside of the wall. This may improve the look of the home, particularly where existing brickwork or rendering is poor, and will provide long-lasting weather protection. Further information can be obtained from the National Insulation Association (www.nationalinsulationassociation.org.uk).",
        "indicative_cost_min": 4000,
        "indicative_cost_max": 14000
    },
    {
        "certificate_number": "8788-7424-5370-3747-2996",
        "improvement_id": 19,
        "improvement_summary_text": "Solar water heating",
        "improvement_description_text": "A solar water heating panel, usually fixed to the roof, uses the sun to pre-heat the hot water supply. This will significantly reduce the demand on the heating system to provide hot water and hence save fuel and money. The Solar Trade Association has up-to-date information on local installers.",
        "indicative_cost_min": 4000,
        "indicative_cost_max": 6000
    },
    {
        "certificate_number": "8788-7424-5370-3747-2996",
        "improvement_id": 34,
        "improvement_summary_text": "Solar photovoltaic panels, 2.5 kWp",
        "improvement_description_text": "A solar PV system is one which converts light directly into electricity via panels placed on the roof with no waste and no emissions. This electricity is used throughout the home in the same way as the electricity purchased from an energy supplier. The British Photovoltaic Association has up-to-date information on local installers who are qualified electricians. It is best to obtain advice from a qualified electrician. Ask the electrician to explain the options.",
        "indicative_cost_min": 5000,
        "indicative_cost_max": 8000
    },
    {
        "certificate_number": "8788-7424-5370-3747-2996",
        "improvement_id": 57,
        "improvement_summary_text": "Floor insulation (suspended floor)",
        "improvement_description_text": "Insulation of a floor will significantly reduce heat loss; this will improve levels of comfort, reduce energy use and lower fuel bills. Suspended floors can often be insulated from below. . Further information about floor insulation is available from many sources including www.energysavingtrust.org.uk/northernireland/Insulation/Floor-insulation.",
        "indicative_cost_min": 800,
        "indicative_cost_max": 1200
    }
]

Code Samples

Request

curl \
  -X GET \
  --header "x-api-key: <API KEY>" \
  https://api.propeco.io/epcs?uprn=UPRN
const results = await fetch(`https://api.propeco.io/epcs?uprn=${uprn}`, {
  headers: {
    "x-api-key": API_KEY
  },
});
const data = await results.json();

Response

{
  "epc_in_date": true,
  "epc_age": 269777621943,
  "epc_expiry": "2028-04-13T00:00:00.000Z",
  "epc_country": "England",
  "epcs": [
    {
      "certificate_number": "8788-7424-5370-3747-2996",
      "address1": "30, Tynemouth Street",
      "address2": null,
      "address3": null,
      "postcode": "SW6 2QT",
      "posttown": "LONDON",
      "address": "30, Tynemouth Street",
      "constituency": "E14001160",
      "constituency_label": "Chelsea and Fulham",
      "local_authority": "E09000013",
      "local_authority_label": "Hammersmith and Fulham",
      "built_form": "Mid-Terrace",
      "co2_emiss_curr_per_floor_area": "35",
      "co2_emissions_current": "4.9",
      "co2_emissions_potential": "2.7",
      "construction_age_band": "England and Wales: 1900-1929",
      "current_energy_efficiency": 64,
      "current_energy_rating": "D",
      "energy_consumption_current": 197,
      "energy_consumption_potential": 107,
      "energy_tariff": "Single",
      "environment_impact_current": 55,
      "environment_impact_potential": 72,
      "extension_count": 1,
      "fixed_lighting_outlets_count": 23,
      "flat_storey_count": "2",
      "flat_top_storey": "N",
      "floor_description": "Suspended, no insulation (assumed)",
      "floor_energy_eff": "N/A",
      "floor_height": "2.62",
      "floor_level": null,
      "glazed_area": "Normal",
      "glazed_type": "double glazing installed during or after 2002",
      "heat_loss_corridor": null,
      "heating_cost_current": 822,
      "heating_cost_potential": 641,
      "hot_water_cost_current": 140,
      "hot_water_cost_potential": 86,
      "hot_water_energy_eff": "Good",
      "hot_water_env_eff": "Good",
      "hotwater_description": "From main system",
      "inspection_date": "2018-04-13T00:00:00.000Z",
      "lighting_cost_current": 85,
      "lighting_cost_potential": 85,
      "lighting_description": "Low energy lighting in 96% of fixed outlets",
      "lighting_energy_eff": "Very Good",
      "lighting_env_eff": "Very Good",
      "lodgement_date": "2018-04-13T00:00:00.000Z",
      "lodgement_datetime": "2018-04-13T17:05:00.000Z",
      "low_energy_lighting": 96,
      "low_energy_fixed_lighting_outlets_count": 22,
      "main_fuel": "mains gas (not community)",
      "mainheat_description": "Boiler and radiators, mains gas",
      "mainheat_energy_eff": "Good",
      "mainheat_env_eff": "Good",
      "mainheatc_energy_eff": "Good",
      "mainheatc_env_eff": "Good",
      "mainheatcont_description": "Programmer, room thermostat and TRVs",
      "main_heating_controls": "Programmer, room thermostat and TRVs",
      "mains_gas_flag": "Y",
      "mechanical_ventilation": "natural",
      "multi_glaze_proportion": 100,
      "number_habitable_rooms": 6,
      "number_heated_rooms": 6,
      "number_open_fireplaces": 2,
      "photo_supply": 0,
      "potential_energy_efficiency": 78,
      "potential_energy_rating": "C",
      "property_type": "House",
      "report_type": 2,
      "roof_description": "Pitched, 300 mm loft insulation",
      "roof_energy_eff": "Very Good",
      "roof_env_eff": "Very Good",
      "secondheat_description": "Room heaters, mains gas",
      "sheating_energy_eff": "N/A",
      "sheating_env_eff": "N/A",
      "solar_water_heating_flag": "N",
      "tenure": "owner-occupied",
      "total_floor_area": "141",
      "transaction_type": "Marketed sale",
      "unheated_corridor_length": null,
      "walls_description": "Solid brick, as built, no insulation (assumed)",
      "walls_energy_eff": "Very Poor",
      "walls_env_eff": "Very Poor",
      "wind_turbine_count": 0,
      "windows_description": "Fully double glazed",
      "windows_energy_eff": "Good",
      "windows_env_eff": "Good",
      "floor_env_eff": "N/A",
      "region": "E12000007",
      "country": "England",
      "uprn": "34076006",
      "uprn_source": "Energy Assessor"
    }
  ],
  "epcs_enhanced": [
    {
      "address": "30, Tynemouth Street",
      "address1": "30, Tynemouth Street",
      "address2": null,
      "address3": null,
      "adjusted_costs": {
        "heating_cost_current": 1299.6,
        "heating_cost_potential": 1013.5,
        "hot_water_cost_current": 221.3,
        "hot_water_cost_potential": 136,
        "lighting_cost_current": 137.1,
        "lighting_cost_potential": 137.1,
        "total_fuel_cost_current": 1658,
        "total_fuel_cost_potential": 1286.6,
        "standing_charges": 305
      },
      "built_form": "Mid-Terrace",
      "certificate_number": "8788-7424-5370-3747-2996",
      "co2_emissions_current": 4.9,
      "co2_emissions_per_floor_area_m2_current": 35,
      "co2_emissions_potential": 2.7,
      "co2_emissions_reduction_potential": 2.2,
      "constituency": "E14001160",
      "constituency_label": "Chelsea and Fulham",
      "construction_age_band": "1900-1929",
      "country": "England",
      "dwelling_type": "Existing dwellings",
      "energy_consumption_per_floor_area_m2_current": 197,
      "energy_consumption_per_floor_area_m2_potential": 107,
      "energy_efficiency_current": 64,
      "energy_efficiency_potential": 78,
      "energy_rating_current": "D",
      "energy_rating_potential": "C",
      "energy_tariff": "Single",
      "environmental_impact_current": 55,
      "environmental_impact_potential": 72,
      "extension_count": 1,
      "fixed_lighting_outlet_count": 23,
      "flat_storey_count": 2,
      "floor_description": "Suspended, no insulation (assumed)",
      "floor_energy_efficiency": "N/A",
      "floor_environmental_efficiency": "N/A",
      "floor_height": 2.62,
      "floor_level": null,
      "floor_thermal_transmittance": null,
      "floor_type": "suspended",
      "glazed_area": "Normal",
      "glazed_type": "Double",
      "habitable_room_count": 6,
      "has_mains_gas": true,
      "has_solar_water_heating": false,
      "heat_loss_corridor": null,
      "heat_pump": false,
      "heated_room_count": 6,
      "heating_cost_current": 822,
      "heating_cost_potential": 641,
      "hot_water_cost_current": 140,
      "hot_water_cost_potential": 86,
      "hot_water_description": "From main system",
      "hot_water_energy_efficiency": "Good",
      "hot_water_environmental_efficiency": "Good",
      "inspection_date": "2018-04-13T00:00:00.000Z",
      "is_flat_top_storey": false,
      "lighting_cost_current": 85,
      "lighting_cost_potential": 85,
      "lighting_description": "Low energy lighting in 96% of fixed outlets",
      "lighting_energy_efficiency": "Very Good",
      "lighting_environmental_efficiency": "Very Good",
      "local_authority": "E09000013",
      "local_authority_label": "Hammersmith and Fulham",
      "lodgement_date": "2018-04-13T00:00:00.000Z",
      "lodgement_datetime": "2018-04-13T17:05:00.000Z",
      "low_energy_fixed_light_count": 22,
      "low_energy_lighting_percentage": 96,
      "main_fuel": "Mains gas (not community)",
      "main_heating_controls": "Programmer, room thermostat and TRVs",
      "main_heating_controls_description": "Programmer, room thermostat and TRVs",
      "main_heating_controls_energy_efficiency": "Good",
      "main_heating_controls_environmental_efficiency": "Good",
      "main_heating_description": "Boiler and radiators, mains gas",
      "main_heating_energy_efficiency": "Good",
      "main_heating_environmental_efficiency": "Good",
      "mechanical_ventilation": "Natural",
      "multi_glaze_percentage": 100,
      "open_fireplace_count": 2,
      "post_town": "London",
      "postcode": "SW6 2QT",
      "property_type": "House",
      "region": "E12000007",
      "report_type": "Reduced Standard Assessment Procedure (RdSAP)",
      "roof_description": "Pitched, 300 mm loft insulation",
      "roof_energy_efficiency": "Very Good",
      "roof_environmental_efficiency": "Very Good",
      "roof_photovoltaic_supply": 0,
      "roof_thermal_transmittance": null,
      "roof_type": "pitched",
      "second_heating_description": "Room heaters, mains gas",
      "second_heating_energy_efficiency": "N/A",
      "second_heating_environmental_efficiency": "N/A",
      "tenure": "Owner-Occupied",
      "total_energy_consumption_current": 27777,
      "total_energy_consumption_potential": 15087,
      "total_floor_area": 141,
      "transaction_type": "Marketed sale",
      "unheated_corridor_length": null,
      "uprn": 34076006,
      "uprn_source": "Energy Assessor",
      "walls_description": "Solid brick, as built, no insulation (assumed)",
      "walls_energy_efficiency": "Very Poor",
      "walls_environmental_efficiency": "Very Poor",
      "walls_thermal_transmittance": null,
      "walls_type": "solid",
      "wind_turbine_count": 0,
      "windows_description": "Fully Double Glazed",
      "windows_energy_efficiency": "Good",
      "windows_environmental_efficiency": "Good"
    }
  ],
  "epc_estimate": null,
  "epc_stats": {
    "postcode_stats": {
      "postcode": "SW6 2QT",
      "property_count": 30,
      "mode_energy_rating_current": "D",
      "avg_energy_rating_current": "D",
      "stddev_energy_rating_current": 0.5508613944197478,
      "min_energy_rating_current": "C",
      "max_energy_rating_current": "E",
      "perc_10_energy_rating_current": 4,
      "perc_25_energy_rating_current": 4,
      "perc_50_energy_rating_current": 4,
      "perc_75_energy_rating_current": 4.75,
      "perc_90_energy_rating_current": 5,
      "energy_rating_a_count_current": 0,
      "energy_rating_b_count_current": 0,
      "energy_rating_c_count_current": 8,
      "energy_rating_d_count_current": 20,
      "energy_rating_e_count_current": 2,
      "energy_rating_f_count_current": 0,
      "energy_rating_g_count_current": 0,
      "mode_energy_rating_potential": "C",
      "avg_energy_rating_potential": "D",
      "stddev_energy_rating_potential": 0.5560534167675355,
      "min_energy_rating_potential": "B",
      "max_energy_rating_potential": "E",
      "perc_10_energy_rating_potential": 4.9,
      "perc_25_energy_rating_potential": 5,
      "perc_50_energy_rating_potential": 5,
      "perc_75_energy_rating_potential": 5,
      "perc_90_energy_rating_potential": 5.1000000000000005,
      "energy_rating_a_count_potential": 0,
      "energy_rating_b_count_potential": 3,
      "energy_rating_c_count_potential": 24,
      "energy_rating_d_count_potential": 2,
      "energy_rating_e_count_potential": 1,
      "energy_rating_f_count_potential": 0,
      "energy_rating_g_count_potential": 0,
      "avg_energy_consumption_per_floor_area_m2_current": 230.06666666666666,
      "stddev_energy_consumption_per_floor_area_m2_current": 53.75033814381741,
      "min_energy_consumption_per_floor_area_m2_current": 132,
      "max_energy_consumption_per_floor_area_m2_current": 351,
      "perc_10_energy_consumption_per_floor_area_m2_current": 176.9,
      "perc_25_energy_consumption_per_floor_area_m2_current": 192.5,
      "perc_50_energy_consumption_per_floor_area_m2_current": 223,
      "perc_75_energy_consumption_per_floor_area_m2_current": 263,
      "perc_90_energy_consumption_per_floor_area_m2_current": 307.3,
      "avg_energy_consumption_per_floor_area_m2_potential": 144.93333333333334,
      "stddev_energy_consumption_per_floor_area_m2_potential": 54.10585622796223,
      "min_energy_consumption_per_floor_area_m2_potential": 60,
      "max_energy_consumption_per_floor_area_m2_potential": 338,
      "perc_10_energy_consumption_per_floor_area_m2_potential": 105,
      "perc_25_energy_consumption_per_floor_area_m2_potential": 118.25,
      "perc_50_energy_consumption_per_floor_area_m2_potential": 132,
      "perc_75_energy_consumption_per_floor_area_m2_potential": 157.5,
      "perc_90_energy_consumption_per_floor_area_m2_potential": 213.4,
      "avg_energy_efficiency_current": 65.6,
      "stddev_energy_efficiency_current": 5.4684045457392845,
      "min_energy_efficiency_current": 53,
      "max_energy_efficiency_current": 74,
      "perc_10_energy_efficiency_current": 57.8,
      "perc_25_energy_efficiency_current": 63.25,
      "perc_50_energy_efficiency_current": 67.5,
      "perc_75_energy_efficiency_current": 68.75,
      "perc_90_energy_efficiency_current": 72.1,
      "avg_energy_efficiency_potential": 75.96666666666667,
      "stddev_energy_efficiency_potential": 6.008518856638024,
      "min_energy_efficiency_potential": 54,
      "max_energy_efficiency_potential": 87,
      "perc_10_energy_efficiency_potential": 71.4,
      "perc_25_energy_efficiency_potential": 74,
      "perc_50_energy_efficiency_potential": 78,
      "perc_75_energy_efficiency_potential": 79,
      "perc_90_energy_efficiency_potential": 79.3,
      "avg_total_floor_area": 72.26666666666667,
      "avg_co2_emissions_current": 2.8666666666666663,
      "stddev_co2_emissions_current": 0.8797857628455616,
      "min_co2_emissions_current": 1.5,
      "max_co2_emissions_current": 4.9,
      "perc_10_co2_emissions_current": 1.88,
      "perc_25_co2_emissions_current": 2.225,
      "perc_50_co2_emissions_current": 2.75,
      "perc_75_co2_emissions_current": 3.3,
      "perc_90_co2_emissions_current": 3.8800000000000003,
      "avg_co2_emissions_potential": 1.7933333333333337,
      "stddev_co2_emissions_potential": 0.7234654786861462,
      "min_co2_emissions_potential": 1,
      "max_co2_emissions_potential": 3.8,
      "perc_10_co2_emissions_potential": 1.2,
      "perc_25_co2_emissions_potential": 1.3,
      "perc_50_co2_emissions_potential": 1.4,
      "perc_75_co2_emissions_potential": 2.4,
      "perc_90_co2_emissions_potential": 2.7,
      "avg_energy_rating_current_numerical": 4.2,
      "avg_energy_rating_potential_numerical": 4.966666666666667
    },
    "outcode_stats": {
      "outcode": "SW6",
      "property_count": 26807,
      "mode_energy_rating_current": "C",
      "avg_energy_rating_current": "D",
      "stddev_energy_rating_current": 0.8862848755495365,
      "min_energy_rating_current": "A",
      "max_energy_rating_current": "G",
      "perc_10_energy_rating_current": 4,
      "perc_25_energy_rating_current": 4,
      "perc_50_energy_rating_current": 5,
      "perc_75_energy_rating_current": 5,
      "perc_90_energy_rating_current": 6,
      "energy_rating_a_count_current": 11,
      "energy_rating_b_count_current": 3962,
      "energy_rating_c_count_current": 11282,
      "energy_rating_d_count_current": 9068,
      "energy_rating_e_count_current": 2182,
      "energy_rating_f_count_current": 216,
      "energy_rating_g_count_current": 86,
      "mode_energy_rating_potential": "C",
      "avg_energy_rating_potential": "C",
      "stddev_energy_rating_potential": 0.664982057561173,
      "min_energy_rating_potential": "A",
      "max_energy_rating_potential": "G",
      "perc_10_energy_rating_potential": 5,
      "perc_25_energy_rating_potential": 5,
      "perc_50_energy_rating_potential": 5,
      "perc_75_energy_rating_potential": 6,
      "perc_90_energy_rating_potential": 6,
      "energy_rating_a_count_potential": 92,
      "energy_rating_b_count_potential": 9307,
      "energy_rating_c_count_potential": 14925,
      "energy_rating_d_count_potential": 2143,
      "energy_rating_e_count_potential": 301,
      "energy_rating_f_count_potential": 23,
      "energy_rating_g_count_potential": 16,
      "avg_energy_consumption_per_floor_area_m2_current": 203.07315665613368,
      "stddev_energy_consumption_per_floor_area_m2_current": 101.45439656826528,
      "min_energy_consumption_per_floor_area_m2_current": -1,
      "max_energy_consumption_per_floor_area_m2_current": 1790,
      "perc_10_energy_consumption_per_floor_area_m2_current": 88,
      "perc_25_energy_consumption_per_floor_area_m2_current": 141,
      "perc_50_energy_consumption_per_floor_area_m2_current": 191,
      "perc_75_energy_consumption_per_floor_area_m2_current": 252,
      "perc_90_energy_consumption_per_floor_area_m2_current": 320,
      "avg_energy_consumption_per_floor_area_m2_potential": 138.81249897414855,
      "stddev_energy_consumption_per_floor_area_m2_potential": 73.48058983190619,
      "min_energy_consumption_per_floor_area_m2_potential": -79,
      "max_energy_consumption_per_floor_area_m2_potential": 1616,
      "perc_10_energy_consumption_per_floor_area_m2_potential": 69,
      "perc_25_energy_consumption_per_floor_area_m2_potential": 95,
      "perc_50_energy_consumption_per_floor_area_m2_potential": 124,
      "perc_75_energy_consumption_per_floor_area_m2_potential": 163,
      "perc_90_energy_consumption_per_floor_area_m2_potential": 231,
      "avg_energy_efficiency_current": 68.8733539747081,
      "stddev_energy_efficiency_current": 11.134857072871709,
      "min_energy_efficiency_current": 1,
      "max_energy_efficiency_current": 94,
      "perc_10_energy_efficiency_current": 55,
      "perc_25_energy_efficiency_current": 63,
      "perc_50_energy_efficiency_current": 70,
      "perc_75_energy_efficiency_current": 76,
      "perc_90_energy_efficiency_current": 83,
      "avg_energy_efficiency_potential": 77.61323534897602,
      "stddev_energy_efficiency_potential": 7.172551719974821,
      "min_energy_efficiency_potential": 1,
      "max_energy_efficiency_potential": 110,
      "perc_10_energy_efficiency_potential": 69,
      "perc_25_energy_efficiency_potential": 75,
      "perc_50_energy_efficiency_potential": 79,
      "perc_75_energy_efficiency_potential": 82,
      "perc_90_energy_efficiency_potential": 85,
      "avg_total_floor_area": 92.43808205857052,
      "avg_co2_emissions_current": 3.1423766180475456,
      "stddev_co2_emissions_current": 2.42592412026071,
      "min_co2_emissions_current": 0,
      "max_co2_emissions_current": 84,
      "perc_10_co2_emissions_current": 1,
      "perc_25_co2_emissions_current": 1.6,
      "perc_50_co2_emissions_current": 2.4,
      "perc_75_co2_emissions_current": 4,
      "perc_90_co2_emissions_current": 6.2,
      "avg_co2_emissions_potential": 2.0942813444249477,
      "stddev_co2_emissions_potential": 1.6956758749134722,
      "min_co2_emissions_potential": -1.2,
      "max_co2_emissions_potential": 70,
      "perc_10_co2_emissions_potential": 0.8,
      "perc_25_co2_emissions_potential": 1.2,
      "perc_50_co2_emissions_potential": 1.6,
      "perc_75_co2_emissions_potential": 2.5,
      "perc_90_co2_emissions_potential": 3.8,
      "avg_energy_rating_current_numerical": 4.6105494833439025,
      "avg_energy_rating_potential_numerical": 5.24668929757153
    },
    "local_authority_stats": {
      "local_authority_district_code": "E09000013",
      "property_count": 73891,
      "mode_energy_rating_current": "C",
      "avg_energy_rating_current": "D",
      "stddev_energy_rating_current": 0.8860409805762881,
      "min_energy_rating_current": "A",
      "max_energy_rating_current": "G",
      "perc_10_energy_rating_current": 4,
      "perc_25_energy_rating_current": 4,
      "perc_50_energy_rating_current": 5,
      "perc_75_energy_rating_current": 5,
      "perc_90_energy_rating_current": 6,
      "energy_rating_a_count_current": 29,
      "energy_rating_b_count_current": 12061,
      "energy_rating_c_count_current": 31157,
      "energy_rating_d_count_current": 24323,
      "energy_rating_e_count_current": 5545,
      "energy_rating_f_count_current": 581,
      "energy_rating_g_count_current": 195,
      "mode_energy_rating_potential": "C",
      "avg_energy_rating_potential": "C",
      "stddev_energy_rating_potential": 0.658290024737231,
      "min_energy_rating_potential": "A",
      "max_energy_rating_potential": "G",
      "perc_10_energy_rating_potential": 5,
      "perc_25_energy_rating_potential": 5,
      "perc_50_energy_rating_potential": 5,
      "perc_75_energy_rating_potential": 6,
      "perc_90_energy_rating_potential": 6,
      "energy_rating_a_count_potential": 238,
      "energy_rating_b_count_potential": 26588,
      "energy_rating_c_count_potential": 40637,
      "energy_rating_d_count_potential": 5604,
      "energy_rating_e_count_potential": 720,
      "energy_rating_f_count_potential": 62,
      "energy_rating_g_count_potential": 42,
      "avg_energy_consumption_per_floor_area_m2_current": 205.43041187958457,
      "stddev_energy_consumption_per_floor_area_m2_current": 109.25492003983284,
      "min_energy_consumption_per_floor_area_m2_current": -27,
      "max_energy_consumption_per_floor_area_m2_current": 1790,
      "perc_10_energy_consumption_per_floor_area_m2_current": 65,
      "perc_25_energy_consumption_per_floor_area_m2_current": 141,
      "perc_50_energy_consumption_per_floor_area_m2_current": 195,
      "perc_75_energy_consumption_per_floor_area_m2_current": 257,
      "perc_90_energy_consumption_per_floor_area_m2_current": 330,
      "avg_energy_consumption_per_floor_area_m2_potential": 138.92133899933685,
      "stddev_energy_consumption_per_floor_area_m2_potential": 79.16218940868285,
      "min_energy_consumption_per_floor_area_m2_potential": -117,
      "max_energy_consumption_per_floor_area_m2_potential": 1616,
      "perc_10_energy_consumption_per_floor_area_m2_potential": 57,
      "perc_25_energy_consumption_per_floor_area_m2_potential": 93,
      "perc_50_energy_consumption_per_floor_area_m2_potential": 123,
      "perc_75_energy_consumption_per_floor_area_m2_potential": 165,
      "perc_90_energy_consumption_per_floor_area_m2_potential": 240,
      "avg_energy_efficiency_current": 69.43062077925593,
      "stddev_energy_efficiency_current": 11.132360496725514,
      "min_energy_efficiency_current": 1,
      "max_energy_efficiency_current": 105,
      "perc_10_energy_efficiency_current": 56,
      "perc_25_energy_efficiency_current": 63,
      "perc_50_energy_efficiency_current": 70,
      "perc_75_energy_efficiency_current": 77,
      "perc_90_energy_efficiency_current": 84,
      "avg_energy_efficiency_potential": 78.01059668971864,
      "stddev_energy_efficiency_potential": 7.065998542397473,
      "min_energy_efficiency_potential": 1,
      "max_energy_efficiency_potential": 115,
      "perc_10_energy_efficiency_potential": 70,
      "perc_25_energy_efficiency_potential": 76,
      "perc_50_energy_efficiency_potential": 79,
      "perc_75_energy_efficiency_potential": 82,
      "perc_90_energy_efficiency_potential": 86,
      "avg_total_floor_area": 80.98114665220928,
      "avg_co2_emissions_current": 2.7837448403729734,
      "stddev_co2_emissions_current": 2.2355451075904864,
      "min_co2_emissions_current": -0.2,
      "max_co2_emissions_current": 84,
      "perc_10_co2_emissions_current": 0.8,
      "perc_25_co2_emissions_current": 1.4,
      "perc_50_co2_emissions_current": 2.2,
      "perc_75_co2_emissions_current": 3.5,
      "perc_90_co2_emissions_current": 5.4,
      "avg_co2_emissions_potential": 1.8275730467851092,
      "stddev_co2_emissions_potential": 1.5068037516569077,
      "min_co2_emissions_potential": -1.5,
      "max_co2_emissions_potential": 70,
      "perc_10_co2_emissions_potential": 0.7,
      "perc_25_co2_emissions_potential": 1,
      "perc_50_co2_emissions_potential": 1.4,
      "perc_75_co2_emissions_potential": 2.1,
      "perc_90_co2_emissions_potential": 3.3,
      "avg_energy_rating_current_numerical": 4.650606975139056,
      "avg_energy_rating_potential_numerical": 5.2661487867263945
    },
    "region_stats": {
      "region_code": "E12000007",
      "property_count": 2899330,
      "mode_energy_rating_current": "C",
      "avg_energy_rating_current": "D",
      "stddev_energy_rating_current": 0.9286071873273314,
      "min_energy_rating_current": "A",
      "max_energy_rating_current": "G",
      "perc_10_energy_rating_current": 3,
      "perc_25_energy_rating_current": 4,
      "perc_50_energy_rating_current": 5,
      "perc_75_energy_rating_current": 5,
      "perc_90_energy_rating_current": 6,
      "energy_rating_a_count_current": 6079,
      "energy_rating_b_count_current": 470518,
      "energy_rating_c_count_current": 1119465,
      "energy_rating_d_count_current": 997350,
      "energy_rating_e_count_current": 265323,
      "energy_rating_f_count_current": 32342,
      "energy_rating_g_count_current": 8253,
      "mode_energy_rating_potential": "C",
      "avg_energy_rating_potential": "C",
      "stddev_energy_rating_potential": 0.6825665269973957,
      "min_energy_rating_potential": "A",
      "max_energy_rating_potential": "G",
      "perc_10_energy_rating_potential": 5,
      "perc_25_energy_rating_potential": 5,
      "perc_50_energy_rating_potential": 5,
      "perc_75_energy_rating_potential": 6,
      "perc_90_energy_rating_potential": 6,
      "energy_rating_a_count_potential": 26907,
      "energy_rating_b_count_potential": 1254454,
      "energy_rating_c_count_potential": 1388636,
      "energy_rating_d_count_potential": 197262,
      "energy_rating_e_count_potential": 26844,
      "energy_rating_f_count_potential": 3769,
      "energy_rating_g_count_potential": 1458,
      "avg_energy_consumption_per_floor_area_m2_current": 212.25095545831343,
      "stddev_energy_consumption_per_floor_area_m2_current": 111.79978462068331,
      "min_energy_consumption_per_floor_area_m2_current": -406,
      "max_energy_consumption_per_floor_area_m2_current": 1978,
      "perc_10_energy_consumption_per_floor_area_m2_current": 73,
      "perc_25_energy_consumption_per_floor_area_m2_current": 143,
      "perc_50_energy_consumption_per_floor_area_m2_current": 202,
      "perc_75_energy_consumption_per_floor_area_m2_current": 268,
      "perc_90_energy_consumption_per_floor_area_m2_current": 343,
      "avg_energy_consumption_per_floor_area_m2_potential": 136.7470180556145,
      "stddev_energy_consumption_per_floor_area_m2_potential": 82.41583956073235,
      "min_energy_consumption_per_floor_area_m2_potential": -406,
      "max_energy_consumption_per_floor_area_m2_potential": 2000,
      "perc_10_energy_consumption_per_floor_area_m2_potential": 56,
      "perc_25_energy_consumption_per_floor_area_m2_potential": 85,
      "perc_50_energy_consumption_per_floor_area_m2_potential": 121,
      "perc_75_energy_consumption_per_floor_area_m2_potential": 163,
      "perc_90_energy_consumption_per_floor_area_m2_potential": 243,
      "avg_energy_efficiency_current": 68.58951885690358,
      "stddev_energy_efficiency_current": 11.7230647972771,
      "min_energy_efficiency_current": 1,
      "max_energy_efficiency_current": 149,
      "perc_10_energy_efficiency_current": 54,
      "perc_25_energy_efficiency_current": 62,
      "perc_50_energy_efficiency_current": 70,
      "perc_75_energy_efficiency_current": 77,
      "perc_90_energy_efficiency_current": 83,
      "avg_energy_efficiency_potential": 78.84839527565953,
      "stddev_energy_efficiency_potential": 7.41538040946841,
      "min_energy_efficiency_potential": 1,
      "max_energy_efficiency_potential": 149,
      "perc_10_energy_efficiency_potential": 70,
      "perc_25_energy_efficiency_potential": 76,
      "perc_50_energy_efficiency_potential": 80,
      "perc_75_energy_efficiency_potential": 84,
      "perc_90_energy_efficiency_potential": 86,
      "avg_total_floor_area": 80.77978364524891,
      "avg_co2_emissions_current": 2.95340010450773,
      "stddev_co2_emissions_current": 2.356442231744167,
      "min_co2_emissions_current": -11,
      "max_co2_emissions_current": 96.6,
      "perc_10_co2_emissions_current": 0.8,
      "perc_25_co2_emissions_current": 1.5,
      "perc_50_co2_emissions_current": 2.4,
      "perc_75_co2_emissions_current": 3.8,
      "perc_90_co2_emissions_current": 5.5,
      "avg_co2_emissions_potential": 1.8182141339546218,
      "stddev_co2_emissions_potential": 1.5045976585727199,
      "min_co2_emissions_potential": -11,
      "max_co2_emissions_potential": 100,
      "perc_10_co2_emissions_potential": 0.7,
      "perc_25_co2_emissions_potential": 1,
      "perc_50_co2_emissions_potential": 1.5,
      "perc_75_co2_emissions_potential": 2.2,
      "perc_90_co2_emissions_potential": 3.2,
      "avg_energy_rating_current_numerical": 4.5946104789727285,
      "avg_energy_rating_potential_numerical": 5.35876530094884
    },
    "country_stats": {
      "country_code": "E92000001",
      "property_count": 19029650,
      "mode_energy_rating_current": "C",
      "avg_energy_rating_current": "D",
      "stddev_energy_rating_current": 0.9916974088664158,
      "min_energy_rating_current": "A",
      "max_energy_rating_current": "G",
      "perc_10_energy_rating_current": 3,
      "perc_25_energy_rating_current": 4,
      "perc_50_energy_rating_current": 5,
      "perc_75_energy_rating_current": 5,
      "perc_90_energy_rating_current": 6,
      "energy_rating_a_count_current": 146454,
      "energy_rating_b_count_current": 2675526,
      "energy_rating_c_count_current": 6833747,
      "energy_rating_d_count_current": 6802966,
      "energy_rating_e_count_current": 2080977,
      "energy_rating_f_count_current": 385628,
      "energy_rating_g_count_current": 104352,
      "mode_energy_rating_potential": "B",
      "avg_energy_rating_potential": "C",
      "stddev_energy_rating_potential": 0.7764454061649956,
      "min_energy_rating_potential": "A",
      "max_energy_rating_potential": "G",
      "perc_10_energy_rating_potential": 5,
      "perc_25_energy_rating_potential": 5,
      "perc_50_energy_rating_potential": 6,
      "perc_75_energy_rating_potential": 6,
      "perc_90_energy_rating_potential": 6,
      "energy_rating_a_count_potential": 1508909,
      "energy_rating_b_count_potential": 9070764,
      "energy_rating_c_count_potential": 7221194,
      "energy_rating_d_count_potential": 999360,
      "energy_rating_e_count_potential": 180512,
      "energy_rating_f_count_potential": 38039,
      "energy_rating_g_count_potential": 10872,
      "avg_energy_consumption_per_floor_area_m2_current": 227.42663799222672,
      "stddev_energy_consumption_per_floor_area_m2_current": 115.2974275079285,
      "min_energy_consumption_per_floor_area_m2_current": -488,
      "max_energy_consumption_per_floor_area_m2_current": 1999,
      "perc_10_energy_consumption_per_floor_area_m2_current": 93,
      "perc_25_energy_consumption_per_floor_area_m2_current": 158,
      "perc_50_energy_consumption_per_floor_area_m2_current": 214,
      "perc_75_energy_consumption_per_floor_area_m2_current": 279,
      "perc_90_energy_consumption_per_floor_area_m2_current": 360,
      "avg_energy_consumption_per_floor_area_m2_potential": 130.14909117958436,
      "stddev_energy_consumption_per_floor_area_m2_potential": 83.30607372935727,
      "min_energy_consumption_per_floor_area_m2_potential": -499,
      "max_energy_consumption_per_floor_area_m2_potential": 2000,
      "perc_10_energy_consumption_per_floor_area_m2_potential": 47,
      "perc_25_energy_consumption_per_floor_area_m2_potential": 83,
      "perc_50_energy_consumption_per_floor_area_m2_potential": 117,
      "perc_75_energy_consumption_per_floor_area_m2_potential": 162,
      "perc_90_energy_consumption_per_floor_area_m2_potential": 226,
      "avg_energy_efficiency_current": 67.18314891598206,
      "stddev_energy_efficiency_current": 12.75787200185356,
      "min_energy_efficiency_current": 1,
      "max_energy_efficiency_current": 150,
      "perc_10_energy_efficiency_current": 51,
      "perc_25_energy_efficiency_current": 61,
      "perc_50_energy_efficiency_current": 69,
      "perc_75_energy_efficiency_current": 75,
      "perc_90_energy_efficiency_current": 83,
      "avg_energy_efficiency_potential": 80.84690981543525,
      "stddev_energy_efficiency_potential": 8.73752272242714,
      "min_energy_efficiency_potential": 1,
      "max_energy_efficiency_potential": 150,
      "perc_10_energy_efficiency_potential": 72,
      "perc_25_energy_efficiency_potential": 77,
      "perc_50_energy_efficiency_potential": 82,
      "perc_75_energy_efficiency_potential": 86,
      "perc_90_energy_efficiency_potential": 90,
      "avg_total_floor_area": 89.6522202537852,
      "avg_co2_emissions_current": 3.5428446364289172,
      "stddev_co2_emissions_current": 2.747715671293062,
      "min_co2_emissions_current": -19.9,
      "max_co2_emissions_current": 100,
      "perc_10_co2_emissions_current": 1.2,
      "perc_25_co2_emissions_current": 1.9,
      "perc_50_co2_emissions_current": 3,
      "perc_75_co2_emissions_current": 4.4,
      "perc_90_co2_emissions_current": 6.3,
      "avg_co2_emissions_potential": 2.0059824267495334,
      "stddev_co2_emissions_potential": 1.7199244925131567,
      "min_co2_emissions_potential": -20,
      "max_co2_emissions_potential": 100,
      "perc_10_co2_emissions_potential": 0.6,
      "perc_25_co2_emissions_potential": 1.1,
      "perc_50_co2_emissions_potential": 1.6,
      "perc_75_co2_emissions_potential": 2.5,
      "perc_90_co2_emissions_potential": 3.7,
      "avg_energy_rating_current_numerical": 4.497059693688533,
      "avg_energy_rating_potential_numerical": 5.555480158594614
    },
    "property_type_stats": {
      "local_authority_stats": {
        "local_authority_district_code": "E09000013",
        "property_type": "House",
        "property_count": 15051,
        "mode_energy_rating_current": "D",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.8215751145700824,
        "min_energy_rating_current": "A",
        "max_energy_rating_current": "G",
        "perc_10_energy_rating_current": 3,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 4,
        "perc_75_energy_rating_current": 5,
        "perc_90_energy_rating_current": 5,
        "energy_rating_a_count_current": 7,
        "energy_rating_b_count_current": 402,
        "energy_rating_c_count_current": 4277,
        "energy_rating_d_count_current": 7543,
        "energy_rating_e_count_current": 2437,
        "energy_rating_f_count_current": 295,
        "energy_rating_g_count_current": 90,
        "mode_energy_rating_potential": "B",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.7938071707775423,
        "min_energy_rating_potential": "A",
        "max_energy_rating_potential": "G",
        "perc_10_energy_rating_potential": 4,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 6,
        "perc_75_energy_rating_potential": 6,
        "perc_90_energy_rating_potential": 6,
        "energy_rating_a_count_potential": 199,
        "energy_rating_b_count_potential": 8000,
        "energy_rating_c_count_potential": 5272,
        "energy_rating_d_count_potential": 1143,
        "energy_rating_e_count_potential": 382,
        "energy_rating_f_count_potential": 32,
        "energy_rating_g_count_potential": 23,
        "avg_energy_consumption_per_floor_area_m2_current": 221.45305959736893,
        "stddev_energy_consumption_per_floor_area_m2_current": 83.04982917114184,
        "min_energy_consumption_per_floor_area_m2_current": -27,
        "max_energy_consumption_per_floor_area_m2_current": 1219,
        "perc_10_energy_consumption_per_floor_area_m2_current": 135,
        "perc_25_energy_consumption_per_floor_area_m2_current": 168,
        "perc_50_energy_consumption_per_floor_area_m2_current": 211,
        "perc_75_energy_consumption_per_floor_area_m2_current": 261,
        "perc_90_energy_consumption_per_floor_area_m2_current": 319,
        "avg_energy_consumption_per_floor_area_m2_potential": 115.60959404690718,
        "stddev_energy_consumption_per_floor_area_m2_potential": 69.54715027425935,
        "min_energy_consumption_per_floor_area_m2_potential": -117,
        "max_energy_consumption_per_floor_area_m2_potential": 1022,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 60,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 78,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 98,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 127,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 201,
        "avg_energy_efficiency_current": 62.55431532788519,
        "stddev_energy_efficiency_current": 10.984345088558918,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 105,
        "perc_10_energy_efficiency_current": 49,
        "perc_25_energy_efficiency_current": 57,
        "perc_50_energy_efficiency_current": 64,
        "perc_75_energy_efficiency_current": 70,
        "perc_90_energy_efficiency_current": 74,
        "avg_energy_efficiency_potential": 79.06471330808584,
        "stddev_energy_efficiency_potential": 9.251434186160477,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 115,
        "perc_10_energy_efficiency_potential": 68,
        "perc_25_energy_efficiency_potential": 77,
        "perc_50_energy_efficiency_potential": 81,
        "perc_75_energy_efficiency_potential": 85,
        "perc_90_energy_efficiency_potential": 87,
        "avg_total_floor_area": 143.50365448504982,
        "avg_co2_emissions_current": 5.4247890505614285,
        "stddev_co2_emissions_current": 2.9512267982935176,
        "min_co2_emissions_current": -0.2,
        "max_co2_emissions_current": 84,
        "perc_10_co2_emissions_current": 2.6,
        "perc_25_co2_emissions_current": 3.5,
        "perc_50_co2_emissions_current": 4.8,
        "perc_75_co2_emissions_current": 6.6,
        "perc_90_co2_emissions_current": 9,
        "avg_co2_emissions_potential": 3.0623147963590465,
        "stddev_co2_emissions_potential": 2.4100096490411405,
        "min_co2_emissions_potential": -1.5,
        "max_co2_emissions_potential": 70,
        "perc_10_co2_emissions_potential": 1,
        "perc_25_co2_emissions_potential": 1.6,
        "perc_50_co2_emissions_potential": 2.4,
        "perc_75_co2_emissions_potential": 3.8,
        "perc_90_co2_emissions_potential": 5.8,
        "avg_energy_rating_current_numerical": 4.119925586339778,
        "avg_energy_rating_potential_numerical": 5.418776161052421
      },
      "country_stats": {
        "country_code": "E92000001",
        "property_type": "House",
        "property_count": 11897511,
        "mode_energy_rating_current": "D",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 1.011748142137592,
        "min_energy_rating_current": "A",
        "max_energy_rating_current": "G",
        "perc_10_energy_rating_current": 3,
        "perc_25_energy_rating_current": 4,
        "perc_50_energy_rating_current": 4,
        "perc_75_energy_rating_current": 5,
        "perc_90_energy_rating_current": 6,
        "energy_rating_a_count_current": 117657,
        "energy_rating_b_count_current": 1505330,
        "energy_rating_c_count_current": 3697112,
        "energy_rating_d_count_current": 4736640,
        "energy_rating_e_count_current": 1474517,
        "energy_rating_f_count_current": 290183,
        "energy_rating_g_count_current": 76072,
        "mode_energy_rating_potential": "B",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.7847010089387065,
        "min_energy_rating_potential": "A",
        "max_energy_rating_potential": "G",
        "perc_10_energy_rating_potential": 5,
        "perc_25_energy_rating_potential": 5,
        "perc_50_energy_rating_potential": 6,
        "perc_75_energy_rating_potential": 6,
        "perc_90_energy_rating_potential": 7,
        "energy_rating_a_count_potential": 1355723,
        "energy_rating_b_count_potential": 6575163,
        "energy_rating_c_count_potential": 3316860,
        "energy_rating_d_count_potential": 499957,
        "energy_rating_e_count_potential": 115763,
        "energy_rating_f_count_potential": 26420,
        "energy_rating_g_count_potential": 7625,
        "avg_energy_consumption_per_floor_area_m2_current": 225.60169256016266,
        "stddev_energy_consumption_per_floor_area_m2_current": 106.02793809901311,
        "min_energy_consumption_per_floor_area_m2_current": -486,
        "max_energy_consumption_per_floor_area_m2_current": 1998,
        "perc_10_energy_consumption_per_floor_area_m2_current": 92,
        "perc_25_energy_consumption_per_floor_area_m2_current": 165,
        "perc_50_energy_consumption_per_floor_area_m2_current": 215,
        "perc_75_energy_consumption_per_floor_area_m2_current": 276,
        "perc_90_energy_consumption_per_floor_area_m2_current": 348,
        "avg_energy_consumption_per_floor_area_m2_potential": 110.77574858101595,
        "stddev_energy_consumption_per_floor_area_m2_potential": 69.94835891333659,
        "min_energy_consumption_per_floor_area_m2_potential": -492,
        "max_energy_consumption_per_floor_area_m2_potential": 1991,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 35,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 73,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 104,
        "perc_75_energy_consumption_per_floor_area_m2_potential": 139,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 187,
        "avg_energy_efficiency_current": 65.85353251870568,
        "stddev_energy_efficiency_current": 13.037566814803426,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 150,
        "perc_10_energy_efficiency_current": 50,
        "perc_25_energy_efficiency_current": 59,
        "perc_50_energy_efficiency_current": 67,
        "perc_75_energy_efficiency_current": 73,
        "perc_90_energy_efficiency_current": 83,
        "avg_energy_efficiency_potential": 82.42977349313983,
        "stddev_energy_efficiency_potential": 8.892243466534898,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 150,
        "perc_10_energy_efficiency_potential": 73,
        "perc_25_energy_efficiency_potential": 79,
        "perc_50_energy_efficiency_potential": 83,
        "perc_75_energy_efficiency_potential": 87,
        "perc_90_energy_efficiency_potential": 92,
        "avg_total_floor_area": 104.82024266976424,
        "avg_co2_emissions_current": 4.163972808439585,
        "stddev_co2_emissions_current": 3.010957750240059,
        "min_co2_emissions_current": -19.2,
        "max_co2_emissions_current": 100,
        "perc_10_co2_emissions_current": 1.6,
        "perc_25_co2_emissions_current": 2.5,
        "perc_50_co2_emissions_current": 3.5,
        "perc_75_co2_emissions_current": 5,
        "perc_90_co2_emissions_current": 7.1,
        "avg_co2_emissions_potential": 2.1782858011232187,
        "stddev_co2_emissions_potential": 1.9634001936716987,
        "min_co2_emissions_potential": -20,
        "max_co2_emissions_potential": 100,
        "perc_10_co2_emissions_potential": 0.6,
        "perc_25_co2_emissions_potential": 1.1,
        "perc_50_co2_emissions_potential": 1.8,
        "perc_75_co2_emissions_potential": 2.7,
        "perc_90_co2_emissions_potential": 4.1,
        "avg_energy_rating_current_numerical": 4.40156668062757,
        "avg_energy_rating_potential_numerical": 5.709843092391341
      }
    }
  },
  "epc_compare": {
    "relative_to_postcode": {
      "energy_efficiency": "worse",
      "carbon_footprint": "higher",
      "average_energy_efficiency_score": 65.6,
      "average_carbon_footprint": 2.8666666666666663
    },
    "relative_to_outcode": {
      "energy_efficiency": "worse",
      "carbon_footprint": "higher",
      "average_energy_efficiency_score": 68.8733539747081,
      "average_carbon_footprint": 3.1423766180475456
    },
    "relative_to_local_authority": {
      "energy_efficiency": "worse",
      "carbon_footprint": "higher",
      "average_energy_efficiency_score": 69.43062077925593,
      "average_carbon_footprint": 2.7837448403729734
    },
    "relative_to_region": {
      "energy_efficiency": "worse",
      "carbon_footprint": "higher",
      "average_energy_efficiency_score": 68.58951885690358,
      "average_carbon_footprint": 2.95340010450773
    },
    "relative_to_country": {
      "energy_efficiency": "worse",
      "carbon_footprint": "higher",
      "average_energy_efficiency_score": 67.18314891598206,
      "average_carbon_footprint": 3.5428446364289172
    },
    "relative_to_similar_properties_local_authority": {
      "energy_efficiency": "better",
      "carbon_footprint": "lower",
      "average_energy_efficiency_score": 62.55431532788519,
      "average_carbon_footprint": 5.4247890505614285
    },
    "relative_to_similar_properties_country": {
      "energy_efficiency": "worse",
      "carbon_footprint": "higher",
      "average_energy_efficiency_score": 65.85353251870568,
      "average_carbon_footprint": 4.163972808439585
    }
  },
  "epc_retrofit_recommendations": [
    {
      "certificate_number": "8788-7424-5370-3747-2996",
      "improvement_id": 7,
      "improvement_summary_text": "50 mm internal or external wall insulation",
      "improvement_description_text": "Solid wall insulation involves adding a layer of insulation to either the inside or the outside surface of the external walls, which reduces heat loss and lowers fuel bills. As it is more expensive than cavity wall insulation it is only recommended for walls without a cavity, or where for technical reasons a cavity cannot be filled. Internal insulation, known as dry-lining, is where a layer of insulation is fixed to the inside surface of external walls; this type of insulation is best applied when rooms require redecorating and can be installed by a competent DIY enthusiast. External solid wall insulation is the application of an insulant and a weather-protective finish to the outside of the wall. This may improve the look of the home, particularly where existing brickwork or rendering is poor, and will provide long-lasting weather protection. Further information can be obtained from the National Insulation Association (www.nationalinsulationassociation.org.uk).",
      "indicative_cost_min": 4000,
      "indicative_cost_max": 14000
    },
    {
      "certificate_number": "8788-7424-5370-3747-2996",
      "improvement_id": 19,
      "improvement_summary_text": "Solar water heating",
      "improvement_description_text": "A solar water heating panel, usually fixed to the roof, uses the sun to pre-heat the hot water supply. This will significantly reduce the demand on the heating system to provide hot water and hence save fuel and money. The Solar Trade Association has up-to-date information on local installers.",
      "indicative_cost_min": 4000,
      "indicative_cost_max": 6000
    },
    {
      "certificate_number": "8788-7424-5370-3747-2996",
      "improvement_id": 34,
      "improvement_summary_text": "Solar photovoltaic panels, 2.5 kWp",
      "improvement_description_text": "A solar PV system is one which converts light directly into electricity via panels placed on the roof with no waste and no emissions. This electricity is used throughout the home in the same way as the electricity purchased from an energy supplier. The British Photovoltaic Association has up-to-date information on local installers who are qualified electricians. It is best to obtain advice from a qualified electrician. Ask the electrician to explain the options.",
      "indicative_cost_min": 5000,
      "indicative_cost_max": 8000
    },
    {
      "certificate_number": "8788-7424-5370-3747-2996",
      "improvement_id": 57,
      "improvement_summary_text": "Floor insulation (suspended floor)",
      "improvement_description_text": "Insulation of a floor will significantly reduce heat loss; this will improve levels of comfort, reduce energy use and lower fuel bills. Suspended floors can often be insulated from below. . Further information about floor insulation is available from many sources including www.energysavingtrust.org.uk/northernireland/Insulation/Floor-insulation.",
      "indicative_cost_min": 800,
      "indicative_cost_max": 1200
    }
  ]
}
{
   "$schema" : "http://json-schema.org/draft-07/schema#",
   "definitions" : {
      "CarbonComparisonValue" : {
         "enum" : [
            "equal",
            "higher",
            "lower",
            "unknown"
         ],
         "type" : "string"
      },
      "ComparisonValue" : {
         "enum" : [
            "better",
            "equal",
            "unknown",
            "worse"
         ],
         "type" : "string"
      },
      "EPCCompare" : {
         "anyOf" : [
            {
               "$ref" : "#/definitions/EPCCompareResult"
            },
            {
               "type" : "null"
            }
         ]
      },
      "EPCCompareResult" : {
         "properties" : {
            "relative_to_country" : {
               "$ref" : "#/definitions/EPCComparison"
            },
            "relative_to_local_authority" : {
               "$ref" : "#/definitions/EPCComparison"
            },
            "relative_to_outcode" : {
               "$ref" : "#/definitions/EPCComparison"
            },
            "relative_to_postcode" : {
               "$ref" : "#/definitions/EPCComparison"
            },
            "relative_to_region" : {
               "$ref" : "#/definitions/EPCComparison"
            },
            "relative_to_similar_properties_country" : {
               "$ref" : "#/definitions/EPCComparison"
            },
            "relative_to_similar_properties_local_authority" : {
               "$ref" : "#/definitions/EPCComparison"
            }
         },
         "required" : [
            "relative_to_country",
            "relative_to_local_authority",
            "relative_to_outcode",
            "relative_to_postcode",
            "relative_to_region",
            "relative_to_similar_properties_country",
            "relative_to_similar_properties_local_authority"
         ],
         "type" : "object"
      },
      "EPCComparison" : {
         "properties" : {
            "average_carbon_footprint" : {
               "type" : "number"
            },
            "average_energy_efficiency_score" : {
               "type" : "number"
            },
            "carbon_footprint" : {
               "$ref" : "#/definitions/CarbonComparisonValue"
            },
            "energy_efficiency" : {
               "$ref" : "#/definitions/ComparisonValue"
            }
         },
         "required" : [
            "carbon_footprint",
            "energy_efficiency"
         ],
         "type" : "object"
      },
      "EPCEnhancements" : {
         "properties" : {
            "adjusted_costs" : {
               "properties" : {
                  "heating_cost_current" : {
                     "type" : [
                        "null",
                        "number"
                     ]
                  },
                  "heating_cost_potential" : {
                     "type" : [
                        "null",
                        "number"
                     ]
                  },
                  "hot_water_cost_current" : {
                     "type" : [
                        "null",
                        "number"
                     ]
                  },
                  "hot_water_cost_potential" : {
                     "type" : [
                        "null",
                        "number"
                     ]
                  },
                  "lighting_cost_current" : {
                     "type" : [
                        "null",
                        "number"
                     ]
                  },
                  "lighting_cost_potential" : {
                     "type" : [
                        "null",
                        "number"
                     ]
                  },
                  "standing_charges" : {
                     "type" : "number"
                  },
                  "total_fuel_cost_current" : {
                     "type" : "number"
                  },
                  "total_fuel_cost_potential" : {
                     "type" : "number"
                  }
               },
               "type" : "object"
            },
            "floor_thermal_transmittance" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "floor_type" : {
               "anyOf" : [
                  {
                     "enum" : [
                        "solid",
                        "suspended"
                     ],
                     "type" : "string"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "heat_pump" : {
               "type" : [
                  "null",
                  "boolean"
               ]
            },
            "roof_thermal_transmittance" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "roof_type" : {
               "anyOf" : [
                  {
                     "enum" : [
                        "flat",
                        "pitched",
                        "thatched"
                     ],
                     "type" : "string"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "total_energy_consumption_current" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "total_energy_consumption_potential" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "walls_thermal_transmittance" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "walls_type" : {
               "anyOf" : [
                  {
                     "enum" : [
                        "cavity",
                        "solid"
                     ],
                     "type" : "string"
                  },
                  {
                     "type" : "null"
                  }
               ]
            }
         },
         "required" : [
            "adjusted_costs",
            "floor_thermal_transmittance",
            "floor_type",
            "heat_pump",
            "roof_thermal_transmittance",
            "roof_type",
            "total_energy_consumption_current",
            "total_energy_consumption_potential",
            "walls_thermal_transmittance",
            "walls_type"
         ],
         "type" : "object"
      },
      "EPCRecommendation" : {
         "properties" : {
            "certificate_number" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "improvement_description_text" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "improvement_id" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "improvement_summary_text" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "indicative_cost_max" : {
               "type" : [
                  "null",
                  "number"
               ]
            },
            "indicative_cost_min" : {
               "type" : [
                  "null",
                  "number"
               ]
            }
         },
         "required" : [
            "certificate_number",
            "improvement_description_text",
            "improvement_id",
            "improvement_summary_text",
            "indicative_cost_max",
            "indicative_cost_min"
         ],
         "type" : "object"
      },
      "EnhancedEPC" : {
         "anyOf" : [
            {
               "allOf" : [
                  {
                     "properties" : {
                        "address1" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "address2" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "air_tightness_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "air_tightness_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "air_tightness_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "alternative_improvements" : {
                           "items" : {
                              "$ref" : "#/definitions/ScottishEpcImprovement"
                           },
                           "type" : "array"
                        },
                        "building_reference_number" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "built_form" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "co2_emissions_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "co2_emissions_per_floor_area_m2_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "co2_emissions_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "co2_emissions_reduction_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "constituency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "constituency_label" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "construction_age_band" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "created_at" : {
                           "anyOf" : [
                              {
                                 "format" : "date-time",
                                 "type" : "string"
                              },
                              {
                                 "type" : "null"
                              }
                           ]
                        },
                        "data_zone" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "data_zone_2011" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "energy_consumption_per_floor_area_m2_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_consumption_per_floor_area_m2_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_efficiency_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_efficiency_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "energy_saving_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_tariff" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "environmental_impact_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "environmental_impact_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "environmental_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "environmental_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "extension_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "fixed_lighting_outlet_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "flat_storey_count" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_height" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "floor_level" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "glazed_area" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "glazed_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "habitable_room_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "has_mains_gas" : {
                           "type" : [
                              "null",
                              "boolean"
                           ]
                        },
                        "has_solar_water_heating" : {
                           "type" : [
                              "null",
                              "boolean"
                           ]
                        },
                        "heat_loss_corridor" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "heated_room_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "heating_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "heating_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "historic" : {
                           "type" : [
                              "null",
                              "boolean"
                           ]
                        },
                        "hot_water_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "hot_water_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "hot_water_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "hot_water_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "hot_water_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "id" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "impact_cavity_wall_insulation" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "impact_loft_insulation" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "impact_solid_wall_insulation" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "improvements" : {
                           "items" : {
                              "$ref" : "#/definitions/ScottishEpcImprovement"
                           },
                           "type" : "array"
                        },
                        "inspection_date" : {
                           "anyOf" : [
                              {
                                 "format" : "date-time",
                                 "type" : "string"
                              },
                              {
                                 "type" : "null"
                              }
                           ]
                        },
                        "lighting_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "lighting_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "lighting_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "lighting_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "lighting_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "local_authority_label" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "lodgement_date" : {
                           "anyOf" : [
                              {
                                 "format" : "date-time",
                                 "type" : "string"
                              },
                              {
                                 "type" : "null"
                              }
                           ]
                        },
                        "low_energy_fixed_light_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "low_energy_lighting_percentage" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "lzc_energy_sources" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_fuel" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_category" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "mechanical_ventilation" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "multi_glaze_percentage" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "open_fireplace_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "post_town" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "postcode" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "property_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "report_reference_number" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_photovoltaic_supply" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "second_heating_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "second_heating_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "second_heating_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "space_heating_demand" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "tenure" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "three_year_energy_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_energy_saving_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_heating_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_heating_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_hot_water_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_hot_water_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_lighting_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "three_year_lighting_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "total_floor_area" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "transaction_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "type_of_assessment" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "unheated_corridor_length" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "uprn" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "walls_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "walls_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "walls_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "water_heating_demand" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "wind_turbine_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "windows_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "windows_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "windows_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        }
                     },
                     "required" : [
                        "address1",
                        "address2",
                        "air_tightness_description",
                        "air_tightness_energy_efficiency",
                        "air_tightness_environmental_efficiency",
                        "alternative_improvements",
                        "building_reference_number",
                        "built_form",
                        "co2_emissions_current",
                        "co2_emissions_per_floor_area_m2_current",
                        "co2_emissions_potential",
                        "co2_emissions_reduction_potential",
                        "constituency",
                        "constituency_label",
                        "construction_age_band",
                        "created_at",
                        "data_zone",
                        "data_zone_2011",
                        "energy_consumption_per_floor_area_m2_current",
                        "energy_consumption_per_floor_area_m2_potential",
                        "energy_cost_current",
                        "energy_efficiency_current",
                        "energy_efficiency_potential",
                        "energy_rating_current",
                        "energy_rating_potential",
                        "energy_saving_potential",
                        "energy_tariff",
                        "environmental_impact_current",
                        "environmental_impact_potential",
                        "environmental_rating_current",
                        "environmental_rating_potential",
                        "extension_count",
                        "fixed_lighting_outlet_count",
                        "flat_storey_count",
                        "floor_description",
                        "floor_energy_efficiency",
                        "floor_environmental_efficiency",
                        "floor_height",
                        "floor_level",
                        "glazed_area",
                        "glazed_type",
                        "habitable_room_count",
                        "has_mains_gas",
                        "has_solar_water_heating",
                        "heat_loss_corridor",
                        "heated_room_count",
                        "heating_cost_current",
                        "heating_cost_potential",
                        "historic",
                        "hot_water_cost_current",
                        "hot_water_cost_potential",
                        "hot_water_description",
                        "hot_water_energy_efficiency",
                        "hot_water_environmental_efficiency",
                        "id",
                        "impact_cavity_wall_insulation",
                        "impact_loft_insulation",
                        "impact_solid_wall_insulation",
                        "improvements",
                        "inspection_date",
                        "lighting_cost_current",
                        "lighting_cost_potential",
                        "lighting_description",
                        "lighting_energy_efficiency",
                        "lighting_environmental_efficiency",
                        "local_authority_label",
                        "lodgement_date",
                        "low_energy_fixed_light_count",
                        "low_energy_lighting_percentage",
                        "lzc_energy_sources",
                        "main_fuel",
                        "main_heating_category",
                        "main_heating_controls",
                        "main_heating_controls_description",
                        "main_heating_controls_energy_efficiency",
                        "main_heating_controls_environmental_efficiency",
                        "main_heating_description",
                        "main_heating_energy_efficiency",
                        "main_heating_environmental_efficiency",
                        "mechanical_ventilation",
                        "multi_glaze_percentage",
                        "open_fireplace_count",
                        "post_town",
                        "postcode",
                        "property_type",
                        "report_reference_number",
                        "roof_description",
                        "roof_energy_efficiency",
                        "roof_environmental_efficiency",
                        "roof_photovoltaic_supply",
                        "second_heating_description",
                        "second_heating_energy_efficiency",
                        "second_heating_environmental_efficiency",
                        "space_heating_demand",
                        "tenure",
                        "three_year_energy_cost_current",
                        "three_year_energy_saving_potential",
                        "three_year_heating_cost_current",
                        "three_year_heating_cost_potential",
                        "three_year_hot_water_cost_current",
                        "three_year_hot_water_cost_potential",
                        "three_year_lighting_cost_current",
                        "three_year_lighting_cost_potential",
                        "total_floor_area",
                        "transaction_type",
                        "type_of_assessment",
                        "unheated_corridor_length",
                        "uprn",
                        "walls_description",
                        "walls_energy_efficiency",
                        "walls_environmental_efficiency",
                        "water_heating_demand",
                        "wind_turbine_count",
                        "windows_description",
                        "windows_energy_efficiency",
                        "windows_environmental_efficiency"
                     ],
                     "type" : "object"
                  },
                  {
                     "$ref" : "#/definitions/EPCEnhancements"
                  }
               ]
            },
            {
               "allOf" : [
                  {
                     "properties" : {
                        "address" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "address1" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "address2" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "address3" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "built_form" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "certificate_number" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "co2_emissions_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "co2_emissions_per_floor_area_m2_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "co2_emissions_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "co2_emissions_reduction_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "constituency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "constituency_label" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "construction_age_band" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "country" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "dwelling_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "energy_consumption_per_floor_area_m2_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_consumption_per_floor_area_m2_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_efficiency_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_efficiency_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "energy_tariff" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "environmental_impact_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "environmental_impact_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "extension_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "fixed_lighting_outlet_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "flat_storey_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "floor_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "floor_height" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "floor_level" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "glazed_area" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "glazed_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "habitable_room_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "has_mains_gas" : {
                           "type" : [
                              "null",
                              "boolean"
                           ]
                        },
                        "has_solar_water_heating" : {
                           "type" : [
                              "null",
                              "boolean"
                           ]
                        },
                        "heat_loss_corridor" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "heated_room_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "heating_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "heating_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "hot_water_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "hot_water_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "hot_water_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "hot_water_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "hot_water_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "inspection_date" : {
                           "anyOf" : [
                              {
                                 "format" : "date-time",
                                 "type" : "string"
                              },
                              {
                                 "type" : "null"
                              }
                           ]
                        },
                        "is_flat_top_storey" : {
                           "type" : [
                              "null",
                              "boolean"
                           ]
                        },
                        "lighting_cost_current" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "lighting_cost_potential" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "lighting_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "lighting_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "lighting_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "local_authority" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "local_authority_label" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "lodgement_date" : {
                           "anyOf" : [
                              {
                                 "format" : "date-time",
                                 "type" : "string"
                              },
                              {
                                 "type" : "null"
                              }
                           ]
                        },
                        "lodgement_datetime" : {
                           "anyOf" : [
                              {
                                 "format" : "date-time",
                                 "type" : "string"
                              },
                              {
                                 "type" : "null"
                              }
                           ]
                        },
                        "low_energy_fixed_light_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "low_energy_lighting_percentage" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "main_fuel" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_controls_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "main_heating_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "mechanical_ventilation" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "multi_glaze_percentage" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "open_fireplace_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "post_town" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "postcode" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "property_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "region" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "report_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "roof_photovoltaic_supply" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "second_heating_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "second_heating_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "second_heating_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "tenure" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "total_floor_area" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "transaction_type" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "unheated_corridor_length" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "uprn" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "uprn_source" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "walls_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "walls_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "walls_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "wind_turbine_count" : {
                           "type" : [
                              "null",
                              "number"
                           ]
                        },
                        "windows_description" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "windows_energy_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "windows_environmental_efficiency" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        }
                     },
                     "required" : [
                        "address",
                        "address1",
                        "address2",
                        "address3",
                        "built_form",
                        "certificate_number",
                        "co2_emissions_current",
                        "co2_emissions_per_floor_area_m2_current",
                        "co2_emissions_potential",
                        "co2_emissions_reduction_potential",
                        "constituency",
                        "constituency_label",
                        "construction_age_band",
                        "country",
                        "dwelling_type",
                        "energy_consumption_per_floor_area_m2_current",
                        "energy_consumption_per_floor_area_m2_potential",
                        "energy_efficiency_current",
                        "energy_efficiency_potential",
                        "energy_rating_current",
                        "energy_rating_potential",
                        "energy_tariff",
                        "environmental_impact_current",
                        "environmental_impact_potential",
                        "extension_count",
                        "fixed_lighting_outlet_count",
                        "flat_storey_count",
                        "floor_description",
                        "floor_energy_efficiency",
                        "floor_environmental_efficiency",
                        "floor_height",
                        "floor_level",
                        "glazed_area",
                        "glazed_type",
                        "habitable_room_count",
                        "has_mains_gas",
                        "has_solar_water_heating",
                        "heat_loss_corridor",
                        "heated_room_count",
                        "heating_cost_current",
                        "heating_cost_potential",
                        "hot_water_cost_current",
                        "hot_water_cost_potential",
                        "hot_water_description",
                        "hot_water_energy_efficiency",
                        "hot_water_environmental_efficiency",
                        "inspection_date",
                        "is_flat_top_storey",
                        "lighting_cost_current",
                        "lighting_cost_potential",
                        "lighting_description",
                        "lighting_energy_efficiency",
                        "lighting_environmental_efficiency",
                        "local_authority",
                        "local_authority_label",
                        "lodgement_date",
                        "lodgement_datetime",
                        "low_energy_fixed_light_count",
                        "low_energy_lighting_percentage",
                        "main_fuel",
                        "main_heating_controls",
                        "main_heating_controls_description",
                        "main_heating_controls_energy_efficiency",
                        "main_heating_controls_environmental_efficiency",
                        "main_heating_description",
                        "main_heating_energy_efficiency",
                        "main_heating_environmental_efficiency",
                        "mechanical_ventilation",
                        "multi_glaze_percentage",
                        "open_fireplace_count",
                        "post_town",
                        "postcode",
                        "property_type",
                        "region",
                        "report_type",
                        "roof_description",
                        "roof_energy_efficiency",
                        "roof_environmental_efficiency",
                        "roof_photovoltaic_supply",
                        "second_heating_description",
                        "second_heating_energy_efficiency",
                        "second_heating_environmental_efficiency",
                        "tenure",
                        "total_floor_area",
                        "transaction_type",
                        "unheated_corridor_length",
                        "uprn",
                        "uprn_source",
                        "walls_description",
                        "walls_energy_efficiency",
                        "walls_environmental_efficiency",
                        "wind_turbine_count",
                        "windows_description",
                        "windows_energy_efficiency",
                        "windows_environmental_efficiency"
                     ],
                     "type" : "object"
                  },
                  {
                     "$ref" : "#/definitions/EPCEnhancements"
                  }
               ]
            }
         ]
      },
      "ScottishEPCsTable" : {
         "properties" : {
            "3_yr_energy_cost_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "3_yr_energy_savings_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "addendum_text" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "address1" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "address2" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "address3" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "air_tightness_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "air_tightness_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "air_tightness_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "alternative_improvements" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "building_reference_number" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "built_form" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "co2_emiss_curr_per_floor_area" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "co2_emissions_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "co2_emissions_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "constituency" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "constituency_label" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "construction_age_band" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "created_at" : {
               "anyOf" : [
                  {
                     "format" : "date-time",
                     "type" : "string"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "current_energy_efficiency" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "current_energy_rating" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "current_environmental_rating" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "data_zone" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "data_zone_2011" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "energy_consumption_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "energy_consumption_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "energy_tariff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "environment_impact_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "environment_impact_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "extension_count" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "fixed_lighting_outlets_count" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "flat_top_storey" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "floor_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "floor_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "floor_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "floor_height" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "floor_level" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "glazed_area" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "glazed_type" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "heat_loss_corridoor" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "heating_cost_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "heating_cost_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "historic" : {
               "type" : [
                  "null",
                  "boolean"
               ]
            },
            "hot_water_cost_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "hot_water_cost_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "hot_water_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "hot_water_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "hotwater_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "id" : {
               "type" : "number"
            },
            "impact_cavity_wall_insulation" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "impact_loft_insulation" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "impact_solid_wall_insulation" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "improvements" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "inspection_date" : {
               "anyOf" : [
                  {
                     "format" : "date-time",
                     "type" : "string"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "lighting_cost_current" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "lighting_cost_potential" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "lighting_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "lighting_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "lighting_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "local_authority_label" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "lodgement_date" : {
               "anyOf" : [
                  {
                     "format" : "date-time",
                     "type" : "string"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "low_energy_fixed_light_count" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "low_energy_lighting" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "lzc_energy_sources" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "main_fuel" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "main_heating_category" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "main_heating_controls" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mainheat_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mainheat_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mainheat_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mainheatc_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mainheatc_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mainheatcont_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mains_gas_flag" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "mechanical_ventilation" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "multi_glaze_proportion" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "number_habitable_rooms" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "number_heated_rooms" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "number_open_fireplaces" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "osg_reference_number" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "photo_supply" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "postcode" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "potential_energy_efficiency" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "potential_energy_rating" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "potential_environmental_rating" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "property_type" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "report_reference_number" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "roof_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "roof_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "roof_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "secondheat_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "sheating_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "sheating_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "solar_water_heating_flag" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "space_heating_demand" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "tenure" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "total_floor_area" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "transaction_type" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "type_of_assessment" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "unheated_corridor_length" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "wall_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "wall_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "wall_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "water_heating_demand" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "wind_turbine_count" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "windows_description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "windows_energy_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "windows_env_eff" : {
               "type" : [
                  "null",
                  "string"
               ]
            }
         },
         "required" : [
            "3_yr_energy_cost_current",
            "3_yr_energy_savings_potential",
            "addendum_text",
            "address1",
            "address2",
            "address3",
            "air_tightness_description",
            "air_tightness_energy_eff",
            "air_tightness_env_eff",
            "alternative_improvements",
            "building_reference_number",
            "built_form",
            "co2_emiss_curr_per_floor_area",
            "co2_emissions_current",
            "co2_emissions_potential",
            "constituency",
            "constituency_label",
            "construction_age_band",
            "created_at",
            "current_energy_efficiency",
            "current_energy_rating",
            "current_environmental_rating",
            "data_zone",
            "data_zone_2011",
            "energy_consumption_current",
            "energy_consumption_potential",
            "energy_tariff",
            "environment_impact_current",
            "environment_impact_potential",
            "extension_count",
            "fixed_lighting_outlets_count",
            "flat_top_storey",
            "floor_description",
            "floor_energy_eff",
            "floor_env_eff",
            "floor_height",
            "floor_level",
            "glazed_area",
            "glazed_type",
            "heat_loss_corridoor",
            "heating_cost_current",
            "heating_cost_potential",
            "historic",
            "hot_water_cost_current",
            "hot_water_cost_potential",
            "hot_water_energy_eff",
            "hot_water_env_eff",
            "hotwater_description",
            "id",
            "impact_cavity_wall_insulation",
            "impact_loft_insulation",
            "impact_solid_wall_insulation",
            "improvements",
            "inspection_date",
            "lighting_cost_current",
            "lighting_cost_potential",
            "lighting_description",
            "lighting_energy_eff",
            "lighting_env_eff",
            "local_authority_label",
            "lodgement_date",
            "low_energy_fixed_light_count",
            "low_energy_lighting",
            "lzc_energy_sources",
            "main_fuel",
            "main_heating_category",
            "main_heating_controls",
            "mainheat_description",
            "mainheat_energy_eff",
            "mainheat_env_eff",
            "mainheatc_energy_eff",
            "mainheatc_env_eff",
            "mainheatcont_description",
            "mains_gas_flag",
            "mechanical_ventilation",
            "multi_glaze_proportion",
            "number_habitable_rooms",
            "number_heated_rooms",
            "number_open_fireplaces",
            "osg_reference_number",
            "photo_supply",
            "postcode",
            "potential_energy_efficiency",
            "potential_energy_rating",
            "potential_environmental_rating",
            "property_type",
            "report_reference_number",
            "roof_description",
            "roof_energy_eff",
            "roof_env_eff",
            "secondheat_description",
            "sheating_energy_eff",
            "sheating_env_eff",
            "solar_water_heating_flag",
            "space_heating_demand",
            "tenure",
            "total_floor_area",
            "transaction_type",
            "type_of_assessment",
            "unheated_corridor_length",
            "wall_description",
            "wall_energy_eff",
            "wall_env_eff",
            "water_heating_demand",
            "wind_turbine_count",
            "windows_description",
            "windows_energy_eff",
            "windows_env_eff"
         ],
         "type" : "object"
      },
      "ScottishEpcImprovement" : {
         "properties" : {
            "description" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "energy_rating_after_improvement" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "environmental_rating_after_improvement" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "green_deal_eligible" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "indicative_cost" : {
               "type" : [
                  "null",
                  "string"
               ]
            },
            "typical_saving" : {
               "type" : [
                  "null",
                  "string"
               ]
            }
         },
         "required" : [
            "description",
            "energy_rating_after_improvement",
            "environmental_rating_after_improvement",
            "green_deal_eligible",
            "indicative_cost",
            "typical_saving"
         ],
         "type" : "object"
      }
   },
   "properties" : {
      "epc_age" : {
         "type" : [
            "null",
            "number"
         ]
      },
      "epc_compare" : {
         "$ref" : "#/definitions/EPCCompare"
      },
      "epc_country" : {
         "type" : [
            "null",
            "string"
         ]
      },
      "epc_estimate" : {
         "anyOf" : [
            {
               "properties" : {
                  "avg_co2_emissions_current" : {
                     "type" : "number"
                  },
                  "avg_co2_emissions_potential" : {
                     "type" : "number"
                  },
                  "avg_energy_efficiency_current" : {
                     "type" : "number"
                  },
                  "avg_energy_efficiency_potential" : {
                     "type" : "number"
                  },
                  "avg_energy_rating_current" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_energy_rating_current_numerical" : {
                     "type" : "number"
                  },
                  "avg_energy_rating_potential" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_energy_rating_potential_numerical" : {
                     "type" : "number"
                  },
                  "avg_floor_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_floor_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_hot_water_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_hot_water_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_lighting_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_lighting_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_main_heating_controls_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_main_heating_controls_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_main_heating_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_main_heating_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_roof_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_roof_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_total_floor_area" : {
                     "type" : "number"
                  },
                  "avg_walls_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_walls_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "avg_windows_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "avg_windows_energy_efficiency_numerical" : {
                     "type" : "number"
                  },
                  "median_co2_emissions_current" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_co2_emissions_potential" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_energy_efficiency_current" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_energy_efficiency_potential" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_energy_rating_current" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_energy_rating_potential" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_floor_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_hot_water_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_lighting_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_main_heating_controls_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_main_heating_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_roof_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_total_floor_area" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "median_walls_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "median_windows_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string"
                     ]
                  },
                  "mode_built_form" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_construction_age_band" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_energy_rating_current" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_energy_rating_potential" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_floor_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_hot_water_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_lighting_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_main_heating_controls_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_main_heating_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_property_type" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_roof_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_walls_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "mode_windows_energy_efficiency" : {
                     "type" : [
                        "null",
                        "string",
                        "number"
                     ]
                  },
                  "property_count" : {
                     "type" : "number"
                  }
               },
               "required" : [
                  "avg_co2_emissions_current",
                  "avg_co2_emissions_potential",
                  "avg_energy_efficiency_current",
                  "avg_energy_efficiency_potential",
                  "avg_energy_rating_current",
                  "avg_energy_rating_current_numerical",
                  "avg_energy_rating_potential",
                  "avg_energy_rating_potential_numerical",
                  "avg_floor_energy_efficiency",
                  "avg_floor_energy_efficiency_numerical",
                  "avg_hot_water_energy_efficiency",
                  "avg_hot_water_energy_efficiency_numerical",
                  "avg_lighting_energy_efficiency",
                  "avg_lighting_energy_efficiency_numerical",
                  "avg_main_heating_controls_energy_efficiency",
                  "avg_main_heating_controls_energy_efficiency_numerical",
                  "avg_main_heating_energy_efficiency",
                  "avg_main_heating_energy_efficiency_numerical",
                  "avg_roof_energy_efficiency",
                  "avg_roof_energy_efficiency_numerical",
                  "avg_total_floor_area",
                  "avg_walls_energy_efficiency",
                  "avg_walls_energy_efficiency_numerical",
                  "avg_windows_energy_efficiency",
                  "avg_windows_energy_efficiency_numerical",
                  "median_co2_emissions_current",
                  "median_co2_emissions_potential",
                  "median_energy_efficiency_current",
                  "median_energy_efficiency_potential",
                  "median_energy_rating_current",
                  "median_energy_rating_potential",
                  "median_floor_energy_efficiency",
                  "median_hot_water_energy_efficiency",
                  "median_lighting_energy_efficiency",
                  "median_main_heating_controls_energy_efficiency",
                  "median_main_heating_energy_efficiency",
                  "median_roof_energy_efficiency",
                  "median_total_floor_area",
                  "median_walls_energy_efficiency",
                  "median_windows_energy_efficiency",
                  "mode_built_form",
                  "mode_construction_age_band",
                  "mode_energy_rating_current",
                  "mode_energy_rating_potential",
                  "mode_floor_energy_efficiency",
                  "mode_hot_water_energy_efficiency",
                  "mode_lighting_energy_efficiency",
                  "mode_main_heating_controls_energy_efficiency",
                  "mode_main_heating_energy_efficiency",
                  "mode_property_type",
                  "mode_roof_energy_efficiency",
                  "mode_walls_energy_efficiency",
                  "mode_windows_energy_efficiency",
                  "property_count"
               ],
               "type" : "object"
            },
            {
               "type" : "null"
            }
         ]
      },
      "epc_expiry" : {
         "type" : [
            "null",
            "string"
         ]
      },
      "epc_in_date" : {
         "type" : [
            "null",
            "boolean"
         ]
      },
      "epc_retrofit_recommendations" : {
         "anyOf" : [
            {
               "items" : {
                  "$ref" : "#/definitions/EPCRecommendation"
               },
               "type" : "array"
            },
            {
               "type" : "null"
            }
         ]
      },
      "epc_stats" : {
         "properties" : {
            "country_stats" : {
               "anyOf" : [
                  {
                     "properties" : {
                        "avg_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "avg_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_current_numerical" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_potential_numerical" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_potential" : {
                           "type" : "number"
                        },
                        "property_count" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_potential" : {
                           "type" : "number"
                        }
                     },
                     "required" : [
                        "avg_energy_efficiency_current",
                        "avg_energy_efficiency_potential",
                        "avg_energy_rating_current",
                        "avg_energy_rating_current_numerical",
                        "avg_energy_rating_potential",
                        "avg_energy_rating_potential_numerical",
                        "energy_rating_a_count_current",
                        "energy_rating_a_count_potential",
                        "energy_rating_b_count_current",
                        "energy_rating_b_count_potential",
                        "energy_rating_c_count_current",
                        "energy_rating_c_count_potential",
                        "energy_rating_d_count_current",
                        "energy_rating_d_count_potential",
                        "energy_rating_e_count_current",
                        "energy_rating_e_count_potential",
                        "energy_rating_f_count_current",
                        "energy_rating_f_count_potential",
                        "energy_rating_g_count_current",
                        "energy_rating_g_count_potential",
                        "property_count",
                        "stddev_energy_efficiency_current",
                        "stddev_energy_efficiency_potential",
                        "stddev_energy_rating_current",
                        "stddev_energy_rating_potential"
                     ],
                     "type" : "object"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "local_authority_stats" : {
               "anyOf" : [
                  {
                     "properties" : {
                        "avg_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "avg_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_current_numerical" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_potential_numerical" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_potential" : {
                           "type" : "number"
                        },
                        "property_count" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_potential" : {
                           "type" : "number"
                        }
                     },
                     "required" : [
                        "avg_energy_efficiency_current",
                        "avg_energy_efficiency_potential",
                        "avg_energy_rating_current",
                        "avg_energy_rating_current_numerical",
                        "avg_energy_rating_potential",
                        "avg_energy_rating_potential_numerical",
                        "energy_rating_a_count_current",
                        "energy_rating_a_count_potential",
                        "energy_rating_b_count_current",
                        "energy_rating_b_count_potential",
                        "energy_rating_c_count_current",
                        "energy_rating_c_count_potential",
                        "energy_rating_d_count_current",
                        "energy_rating_d_count_potential",
                        "energy_rating_e_count_current",
                        "energy_rating_e_count_potential",
                        "energy_rating_f_count_current",
                        "energy_rating_f_count_potential",
                        "energy_rating_g_count_current",
                        "energy_rating_g_count_potential",
                        "property_count",
                        "stddev_energy_efficiency_current",
                        "stddev_energy_efficiency_potential",
                        "stddev_energy_rating_current",
                        "stddev_energy_rating_potential"
                     ],
                     "type" : "object"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "outcode_stats" : {
               "anyOf" : [
                  {
                     "properties" : {
                        "avg_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "avg_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_current_numerical" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_potential_numerical" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_potential" : {
                           "type" : "number"
                        },
                        "property_count" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_potential" : {
                           "type" : "number"
                        }
                     },
                     "required" : [
                        "avg_energy_efficiency_current",
                        "avg_energy_efficiency_potential",
                        "avg_energy_rating_current",
                        "avg_energy_rating_current_numerical",
                        "avg_energy_rating_potential",
                        "avg_energy_rating_potential_numerical",
                        "energy_rating_a_count_current",
                        "energy_rating_a_count_potential",
                        "energy_rating_b_count_current",
                        "energy_rating_b_count_potential",
                        "energy_rating_c_count_current",
                        "energy_rating_c_count_potential",
                        "energy_rating_d_count_current",
                        "energy_rating_d_count_potential",
                        "energy_rating_e_count_current",
                        "energy_rating_e_count_potential",
                        "energy_rating_f_count_current",
                        "energy_rating_f_count_potential",
                        "energy_rating_g_count_current",
                        "energy_rating_g_count_potential",
                        "property_count",
                        "stddev_energy_efficiency_current",
                        "stddev_energy_efficiency_potential",
                        "stddev_energy_rating_current",
                        "stddev_energy_rating_potential"
                     ],
                     "type" : "object"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "postcode_stats" : {
               "anyOf" : [
                  {
                     "properties" : {
                        "avg_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "avg_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_current_numerical" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_potential_numerical" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_potential" : {
                           "type" : "number"
                        },
                        "property_count" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_potential" : {
                           "type" : "number"
                        }
                     },
                     "required" : [
                        "avg_energy_efficiency_current",
                        "avg_energy_efficiency_potential",
                        "avg_energy_rating_current",
                        "avg_energy_rating_current_numerical",
                        "avg_energy_rating_potential",
                        "avg_energy_rating_potential_numerical",
                        "energy_rating_a_count_current",
                        "energy_rating_a_count_potential",
                        "energy_rating_b_count_current",
                        "energy_rating_b_count_potential",
                        "energy_rating_c_count_current",
                        "energy_rating_c_count_potential",
                        "energy_rating_d_count_current",
                        "energy_rating_d_count_potential",
                        "energy_rating_e_count_current",
                        "energy_rating_e_count_potential",
                        "energy_rating_f_count_current",
                        "energy_rating_f_count_potential",
                        "energy_rating_g_count_current",
                        "energy_rating_g_count_potential",
                        "property_count",
                        "stddev_energy_efficiency_current",
                        "stddev_energy_efficiency_potential",
                        "stddev_energy_rating_current",
                        "stddev_energy_rating_potential"
                     ],
                     "type" : "object"
                  },
                  {
                     "type" : "null"
                  }
               ]
            },
            "property_type_stats" : {
               "properties" : {
                  "country_stats" : {
                     "anyOf" : [
                        {
                           "properties" : {
                              "avg_energy_efficiency_current" : {
                                 "type" : "number"
                              },
                              "avg_energy_efficiency_potential" : {
                                 "type" : "number"
                              },
                              "avg_energy_rating_current" : {
                                 "type" : [
                                    "null",
                                    "string"
                                 ]
                              },
                              "avg_energy_rating_current_numerical" : {
                                 "type" : "number"
                              },
                              "avg_energy_rating_potential" : {
                                 "type" : [
                                    "null",
                                    "string"
                                 ]
                              },
                              "avg_energy_rating_potential_numerical" : {
                                 "type" : "number"
                              },
                              "energy_rating_a_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_a_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_b_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_b_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_c_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_c_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_d_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_d_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_e_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_e_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_f_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_f_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_g_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_g_count_potential" : {
                                 "type" : "number"
                              },
                              "property_count" : {
                                 "type" : "number"
                              },
                              "stddev_energy_efficiency_current" : {
                                 "type" : "number"
                              },
                              "stddev_energy_efficiency_potential" : {
                                 "type" : "number"
                              },
                              "stddev_energy_rating_current" : {
                                 "type" : "number"
                              },
                              "stddev_energy_rating_potential" : {
                                 "type" : "number"
                              }
                           },
                           "required" : [
                              "avg_energy_efficiency_current",
                              "avg_energy_efficiency_potential",
                              "avg_energy_rating_current",
                              "avg_energy_rating_current_numerical",
                              "avg_energy_rating_potential",
                              "avg_energy_rating_potential_numerical",
                              "energy_rating_a_count_current",
                              "energy_rating_a_count_potential",
                              "energy_rating_b_count_current",
                              "energy_rating_b_count_potential",
                              "energy_rating_c_count_current",
                              "energy_rating_c_count_potential",
                              "energy_rating_d_count_current",
                              "energy_rating_d_count_potential",
                              "energy_rating_e_count_current",
                              "energy_rating_e_count_potential",
                              "energy_rating_f_count_current",
                              "energy_rating_f_count_potential",
                              "energy_rating_g_count_current",
                              "energy_rating_g_count_potential",
                              "property_count",
                              "stddev_energy_efficiency_current",
                              "stddev_energy_efficiency_potential",
                              "stddev_energy_rating_current",
                              "stddev_energy_rating_potential"
                           ],
                           "type" : "object"
                        },
                        {
                           "type" : "null"
                        }
                     ]
                  },
                  "local_authority_stats" : {
                     "anyOf" : [
                        {
                           "properties" : {
                              "avg_energy_efficiency_current" : {
                                 "type" : "number"
                              },
                              "avg_energy_efficiency_potential" : {
                                 "type" : "number"
                              },
                              "avg_energy_rating_current" : {
                                 "type" : [
                                    "null",
                                    "string"
                                 ]
                              },
                              "avg_energy_rating_current_numerical" : {
                                 "type" : "number"
                              },
                              "avg_energy_rating_potential" : {
                                 "type" : [
                                    "null",
                                    "string"
                                 ]
                              },
                              "avg_energy_rating_potential_numerical" : {
                                 "type" : "number"
                              },
                              "energy_rating_a_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_a_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_b_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_b_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_c_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_c_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_d_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_d_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_e_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_e_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_f_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_f_count_potential" : {
                                 "type" : "number"
                              },
                              "energy_rating_g_count_current" : {
                                 "type" : "number"
                              },
                              "energy_rating_g_count_potential" : {
                                 "type" : "number"
                              },
                              "property_count" : {
                                 "type" : "number"
                              },
                              "stddev_energy_efficiency_current" : {
                                 "type" : "number"
                              },
                              "stddev_energy_efficiency_potential" : {
                                 "type" : "number"
                              },
                              "stddev_energy_rating_current" : {
                                 "type" : "number"
                              },
                              "stddev_energy_rating_potential" : {
                                 "type" : "number"
                              }
                           },
                           "required" : [
                              "avg_energy_efficiency_current",
                              "avg_energy_efficiency_potential",
                              "avg_energy_rating_current",
                              "avg_energy_rating_current_numerical",
                              "avg_energy_rating_potential",
                              "avg_energy_rating_potential_numerical",
                              "energy_rating_a_count_current",
                              "energy_rating_a_count_potential",
                              "energy_rating_b_count_current",
                              "energy_rating_b_count_potential",
                              "energy_rating_c_count_current",
                              "energy_rating_c_count_potential",
                              "energy_rating_d_count_current",
                              "energy_rating_d_count_potential",
                              "energy_rating_e_count_current",
                              "energy_rating_e_count_potential",
                              "energy_rating_f_count_current",
                              "energy_rating_f_count_potential",
                              "energy_rating_g_count_current",
                              "energy_rating_g_count_potential",
                              "property_count",
                              "stddev_energy_efficiency_current",
                              "stddev_energy_efficiency_potential",
                              "stddev_energy_rating_current",
                              "stddev_energy_rating_potential"
                           ],
                           "type" : "object"
                        },
                        {
                           "type" : "null"
                        }
                     ]
                  }
               },
               "required" : [
                  "country_stats",
                  "local_authority_stats"
               ],
               "type" : "object"
            },
            "region_stats" : {
               "anyOf" : [
                  {
                     "properties" : {
                        "avg_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "avg_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_current" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_current_numerical" : {
                           "type" : "number"
                        },
                        "avg_energy_rating_potential" : {
                           "type" : [
                              "null",
                              "string"
                           ]
                        },
                        "avg_energy_rating_potential_numerical" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_a_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_b_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_c_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_d_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_e_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_f_count_potential" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_current" : {
                           "type" : "number"
                        },
                        "energy_rating_g_count_potential" : {
                           "type" : "number"
                        },
                        "property_count" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_efficiency_potential" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_current" : {
                           "type" : "number"
                        },
                        "stddev_energy_rating_potential" : {
                           "type" : "number"
                        }
                     },
                     "required" : [
                        "avg_energy_efficiency_current",
                        "avg_energy_efficiency_potential",
                        "avg_energy_rating_current",
                        "avg_energy_rating_current_numerical",
                        "avg_energy_rating_potential",
                        "avg_energy_rating_potential_numerical",
                        "energy_rating_a_count_current",
                        "energy_rating_a_count_potential",
                        "energy_rating_b_count_current",
                        "energy_rating_b_count_potential",
                        "energy_rating_c_count_current",
                        "energy_rating_c_count_potential",
                        "energy_rating_d_count_current",
                        "energy_rating_d_count_potential",
                        "energy_rating_e_count_current",
                        "energy_rating_e_count_potential",
                        "energy_rating_f_count_current",
                        "energy_rating_f_count_potential",
                        "energy_rating_g_count_current",
                        "energy_rating_g_count_potential",
                        "property_count",
                        "stddev_energy_efficiency_current",
                        "stddev_energy_efficiency_potential",
                        "stddev_energy_rating_current",
                        "stddev_energy_rating_potential"
                     ],
                     "type" : "object"
                  },
                  {
                     "type" : "null"
                  }
               ]
            }
         },
         "required" : [
            "country_stats",
            "local_authority_stats",
            "outcode_stats",
            "postcode_stats",
            "property_type_stats",
            "region_stats"
         ],
         "type" : "object"
      },
      "epcs" : {
         "anyOf" : [
            {
               "items" : {
                  "$ref" : "#/definitions/ScottishEPCsTable"
               },
               "type" : "array"
            },
            {
               "items" : {
                  "properties" : {
                     "address" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "address1" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "address2" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "address3" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "built_form" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "certificate_number" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "co2_emiss_curr_per_floor_area" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "co2_emissions_current" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "co2_emissions_potential" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "constituency" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "constituency_label" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "construction_age_band" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "country" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "current_energy_efficiency" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "current_energy_rating" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "energy_consumption_current" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "energy_consumption_potential" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "energy_tariff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "environment_impact_current" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "environment_impact_potential" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "extension_count" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "fixed_lighting_outlets_count" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "flat_storey_count" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "flat_top_storey" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "floor_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "floor_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "floor_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "floor_height" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "floor_level" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "glazed_area" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "glazed_type" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "heat_loss_corridor" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "heating_cost_current" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "heating_cost_potential" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "hot_water_cost_current" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "hot_water_cost_potential" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "hot_water_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "hot_water_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "hotwater_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "inspection_date" : {
                        "anyOf" : [
                           {
                              "format" : "date-time",
                              "type" : "string"
                           },
                           {
                              "type" : "null"
                           }
                        ]
                     },
                     "lighting_cost_current" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "lighting_cost_potential" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "lighting_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "lighting_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "lighting_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "local_authority" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "local_authority_label" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "lodgement_date" : {
                        "anyOf" : [
                           {
                              "format" : "date-time",
                              "type" : "string"
                           },
                           {
                              "type" : "null"
                           }
                        ]
                     },
                     "lodgement_datetime" : {
                        "anyOf" : [
                           {
                              "format" : "date-time",
                              "type" : "string"
                           },
                           {
                              "type" : "null"
                           }
                        ]
                     },
                     "low_energy_fixed_lighting_outlets_count" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "low_energy_lighting" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "main_fuel" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "main_heating_controls" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mainheat_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mainheat_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mainheat_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mainheatc_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mainheatc_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mainheatcont_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mains_gas_flag" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "mechanical_ventilation" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "multi_glaze_proportion" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "number_habitable_rooms" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "number_heated_rooms" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "number_open_fireplaces" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "photo_supply" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "postcode" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "posttown" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "potential_energy_efficiency" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "potential_energy_rating" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "property_type" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "region" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "report_type" : {
                        "type" : [
                           "null",
                           "string",
                           "number"
                        ]
                     },
                     "roof_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "roof_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "roof_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "secondheat_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "sheating_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "sheating_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "solar_water_heating_flag" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "tenure" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "total_floor_area" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "transaction_type" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "unheated_corridor_length" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "uprn" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "uprn_source" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "walls_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "walls_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "walls_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "wind_turbine_count" : {
                        "type" : [
                           "null",
                           "number"
                        ]
                     },
                     "windows_description" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "windows_energy_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     },
                     "windows_env_eff" : {
                        "type" : [
                           "null",
                           "string"
                        ]
                     }
                  },
                  "required" : [
                     "address",
                     "address1",
                     "address2",
                     "address3",
                     "built_form",
                     "certificate_number",
                     "co2_emiss_curr_per_floor_area",
                     "co2_emissions_current",
                     "co2_emissions_potential",
                     "constituency",
                     "constituency_label",
                     "construction_age_band",
                     "country",
                     "current_energy_efficiency",
                     "current_energy_rating",
                     "energy_consumption_current",
                     "energy_consumption_potential",
                     "energy_tariff",
                     "environment_impact_current",
                     "environment_impact_potential",
                     "extension_count",
                     "fixed_lighting_outlets_count",
                     "flat_storey_count",
                     "flat_top_storey",
                     "floor_description",
                     "floor_energy_eff",
                     "floor_env_eff",
                     "floor_height",
                     "floor_level",
                     "glazed_area",
                     "glazed_type",
                     "heat_loss_corridor",
                     "heating_cost_current",
                     "heating_cost_potential",
                     "hot_water_cost_current",
                     "hot_water_cost_potential",
                     "hot_water_energy_eff",
                     "hot_water_env_eff",
                     "hotwater_description",
                     "inspection_date",
                     "lighting_cost_current",
                     "lighting_cost_potential",
                     "lighting_description",
                     "lighting_energy_eff",
                     "lighting_env_eff",
                     "local_authority",
                     "local_authority_label",
                     "lodgement_date",
                     "lodgement_datetime",
                     "low_energy_fixed_lighting_outlets_count",
                     "low_energy_lighting",
                     "main_fuel",
                     "main_heating_controls",
                     "mainheat_description",
                     "mainheat_energy_eff",
                     "mainheat_env_eff",
                     "mainheatc_energy_eff",
                     "mainheatc_env_eff",
                     "mainheatcont_description",
                     "mains_gas_flag",
                     "mechanical_ventilation",
                     "multi_glaze_proportion",
                     "number_habitable_rooms",
                     "number_heated_rooms",
                     "number_open_fireplaces",
                     "photo_supply",
                     "postcode",
                     "posttown",
                     "potential_energy_efficiency",
                     "potential_energy_rating",
                     "property_type",
                     "region",
                     "report_type",
                     "roof_description",
                     "roof_energy_eff",
                     "roof_env_eff",
                     "secondheat_description",
                     "sheating_energy_eff",
                     "sheating_env_eff",
                     "solar_water_heating_flag",
                     "tenure",
                     "total_floor_area",
                     "transaction_type",
                     "unheated_corridor_length",
                     "uprn",
                     "uprn_source",
                     "walls_description",
                     "walls_energy_eff",
                     "walls_env_eff",
                     "wind_turbine_count",
                     "windows_description",
                     "windows_energy_eff",
                     "windows_env_eff"
                  ],
                  "type" : "object"
               },
               "type" : "array"
            }
         ]
      },
      "epcs_enhanced" : {
         "anyOf" : [
            {
               "items" : {
                  "$ref" : "#/definitions/EnhancedEPC"
               },
               "type" : "array"
            },
            {
               "type" : "null"
            }
         ]
      }
   },
   "required" : [
      "epc_age",
      "epc_compare",
      "epc_country",
      "epc_estimate",
      "epc_expiry",
      "epc_in_date",
      "epc_retrofit_recommendations",
      "epc_stats",
      "epcs",
      "epcs_enhanced"
   ],
   "type" : "object"
}