---
updatedAt: 2026-03-31T12:12:41.000Z
agentTools:
  projectIndex: https://api.net2grid.com/llms.txt
---

# /capacity-peak/electricity/mains/{year}/{month}

Returns the capacity peak value of the requested month, the date and the interval in which the peak happened. The capacity peak value is in kW. The monthly capacity peak is available only for months that have ended or for the current month.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "NET2GRID Customer Engagement API",
    "description": "This is the B2C NET2GRID API that can be used by mobile and web apps to manage the accounts and the data that are provided by the NET2GRID Meter Data Analytics Platform.",
    "version": "13.6.0"
  },
  "servers": [
    {
      "url": "http://api.net2grid.docker",
      "description": "API server"
    }
  ],
  "paths": {
    "/v2/capacity-peak/electricity/mains/{year}/{month}": {
      "get": {
        "tags": [
          "Energy Measurements"
        ],
        "summary": "/capacity-peak/electricity/mains/{year}/{month}",
        "description": "Returns the capacity peak value of the requested month, the date and the interval in which the peak happened. The capacity peak value is in kW. The monthly capacity peak is available only for months that have ended or for the current month.",
        "operationId": "v2/getMonthlyCapacityPeak",
        "parameters": [
          {
            "name": "year",
            "in": "path",
            "description": "The year for which the capacity peak is requested.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "month",
            "in": "path",
            "description": "The month for which the capacity peak is requested.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GetCapacityPeakResponseDTO"
                },
                "examples": {
                  "GetCapacityPeakExample": {
                    "$ref": "#/components/examples/GetCapacityPeakExample"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request<br/>152: User does not have a valid household object.<br/>153: No valid meter found for user.<br/>185: Labelpartner not specified for household.<br/>422: Future months are not allowed.<br/>426: Invalid month/year provided.<br/>433: There are no available measurements to perform calculation.<br/>999: Unable to read monthly capacity peak.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponseDTO"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "GetCapacityPeakDataDTO": {
        "properties": {
          "usage": {
            "description": "The delta usage in a 15-minute period in the unit in which the meter reports their attributes.",
            "type": "number"
          },
          "capacity_peak": {
            "description": "The monthly capacity peak in kW. The formula used for calculating this value is: usage in kWh * 4.",
            "type": "number"
          },
          "start": {
            "description": "The start of the interval on which capacity peak is found in ISO-8601 format.",
            "type": "string"
          },
          "end": {
            "description": "The end of the interval on which capacity peak is found in ISO-8601 format.",
            "type": "string"
          },
          "timestamp": {
            "description": "Timestamp of response in ISO-8601 format.",
            "type": "string"
          }
        },
        "type": "object"
      },
      "GetCapacityPeakResponseDTO": {
        "properties": {
          "status": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/GetCapacityPeakDataDTO"
          }
        },
        "type": "object"
      },
      "ErrorDTO": {
        "properties": {
          "code": {
            "type": "integer"
          },
          "message": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ErrorResponseDTO": {
        "properties": {
          "status": {
            "type": "string"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDTO"
          }
        },
        "type": "object"
      }
    },
    "examples": {
      "GetCapacityPeakExample": {
        "summary": "Get monthly capacity peak response",
        "value": {
          "status": "ok",
          "data": {
            "usage": 1,
            "capacity_peak": 0.06,
            "start": "2022-06-13T19:45:00+02:00",
            "end": "2022-06-13T20:00:00+02:00",
            "timestamp": "2022-07-20T22:50:58+02:00"
          }
        }
      }
    },
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "tags": [
    {
      "name": "Energy Measurements"
    }
  ],
  "x-explorer-enabled": false
}
```