It is ethical and legal as long as you don't use it for the wrong purposes and just want to analyze the data.