There's a bunch of information about qiime2R in the community tutorial section on the forum. It's an excellent resource for all sorts of packages and I recommend exploring it.
You can learn more about the python API at the interface section of the QIIME 2 website.
Best,
Justine