Hi Steven
Yahoo's free Financial API terminated in late 2018.
You can try this (free for a limited number of accesses, it requires obtaining an api token) https://rapidapi.com/blog/how-to-use-the-yahoo-finance-api/ It might work for your situation
If not, you might find something suitable here https://medium.com/@andy.m9627/the-ultimate-guide-to-stock-market-apis-for-2020-1de6f55adbb
When you find something that works, let us know.