renamed api() wrapper function to the (slightly) more descriptive apiData()