add url args support to api.