The text was written to be a more conservative alternative to the Kama Sutra
Libraries, especially those with a focus on Indian studies or a collection of Indian literature, might have physical or digital copies of the text you're looking for.
While Vatsyayana’s Kama Sutra is encyclopedic and philosophical, Kokkoka’s text is more structured, practical, and poetic. It condenses the 64 arts of love into a streamlined 15- to 21-chapter format—though variations exist. The reference to suggests a later, expanded recension or a Malayalam commentary that renumbered the verses.
Unique to the Malayalam version, Chapter 37 includes a sub-section on Nakshatra anushtana – which lunar mansions ( Nakshatras ) are favorable for physical union. For example:
Kokkoka Sastram (also known as the Ratirahasya ) is a medieval Indian treatise on love and sexuality written by the poet