કન્ટેન્ટ પર જાઓ
API key મેળવો

મંત્ર API

સંસ્કૃત મંત્ર અને શ્લોક API

એક જ REST API વડે તમારી ઍપ કે વેબસાઇટમાં મંત્રો ઉમેરો. રેકોર્ડ્સમાં મૂળ સંસ્કૃતની સાથે, જ્યાં ઉપલબ્ધ હોય ત્યાં લિપ્યંતર અને સ્રોત સંદર્ભો હોય છે.

નમૂના મંત્રો અજમાવવા મફત સેન્ડબોક્સ key બનાવો. કેટલાક રેકોર્ડ્સમાં ફીલ્ડ ખાલી હોઈ શકે છે, એટલે તમારી ઍપને જોઈતાં શીર્ષકો, ભાષાઓ અને સ્રોતની વિગતો તપાસો.

GET /v1/mantras/{id}
curl "$MANTRILO_API_URL/v1/mantras/annapurna-aham-vaishvanaro-bhuthva" \
  -H "Authorization: Bearer $MANTRILO_API_KEY"
મંત્રનો રિસ્પોન્સ200 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"
}

તમે શું બનાવી શકો

શ્લોકની આસપાસ વાંચનનો અનુભવ બનાવો

ડેવલપર પહેલાં મૂળ લખાણ બતાવી શકે છે, તેની સાથે લિપ્યંતર આપી શકે છે, અને જેના વિતરણની પરવાનગી હોય તેવો અનુવાદ ઉમેરી શકે છે. સ્રોતનો સંદર્ભ લખાણની નજીક રાખો, જેથી વાચકો શ્લોક અને તેની સમજૂતી વચ્ચેનો ફરક સમજી શકે.

વૈકલ્પિક ફીલ્ડને વૈકલ્પિક જ ગણો

મંત્રના શ્લોકો જ્યાં ઉપલબ્ધ હોય ત્યાં સંસ્કૃત અને લિપ્યંતર આપે છે. Translation null હોય છે અને wordMeanings ખાલી હોય છે. તમારી ઍપમાં ખૂટતાં ફીલ્ડ છુપાવો.

લખાણ અને રેકોર્ડિંગને જોડાયેલાં રાખો

રેકોર્ડિંગ ધરાવતા મંત્રના રિસ્પોન્સમાં ઑડિયો લિંક હોય છે. signed રેકોર્ડિંગ લિંક તમારા સર્વર દ્વારા માંગો, અને તે લિંક હાજર હોય ત્યારે જ સાંભળવાનું બટન બતાવો.

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.

ઇન્ટિગ્રેશન કેવી રીતે ચાલે છે

  1. તમારા સર્વર દ્વારા પસંદ કરેલો લખાણ રેકોર્ડ મેળવો.
  2. મૂળ લખાણ અને ઉપલબ્ધ લિપ્યંતર રેન્ડર કરો.
  3. સ્રોત સંદર્ભ અને જોડાયેલું રેકોર્ડિંગ આપ્યું હોય ત્યારે જ બતાવો.

સેન્ડબોક્સ key સાથે અજમાવો.

દરેક એકાઉન્ટ નમૂના કન્ટેન્ટથી શરૂ થાય છે, એટલે સબ્સ્ક્રાઇબ કરતાં પહેલાં જ તમે બનાવવાનું શરૂ કરી શકો છો.