Hey Jennifer,
this is definitely possible with the API, I am not sure if you have any resource available for this task, but I am pretty sure you can get what you want.
Basically the required logic rule can be programed and the matching data cards can be extracted and exported in any format you need.
Cheers,
Alex