--- title: Grid Status file_format: mystnb mystnb: execution_timeout: 600 kernelspec: name: python3 --- # What is Grid Status?

gridstatus logo

Tests PyPI Version

`gridstatus` is a standardized Python API to electricity supply, demand, and pricing data for the major Independent System Operators (ISOs) in the United States. Currently `gridstatus` supports CAISO, SPP, ISONE, MISO, Ercot, NYISO, and PJM. We'd love to answer any usage or data access questions! Please let us know by posting a GitHub issue. ## 5 Minute Overview First, we can see all of the ISOs that are supported ```{code-cell} import gridstatus gridstatus.list_isos() ``` Next, we can select an ISO we want to use ```{code-cell} caiso = gridstatus.CAISO() ``` ### Fuel Mix All ISOs have the same API to methods like `get_fuel_mix`, `get_load`, and `get_status`, etc. Here is how we can get the fuel mix ```{code-cell} caiso.get_fuel_mix("today") ``` ### Load or the energy demand throughout the current day as a Pandas DataFrame ```{code-cell} caiso.get_load("today") ``` ### Load Forecast Another dataset we can query is the load forecast ```{code-cell} nyiso = gridstatus.NYISO() nyiso.get_load_forecast("today") ``` ### Historical Data When [supported](./availability.md), you can use the historical method calls to get data for a specific day in the past. For example, ```{code-cell} caiso.get_load("Jan 1, 2020") ``` Frequently, we want to get data across multiple days. We can do that by providing a `start` and `end` parameter to any `iso.get_*` method ```{code-cell} :tags: [remove-stdout,remove-stderr] caiso_load = caiso.get_load(start="Jan 1, 2021", end="Feb 1, 2021") caiso_load ``` We can now see there is data for all of January 2021 ```{code-cell} :tags: [remove-stdout,remove-stderr] import plotly.express as px fig = px.line(caiso_load, x="Time", y="Load", title="CAISO Load - Jan '21") fig ``` ### Next Steps The best part is these APIs work in the same way across all the supported ISOs! ```{toctree} :maxdepth: 2 :caption: Getting Started installation availability lmp interconnection_queues Examples/index ``` ```{toctree} :caption: Reference :maxdepth: 1 api-reference changelog contributing ```