checks URL for proper api version