The API does not return the url of the live stream

Without permission from the streamer you can’t and shouldn’t

Ideally you’d want to run something locally on the streamers computer.

What you are doing may constititute a violation of the Dev or Twitch TOS’s

Like I already told you in your original thread in December.