Details of the Plugin API is described in API reference, but you can try plugin API in your web browser.
You'll see reearth object is printed. This object is almost same as actual plugin API, with the exception of a few APIs:
reearth.ui.postMessage and so on.
This screenshot is for Google Chrome:
So you can try plugin API handly in console.
For example, searching layers with