curl --request POST \ --url https://trio.machinefi.com/api/check-once \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "stream_url": "https://www.youtube.com/watch?v=jfKfPfyJRdk", "condition": "Is there an animated character visible?"}'
Copy
{ "triggered": true, "explanation": "Yes, there is an animated character visible. The frame shows an anime-style girl with headphones sitting at a desk.", "latency_ms": 2134}
Monitoring
Check Once
Perform a single synchronous condition check on a YouTube Live stream
POST
/
check-once
Check Once
Copy
curl --request POST \ --url https://trio.machinefi.com/api/check-once \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "stream_url": "https://www.youtube.com/watch?v=jfKfPfyJRdk", "condition": "Is there an animated character visible?"}'
Copy
{ "triggered": true, "explanation": "Yes, there is an animated character visible. The frame shows an anime-style girl with headphones sitting at a desk.", "latency_ms": 2134}