Hmmm… I’ve played with the API. It seems quite ‘chatty’ in that even if filtering by the haiku master repo, it will return links to all repos for a particular package. I suspect you’d have to inspect the repository, list the packages, and then pull back each package in each repo. This of course increases the number of network trips.
I’ve played around with the local bash script option, just for giggles. It doesn’t work for all packages of course, but does seem to work with quite a few of them. I’ll post the results on here once it completes (It’s not exactly fast given it does 1 http request per package).