---
updatedAt: 2026-04-23T10:26:17.000Z
agentTools:
  projectIndex: https://developers.modoenergy.com/llms.txt
---

# Constraints Day Ahead

A snapshot of the limits and flows at relevant boundaries at day ahead stage. These flow values are true for when the measurement was taken and will not reflect any changes in the flows following the publication of this data. The network diagrams show the constraint boundaries and arrows indicating the positive direction of power flow across each boundary.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Modo Energy API",
    "description": "# Modo API documentation\n\n## Autorization\n\n1. For use this api you need get public api token at your [ModoEnergy](https://modo.energy/)  account\n1. Use your token at headers `X-Token: <token_from_account>`\n\n## Date format\n\nAPI can filter your data by date.\nDate format `YYYY-MM-DD`\nExample `2020-08-13`\n\n## Rate limitation\n\nPublic api has rate limit - 1000 requests per minute\n",
    "termsOfService": "https://www.google.com/policies/terms/",
    "contact": {
      "email": "contact@snippets.local"
    },
    "license": {
      "name": "BSD License"
    },
    "version": "v1"
  },
  "security": [
    {
      "api_key": []
    },
    {}
  ],
  "paths": {
    "/gb/national-grid/constraints/day-ahead": {
      "get": {
        "operationId": "Constraints Day Ahead",
        "summary": "Constraints Day Ahead",
        "description": "A snapshot of the limits and flows at relevant boundaries at day ahead stage. These flow values are true for when the measurement was taken and will not reflect any changes in the flows following the publication of this data. The network diagrams show the constraint boundaries and arrows indicating the positive direction of power flow across each boundary.",
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "description": "Start date time for the request. Ex: yyyy-mm-ddThh:mm:ss",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "description": "End date time for the request. Ex: yyyy-mm-ddThh:mm:ss",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "constraint_group",
            "in": "query",
            "description": "The geographical area in which the constraint occurred. Each group has its own unique code, Ex: ESTEX",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Number of results to return per page.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 10000
            }
          },
          {
            "name": "offset",
            "in": "query",
            "description": "The initial index from which to return the results.",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0
            }
          },
          {
            "name": "timezone",
            "in": "query",
            "description": "The timezone for the query and returned data. If not specified, the default timezone is shown in the information table.",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "UTC",
                "Europe/Berlin",
                "Europe/London",
                "America/New_York",
                "America/Chicago",
                "America/Los_Angeles"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "required": [
                    "count",
                    "results"
                  ],
                  "type": "object",
                  "properties": {
                    "count": {
                      "type": "integer"
                    },
                    "next": {
                      "type": "string",
                      "format": "uri",
                      "nullable": true
                    },
                    "previous": {
                      "type": "string",
                      "format": "uri",
                      "nullable": true
                    },
                    "results": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/DayAheadConstraintFlowAndLimits"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad Request",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "response": "Bad Request"
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "response": "Unauthorized"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "response": "Forbidden"
                  }
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "response": "Not Found"
                  }
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "response": {
                      "type": "string"
                    }
                  },
                  "example": {
                    "response": "Too Many Requests"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "NESO"
        ]
      },
      "parameters": []
    }
  },
  "servers": [
    {
      "url": "https://api.modoenergy.com/pub/v1"
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "X-Token",
        "in": "header"
      }
    },
    "schemas": {
      "DayAheadConstraintFlowAndLimits": {
        "required": [
          "date",
          "constraintGroup",
          "limit",
          "flow"
        ],
        "type": "object",
        "properties": {
          "date": {
            "title": "Date",
            "type": "string",
            "format": "date-time"
          },
          "constraintGroup": {
            "title": "ConstraintGroup",
            "type": "string",
            "minLength": 1
          },
          "limit": {
            "title": "Limit",
            "type": "integer",
            "maximum": 2147483647,
            "minimum": -2147483648
          },
          "flow": {
            "title": "Flow",
            "type": "number"
          }
        }
      }
    }
  }
}
```