selecttype api