split up github api url into components