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": 1500.5,
        "heating_cost_potential": 1170.1,
        "hot_water_cost_current": 255.6,
        "hot_water_cost_potential": 157,
        "lighting_cost_current": 145.9,
        "lighting_cost_potential": 145.9,
        "total_fuel_cost_current": 1902,
        "total_fuel_cost_potential": 1473,
        "standing_charges": 289
    },
    "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

Unfortunately, many domestic properties do not have an EPC. In such cases, the API provides an estimated assessment (where possible) for a number of EPC fields, based on the attributes of nearby properties. If there is not enough information available to generate a useful estimate, this will be returned as null.

"epc_estimate": {
        "avg_co2_emissions_current": 5.9,
        "avg_co2_emissions_potential": 3.55,
        "avg_energy_efficiency_current": 69.5,
        "avg_energy_efficiency_potential": 82.5,
        "avg_energy_rating_current": "D",
        "avg_energy_rating_current_numerical": 4.5,
        "avg_energy_rating_potential": "B",
        "avg_energy_rating_potential_numerical": 6,
        "avg_floor_energy_efficiency": null,
        "avg_floor_energy_efficiency_numerical": null,
        "avg_hot_water_energy_efficiency": "Average",
        "avg_hot_water_energy_efficiency_numerical": 3,
        "avg_lighting_energy_efficiency": "Very Poor",
        "avg_lighting_energy_efficiency_numerical": 1,
        "avg_main_heating_controls_energy_efficiency": "Good",
        "avg_main_heating_controls_energy_efficiency_numerical": 4,
        "avg_main_heating_energy_efficiency": "Average",
        "avg_main_heating_energy_efficiency_numerical": 3.5,
        "avg_roof_energy_efficiency": "Good",
        "avg_roof_energy_efficiency_numerical": 4,
        "avg_total_floor_area": 186,
        "avg_walls_energy_efficiency": "Good",
        "avg_walls_energy_efficiency_numerical": 4,
        "avg_windows_energy_efficiency": "Average",
        "avg_windows_energy_efficiency_numerical": 3.5,
        "median_co2_emissions_current": 4.8,
        "median_co2_emissions_potential": 2.4,
        "median_energy_efficiency_current": 66,
        "median_energy_efficiency_potential": 82,
        "median_energy_rating_current": "C",
        "median_energy_rating_potential": "B",
        "median_floor_energy_efficiency": null,
        "median_hot_water_energy_efficiency": "Average",
        "median_lighting_energy_efficiency": "Very Poor",
        "median_main_heating_controls_energy_efficiency": "Average",
        "median_main_heating_energy_efficiency": "Average",
        "median_roof_energy_efficiency": "Good",
        "median_total_floor_area": 116,
        "median_walls_energy_efficiency": "Good",
        "median_windows_energy_efficiency": "Average",
        "mode_built_form": "Detached",
        "mode_construction_age_band": "1996-2002",
        "mode_energy_rating_current": "C",
        "mode_energy_rating_potential": "B",
        "mode_floor_energy_efficiency": "N/A",
        "mode_hot_water_energy_efficiency": "Average",
        "mode_lighting_energy_efficiency": "Very Poor",
        "mode_main_heating_controls_energy_efficiency": "Average",
        "mode_main_heating_energy_efficiency": "Average",
        "mode_property_type": "House",
        "mode_roof_energy_efficiency": "Good",
        "mode_walls_energy_efficiency": "Good",
        "mode_windows_energy_efficiency": "Average",
        "property_count": 2
    }

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.5306686305052324,
        "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,
        "perc_90_energy_rating_current": 5,
        "energy_rating_a_count_current": 0,
        "energy_rating_b_count_current": 0,
        "energy_rating_c_count_current": 7,
        "energy_rating_d_count_current": 21,
        "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": 235.2,
        "stddev_energy_consumption_per_floor_area_m2_current": 53.09094344482935,
        "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": 181.5,
        "perc_25_energy_consumption_per_floor_area_m2_current": 197.25,
        "perc_50_energy_consumption_per_floor_area_m2_current": 225,
        "perc_75_energy_consumption_per_floor_area_m2_current": 272.75,
        "perc_90_energy_consumption_per_floor_area_m2_current": 307.3,
        "avg_energy_consumption_per_floor_area_m2_potential": 145.6,
        "stddev_energy_consumption_per_floor_area_m2_potential": 53.885318837387395,
        "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": 119.25,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 136,
        "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.1,
        "stddev_energy_efficiency_current": 5.358525273193015,
        "min_energy_efficiency_current": 53,
        "max_energy_efficiency_current": 73,
        "perc_10_energy_efficiency_current": 57.8,
        "perc_25_energy_efficiency_current": 62.25,
        "perc_50_energy_efficiency_current": 67,
        "perc_75_energy_efficiency_current": 68,
        "perc_90_energy_efficiency_current": 70.2,
        "avg_energy_efficiency_potential": 75.93333333333334,
        "stddev_energy_efficiency_potential": 5.999616846003632,
        "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": 77.5,
        "perc_75_energy_efficiency_potential": 79,
        "perc_90_energy_efficiency_potential": 79.3,
        "avg_total_floor_area": 71.96666666666667,
        "avg_co2_emissions_current": 2.903333333333333,
        "stddev_co2_emissions_current": 0.8519686465549327,
        "min_co2_emissions_current": 1.5,
        "max_co2_emissions_current": 4.9,
        "perc_10_co2_emissions_current": 1.99,
        "perc_25_co2_emissions_current": 2.3,
        "perc_50_co2_emissions_current": 2.8,
        "perc_75_co2_emissions_current": 3.3,
        "perc_90_co2_emissions_current": 3.8800000000000003,
        "avg_co2_emissions_potential": 1.7933333333333334,
        "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.166666666666667,
        "avg_energy_rating_potential_numerical": 4.966666666666667
    },
    "outcode_stats": {
        "outcode": "SW6",
        "property_count": 26770,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.888148397233671,
        "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": 3975,
        "energy_rating_c_count_current": 11220,
        "energy_rating_d_count_current": 9067,
        "energy_rating_e_count_current": 2194,
        "energy_rating_f_count_current": 216,
        "energy_rating_g_count_current": 87,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.6657838723033511,
        "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": 93,
        "energy_rating_b_count_potential": 9306,
        "energy_rating_c_count_potential": 14880,
        "energy_rating_d_count_potential": 2151,
        "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.41654976930596,
        "stddev_energy_consumption_per_floor_area_m2_current": 102.32199611363619,
        "min_energy_consumption_per_floor_area_m2_current": -1,
        "max_energy_consumption_per_floor_area_m2_current": 2196,
        "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": 192,
        "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.91291221516624,
        "stddev_energy_consumption_per_floor_area_m2_potential": 73.58440457653407,
        "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": 68,
        "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": 232,
        "avg_energy_efficiency_current": 68.85595816212178,
        "stddev_energy_efficiency_current": 11.16365708531887,
        "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.6120283899888,
        "stddev_energy_efficiency_potential": 7.185274639739932,
        "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.42943912659055,
        "avg_co2_emissions_current": 3.1464546133731806,
        "stddev_co2_emissions_current": 2.4311229111489503,
        "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.0952670900261348,
        "stddev_co2_emissions_potential": 1.6978154933030236,
        "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.60948823309675,
        "avg_energy_rating_potential_numerical": 5.246768771012327
    },
    "local_authority_stats": {
        "local_authority_district_code": "E09000013",
        "property_count": 73760,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.8877637631385785,
        "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": 30,
        "energy_rating_b_count_current": 12078,
        "energy_rating_c_count_current": 30979,
        "energy_rating_d_count_current": 24329,
        "energy_rating_e_count_current": 5561,
        "energy_rating_f_count_current": 586,
        "energy_rating_g_count_current": 197,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.659122166804919,
        "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": 240,
        "energy_rating_b_count_potential": 26577,
        "energy_rating_c_count_potential": 40496,
        "energy_rating_d_count_potential": 5622,
        "energy_rating_e_count_potential": 721,
        "energy_rating_f_count_potential": 62,
        "energy_rating_g_count_potential": 42,
        "avg_energy_consumption_per_floor_area_m2_current": 205.80424530616196,
        "stddev_energy_consumption_per_floor_area_m2_current": 109.73044253649111,
        "min_energy_consumption_per_floor_area_m2_current": -27,
        "max_energy_consumption_per_floor_area_m2_current": 2196,
        "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": 196,
        "perc_75_energy_consumption_per_floor_area_m2_current": 258,
        "perc_90_energy_consumption_per_floor_area_m2_current": 330,
        "avg_energy_consumption_per_floor_area_m2_potential": 139.06614235357915,
        "stddev_energy_consumption_per_floor_area_m2_potential": 79.40024380705366,
        "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": 124,
        "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.41332700650759,
        "stddev_energy_efficiency_current": 11.15936521896996,
        "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.01041214750542,
        "stddev_energy_efficiency_potential": 7.079679114401601,
        "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.92231540362667,
        "avg_co2_emissions_current": 2.787951328633384,
        "stddev_co2_emissions_current": 2.2404708310845143,
        "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.8287120390455207,
        "stddev_co2_emissions_potential": 1.5089524780758483,
        "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.649417028199566,
        "avg_energy_rating_potential_numerical": 5.266255422993493
    },
    "region_stats": {
        "region_code": "E12000007",
        "property_count": 2891820,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.9302431050082642,
        "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": 6038,
        "energy_rating_b_count_current": 470326,
        "energy_rating_c_count_current": 1110494,
        "energy_rating_d_count_current": 997681,
        "energy_rating_e_count_current": 266540,
        "energy_rating_f_count_current": 32451,
        "energy_rating_g_count_current": 8290,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.6838563752466628,
        "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": 26914,
        "energy_rating_b_count_potential": 1253692,
        "energy_rating_c_count_potential": 1380800,
        "energy_rating_d_count_potential": 198155,
        "energy_rating_e_count_potential": 27004,
        "energy_rating_f_count_potential": 3791,
        "energy_rating_g_count_potential": 1464,
        "avg_energy_consumption_per_floor_area_m2_current": 213.0565811348577,
        "stddev_energy_consumption_per_floor_area_m2_current": 130.45640868845675,
        "min_energy_consumption_per_floor_area_m2_current": -2818,
        "max_energy_consumption_per_floor_area_m2_current": 20509,
        "perc_10_energy_consumption_per_floor_area_m2_current": 73,
        "perc_25_energy_consumption_per_floor_area_m2_current": 144,
        "perc_50_energy_consumption_per_floor_area_m2_current": 203,
        "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": 137.20650595818546,
        "stddev_energy_consumption_per_floor_area_m2_potential": 105.39507824824028,
        "min_energy_consumption_per_floor_area_m2_potential": -2818,
        "max_energy_consumption_per_floor_area_m2_potential": 20509,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 55,
        "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": 164,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 244,
        "avg_energy_efficiency_current": 68.5626636512646,
        "stddev_energy_efficiency_current": 11.767368388725588,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 478,
        "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.84985026730571,
        "stddev_energy_efficiency_potential": 7.465447187428901,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 478,
        "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.86463834988994,
        "avg_co2_emissions_current": 2.960776787628643,
        "stddev_co2_emissions_current": 2.394493559999003,
        "min_co2_emissions_current": -38.4,
        "max_co2_emissions_current": 242,
        "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.8204498654828742,
        "stddev_co2_emissions_potential": 1.5297808114138756,
        "min_co2_emissions_potential": -38.4,
        "max_co2_emissions_potential": 180.5,
        "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.592342538608904,
        "avg_energy_rating_potential_numerical": 5.3589877654902445
    },
    "country_stats": {
        "country_code": "E92000001",
        "property_count": 18977304,
        "mode_energy_rating_current": "D",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.9925321539498203,
        "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": 143006,
        "energy_rating_b_count_current": 2670261,
        "energy_rating_c_count_current": 6783967,
        "energy_rating_d_count_current": 6800588,
        "energy_rating_e_count_current": 2088105,
        "energy_rating_f_count_current": 386675,
        "energy_rating_g_count_current": 104702,
        "mode_energy_rating_potential": "B",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.7772749978773327,
        "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": 1506667,
        "energy_rating_b_count_potential": 9072569,
        "energy_rating_c_count_potential": 7165795,
        "energy_rating_d_count_potential": 1001907,
        "energy_rating_e_count_potential": 181205,
        "energy_rating_f_count_potential": 38228,
        "energy_rating_g_count_potential": 10933,
        "avg_energy_consumption_per_floor_area_m2_current": 228.12560908136157,
        "stddev_energy_consumption_per_floor_area_m2_current": 144.45794850616323,
        "min_energy_consumption_per_floor_area_m2_current": -320866,
        "max_energy_consumption_per_floor_area_m2_current": 54443,
        "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": 361,
        "avg_energy_consumption_per_floor_area_m2_potential": 130.3043236262642,
        "stddev_energy_consumption_per_floor_area_m2_potential": 120.86375769942079,
        "min_energy_consumption_per_floor_area_m2_potential": -320884,
        "max_energy_consumption_per_floor_area_m2_potential": 53064,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 47,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 82,
        "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": 227,
        "avg_energy_efficiency_current": 67.14704438522985,
        "stddev_energy_efficiency_current": 12.795104697958548,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 1705,
        "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.85997874092126,
        "stddev_energy_efficiency_potential": 9.745599655652425,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 8397,
        "perc_10_energy_efficiency_potential": 71,
        "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.69660392727035,
        "avg_co2_emissions_current": 3.5533397246521385,
        "stddev_co2_emissions_current": 2.925909482700728,
        "min_co2_emissions_current": -2854.8,
        "max_co2_emissions_current": 1217,
        "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.0069209230147154,
        "stddev_co2_emissions_potential": 1.9804407305727239,
        "min_co2_emissions_potential": -2855,
        "max_co2_emissions_potential": 1180,
        "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.494166400032375,
        "avg_energy_rating_potential_numerical": 5.556621214478095
    },
    "property_type_stats": {
        "local_authority_stats": {
            "local_authority_district_code": "E09000013",
            "property_type": "House",
            "property_count": 15000,
            "mode_energy_rating_current": "D",
            "avg_energy_rating_current": "D",
            "stddev_energy_rating_current": 0.8226376736952984,
            "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": 403,
            "energy_rating_c_count_current": 4214,
            "energy_rating_d_count_current": 7536,
            "energy_rating_e_count_current": 2452,
            "energy_rating_f_count_current": 297,
            "energy_rating_g_count_current": 91,
            "mode_energy_rating_potential": "B",
            "avg_energy_rating_potential": "C",
            "stddev_energy_rating_potential": 0.795664002838946,
            "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": 200,
            "energy_rating_b_count_potential": 7990,
            "energy_rating_c_count_potential": 5221,
            "energy_rating_d_count_potential": 1151,
            "energy_rating_e_count_potential": 383,
            "energy_rating_f_count_potential": 32,
            "energy_rating_g_count_potential": 23,
            "avg_energy_consumption_per_floor_area_m2_current": 222.14746666666667,
            "stddev_energy_consumption_per_floor_area_m2_current": 83.14482660431511,
            "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": 169,
            "perc_50_energy_consumption_per_floor_area_m2_current": 212,
            "perc_75_energy_consumption_per_floor_area_m2_current": 262,
            "perc_90_energy_consumption_per_floor_area_m2_current": 320,
            "avg_energy_consumption_per_floor_area_m2_potential": 115.63993333333333,
            "stddev_energy_consumption_per_floor_area_m2_potential": 69.81807256157005,
            "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": 202,
            "avg_energy_efficiency_current": 62.48226666666667,
            "stddev_energy_efficiency_current": 11.016117397631078,
            "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.06346666666667,
            "stddev_energy_efficiency_potential": 9.286247229535878,
            "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.61380686902058,
            "avg_co2_emissions_current": 5.44084000000001,
            "stddev_co2_emissions_current": 2.958371324190524,
            "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.7,
            "perc_90_co2_emissions_current": 9,
            "avg_co2_emissions_potential": 3.0640533333333337,
            "stddev_co2_emissions_potential": 2.4169735803082495,
            "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.1148,
            "avg_energy_rating_potential_numerical": 5.419
        },
        "country_stats": {
            "country_code": "E92000001",
            "property_type": "House",
            "property_count": 11862318,
            "mode_energy_rating_current": "D",
            "avg_energy_rating_current": "D",
            "stddev_energy_rating_current": 1.0122814886468625,
            "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": 114713,
            "energy_rating_b_count_current": 1501818,
            "energy_rating_c_count_current": 3665136,
            "energy_rating_d_count_current": 4733477,
            "energy_rating_e_count_current": 1479942,
            "energy_rating_f_count_current": 290911,
            "energy_rating_g_count_current": 76321,
            "mode_energy_rating_potential": "B",
            "avg_energy_rating_potential": "C",
            "stddev_energy_rating_potential": 0.7851979821167834,
            "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": 1353744,
            "energy_rating_b_count_potential": 6577112,
            "energy_rating_c_count_potential": 3279959,
            "energy_rating_d_count_potential": 501082,
            "energy_rating_e_count_potential": 116201,
            "energy_rating_f_count_potential": 26544,
            "energy_rating_g_count_potential": 7676,
            "avg_energy_consumption_per_floor_area_m2_current": 226.13340897075247,
            "stddev_energy_consumption_per_floor_area_m2_current": 143.00607452095898,
            "min_energy_consumption_per_floor_area_m2_current": -320866,
            "max_energy_consumption_per_floor_area_m2_current": 54443,
            "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": 216,
            "perc_75_energy_consumption_per_floor_area_m2_current": 277,
            "perc_90_energy_consumption_per_floor_area_m2_current": 348,
            "avg_energy_consumption_per_floor_area_m2_potential": 110.66956997443498,
            "stddev_energy_consumption_per_floor_area_m2_potential": 120.43890500814346,
            "min_energy_consumption_per_floor_area_m2_potential": -320884,
            "max_energy_consumption_per_floor_area_m2_potential": 48964,
            "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.80844587036025,
            "stddev_energy_efficiency_current": 13.051872886053104,
            "min_energy_efficiency_current": 1,
            "max_energy_efficiency_current": 349,
            "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.44722877940045,
            "stddev_energy_efficiency_potential": 10.100330061051059,
            "min_energy_efficiency_potential": 1,
            "max_energy_efficiency_potential": 8388,
            "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.96741701285087,
            "avg_co2_emissions_current": 4.175951627667091,
            "stddev_co2_emissions_current": 3.233741744415999,
            "min_co2_emissions_current": -2854.8,
            "max_co2_emissions_current": 999,
            "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.1772530048511607,
            "stddev_co2_emissions_potential": 2.2750896353362258,
            "min_co2_emissions_potential": -2855,
            "max_co2_emissions_potential": 867,
            "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.3980827356002425,
            "avg_energy_rating_potential_numerical": 5.711562445046575
        }
    }
}

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.1,
        "average_carbon_footprint": 2.903333333333333
    },
    "relative_to_outcode": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 68.85595816212178,
        "average_carbon_footprint": 3.1464546133731806
    },
    "relative_to_local_authority": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 69.41332700650759,
        "average_carbon_footprint": 2.787951328633384
    },
    "relative_to_region": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 68.5626636512646,
        "average_carbon_footprint": 2.960776787628643
    },
    "relative_to_country": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 67.14704438522985,
        "average_carbon_footprint": 3.5533397246521385
    },
    "relative_to_similar_properties_local_authority": {
        "energy_efficiency": "better",
        "carbon_footprint": "lower",
        "average_energy_efficiency_score": 62.48226666666667,
        "average_carbon_footprint": 5.44084000000001
    },
    "relative_to_similar_properties_country": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 65.80844587036025,
        "average_carbon_footprint": 4.175951627667091
    }
}

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": 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
    },
    {
        "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": 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
    }
]

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": 267055045344,
    "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": 1500.5,
          "heating_cost_potential": 1170.1,
          "hot_water_cost_current": 255.6,
          "hot_water_cost_potential": 157,
          "lighting_cost_current": 145.9,
          "lighting_cost_potential": 145.9,
          "total_fuel_cost_current": 1902,
          "total_fuel_cost_potential": 1473,
          "standing_charges": 289
        },
        "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.5306686305052324,
        "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,
        "perc_90_energy_rating_current": 5,
        "energy_rating_a_count_current": 0,
        "energy_rating_b_count_current": 0,
        "energy_rating_c_count_current": 7,
        "energy_rating_d_count_current": 21,
        "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": 235.2,
        "stddev_energy_consumption_per_floor_area_m2_current": 53.09094344482935,
        "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": 181.5,
        "perc_25_energy_consumption_per_floor_area_m2_current": 197.25,
        "perc_50_energy_consumption_per_floor_area_m2_current": 225,
        "perc_75_energy_consumption_per_floor_area_m2_current": 272.75,
        "perc_90_energy_consumption_per_floor_area_m2_current": 307.3,
        "avg_energy_consumption_per_floor_area_m2_potential": 145.6,
        "stddev_energy_consumption_per_floor_area_m2_potential": 53.885318837387395,
        "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": 119.25,
        "perc_50_energy_consumption_per_floor_area_m2_potential": 136,
        "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.1,
        "stddev_energy_efficiency_current": 5.358525273193015,
        "min_energy_efficiency_current": 53,
        "max_energy_efficiency_current": 73,
        "perc_10_energy_efficiency_current": 57.8,
        "perc_25_energy_efficiency_current": 62.25,
        "perc_50_energy_efficiency_current": 67,
        "perc_75_energy_efficiency_current": 68,
        "perc_90_energy_efficiency_current": 70.2,
        "avg_energy_efficiency_potential": 75.93333333333334,
        "stddev_energy_efficiency_potential": 5.999616846003632,
        "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": 77.5,
        "perc_75_energy_efficiency_potential": 79,
        "perc_90_energy_efficiency_potential": 79.3,
        "avg_total_floor_area": 71.96666666666667,
        "avg_co2_emissions_current": 2.903333333333333,
        "stddev_co2_emissions_current": 0.8519686465549327,
        "min_co2_emissions_current": 1.5,
        "max_co2_emissions_current": 4.9,
        "perc_10_co2_emissions_current": 1.99,
        "perc_25_co2_emissions_current": 2.3,
        "perc_50_co2_emissions_current": 2.8,
        "perc_75_co2_emissions_current": 3.3,
        "perc_90_co2_emissions_current": 3.8800000000000003,
        "avg_co2_emissions_potential": 1.7933333333333334,
        "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.166666666666667,
        "avg_energy_rating_potential_numerical": 4.966666666666667
      },
      "outcode_stats": {
        "outcode": "SW6",
        "property_count": 26770,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.888148397233671,
        "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": 3975,
        "energy_rating_c_count_current": 11220,
        "energy_rating_d_count_current": 9067,
        "energy_rating_e_count_current": 2194,
        "energy_rating_f_count_current": 216,
        "energy_rating_g_count_current": 87,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.6657838723033511,
        "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": 93,
        "energy_rating_b_count_potential": 9306,
        "energy_rating_c_count_potential": 14880,
        "energy_rating_d_count_potential": 2151,
        "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.41654976930596,
        "stddev_energy_consumption_per_floor_area_m2_current": 102.32199611363619,
        "min_energy_consumption_per_floor_area_m2_current": -1,
        "max_energy_consumption_per_floor_area_m2_current": 2196,
        "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": 192,
        "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.91291221516624,
        "stddev_energy_consumption_per_floor_area_m2_potential": 73.58440457653407,
        "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": 68,
        "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": 232,
        "avg_energy_efficiency_current": 68.85595816212178,
        "stddev_energy_efficiency_current": 11.16365708531887,
        "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.6120283899888,
        "stddev_energy_efficiency_potential": 7.185274639739932,
        "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.42943912659055,
        "avg_co2_emissions_current": 3.1464546133731806,
        "stddev_co2_emissions_current": 2.4311229111489503,
        "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.0952670900261348,
        "stddev_co2_emissions_potential": 1.6978154933030236,
        "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.60948823309675,
        "avg_energy_rating_potential_numerical": 5.246768771012327
      },
      "local_authority_stats": {
        "local_authority_district_code": "E09000013",
        "property_count": 73760,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.8877637631385785,
        "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": 30,
        "energy_rating_b_count_current": 12078,
        "energy_rating_c_count_current": 30979,
        "energy_rating_d_count_current": 24329,
        "energy_rating_e_count_current": 5561,
        "energy_rating_f_count_current": 586,
        "energy_rating_g_count_current": 197,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.659122166804919,
        "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": 240,
        "energy_rating_b_count_potential": 26577,
        "energy_rating_c_count_potential": 40496,
        "energy_rating_d_count_potential": 5622,
        "energy_rating_e_count_potential": 721,
        "energy_rating_f_count_potential": 62,
        "energy_rating_g_count_potential": 42,
        "avg_energy_consumption_per_floor_area_m2_current": 205.80424530616196,
        "stddev_energy_consumption_per_floor_area_m2_current": 109.73044253649111,
        "min_energy_consumption_per_floor_area_m2_current": -27,
        "max_energy_consumption_per_floor_area_m2_current": 2196,
        "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": 196,
        "perc_75_energy_consumption_per_floor_area_m2_current": 258,
        "perc_90_energy_consumption_per_floor_area_m2_current": 330,
        "avg_energy_consumption_per_floor_area_m2_potential": 139.06614235357915,
        "stddev_energy_consumption_per_floor_area_m2_potential": 79.40024380705366,
        "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": 124,
        "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.41332700650759,
        "stddev_energy_efficiency_current": 11.15936521896996,
        "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.01041214750542,
        "stddev_energy_efficiency_potential": 7.079679114401601,
        "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.92231540362667,
        "avg_co2_emissions_current": 2.787951328633384,
        "stddev_co2_emissions_current": 2.2404708310845143,
        "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.8287120390455207,
        "stddev_co2_emissions_potential": 1.5089524780758483,
        "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.649417028199566,
        "avg_energy_rating_potential_numerical": 5.266255422993493
      },
      "region_stats": {
        "region_code": "E12000007",
        "property_count": 2891820,
        "mode_energy_rating_current": "C",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.9302431050082642,
        "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": 6038,
        "energy_rating_b_count_current": 470326,
        "energy_rating_c_count_current": 1110494,
        "energy_rating_d_count_current": 997681,
        "energy_rating_e_count_current": 266540,
        "energy_rating_f_count_current": 32451,
        "energy_rating_g_count_current": 8290,
        "mode_energy_rating_potential": "C",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.6838563752466628,
        "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": 26914,
        "energy_rating_b_count_potential": 1253692,
        "energy_rating_c_count_potential": 1380800,
        "energy_rating_d_count_potential": 198155,
        "energy_rating_e_count_potential": 27004,
        "energy_rating_f_count_potential": 3791,
        "energy_rating_g_count_potential": 1464,
        "avg_energy_consumption_per_floor_area_m2_current": 213.0565811348577,
        "stddev_energy_consumption_per_floor_area_m2_current": 130.45640868845675,
        "min_energy_consumption_per_floor_area_m2_current": -2818,
        "max_energy_consumption_per_floor_area_m2_current": 20509,
        "perc_10_energy_consumption_per_floor_area_m2_current": 73,
        "perc_25_energy_consumption_per_floor_area_m2_current": 144,
        "perc_50_energy_consumption_per_floor_area_m2_current": 203,
        "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": 137.20650595818546,
        "stddev_energy_consumption_per_floor_area_m2_potential": 105.39507824824028,
        "min_energy_consumption_per_floor_area_m2_potential": -2818,
        "max_energy_consumption_per_floor_area_m2_potential": 20509,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 55,
        "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": 164,
        "perc_90_energy_consumption_per_floor_area_m2_potential": 244,
        "avg_energy_efficiency_current": 68.5626636512646,
        "stddev_energy_efficiency_current": 11.767368388725588,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 478,
        "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.84985026730571,
        "stddev_energy_efficiency_potential": 7.465447187428901,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 478,
        "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.86463834988994,
        "avg_co2_emissions_current": 2.960776787628643,
        "stddev_co2_emissions_current": 2.394493559999003,
        "min_co2_emissions_current": -38.4,
        "max_co2_emissions_current": 242,
        "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.8204498654828742,
        "stddev_co2_emissions_potential": 1.5297808114138756,
        "min_co2_emissions_potential": -38.4,
        "max_co2_emissions_potential": 180.5,
        "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.592342538608904,
        "avg_energy_rating_potential_numerical": 5.3589877654902445
      },
      "country_stats": {
        "country_code": "E92000001",
        "property_count": 18977304,
        "mode_energy_rating_current": "D",
        "avg_energy_rating_current": "D",
        "stddev_energy_rating_current": 0.9925321539498203,
        "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": 143006,
        "energy_rating_b_count_current": 2670261,
        "energy_rating_c_count_current": 6783967,
        "energy_rating_d_count_current": 6800588,
        "energy_rating_e_count_current": 2088105,
        "energy_rating_f_count_current": 386675,
        "energy_rating_g_count_current": 104702,
        "mode_energy_rating_potential": "B",
        "avg_energy_rating_potential": "C",
        "stddev_energy_rating_potential": 0.7772749978773327,
        "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": 1506667,
        "energy_rating_b_count_potential": 9072569,
        "energy_rating_c_count_potential": 7165795,
        "energy_rating_d_count_potential": 1001907,
        "energy_rating_e_count_potential": 181205,
        "energy_rating_f_count_potential": 38228,
        "energy_rating_g_count_potential": 10933,
        "avg_energy_consumption_per_floor_area_m2_current": 228.12560908136157,
        "stddev_energy_consumption_per_floor_area_m2_current": 144.45794850616323,
        "min_energy_consumption_per_floor_area_m2_current": -320866,
        "max_energy_consumption_per_floor_area_m2_current": 54443,
        "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": 361,
        "avg_energy_consumption_per_floor_area_m2_potential": 130.3043236262642,
        "stddev_energy_consumption_per_floor_area_m2_potential": 120.86375769942079,
        "min_energy_consumption_per_floor_area_m2_potential": -320884,
        "max_energy_consumption_per_floor_area_m2_potential": 53064,
        "perc_10_energy_consumption_per_floor_area_m2_potential": 47,
        "perc_25_energy_consumption_per_floor_area_m2_potential": 82,
        "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": 227,
        "avg_energy_efficiency_current": 67.14704438522985,
        "stddev_energy_efficiency_current": 12.795104697958548,
        "min_energy_efficiency_current": 1,
        "max_energy_efficiency_current": 1705,
        "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.85997874092126,
        "stddev_energy_efficiency_potential": 9.745599655652425,
        "min_energy_efficiency_potential": 1,
        "max_energy_efficiency_potential": 8397,
        "perc_10_energy_efficiency_potential": 71,
        "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.69660392727035,
        "avg_co2_emissions_current": 3.5533397246521385,
        "stddev_co2_emissions_current": 2.925909482700728,
        "min_co2_emissions_current": -2854.8,
        "max_co2_emissions_current": 1217,
        "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.0069209230147154,
        "stddev_co2_emissions_potential": 1.9804407305727239,
        "min_co2_emissions_potential": -2855,
        "max_co2_emissions_potential": 1180,
        "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.494166400032375,
        "avg_energy_rating_potential_numerical": 5.556621214478095
      },
      "property_type_stats": {
        "local_authority_stats": {
          "local_authority_district_code": "E09000013",
          "property_type": "House",
          "property_count": 15000,
          "mode_energy_rating_current": "D",
          "avg_energy_rating_current": "D",
          "stddev_energy_rating_current": 0.8226376736952984,
          "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": 403,
          "energy_rating_c_count_current": 4214,
          "energy_rating_d_count_current": 7536,
          "energy_rating_e_count_current": 2452,
          "energy_rating_f_count_current": 297,
          "energy_rating_g_count_current": 91,
          "mode_energy_rating_potential": "B",
          "avg_energy_rating_potential": "C",
          "stddev_energy_rating_potential": 0.795664002838946,
          "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": 200,
          "energy_rating_b_count_potential": 7990,
          "energy_rating_c_count_potential": 5221,
          "energy_rating_d_count_potential": 1151,
          "energy_rating_e_count_potential": 383,
          "energy_rating_f_count_potential": 32,
          "energy_rating_g_count_potential": 23,
          "avg_energy_consumption_per_floor_area_m2_current": 222.14746666666667,
          "stddev_energy_consumption_per_floor_area_m2_current": 83.14482660431511,
          "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": 169,
          "perc_50_energy_consumption_per_floor_area_m2_current": 212,
          "perc_75_energy_consumption_per_floor_area_m2_current": 262,
          "perc_90_energy_consumption_per_floor_area_m2_current": 320,
          "avg_energy_consumption_per_floor_area_m2_potential": 115.63993333333333,
          "stddev_energy_consumption_per_floor_area_m2_potential": 69.81807256157005,
          "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": 202,
          "avg_energy_efficiency_current": 62.48226666666667,
          "stddev_energy_efficiency_current": 11.016117397631078,
          "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.06346666666667,
          "stddev_energy_efficiency_potential": 9.286247229535878,
          "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.61380686902058,
          "avg_co2_emissions_current": 5.44084000000001,
          "stddev_co2_emissions_current": 2.958371324190524,
          "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.7,
          "perc_90_co2_emissions_current": 9,
          "avg_co2_emissions_potential": 3.0640533333333337,
          "stddev_co2_emissions_potential": 2.4169735803082495,
          "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.1148,
          "avg_energy_rating_potential_numerical": 5.419
        },
        "country_stats": {
          "country_code": "E92000001",
          "property_type": "House",
          "property_count": 11862318,
          "mode_energy_rating_current": "D",
          "avg_energy_rating_current": "D",
          "stddev_energy_rating_current": 1.0122814886468625,
          "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": 114713,
          "energy_rating_b_count_current": 1501818,
          "energy_rating_c_count_current": 3665136,
          "energy_rating_d_count_current": 4733477,
          "energy_rating_e_count_current": 1479942,
          "energy_rating_f_count_current": 290911,
          "energy_rating_g_count_current": 76321,
          "mode_energy_rating_potential": "B",
          "avg_energy_rating_potential": "C",
          "stddev_energy_rating_potential": 0.7851979821167834,
          "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": 1353744,
          "energy_rating_b_count_potential": 6577112,
          "energy_rating_c_count_potential": 3279959,
          "energy_rating_d_count_potential": 501082,
          "energy_rating_e_count_potential": 116201,
          "energy_rating_f_count_potential": 26544,
          "energy_rating_g_count_potential": 7676,
          "avg_energy_consumption_per_floor_area_m2_current": 226.13340897075247,
          "stddev_energy_consumption_per_floor_area_m2_current": 143.00607452095898,
          "min_energy_consumption_per_floor_area_m2_current": -320866,
          "max_energy_consumption_per_floor_area_m2_current": 54443,
          "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": 216,
          "perc_75_energy_consumption_per_floor_area_m2_current": 277,
          "perc_90_energy_consumption_per_floor_area_m2_current": 348,
          "avg_energy_consumption_per_floor_area_m2_potential": 110.66956997443498,
          "stddev_energy_consumption_per_floor_area_m2_potential": 120.43890500814346,
          "min_energy_consumption_per_floor_area_m2_potential": -320884,
          "max_energy_consumption_per_floor_area_m2_potential": 48964,
          "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.80844587036025,
          "stddev_energy_efficiency_current": 13.051872886053104,
          "min_energy_efficiency_current": 1,
          "max_energy_efficiency_current": 349,
          "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.44722877940045,
          "stddev_energy_efficiency_potential": 10.100330061051059,
          "min_energy_efficiency_potential": 1,
          "max_energy_efficiency_potential": 8388,
          "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.96741701285087,
          "avg_co2_emissions_current": 4.175951627667091,
          "stddev_co2_emissions_current": 3.233741744415999,
          "min_co2_emissions_current": -2854.8,
          "max_co2_emissions_current": 999,
          "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.1772530048511607,
          "stddev_co2_emissions_potential": 2.2750896353362258,
          "min_co2_emissions_potential": -2855,
          "max_co2_emissions_potential": 867,
          "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.3980827356002425,
          "avg_energy_rating_potential_numerical": 5.711562445046575
        }
      }
    },
    "epc_compare": {
      "relative_to_postcode": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 65.1,
        "average_carbon_footprint": 2.903333333333333
      },
      "relative_to_outcode": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 68.85595816212178,
        "average_carbon_footprint": 3.1464546133731806
      },
      "relative_to_local_authority": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 69.41332700650759,
        "average_carbon_footprint": 2.787951328633384
      },
      "relative_to_region": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 68.5626636512646,
        "average_carbon_footprint": 2.960776787628643
      },
      "relative_to_country": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 67.14704438522985,
        "average_carbon_footprint": 3.5533397246521385
      },
      "relative_to_similar_properties_local_authority": {
        "energy_efficiency": "better",
        "carbon_footprint": "lower",
        "average_energy_efficiency_score": 62.48226666666667,
        "average_carbon_footprint": 5.44084000000001
      },
      "relative_to_similar_properties_country": {
        "energy_efficiency": "worse",
        "carbon_footprint": "higher",
        "average_energy_efficiency_score": 65.80844587036025,
        "average_carbon_footprint": 4.175951627667091
      }
    },
    "epc_retrofit_recommendations": [
      {
        "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
      },
      {
        "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": 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
      }
    ]
  }
{
   "$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"
}