libkgapi