load api as require