Added optional keyword to getApi: form
Allows different types of API output for different scenarios.