Skip to content
Get API key

Mantra API

Sanskrit Mantra and Shloka API

Add mantras to your app or website with one REST API. Records bring original Sanskrit together with transliteration and source references where available.

Create a free sandbox key to try sample mantras. Fields can be empty on individual records, so check the titles, languages and source details your app needs.

GET /v1/mantras/{id}
curl "$MANTRILO_API_URL/v1/mantras/annapurna-aham-vaishvanaro-bhuthva" \
  -H "Authorization: Bearer $MANTRILO_API_KEY"
A mantra response200 OK
{
  "data": {
    "id": "annapurna-aham-vaishvanaro-bhuthva",
    "title": "Aham Vaishvanaro Bhuthva",
    "deity": {
      "id": "annapurna",
      "name": "Lord Annapurna"
    },
    "category": "Annapurna Stotras",
    "source": "Sanatana Shastras",
    "description": "Aham Vaishvanaro Bhutva means \"I, having become the universal fire,\" and in Bhagavad Gita 15.14 Krishna says he lives in every body and digests its food. United with the prana and apana breaths, this inner fire cooks the four kinds of food: chewed, swallowed, licked and sucked. Families often say it before a meal to treat eating as an offering.",
    "verseCount": 1,
    "audio": {
      "href": "/v1/mantras/annapurna-aham-vaishvanaro-bhuthva/audio"
    },
    "verses": [
      {
        "number": 1,
        "title": "Aham Vaishvanaro Bhuthva – Verse 1",
        "sanskrit": "अहं वैश्वानरो भूत्वा प्राणिनां देहमाश्रितः\nप्राणापान समायुक्तः पचाम्यन्नं चतुर्विधम्",
        "transliteration": "ahaṃ vaiśvānaro bhūtvā prāṇināṃ dehamāśritaḥ\nprāṇāpāna samāyuktaḥ pacāmyannaṃ caturvidham",
        "translation": null,
        "wordMeanings": []
      }
    ]
  },
  "requestId": "request-id"
}

What you can build

Build a reading experience around the verse

A developer can present original text first, offer transliteration alongside it, and add a translation they have permission to distribute. Keep source context close to the text so readers can distinguish a verse from its explanation.

Treat optional fields as optional

Mantra verses return Sanskrit and transliteration where available. Translation is null and wordMeanings is empty. Hide missing fields in your app.

Keep text and recordings connected

A mantra with a recording includes an audio link in its response. Request the signed recording link through your server, and show a listening control only when that link is present.

Licensed for your product

Paid plans include a license to use the verses and recordings in your app. Keep source references with the text, and see the content license for what it covers.

How an integration flows

  1. Receive a selected text record through your server.
  2. Render original text and available transliteration.
  3. Show a source reference and linked recording only when supplied.

Try it with a sandbox key.

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