Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LB-1563: add API endpoints to retrieve total listen and listener count (
#2865) * LB-1563: add API endpoints to retrieve total listen and listener count We calculate total listen count and total count of unique listeners of recordings, artists, releases and release groups using both ListenBrainz and MLHD+ data. This information is displayed on the relevant entity pages. Add API endpoints to retrieve the data independently as well. * fix docstrings
- Loading branch information
Showing
7 changed files
with
220 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,6 +74,7 @@ Reference | |
playlist | ||
recordings | ||
statistics | ||
popularity | ||
metadata | ||
social | ||
recommendation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _popularity-api: | ||
|
||
Popularity | ||
========== | ||
|
||
The popularity APIs return the total listen and listeners count for various entities and also a way to query top entities | ||
for a given artist. | ||
|
||
.. autoflask:: listenbrainz.webserver:create_app_rtfd() | ||
:blueprints: popularity_api_v1 | ||
:include-empty-docstring: | ||
:undoc-static: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters