Request
Stream URL to validate. Supports YouTube (youtube.com/watch?v=,
youtu.be/), Twitch (twitch.tv/channel), and RTSP (rtsp://).
Response
Whether the stream URL is valid and live.
Whether the stream is live (same as valid).
Detected platform (youtube, twitch, or rtsp).
Platform stream identifier when available.
Stream title when available.
Channel or uploader name when available.
Thumbnail URL when available.
Concurrent viewer count when available.
Error message when the stream is not valid or live.
curl -X POST https://trio.machinefi.com/streams/validate \
-H "Content-Type: application/json" \
-d '{"stream_url": "https://youtube.com/watch?v=LIVE_ID"}'
{
"valid": true,
"is_live": true,
"platform": "youtube",
"stream_id": "LIVE_ID",
"title": "City Center Cam",
"channel": "City Traffic",
"thumbnail_url": "https://i.ytimg.com/vi/LIVE_ID/hqdefault.jpg",
"viewer_count": 1234,
"error_hint": null
}