pass api requests as array instead