get api details from api.js