Load API url in template