Ability to make API calls out of WordPress as well as executing SQL?

Ability to make API calls out of WordPress as well as executing SQL?