–
SV EN
audio.icejockey.app

IceJockey Audio API

Docs + playground for library, top stats and playback logging.
Base URL: https://audio.icejockey.app

Authentication (X-API-Key)

External integrators need an API key for top stats and play logging. Your own pages on audio.icejockey.app can keep working without a key (same-site via Origin/Referer).
API key required:
• GET /api/stats_top.php
• POST /api/track_play.php
Public:
• GET /library.json
• GET /api/health.php
X-API-Key X-API-Key: DIN_NYCKEL

Quick test (Playground)


Fetching top list from stats_top.php

Posting a test log to track_play.php
Response
{}

Examples (curl)

With API key
# top week (requires key)
curl -s "https://audio.icejockey.app/api/stats_top.php?range=week&limit=10&client_id=arena_1" \
  -H "X-API-Key: DIN_NYCKEL"

# log play (requires key)
curl -s -X POST https://audio.icejockey.app/api/track_play.php \
  -H "X-API-Key: DIN_NYCKEL" \
  -F "track_id=goal_horn_1" \
  -F "client_id=arena_1" \
  -F "event_key=web" \
  -F "played_ms=5000"
Without API key (public)
# library (public)
curl -s https://audio.icejockey.app/library.json

# health (public)
curl -s https://audio.icejockey.app/api/health.php

Rate limiting (recommendation)

If you open the API publicly: consider e.g. 60–120 req/min per key and ask integrators to dedupe logging (cooldown per track).
Tip: log only if played at least 5s and at most once/min per track per client.