Compiles get requests into same function