A reference of AppStream's public API can be fount on the API reference pages (api/index.html).
If you want to use the PackageKit API, look at the PackageKit reference manual (http://www.packagekit.org/gtk-doc/).