The best way to learn the API is to read and follow the examples on https://api.molecularmatch.com, and to look into the data structures of the response.
Then see more advanced scripting examples here:
Go (needs more examples)
R (needs more examples)
(UPDATE 2019!) We're currently working on an SDK that will have thorough coverage our our query/response structure in a variety of languages.