How do I send mailings to subsets via the API?
I have a suggestion for this :

In your custom code where you get the contacts use the GroupContact API and create a group and add those contacts to that group. And than using the Mailing API  send the mailing by referencing that group. After sending  you can delete that group. HTH.