added def for api url
added def for api url