Canons Endpoint

Get canons for a saint by internal id. Each canon is split into odes (песни) with typed items (irmos, troparion, theotokion, …) and optional inter-ode sections (sedalen, kontakion, ikos, …). Tone (глас) is exposed as a separate field, not embedded in the text.

Request

GET /canons/?id=393

GET /canons/?id=393&lang=cu&number=2

Parameters:

Parameter Type In Description
id string query Internal saint id (typically one). Example: ?id=393.
lang string query ru (default), cu, or en. Unknown values fall back to ru.
number integer query Optional. Selects a specific canon by its internal number.

Validation:

Response

Returns an ordered array in data.

{
  "meta": {
    "lang": "ru",
    "format": "html",
    "requestedIds": ["393"],
    "count": 1
  },
  "data": [
    {
      "id": "393",
      "found": true,
      "canons": [
        {
          "number": 1,
          "title": "Канон святому священномученику Памфилу Кесарийскому",
          "tone": 4,
          "odes": [
            {
              "number": 1,
              "items": [
                { "role": "irmos", "html": "<p>...</p>" },
                { "role": "troparion", "html": "<p>...</p>" },
                { "role": "theotokion", "html": "<p>...</p>" }
              ]
            }
          ],
          "sections": [
            { "type": "sedalen", "afterOde": 3, "tone": 6, "html": "<p>...</p>" },
            { "type": "kontakion", "afterOde": 6, "tone": 2, "html": "<p>...</p>" },
            { "type": "ikos", "afterOde": 6, "html": "<p>...</p>" }
          ]
        }
      ]
    }
  ]
}

Notes