Matt, are you using the Segmentation for Dynamic content? If not, you can also consider creating a static List for each segment and a Smart Campaign that adds people to the respective List (using Choice rules in an "add to List" flow step). You can easily access list members via the API. I don't know the overall goal of your integration project, so not sure if this would work, but I thought I'd add it as an option.