Api function absolute url formatting