Skip to content
Get API key

Books API

Books API

Add Hindu scriptures and English retellings of the Ramayana and Mahabharata to your app. Browse books by collection and read chapters with source references.

Browse the catalog by collection. The sandbox shows sample titles and opening verses; a live key can access the full available catalog.

GET /v1/books?collection=upanishads
curl "$MANTRILO_API_URL/v1/books?collection=upanishads&limit=3" \
  -H "Authorization: Bearer $MANTRILO_API_KEY"
A collection page200 OK
{
  "data": [
    {
      "id": "ishaUpanishad",
      "title": "Īśāvāsya Upaniṣad",
      "author": "Vedic Rishis",
      "category": null,
      "subcategory": null,
      "collection": {
        "id": "upanishads",
        "name": "Upanishads"
      },
      "description": "One of the shortest and most profound Upanishads, revealing the nature of the Supreme Lord who pervades all.",
      "verseCount": 18
    }
  ],
  "nextCursor": null,
  "sandbox": true,
  "requestId": "request-id"
}

What you can build

Give readers a path through a text

A scripture reader can start at a book overview, move into a chapter, and show individual verses within that chapter. Preserve the book and chapter relationship when linking to a selected passage.

Ramayana and Mahabharata retellings

A live key can read all 22 Ramayana chapters and 62 Mahabharata chapters. Each chapter returns a source reference and ordered prose sections with paragraphs.

Handle missing translations and references

A reading view should render available original text and display translation or commentary only when supplied. Any verse field can be null, so build the view to leave it out.

Review coverage and licensing by title

Start with the Bhagavad Gita and Isha Upanishad in the sandbox. Browse the Library for previews and check the content license before publishing material in an app.

How an integration flows

  1. List a collection with GET /v1/books?collection=upanishads.
  2. Open a book for its chapter index.
  3. Render the sections of a prose chapter or follow nextOffset to page through verses.

Try it with a sandbox key.

Every account starts with sample content, so you can build before you subscribe.