HomeGuidesAPI ReferenceChangelog
Log In
API Reference

List Calendar Dates

Return actual dates for calendar events, filtered by calendar, utility, locale, date range, event type, or date definition type.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Use this endpoint to return the actual dates for calendar events.

When to use this endpoint

Use GET /rest/public/calendars/dates when you need to:

  • Retrieve holiday dates that may affect time-of-use pricing.
  • Retrieve pricing period dates for dynamic events such as critical peaks or system peaks.
  • Filter dates by calendar, LSE, locale, date range, event type, or date definition type.

Common filters

ParameterTypeDescription
calendarIdLongReturns dates for one calendar. Use this when you already know the calendar you want.
lseIdLongReturns dates for calendars that belong to a specific LSE. You do not need to send this when using calendarId.
localeStringFilters by ISO country code, such as US.
fromDateTimeDateTimeReturns event dates on or after this date.
toDateTimeDateTimeReturns event dates on or before this date.
calendarEventTypesStringComma-separated event types to include. Supported values are HOLIDAY, BILLING, and PRICING_PERIOD.
dateDefinitionTypesStringComma-separated date definition types to include. Supported values are FIXED_DATE, MANUAL, FLOATING_DATE, and EASTER_DATE.

Example request

GET /rest/public/calendars/dates

Example response

{
  "status": "success",
  "count": 37381,
  "type": "CalendarDate",
  "results": [
    {
      "eventDateId": 2,
      "subKey": null,
      "eventName": "New Year's Day",
      "startDateTime": "2010-01-01T00:00:00+00:00",
      "endDateTime": null,
      "calendarEventId": 2,
      "lseId": 2654
    },
    {
      "eventDateId": 2,
      "subKey": null,
      "eventName": "New Year's Day",
      "startDateTime": "2010-01-01T00:00:00+00:00",
      "endDateTime": null,
      "calendarEventId": 2,
      "lseId": 734
    }
  ]
}

Related endpoints

Query Params
int64

Optionally return only dates for a given calendar.

int64

Optional filter for a given utility. Since calendars belong to LSEs, you don’t need to send this if sending calendarId.

string

Optional ISO country code of the locale you are interested in (e.g. US).

date

Event dates on or after this date (Optional).

date

Event dates on or before this date (Optional).

string

Comma separated string that indicates the calendar event types to include. Choices are: HOLIDAY, BILLING, PRICING_PERIOD (Optional).

string

Comma separated string that indicates the date definition types to include. Choices are: FIXED_DATE, MANUAL, FLOATING_DATE, EASTER_DATE (Optional).

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json