Using the Share feature and customization options on the upload, profile, or playlist page is the quickest way to embed the widget.
To control the widget with code, see the Widget JavaScript API and our developer documentation.
NB - per our Terms of Use:
The widget must remain visible and unrestricted in its entirety on the website, including for the avoidance of doubt the Mixcloud logo being visible and a user being able to click through to Mixcloud.com