Dhamma.Gift Text API

Полный текст сутты для ридера

Operations 4

GET /api/text/{suttaId} Полный текст сутты (все сегменты, не только совпадения) — для ридера #
GET /api/nav/{suttaId} Предыдущая/следующая сутта для навигации в ридере #
GET /api/transliterate Транслитерация введённого текста в IAST (латиница с диакритикой) #
GET /api/patimokkha-fragment/{side} HTML-фрагмент Патимоккхи (bu — бхиккху, bi — бхиккхуни) для сравнения редакций #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dhamma-gift:dhamma-gift-text-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dhamma-gift-text-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dhamma.gift search Text API
  version: 1.0.0
  description: Поиск по палийскому канону (Sutta/Vinaya) — API для dg-light.js. Все ответы — JSON.
servers:
- url: /
  description: Текущий сервер
tags:
- name: Text
  description: Полный текст сутты для ридера
paths:
  /api/text/{suttaId}:
    get:
      tags:
      - Text
      summary: Полный текст сутты (все сегменты, не только совпадения) — для ридера
      parameters:
      - name: suttaId
        in: path
        required: true
        schema:
          type: string
        example: dn22
      - $ref: '#/components/parameters/langs'
      - name: translators
        in: query
        description: Явный список переводчиков через запятую (например `ru_o,ru_sv`) — два перевода ОДНОГО языка одновременно, в обход обычного выбора "один переводчик на язык".
        schema:
          type: string
      responses:
        '200':
          description: Полный текст сутты
          content:
            application/json:
              schema:
                type: object
                properties:
                  sutta_id:
                    type: string
                  category:
                    type: string
                  dir_path:
                    type: string
                  title:
                    type: string
                  mr:
                    type: integer
                  segments:
                    type: array
                    items:
                      $ref: '#/components/schemas/Segment'
        '404':
          description: Неизвестный id сутты
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiTextBySuttaId
      x-operation-id-source: derived
  /api/nav/{suttaId}:
    get:
      tags:
      - Text
      summary: Предыдущая/следующая сутта для навигации в ридере
      parameters:
      - name: suttaId
        in: path
        required: true
        schema:
          type: string
        example: dn22
      responses:
        '200':
          description: Соседние сутты по порядку в skeletonDB
          content:
            application/json:
              schema:
                type: object
                properties:
                  prev:
                    type:
                    - object
                    - 'null'
                    properties:
                      slug:
                        type: string
                      title:
                        type: string
                  next:
                    type:
                    - object
                    - 'null'
                    properties:
                      slug:
                        type: string
                      title:
                        type: string
        '404':
          description: Неизвестный id сутты
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getApiNavBySuttaId
      x-operation-id-source: derived
  /api/transliterate:
    get:
      tags:
      - Text
      summary: Транслитерация введённого текста в IAST (латиница с диакритикой)
      parameters:
      - name: text
        in: query
        required: true
        schema:
          type: string
        example: kamma
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  text:
                    type: string
                  converted:
                    type: boolean
      operationId: getApiTransliterate
      x-operation-id-source: derived
  /api/patimokkha-fragment/{side}:
    get:
      tags:
      - Text
      summary: HTML-фрагмент Патимоккхи (bu — бхиккху, bi — бхиккхуни) для сравнения редакций
      parameters:
      - name: side
        in: path
        required: true
        schema:
          type: string
          enum:
          - bu
          - bi
        example: bu
      responses:
        '200':
          description: OK
          content:
            text/html:
              schema:
                type: string
        '404':
          description: Некорректный side
      operationId: getApiPatimokkhaFragmentBySide
      x-operation-id-source: derived
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
    Segment:
      type: object
      properties:
        segment:
          type: string
          example: dn1:1.1
        root_text:
          type: string
          description: Пали, root-чтение
        variant:
          type: string
          description: Пали, вариантное чтение (если есть)
        translations:
          type: object
          description: Ключ вида "ru_khantibalo", "en_sujato" -> текст перевода
          additionalProperties:
            type: string
        html:
          type: string
        lb_context:
          type: array
          items:
            type: object
        la_context:
          type: array
          items:
            type: object
  parameters:
    langs:
      name: langs
      in: query
      description: Языки переводов через запятую. `all` — все доступные языки.
      schema:
        type: string
        default: ru,en
        example: ru,en