The type of data collection you used is:
D. historical data.
Since you conducted an internet search to learn about the demographics of the school before visiting, you are accessing existing information rather than collecting new data through observation, interviews, or questionnaires.