How to use API?

Maybe you can refer to this page