I used it many times before. It's actually really easy. There are plenty of different API you could use, but I suggest you used the classical one. It's a JavasCript API and expects you to know how to code Javascript.
You can find a lot of info on the
official site hosting the API. You would find extensive documentation on the code, a list of all the functions available, and a tutorial to get you started (tutorial expects you to know how to program).