ഡോക്സ്
നിങ്ങളുടെ ആദ്യ Mantrilo API റിക്വസ്റ്റ് നടത്തുക
മന്ത്രങ്ങൾ, പവിത്ര ഓഡിയോ, ഗ്രന്ഥങ്ങൾ, ജ്യോതിഷം എന്നിവയ്ക്കായി ഒരൊറ്റ REST API. നിങ്ങൾ നിർമ്മിക്കുന്നതിനുള്ള ഗൈഡിൽ നിന്ന് തുടങ്ങുക, അല്ലെങ്കിൽ ഏത് endpoint-ഉം തിരഞ്ഞുനോക്കുക. ഉദാഹരണങ്ങൾ റെസ്പോൺസ് ഫോർമാറ്റ് കാണിക്കുന്നു. ചിലത് ഭാഗങ്ങളോ പ്ലേസ്ഹോൾഡറുകളോ ഉപയോഗിക്കുന്നു.
ക്വിക്ക്സ്റ്റാർട്ട്
- ഒരു കീ നേടുക. ഓരോ അക്കൗണ്ടും ഒരു സാൻഡ്ബോക്സ് കീയോടെയാണ് തുടങ്ങുന്നത്. സാൻഡ്ബോക്സ് ക്വിക്ക്സ്റ്റാർട്ട് തുറക്കുക
- അത് നിങ്ങളുടെ സെർവറിൽ സൂക്ഷിക്കുക. നിങ്ങളുടെ ബാക്കെൻഡിന്റെ എൻവയോൺമെന്റിൽ
MANTRILO_API_KEY,MANTRILO_API_URLഎന്നിവ സജ്ജമാക്കുക. - ഒരു റിക്വസ്റ്റ് നടത്തുക. ഒരു മന്ത്രം ലിസ്റ്റ് ചെയ്യുക, തുടർന്ന് endpoint റഫറൻസ് അല്ലെങ്കിൽ നിങ്ങളുടെ ലക്ഷ്യത്തിനുള്ള ഗൈഡ് പിന്തുടരുക.
curl "https://api.mantrilo.com/v1/mantras?limit=1" \
-H "Authorization: Bearer $MANTRILO_API_KEY"നിങ്ങളുടെ ലക്ഷ്യത്തിൽ നിന്ന് തുടങ്ങുക
ഓരോ ഗൈഡും നിങ്ങൾക്ക് പ്രവർത്തിപ്പിക്കാവുന്ന ഒരു റിക്വസ്റ്റിൽ തുടങ്ങി, സെർവർ കോഡ്, പേജിനേഷൻ, ക്വോട്ട എന്നിവ കാണിക്കുന്നു.
ഉപനിഷത്തുകൾ ലോഡ് ചെയ്യുക
ഒരു ശേഖരം നേരിട്ട് വിളിക്കുക, അതിലൂടെ പേജ് ചെയ്യുക, തുടർന്ന് ഒരു പുസ്തകമോ അധ്യായമോ ശ്ലോകമോ തുറക്കുക.
ഗൈഡ് തുറക്കുകതിരയാവുന്ന ശ്ലോക ലൈബ്രറി നിർമ്മിക്കുക
മന്ത്രങ്ങളും ശ്ലോകങ്ങളും ലിസ്റ്റ് ചെയ്യുക, ദേവത അനുസരിച്ച് ഫിൽട്ടർ ചെയ്യുക, ലോഡ് ചെയ്ത ശീർഷകങ്ങളിൽ തിരയുക.
ഗൈഡ് തുറക്കുകപവിത്ര ഓഡിയോ പ്ലേ ചെയ്യുക
റെക്കോർഡിംഗുള്ള ഒരു എൻട്രിക്കായി താൽക്കാലിക പ്ലേബാക്ക് URL റിക്വസ്റ്റ് ചെയ്യുക.
ഗൈഡ് തുറക്കുകഒരു പുസ്തക റീഡർ നിർമ്മിക്കുക
സംസ്കൃത ശ്ലോകങ്ങളോ രാമായണത്തിന്റെയും മഹാഭാരതത്തിന്റെയും ഇംഗ്ലീഷ് പുനരാഖ്യാനങ്ങളോ വായിക്കുക.
ഗൈഡ് തുറക്കുകജനന ചാർട്ടുകൾ ചേർക്കുക
ഐച്ഛികമായ ദശാകാലങ്ങളോടെ ഒരു ലാഹിരി ജനന ചാർട്ട് നിർമ്മിക്കുക.
ഗൈഡ് തുറക്കുകദൈനംദിന പഞ്ചാംഗം ചേർക്കുക
ഒരു പ്രാദേശിക ദൈനംദിന പഞ്ചാംഗ കലണ്ടർ നിർമ്മിക്കുക.
ഗൈഡ് തുറക്കുകദിവസേനയുള്ള മന്ത്രം
തിരഞ്ഞെടുത്ത ഒരു മന്ത്രം ഫെച്ച് ചെയ്ത് അതിന്റെ മൂല സംസ്കൃതവും ലിപ്യന്തരണവും അവതരിപ്പിക്കുക.
ഗൈഡ് തുറക്കുകജ്യോതിഷത്തിൽ ഓരോ കേപ്പബിലിറ്റിക്കും ഒരു ഗൈഡുണ്ട്. ജ്യോതിഷ കേപ്പബിലിറ്റികൾ കാണുക
ഓതന്റിക്കേഷൻ
ഓരോ റിക്വസ്റ്റിലും നിങ്ങളുടെ കീ Authorization: Bearer YOUR_KEY ആയി അയയ്ക്കുക. ബ്രൗസറിൽ നിന്നുള്ള ക്രോസ്-ഒറിജിൻ കോളുകൾ API തടയുന്നു, അതിനാൽ നിങ്ങളുടെ സെർവറിൽ നിന്ന് വിളിച്ച് ഉള്ളടക്കം മാത്രം ആപ്പിലേക്ക് കൈമാറുക. വെബ് ബണ്ടിലിലോ മൊബൈൽ ആപ്പിലോ റിപ്പോസിറ്ററിയിലോ ഒരിക്കലും കീ ഉൾപ്പെടുത്തരുത്. ഒരു കീ ചോർന്നാൽ, കൺസോളിൽ അത് പുതുതായി ജനറേറ്റ് ചെയ്യുക; പഴയ കീ ഒരു മിനിറ്റിനുള്ളിൽ പ്രവർത്തനം നിർത്തും.
സാൻഡ്ബോക്സും ലൈവും
| എൻവയോൺമെന്റ് | കീ പ്രിഫിക്സ് | എന്ത് വായിക്കാം |
|---|---|---|
| സാൻഡ്ബോക്സ് | mtr_sbx_ | സാമ്പിൾ മന്ത്രങ്ങൾ, സാമ്പിൾ പുസ്തകങ്ങളുടെ ആദ്യ ശ്ലോകങ്ങൾ, ലഭ്യമായ ജ്യോതിഷ ഓപ്പറേഷനുകൾ. ഓരോ അക്കൗണ്ടിനും ഒന്നുണ്ട്. |
| ലൈവ് | mtr_live_ | ലഭ്യമായ പൂർണ്ണ കാറ്റലോഗ്. പണമടച്ചുള്ള പ്ലാനിനൊപ്പം നൽകുന്നു. |
സാൻഡ്ബോക്സിനും ലൈവിനും ഉപയോഗം വെവ്വേറെയാണ് കണക്കാക്കുന്നത്. സാമ്പിളിന് പുറത്തുള്ള ഒരു ഇനത്തിനായുള്ള സാൻഡ്ബോക്സ് റിക്വസ്റ്റ് 403 sandbox_sample_only നൽകും.
പേജിനേഷൻ
ലിസ്റ്റ് endpoints nextCursor നൽകുന്നു. അടുത്ത പേജ് വായിക്കാൻ അത് cursor ആയി തിരികെ നൽകുക. അവസാന പേജിൽ അത് null ആയിരിക്കും. limit (1–100) ഉപയോഗിച്ച് പേജ് വലുപ്പം സജ്ജമാക്കുക.
അധ്യായ പേജുകൾ nextOffset നൽകുന്നു. അതേ അധ്യായത്തിലെ കൂടുതൽ ശ്ലോകങ്ങൾ വായിക്കാൻ അത് offset ആയി തിരികെ നൽകുക.
curl "$MANTRILO_API_URL/v1/books?collection=upanishads&limit=3&cursor={nextCursor}" \
-H "Authorization: Bearer $MANTRILO_API_KEY"പിശകുകൾ
ഓരോ പിശകിനും ഒരേ ഘടനയാണ്. code സ്ഥിരമാണ്; എന്താണ് തിരുത്തേണ്ടതെന്ന് message വിശദീകരിക്കുന്നു. വിജയകരമായ റെസ്പോൺസുകൾ മാത്രമേ നിങ്ങളുടെ പ്ലാനിൽ കണക്കാക്കൂ.
{
"error": {
"code": "invalid_api_key",
"message": "Send a valid API key."
},
"requestId": "request-id"
}| സ്റ്റാറ്റസ് | കോഡ് | എന്ത് ചെയ്യണം |
|---|---|---|
400 | invalid_limit, invalid_cursor, invalid_deity, invalid_collection, invalid_offset | സന്ദേശത്തിൽ പറഞ്ഞിരിക്കുന്ന query പാരാമീറ്റർ തിരുത്തുക. |
400 | invalid_operation, invalid_input, invalid_datetime, invalid_timezone, … | സന്ദേശത്തിൽ പറഞ്ഞിരിക്കുന്ന ജ്യോതിഷ ഇൻപുട്ട് തിരുത്തുക. |
401 | invalid_api_key, revoked_api_key | കീ ഇല്ല, തെറ്റാണ്, അല്ലെങ്കിൽ റദ്ദാക്കിയിരിക്കുന്നു. |
403 | plan_inactive | ലൈവ് കീകൾക്ക് സജീവമായ പണമടച്ചുള്ള പ്ലാൻ വേണം. |
403 | sandbox_sample_only | ആ ഇനം സാൻഡ്ബോക്സ് സാമ്പിളിന് പുറത്താണ്. നിങ്ങളുടെ ലൈവ് കീ ഉപയോഗിക്കുക. |
404 | not_found, audio_unavailable | അങ്ങനെയൊരു ഇനമില്ല, അല്ലെങ്കിൽ അതിന് റെക്കോർഡിംഗ് ഇല്ല. |
405 | method_not_allowed | endpoint-ന് നൽകിയിരിക്കുന്ന മെത്തേഡ് ഉപയോഗിക്കുക. |
429 | rate_limited | Retry-After ഹെഡറിൽ പറയുന്നത്രയും കാത്തിരുന്ന് വീണ്ടും ശ്രമിക്കുക. |
429 | quota_exceeded, audio_quota_exceeded | പ്രതിമാസ ക്വോട്ട തീർന്നു. |
429 | too_many_failed_attempts | ഒരേ വിലാസത്തിൽ നിന്ന് വളരെയധികം തെറ്റായ കീകൾ. പിന്നീട് വീണ്ടും ശ്രമിക്കുക. |
500 | internal_error | വീണ്ടും ശ്രമിക്കുക; പ്രശ്നം തുടർന്നാൽ requestId ഉദ്ധരിക്കുക. |
503 | books_unavailable, astrology_unavailable, astrology_operation_unavailable | സേവനമോ ഓപ്പറേഷനോ താൽക്കാലികമായി ലഭ്യമല്ല. പിന്നീട് വീണ്ടും ശ്രമിക്കുക. |
504 | astrology_timeout | കണക്കുകൂട്ടലിന് വളരെയധികം സമയമെടുത്തു. വീണ്ടും ശ്രമിക്കുക. ചാർജ് ഒന്നും ഈടാക്കില്ല. |
ഉപയോഗ പരിധികൾ
ക്വോട്ടകൾ ഓരോ കീക്കുമല്ല, നിങ്ങളുടെ മുഴുവൻ വർക്ക്സ്പേസിനുമാണ് ബാധകം; UTC അനുസരിച്ച് പ്രതിമാസം റീസെറ്റ് ചെയ്യുന്നു. വിജയകരമായ ഓരോ ഉള്ളടക്ക റെസ്പോൺസും ജ്യോതിഷ കണക്കുകൂട്ടലും ഒരു റിക്വസ്റ്റാണ്. ഓരോ ഓഡിയോ ലിങ്കും ഫയലിന്റെ വലുപ്പം കൂടി കണക്കാക്കുന്നു.
| പ്ലാൻ | പ്രതിമാസ റിക്വസ്റ്റുകൾ | ഓഡിയോ | റേറ്റ് | ബേഴ്സ്റ്റ് |
|---|---|---|---|---|
| സൗജന്യം | 500 | സാമ്പിൾ ഓഡിയോ മാത്രം | സെക്കൻഡിൽ 2 | 10 |
| Starter | 50,000 | 10 GB | സെക്കൻഡിൽ 10 | 20 |
| Growth | 2,50,000 | 50 GB | സെക്കൻഡിൽ 25 | 50 |
| Business | 10,00,000 | 200 GB | സെക്കൻഡിൽ 50 | 100 |
റെസ്പോൺസുകളിൽ X-RateLimit-Limit, X-RateLimit-Remaining, X-Quota-Requests-Remaining, X-Request-Id എന്നിവ ഉൾപ്പെടുന്നു. rate_limited റെസ്പോൺസിൽ Retry-After കൂടി ചേർക്കുന്നു. സാൻഡ്ബോക്സ് കീകൾ എപ്പോഴും സൗജന്യ പ്ലാനിന്റെ റേറ്റ് ഉപയോഗിക്കുന്നു. നിങ്ങളുടെ വർക്ക്സ്പേസിന് പ്രതിമാസ റിക്വസ്റ്റ് പരിധി ഇല്ലെങ്കിൽ, X-Quota-Requests-Remaining unlimited ആയിരിക്കും. പ്ലാനുകൾ താരതമ്യം ചെയ്യുക
രാമായണവും മഹാഭാരതവും
ഈ ഇംഗ്ലീഷ് ഗദ്യ പുനരാഖ്യാനങ്ങൾ വായിക്കാൻ ലൈവ് കീ ഉപയോഗിക്കുക. അധ്യായ ഇൻഡക്സിനായി ഒരു പുസ്തകം തുറക്കുക, തുടർന്ന് ഒരു അധ്യായ നമ്പർ ഉപയോഗിച്ച് ആ അധ്യായം മുഴുവനായി ഒരൊറ്റ റിക്വസ്റ്റിൽ ലോഡ് ചെയ്യുക.
Ramayana
22 അധ്യായങ്ങൾ
curl "$MANTRILO_API_URL/v1/books/ramayana" \
-H "Authorization: Bearer $MANTRILO_API_KEY"
curl "$MANTRILO_API_URL/v1/books/ramayana/chapters/1" \
-H "Authorization: Bearer $MANTRILO_API_KEY"Mahabharata
62 അധ്യായങ്ങൾ
curl "$MANTRILO_API_URL/v1/books/mahabharata" \
-H "Authorization: Bearer $MANTRILO_API_KEY"
curl "$MANTRILO_API_URL/v1/books/mahabharata/chapters/1" \
-H "Authorization: Bearer $MANTRILO_API_KEY"പുസ്തകങ്ങൾ format: "prose", language: "en" എന്നിവ നൽകുന്നു. ഒരു അധ്യായത്തിന്, data.source പ്രദർശിപ്പിച്ച് data.sections-ലൂടെ ഇറ്ററേറ്റ് ചെയ്യുക. ഓരോ സെക്ഷന്റെയും title, paragraphs എന്നിവ ക്രമത്തിൽ റെൻഡർ ചെയ്യുക. ഗദ്യ അധ്യായങ്ങൾ ശൂന്യമായ verses അറേയും nextOffset: null-ഉം നൽകുന്നു.
Endpoint റഫറൻസ്
GET /v1
API-യുടെ പേര്, പതിപ്പ്, റിസോഴ്സ് ലിസ്റ്റ്. ഹെൽത്ത് ചെക്കായി ഉപയോഗിക്കാം.
കീ ആവശ്യമില്ലപാരാമീറ്ററുകൾ ഇല്ല.
curl "$MANTRILO_API_URL/v1"{
"name": "Mantrilo API",
"version": "1",
"authentication": "Authorization: Bearer <your Mantrilo API key>",
"resources": [
"/v1/mantras",
"/v1/books?collection={collection}",
"…"
]
}GET /v1/mantras
സ്ഥിരമായ ക്രമത്തിലുള്ള മന്ത്രങ്ങളും ശ്ലോകങ്ങളും. ഓരോ ഇനവും ശ്ലോകങ്ങളില്ലാത്ത ഒരു സംഗ്രഹമാണ്.
limitquery- പൂർണ്ണസംഖ്യ, 1–100. ഡിഫോൾട്ട് 20.
cursorquery- മുമ്പത്തെ പേജിലെ nextCursor.
deityquery- shiva അല്ലെങ്കിൽ annapurna പോലുള്ള ഒരു ദേവത id. കൃത്യമായ പൊരുത്തം.
curl "$MANTRILO_API_URL/v1/mantras?limit=1" \
-H "Authorization: Bearer $MANTRILO_API_KEY"{
"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"
}
}
],
"nextCursor": "YW5uYXB1cm5hLWFoYW0tdmFpc2h2YW5hcm8tYmh1dGh2YQ",
"requestId": "request-id"
}GET /v1/mantras/{id}
ശ്ലോകങ്ങൾ സഹിതം ഒരു മന്ത്രം. ഏത് ടെക്സ്റ്റ് ഫീൽഡും null ആകാം, അതിനാൽ ഉള്ളവ മാത്രം റെൻഡർ ചെയ്യുക.
idpath- ലിസ്റ്റ് റെസ്പോൺസിൽ നിന്നുള്ള മന്ത്ര id.
description മന്ത്രത്തിന്റെ ഹ്രസ്വമായ പൊതു സംഗ്രഹമാണ്. ഒരു റെക്കോർഡിന് അതില്ലെങ്കിൽ ഇത് null ആയിരിക്കും.
curl "$MANTRILO_API_URL/v1/mantras/annapurna-aham-vaishvanaro-bhuthva" \
-H "Authorization: Bearer $MANTRILO_API_KEY"{
"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"
}GET /v1/mantras/{id}/audio
audio ഫീൽഡ് null അല്ലാത്ത ഒരു മന്ത്രത്തിന്റെ റെക്കോർഡിംഗ്. format=json ഇല്ലെങ്കിൽ റെസ്പോൺസ് ഫയലിലേക്കുള്ള ഒരു 302 റീഡയറക്ട് ആയിരിക്കും.
idpath- മന്ത്ര id.
formatquery- json നൽകിയാൽ റീഡയറക്ട് ചെയ്യുന്നതിന് പകരം സൈൻ ചെയ്ത ലിങ്ക് JSON ആയി ലഭിക്കും.
ലിങ്കുകൾ 15 മിനിറ്റ് നിലനിൽക്കും. ഓരോ ലിങ്കും അതിന്റെ ഫയൽ വലുപ്പം നിങ്ങളുടെ ഓഡിയോ ക്വോട്ടയിൽ കണക്കാക്കുന്നു.
curl "$MANTRILO_API_URL/v1/mantras/annapurna-aham-vaishvanaro-bhuthva/audio?format=json" \
-H "Authorization: Bearer $MANTRILO_API_KEY"{
"data": {
"url": "https://storage.googleapis.com/mantrilo-media/…?X-Goog-Signature=…",
"expiresAt": "2026-11-10T06:45:00.000Z",
"bytes": 123077,
"contentType": "audio/x-m4a"
},
"requestId": "request-id"
}GET /v1/books
കാറ്റലോഗ് ക്രമത്തിലുള്ള ലൈവ് പുസ്തകങ്ങൾ. ഉപനിഷത്തുകൾ പോലുള്ള ഒരു ഗണം നേരിട്ട് വിളിക്കാൻ collection അനുസരിച്ച് ഫിൽട്ടർ ചെയ്യുക.
collectionquery- ഒരു ശേഖര id: upanishads, bhagavad-gita, advaita-vedanta-prakarana-granthas, vedanta, yoga.
limitquery- പൂർണ്ണസംഖ്യ, 1–100. ഡിഫോൾട്ട് 24.
cursorquery- മുമ്പത്തെ പേജിലെ nextCursor.
സാൻഡ്ബോക്സ് കീകൾ ഈശോപനിഷത്തും ഭഗവദ്ഗീതയും ലിസ്റ്റ് ചെയ്യുന്നു. മറ്റ് ശേഖരങ്ങൾ സാൻഡ്ബോക്സ് ശീർഷകങ്ങളൊന്നും നൽകിയേക്കില്ല.
curl "$MANTRILO_API_URL/v1/books?collection=upanishads&limit=3" \
-H "Authorization: Bearer $MANTRILO_API_KEY"{
"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"
}GET /v1/books/{id}
അധ്യായ ഇൻഡക്സ് സഹിതമുള്ള ഒരു പുസ്തക സംഗ്രഹം. പാഠം റിക്വസ്റ്റ് ചെയ്യാൻ അധ്യായ നമ്പറുകൾ ഉപയോഗിക്കുക.
idpath- ലിസ്റ്റ് റെസ്പോൺസിൽ നിന്നുള്ള പുസ്തക id.
സാൻഡ്ബോക്സ് കീകൾക്ക് preview true ആയിരിക്കും; അവയ്ക്ക് ആദ്യ അധ്യായം മാത്രമേ കാണാനാകൂ.
curl "$MANTRILO_API_URL/v1/books/ishaUpanishad" \
-H "Authorization: Bearer $MANTRILO_API_KEY"{
"data": {
"id": "ishaUpanishad",
"title": "…",
"collection": {
"id": "upanishads",
"name": "Upanishads"
},
"description": "…",
"chapters": [
{
"number": 1,
"title": "…",
"description": null,
"verseCount": 18
}
],
"preview": false
},
"requestId": "request-id"
}GET /v1/books/{id}/chapters/{chapter}
പരമാവധി 30 ശ്ലോകങ്ങളുള്ള ഒരു പേജ്, അല്ലെങ്കിൽ ഒരു ഗദ്യ പുനരാഖ്യാനത്തിന്റെ പൂർണ്ണ അധ്യായം.
idpath- പുസ്തക id.
chapterpath- പുസ്തകത്തിന്റെ അധ്യായ ഇൻഡക്സിൽ നിന്നുള്ള ഒരു അധ്യായ നമ്പർ.
offsetquery- ശ്ലോകങ്ങൾക്ക്, മുമ്പത്തെ പേജിലെ nextOffset നൽകുക. ഗദ്യത്തിന് ഒഴിവാക്കുക.
സാൻഡ്ബോക്സ് കീകൾക്ക് സാമ്പിൾ പുസ്തകങ്ങളുടെ ആദ്യ അധ്യായത്തിലെ ആദ്യ മൂന്ന് ശ്ലോകങ്ങൾ വായിക്കാം. രാമായണത്തിനും മഹാഭാരതത്തിനും ലൈവ് കീ ആവശ്യമാണ്.
curl "$MANTRILO_API_URL/v1/books/ishaUpanishad/chapters/1" \
-H "Authorization: Bearer $MANTRILO_API_KEY"{
"data": {
"number": 1,
"title": "…",
"verseCount": 18,
"verses": [
{
"number": 1,
"sanskrit": "…",
"transliteration": "…",
"translation": null,
"translator": "…",
"wordMeaning": null,
"commentary": null
}
],
"nextOffset": null
},
"requestId": "request-id"
}GET /v1/astrology
നിലവിലെ ഓപ്പറേഷൻ കാറ്റലോഗ്, ID-കൾ, വിഭാഗങ്ങൾ, ലഭ്യമായിടത്ത് സാമ്പിൾ ഇൻപുട്ടുകൾ എന്നിവ സഹിതം.
കീ ആവശ്യമില്ലപാരാമീറ്ററുകൾ ഇല്ല.
curl "$MANTRILO_API_URL/v1/astrology"{
"data": [
{
"id": "positions",
"name": "Planetary positions",
"description": "…"
},
{
"id": "vedic-panchang",
"name": "Panchang",
"category": "Vedic",
"availability": "available",
"example": {
"…": "…"
}
}
]
}POST /v1/astrology/calculate
ഒരു ഓപ്പറേഷൻ പ്രവർത്തിപ്പിക്കുക. operation-ഉം ആ ഓപ്പറേഷന്റെ ഇൻപുട്ടുകളും JSON ആയി അയയ്ക്കുക. ഓരോ ഓപ്പറേഷന്റെയും ഇൻപുട്ടുകൾ ജ്യോതിഷ പേജിൽ ഉണ്ട്.
operationbody- GET /v1/astrology-ൽ നിന്നുള്ള ഒരു ഓപ്പറേഷൻ id.
datetimebody- positions, panchang എന്നിവയ്ക്ക്: സെക്കൻഡുകളും UTC ഓഫ്സെറ്റും ഉള്ള ISO 8601.
…body- മറ്റ് ഇൻപുട്ടുകൾ ഓപ്പറേഷനെ ആശ്രയിച്ചിരിക്കുന്നു.
പരാജയപ്പെട്ട കണക്കുകൂട്ടലുകൾക്ക് ചാർജ് ഈടാക്കില്ല.
Hindi responses: five operations answer in Hindi when you add "lang": "hi" or "language": "hi" under parameters. These are Daily Rashifal, Daily Rashifal for all signs, the Western daily sign horoscope, Daily Muhurat lookup and Moon sign compatibility. Codes and scores stay the same in both languages. Every other operation answers in English. The list is on the Astrology page.
curl -X POST "$MANTRILO_API_URL/v1/astrology/calculate" \
-H "Authorization: Bearer $MANTRILO_API_KEY" \
-H "Content-Type: application/json" \
-d '{"operation":"positions","datetime":"2026-11-10T12:00:00+05:30"}'{
"data": {
"engineVersion": "mantrilo-astro-1",
"datetimeUtc": "2026-11-10T06:30:00.000Z",
"referenceFrame": "geocentric_true_ecliptic_of_date",
"ayanamsa": {
"model": "lahiri_linear_approximation",
"degrees": 24.232277,
"approximate": true
},
"operation": "positions",
"planets": [
{
"body": "Moon",
"tropicalLongitudeDegrees": 238.933105,
"siderealLongitudeDegrees": 214.700828,
"latitudeDegrees": -4.987681,
"distanceAU": 0.00267702,
"motion": {
"degreesPerDay": 12.232549,
"retrograde": false
},
"rashi": {
"number": 8,
"name": "Vrishchika",
"degreesWithin": 4.700828
},
"nakshatra": {
"number": 17,
"name": "Anuradha",
"pada": 1
}
}
]
},
"calculated": true,
"requestId": "request-id"
}