The Rigveda API serves the Sanskrit Wikisource Saṃhitā transcription in accented Devanagari. This edition contains 10 mandalas, 1,028 suktas and 10,552 numbered mantras.
The canonical JSON lives in mandalas/, with one file per mandala. The website build reads these files to publish the following endpoints.
| GET endpoint | Response |
|---|---|
| /rigveda/ | Edition totals and mandala index |
| /rigveda/1/ | Mandala 1 and its sukta index |
| /rigveda/1/1/ | All nine mantras of the first sukta |
| /rigveda/1/1/1/ | The opening Sanskrit mantra |
The transcription is credited to Sanskrit Wikisource contributors and shared under Creative Commons Attribution-ShareAlike 4.0 International. For attribution and edit history, see the two source pages.
The import replaces the prefixed line identifiers with numeric mandala, sukta and mantra fields. It preserves the wording, accents, punctuation and line breaks within each mantra. Numbering follows these revisions, including all 103 suktas of mandala 8. Each mandala file identifies its specific source revision and license.
To reproduce the checked-in files, run python3 scripts/import_rigveda.py with Python 3.9 or later and an internet connection. Website builds use the checked-in JSON.