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/channelsQuery 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.
| Plan | Quota | Price | Duration |
|---|---|---|---|
| Free | 50 | $0 | 30 days |
| Basic | 500 | $10 | 30 days |
| Pro | 5,000 | $35 | 30 days |
| Unlimited | ∞ | $99 | 30 days |
Error Responses
json
{"error": "Invalid API key"} // Wrong or missing API key
{"error": "Quota exceeded", "resets_at": "..."} // Quota limit reached