Skip to content

Instantly share code, notes, and snippets.

@antiops
Last active March 11, 2023 04:03
Show Gist options
  • Save antiops/355e3e7cf2f5c4a8d89befb0c8ad714c to your computer and use it in GitHub Desktop.
Save antiops/355e3e7cf2f5c4a8d89befb0c8ad714c to your computer and use it in GitHub Desktop.
Jellyfin API Notes
HOST="localhost:8096"
API_KEY=""

Running tasks

http://$HOST/ScheduledTasks

Check if any users are active

curl "http://$HOST/Sessions?ActiveWithinSeconds=960&api_key=API_KEY" | jq '.[] | select(.IsActive | contains(true))'

curl "http://$HOST/Sessions?ActiveWithinSeconds=960&api_key=API_KEY" | jq '.[] | select(.IsActive | test(true; "i"))'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment