[Modified] how to use API