KODI API examples



I want to do some things in KODI via some kind of API (or commandline via ssh with keys)
rather basic ones – play/pause/stop, vol_up/vol_down/mute, but also – play a radiostation from standard extension ‘radio’
I’ve found kodi-json python lib, but its quite old and does not work for me.
Is there any other solution, if possible – with working examples (I don’t have experience with using APIs at all)?