Skip to content
Discussion options

You must be logged in to vote

Hi, community,

I am using the API but cannot find a way to get the ERP results I can run on the web tool.

Thank you in advance for your help

Here's an example of how to use it:

Basic Setup

import requests
import time

API_KEY = 'YOUR_API_KEY_HERE'  # Get from developer.nrel.gov
base_url = "https://developer.nrel.gov/api/reopt/stable"

Step 1: Run REopt Optimization

# Basic REopt inputs
reopt_inputs = {
    "Site": {"latitude": 37.77, "longitude": -122.42},
    "ElectricLoad": {
        "doe_reference_name": "LargeOffice",
        "annual_kwh": 6000000,
        "critical_load_percent": 0.5
    },
    "ElectricTariff": {"urdb_label": "YOUR_UTILITY_RATE"},
    "ElectricUtility": {
        "…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by adfarth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants