API for getting query string parameters