Hi Max.
The links in my last note point to the documentation for song/search (which lets you search for songs by arbitrary criteria, including acoustic attributes) and track/upload (which lets you upload an arbitrary track and get acoustic analysis for it). Those are the building blocks it sounds like you need. If you have specific questions, please ask.
-Eli