Can't this be accomplished using the APIQueryAfterExecute hook?
Possibly, but it would be rather awkward to do so.