Specify API URL in only one place

The base URL shouldn't be repeated.