{"endpoints":{"episodes":{"method":"GET","note":"Lists episodes for one season.","path":"/api/tv/<id>/season/<season>"},"qualities":{"method":"GET","note":"Lists HLS renditions for a resolved playback session. A sid belongs to one server; resolve with ?server=<name> for another server's qualities.","path":"/api/qualities/<sid>"},"redirect":{"method":"GET","note":"Returns a 302 redirect to the resolved upstream media URL.","path":"/redirect/<sid>/<rid>"},"resolve":{"body":{"episode":1,"kind":"movie or tv","season":1,"server":"auto","url":"Cinejoy URL or TMDB ID"},"method":"POST","note":"Returns sid/rid source URLs used by restream and redirect.","path":"/api/resolve"},"resolve_get":{"example":"/api/resolve/movie/10331","method":"GET","note":"Returns sid, each source's rid and ready restream/redirect/qualities URLs. Optional ?server=<name>.","path":"/api/resolve/movie/<id> or /api/resolve/tv/<id>/<season>/<episode>"},"restream":{"method":"GET","note":"Relays the HLS playlist and media from the resolved source.","path":"/restream/<sid>/<rid>"},"search":{"example":"/search/title/Night%20of%20the%20Living%20Dead","method":"GET","path":"/search/title/<title>"},"seasons":{"method":"GET","note":"Lists seasons and episode counts for a series.","path":"/api/tv/<id>/seasons"},"servers":{"method":"GET","note":"Server names for ?server=.","path":"/api/servers"}}}
