check for api call