{"version":"1.0","type":"rich","title":"php","description":"This example shows a PHP controller that fetches and returns YouTube video stream metadata as JSON, including format details like MIME type, resolution, and quality labels. It constructs an HTTP request to YouTube’s `get_video_info` endpoint, parses the response, and extracts streaming formats from the `player_response` JSON. The code maps specific `itag` values to human-readable properties such as `mp4`, `360p`, and `720p`, and it uses Laravel’s `Response::json` for output. Error handling checks for failed responses, and a `get_log` helper optionally dumps debug data.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-4923450f05aa3220a32343b3510bc1b4?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}