Use redirect API parameter instead of manually parsing response