load api in require