Videos API
Resolve, inspect, list, and delete videos through the v1 API.
Resolve a public source
POST /api/v1/embed is anonymous and rate limited. POST /api/v1/videos accepts optional authentication so the resulting video belongs to an account.
curl -X POST https://play.earnloop.online/api/v1/videos \
-H "X-API-Key: baplay_REDACTED" \
-H "Content-Type: application/json" \
-d '{"url":"https://cdn.example/video.mp4"}'
VideoObject fields
| Field | Purpose |
|---|---|
| id / status | Stable public ID and resolution state. |
| provider / type | Detected adapter and MP4, WebM, HLS, DASH, or live type. |
| sources | Reduced playable source objects; sensitive upstream URLs stay protected when proxied. |
| embed | Player, iframe, stream, and API links. |
Read and delete
GET /api/v1/videos/{id}
GET /api/v1/videos/{id}/status
GET /api/v1/videos/{id}/sources
DELETE /api/v1/videos/{id}
Public read routes return only publicly visible records. Listing, deletion, subtitle writes, and analytics reports require owner authentication and permission checks. The complete machine contract is available as OpenAPI 3.1 YAML.