API URl formatting