How do I use the API?

There is full documentation on the API page, which is accessible here.