Changing how the hit_api method gets query string parameters