An alternative way is to monitor the data and extract it from the Yahoo Finance website itself (or another one for the matter).
We solve this at Monitoro[0] and we make it easy to receive alerts or just store historical prices in SaaS apps and automation platforms. No fear of losing access to the API, and no need for coding in the first place.
(Disclaimer: I'm the founder)
[0]: https://monitoro.xyz