how long should an api call take