wrapped ddgrequest function in an http api get request