v3 has been deprecated for over 2 years now, and is currently going through a process of scheduled outages in the lead up for complete removal on Septermber 12th at which point v3 will no longer work at all.
To use the new API, simply check out the docs page on how to Get Streams https://dev.twitch.tv/docs/api/reference/#get-streams