Allow a custom API URL to be used