Use the common function for typing networks in the web api.