Authentication

All API endpoints require an API key for authentication.

Using Your API Key

Header (Recommended)

bash
curl -H "X-API-Key: YOUR_API_KEY" \
  https://stream-api-production-f4f7.up.railway.app/api/channels

Query Parameter

bash
curl "https://stream-api-production-f4f7.up.railway.app/api/channels?api_key=YOUR_API_KEY"

Getting Your API Key

Register at Dashboard to get your API key.

Rate Limits & Quota

Quota applies only to /api/stream/* and /api/vod/* endpoints. Other endpoints are free.

PlanQuotaPriceDuration
Free50$030 days
Basic500$1030 days
Pro5,000$3530 days
Unlimited$9930 days

Error Responses

json
{"error": "Invalid API key"}                    // Wrong or missing API key
{"error": "Quota exceeded", "resets_at": "..."}  // Quota limit reached