Expose type for url

@qinweigong