How could I make my own API to query the blockchain
You could use www.tatum.io to do all of that. We provide blockchain infrastructure and a simple, unified REST API that supports over 20 blockchains. You can do everything with a free plan, and upgrade to a paid plan when you need more that 5 API requests per second.