RamiKrispin / EIAapi

Supporting tools for the Applied Time Series Analysis and Forecasting book
https://ramikrispin.github.io/EIAapi/
Other
8 stars 1 forks source link

get_facets function #8

Open RamiKrispin opened 10 months ago

RamiKrispin commented 10 months ago

Function to pull facets' metadata: https://api.eia.gov/v2/electricity/rto/region-sub-ba-data/facet/parent?api_key=API_KEY

{
  "response": {
    "totalFacets": 8,
    "facets": [
      {
        "id": "ISNE",
        "name": "ISO New England",
        "alias": "(ISNE) ISO New England"
      },
      {
        "id": "NYIS",
        "name": "New York Independent System Operator",
        "alias": "(NYIS) New York Independent System Operator"
      },
      {
        "id": "SWPP",
        "name": "Southwest Power Pool",
        "alias": "(SWPP) Southwest Power Pool"
      },
      {
        "id": "ERCO",
        "name": "Electric Reliability Council of Texas, Inc.",
        "alias": "(ERCO) Electric Reliability Council of Texas, Inc."
      },
      {
        "id": "MISO",
        "name": "Midcontinent Independent System Operator, Inc.",
        "alias": "(MISO) Midcontinent Independent System Operator, Inc."
      },
      {
        "id": "CISO",
        "name": "California Independent System Operator",
        "alias": "(CISO) California Independent System Operator"
      },
      {
        "id": "PNM",
        "name": "Public Service Company of New Mexico",
        "alias": "(PNM) Public Service Company of New Mexico"
      },
      {
        "id": "PJM",
        "name": "PJM Interconnection, LLC",
        "alias": "(PJM) PJM Interconnection, LLC"
      }
    ]
  },
  "request": {
    "command": "/v2/electricity/rto/region-sub-ba-data/facet/parent/",
    "params": {
      "api_key": ""
    }
  },
  "apiVersion": "2.1.4"
}