Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Aggregate statistics for the physical media collection by format, resolution, HDR, genre, and decade.
cURL
curl --request GET \ --url https://api.rewind.rest/v1/collecting/media/stats \ --header 'Authorization: Bearer <token>'
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}}; fetch('https://api.rewind.rest/v1/collecting/media/stats', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://api.rewind.rest/v1/collecting/media/stats" headers = {"Authorization": "Bearer <token>"} response = requests.get(url, headers=headers) print(response.text)
{ "total_items": 45, "by_format": { "Blu-ray": 25, "4K UHD": 15, "DVD": 5 }, "by_resolution": { "1080p": 25, "2160p": 15, "480p": 5 }, "by_hdr": { "HDR10": 10, "Dolby Vision": 5, "none": 30 }, "by_genre": { "Action": 15, "Drama": 12, "Science Fiction": 8 }, "by_decade": { "2020s": 10, "2010s": 15, "2000s": 8 }, "added_this_year": 12 }
{ "error": "Not found", "status": 404 }
API key. Read keys (rw_live_...) access GET endpoints. Admin keys (rw_admin_...) access all endpoints.
Media collection statistics