Throws exception if api doesn't return URL