Genre stats
curl --request GET \
--url https://api.rewind.rest/v1/watching/stats/genres \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rewind.rest/v1/watching/stats/genres', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rewind.rest/v1/watching/stats/genres"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"name": "Drama",
"count": 280,
"percentage": 36.2
},
{
"name": "Comedy",
"count": 195,
"percentage": 25.2
},
{
"name": "Action",
"count": 142,
"percentage": 18.4
}
]
}{
"error": "Not found",
"status": 404
}Watching
Genre stats
Returns genre breakdown for all watched movies.
GET
/
v1
/
watching
/
stats
/
genres
Genre stats
curl --request GET \
--url https://api.rewind.rest/v1/watching/stats/genres \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.rewind.rest/v1/watching/stats/genres', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rewind.rest/v1/watching/stats/genres"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": [
{
"name": "Drama",
"count": 280,
"percentage": 36.2
},
{
"name": "Comedy",
"count": 195,
"percentage": 25.2
},
{
"name": "Action",
"count": 142,
"percentage": 18.4
}
]
}{
"error": "Not found",
"status": 404
}⌘I