Have you considered that as this is the 'first' time you have called the API, that the API itself may have just gone to sleep,and its own initialisation has startup steps which take a little time to run.