Added helper function to get API base URL.