Check If Twitch stream online of offline using PHP

@WLG3R Thanks for your reply.

I have added below url for my channel

$url = "https://api.twitch.tv/helix/streams/?channel=symfuhny";

This is a live stream url at the moment … https://www.twitch.tv/symfuhny … The live stream running at the moment… but the thing is I am getting the same results in response…

[0] => Array
                (
                    [id] => 6214848871696298717
                    [user_id] => 139470326
                    [user_name] => 한동숙
                    [game_id] => 512980
                    [type] => live
                    [title] => 폴 가이즈 우승하러 옴
                    [viewer_count] => 24131
                    [started_at] => 2020-08-05T02:50:18Z
                    [language] => ko
                    [thumbnail_url] => https://static-cdn.jtvnw.net/previews-ttv/live_user_handongsuk-{width}x{height}.jpg
                    [tag_ids] => Array
                        (
                            [0] => ab2975e3-b9ca-4b1a-a93e-fb61a5d5c3a4
                        )

                )

And more data …

I am trying to change url with another live stream for example $url = "https://api.twitch.tv/helix/streams/?channel=nickeh30"; , https://www.twitch.tv/nickeh30 but still i m getting same response …

Bit confused why its happening …