Portfolio Building Analytics

Portfolio building analytics objects contain analytics information generated by BETTER for each building that was included in a portfolio analytics run.

NOTE: Building Analytics objects are associated with stand-alone buildings, Portfolio Building Analytics objects are associated with buildings included in a portfolio analytics run. For Building Analytics API information please view the building analytics section

Endpoints

Buildings within Portfolio

List:
/api/v1/portfolios/{portfolio ID}/analytics/{portfolio analytics ID}/portfolio_building_analytics/
Detail:
/api/v1/portfolios/{portfolio ID}/analytics/{portfolio analytics ID}/portfolio_building_analytics/{portfolio building analytics ID}/

Portfolio Building Analytics

Portfolio building analytics objects are immutable.

Portfolio building analytics are generated for each building during the portfolio analytics process. The data is almost exactly the same as a building analytics object. However, you cannot edit or delete portfolio building analytics items. You may only list them and view detail information. For that reason, BETTER distinguishes between these two almost identical building analytics output objects by using terminology "building analytics" and "portfolio building analytics."

Listing Portfolio Building Analytics

You can get a complete list of portfolio buildings analytics objects for a particular portfolio analytics by sending a GET request to the endpoint:

/api/v1/portfolio/{portfolio ID}/analytics/{portfolio analytics ID}/

The API will return a list of portfolio building analytics detail objects.

Retrieve Portfolio Building Analytics

You can retrieve the properties of a particular portfolio building analytics within a portfolio analytics run by sending a GET request to the endpoint for that portfolio building analytics, using the parent portfolio and portfolio analytics IDs and the portfolio building analytics ID in the endpoint:

/api/v1/portfolios/{portfolio ID}/analytics/{portfolio analytics ID}/portfolio_building_analytics/{portfolio building analytics ID}.

If the generation_result is COMPLETE, analytics data will appear in the analytics property and benchmark property.

Retrieving Portfolio Building Analytics Detail Output in HTML Format

For this particular endpoint, an optional GET variable ?format={type} can be appended to the endpoint to specify the type of content formatting you want. The format type can be json or html. The content will be served in JSON format by default. When format is set to html, BETTER returns the result in a self-contained HTML file.

When using HTML format, an additional ?units={type} GET variable can be appended to the endpoint to specify the units you want in the HTML report. The units type can be SI or IP. The content is served in SI units by default.

An Example...

For example, /api/v1/portfolio/2/analytics/29/portfolio_building_analytics/123?format=html&units=IP will serve the portfolio building analytics report in HTML format with values displayed in IP units.

Updating Portfolio Building Analytics

You cannot update (PATCH or PUT) existing portfolio building analytics.

Deleting Portfolio Building Analytics

You cannot delete an existing portfolio building analytics object. Only the parent portfolio analytics can be deleted (which will then delete all portfolio building analytics it contains).

Generating Net-Zero Information

If you want to generate net-zero information for a portfolio building analytics object using PVWatts®, you must include the enable_pvwatts boolean property in your request when generating the complete portfolio analytics: when a request to generate a portfolio analytics has the enable_pvwatts set to "true", BETTER will generate net-zero information for each building in the portfolio that has PVWatts® Calculator inputs defined.

NOTE: Just like other properties in the portfolio building analytics object, you cannot re-generate and modify net-zero information. You can only re-run the entire portfolio analytics after modifying a particular building's inputs.

For more information about how net-zero output is presented for each building in a portfolio analytics, please see the portfolio analytics API for details.

API Response Field Names

The response from the following GET endpoint:

/api/v1/portfolios/{portfolio ID}/analytics/{portfolio analytics ID}/portfolio_building_analytics/{portfolio building analytics ID}/

Data Response Details

Field Path Description Unit
`id` Unique identifier for the portfolio building analytics N/A
`savings_target` Savings target category (e.g., NOMINAL, AGGRESSIVE) N/A
`benchmark_data_type` Type of benchmark data used N/A
`min_model_r_squared` Minimum R-squared value for model validation N/A
`generation_date` Timestamp when the generation process was completed ISO 8601 DateTime
`generation_result` Result of the generation process (e.g., COMPLETE, FAILED) N/A
`generation_message` Message describing any errors or warnings during generation N/A
`building_id` Unique identifier for the building N/A
`benchmark_data_country` Country associated with the benchmark data ISO country code
`building_space_type` Type of space in the building (e.g., OFFICE, RETAIL) N/A
`building_location` Location of the building (e.g., city, state) N/A
`building_gross_floor_area` Total gross floor area of the building sqm
`closest_weather_station` Closest weather station details N/A
`closest_weather_station → id` Unique identifier for the weather station N/A
`closest_weather_station → station_id` Station ID of the closest weather station N/A
`closest_weather_station → name` Name of the closest weather station N/A
`closest_weather_station → geo_lat` Latitude of the closest weather station N/A
`closest_weather_station → geo_lng` Longitude of the closest weather station N/A
`assessment` assessment details N/A
`assessment → ee_measures` Energy efficiency measures List of Strings
`assessment → assessment_results` Assessment results for energy use, emissions, cost, etc. N/A
`assessment → assessment_results → eui_target_e/eui_target_f/eui_target_combined` Target EUI for electricity/fossil fuel/combined kWh/(sqm*day)
`assessment → assessment_results → ghg_target_e/ghg_target_f/ghg_target_combined` Target emissions (GHG) for electricity/fossil fuel/combined kg
`assessment → assessment_results → cost_target_e/cost_target_f/cost_target_combined` Target cost for electricity/fossil fuel/combined Currency
`assessment → assessment_results → eui_current_e/eui_current_f/eui_current_combined` Current EUI for electricity/fossil fuel/combined kWh/(sqm*day)
`assessment → assessment_results → ghg_current_e/ghg_current_f/ghg_current_combined` Current emissions (GHG) for electricity/fossil fuel/combined kg
`assessment → assessment_results → cost_current_e/cost_current_f/cost_current_combined` Current cost for electricity/fossil fuel/combined Currency
`assessment → assessment_results → eui_savings_e/eui_savings_f/eui_savings_combined` EUI savings for electricity/fossil fuel/combined kWh/(sqm*day)
`assessment → assessment_results → ghg_savings_e/ghg_savings_f/ghg_savings_combined` GHG savings for electricity/fossil fuel/combined kg
`assessment → assessment_results → cost_savings_e/cost_savings_f/cost_savings_combined` Cost savings for electricity/fossil fuel/combined Currency
`assessment → assessment_results → energy_target_e/energy_target_f/energy_target_combined` Target energy use for electricity/fossil fuel/combined kWh
`assessment → assessment_results → energy_current_e/energy_current_f/energy_current_combined` Current energy use for electricity/fossil fuel/combined kWh
`assessment → assessment_results → energy_savings_e/energy_savings_f/energy_savings_combined` Energy savings for electricity/fossil fuel/combined kWh
`assessment → assessment_results → cost_savings_pct_e/cost_savings_pct_f/cost_savings_pct_combined` Percentage cost savings for electricity/fossil fuel/combined Percentage
`assessment → assessment_results → energy_savings_pct_e/energy_savings_pct_f/energy_savings_pct_combined` Percentage energy savings for electricity/fossil fuel/combined Percentage
`assessment → assessment_results → ghg_reductions_pct_e/ghg_reductions_pct_f/ghg_reductions_pct_combined` Percentage GHG reductions for electricity/fossil fuel/combined Percentage
`assessment → assessment_visualizations` Visualization details for energy use trends and slopes N/A
`assessment → assessment_visualizations → ELECTRICITY/FOSSIL_FUEL → ls_x_csl/hsl` Temperature data for cooling/heating slope visualizations degC
`assessment → assessment_visualizations → ELECTRICITY/FOSSIL_FUEL → ls_y_csl/hsl` Daily EUI data for cooling/heating slope visualizations kWh/(sqm*day)
`assessment → predicted_energy_use_trends → ELECTRICITY/FOSSIL_FUEL → ls_energy_target/ls_energy_current/ls_energy_typical` Predicted energy use trends for electricity/fossil fuel (target/current/typical) kWh
`assessment → predicted_energy_use_trends → ls_month_e/ls_month_f` Months corresponding to energy use predictions for electricity/fossil fuel ISO 8601 Date
`benchmark` benchmark details N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL` Benchmark details for electricity/fossil fuel N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → rating` Performance rating for baseload N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → percentile` Percentile for baseload N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → target_value/nominal_level/sample_median` Target, nominal, and median values for baseload kWh/(sqm*day)
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → aggressive_level/conservative_level` Aggressive and conservative levels for baseload kWh/(sqm*day)
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → coefficient_value` Coefficient value for baseload kWh/(sqm*day)
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → sample_standard_deviation` Sample standard deviation for baseload kWh/(sqm*day)
`benchmark → ELECTRICITY/FOSSIL_FUEL → baseload → coefficient_value_with_area` Coefficient value scaled with building area kWh/(sqm*day)
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → rating` Performance rating for cooling/heating slope N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → percentile` Percentile for cooling/heating slope N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → target_value/nominal_level/sample_median` Target, nominal, and median values for cooling/heating slope kWh/(sqm*day*K)
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → aggressive_level/conservative_level` Aggressive and conservative levels for cooling/heating slope kWh/(sqm*day*K)
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → coefficient_value` Coefficient value for cooling/heating slope kWh/(sqm*day*K)
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → sample_standard_deviation` Sample standard deviation for cooling/heating slope kWh/(sqm*day*K)
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope → coefficient_value_with_area` Coefficient value scaled with building area for cooling/heating slope kWh/K
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → rating` Performance rating for cooling/heating change points N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → percentile` Percentile for cooling/heating change points N/A
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → target_value/nominal_level/sample_median` Target, nominal, and median values for cooling/heating change points degC
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → aggressive_level/conservative_level` Aggressive and conservative levels for cooling/heating change points degC
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → coefficient_value` Coefficient value for cooling/heating change points degC
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → sample_standard_deviation` Sample standard deviation for cooling/heating change points degC
`benchmark → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point → coefficient_value_with_area` Coefficient value scaled with building area for cooling/heating change points degC * sqm
`inverse_model` inverse_model details N/A
`inverse_model → ELECTRICITY/FOSSIL_FUEL` Inverse model details for electricity or fossil fuel N/A
`inverse_model → ELECTRICITY/FOSSIL_FUEL → r2` R-squared value for the electricity or fossil fuel model N/A
`inverse_model → ELECTRICITY/FOSSIL_FUEL → cvrmse` Coefficient of Variation of Root Mean Square Error (CVRMSE) for electricity or fossil fuel N/A
`inverse_model → ELECTRICITY/FOSSIL_FUEL → baseload` Baseload for electricity or fossil fuel kWh/sqm
`inverse_model → ELECTRICITY/FOSSIL_FUEL → model_type` Type of model used for electricity or fossil fuel (e.g., 3P Cooling, 3P Heating) N/A
`inverse_model → ELECTRICITY/FOSSIL_FUEL → cooling_slope/heating_slope` Slope of the cooling or heating model for electricity or fossil fuel kWh/(sqm*K)
`inverse_model → ELECTRICITY/FOSSIL_FUEL → cooling_change_point/heating_change_point` Change point for cooling or heating in the electricity or fossil fuel model degC