The Samaveda API serves the 1,875 mantras of the Kauthuma Samhita in Devanagari with the source’s Sama accent signs. The Purvarchika contains mantras 1–650 and the Uttararchika continues from 651 to 1,875.
| GET endpoint | Response |
|---|---|
| /samaveda/ | Available editions |
| /samaveda/kauthuma/ | The two archikas and their number ranges |
| /samaveda/kauthuma/purvarchika/ | The first 650 mantras in order |
| /samaveda/kauthuma/uttararchika/ | The remaining 1,225 mantras in order |
| /samaveda/kauthuma/uttararchika/651/ | The opening mantra of the Uttararchika |
The accented text is credited to the Sanskrit Wikisource contributors and redistributed under Creative Commons Attribution-ShareAlike 4.0 International. The complete accented transcription, revision 231091, supplies the Sanskrit. The Kauthuma index and Uttararchika index document the continuous numbering.
The import separates each mantra from the printed number, section headings, cross-references and end annotations. It preserves the source’s line breaks within mantras, accent signs, punctuation and parenthetical readings. In the Uttararchika, number is the continuous number used in URLs. The additional local_number reproduces the number printed within its group. The index and sequence place the start of prapathaka 6 at 1,347, where the transcription’s subsection heading says 1,346.
Three mantras (315, 371 and 562) contain the private-use character U+F131 in the source. It is preserved and identified in each record’s source_note. Its appearance depends on the font.
Run python3 scripts/import_samaveda.py with Python 3.9 or later and an internet connection. The importer checks the revision and its SHA-256 digest before writing the two canonical archika files. The website builds the static JSON API from this repository.