Added option to set API url
Example can be given custom API url