Adding data source doubts

Hello,

I am just getting started with grafana and I have a question. I wanted to know if it is compulsory to add a data source or is there any other mechanism to obtain data, for example through an API?

Thank you!