I’m trying to test my site’s data and page elements with a python script and I thought why not try to test the database info from an API but I can’t seem to find any specific answers about if an API for my site is available to use in python or and documentations.
You can expose a site API by using http-functions . See Corvid: Exposing a Site API with HTTP Functions for an explanation on how it’s done.
Take a look at the Expose and Access Site APIs example. Load the apps in your editor, play with them, and adapt to your own use.