Change the args here so you can pass a `url` as well vs assuming the `api` url.