Skip to main content
POST
/
live-monitor
Live Monitor
curl --request POST \
  --url https://trio.machinefi.com/api/live-monitor \
  --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?",
  "webhook_url": "https://webhook.site/YOUR-UNIQUE-ID"
}
'
{
  "job_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "status": "running"
}

Authorizations

Authorization
string
header
required

Get your API key at console.machinefi.com

Body

application/json
stream_url
string
required

YouTube Live URL to monitor

Example:

"https://www.youtube.com/watch?v=jfKfPfyJRdk"

condition
string
required

Yes/no question to watch for

Example:

"Is there an animated character visible?"

webhook_url
string
required

URL to receive notifications

Example:

"https://webhook.site/YOUR-UNIQUE-ID"

Response

200 - application/json

Job started

job_id
string

Unique job ID

Example:

"a1b2c3d4-e5f6-7890-abcd-ef1234567890"

status
string

Job status

Example:

"running"