You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+32-1Lines changed: 32 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,8 @@ The following projects can gather the stats:
10
10
You can also make your own project that will do that. See the format specification below.
11
11
12
12
## Data format
13
-
This is an example stat file:
13
+
### Unprocessed stats JSON (the stats file)
14
+
Ungroupped unprocessed stats. Made to be human readable and for quick modification.
14
15
15
16
```json
16
17
{
@@ -24,3 +25,33 @@ This is an example stat file:
24
25
]
25
26
}
26
27
```
28
+
29
+
-`formatVersion`: (number) Numeric version of the file structure. Made for distinguishing the versions and converting them in case the format changes in future.
30
+
-`songs`: (SongData[]) An array of songs
31
+
> SongData
32
+
> -`title`: (string) Title of the song
33
+
> -`artist`: (string) Name of the artist
34
+
> -`totalPlays`: (number) Total number of plays
35
+
36
+
### Processed stats JSON (encoded in URL as Base64)
37
+
Processed, almost ready to display stats. Meant to take less space when more data is present.
38
+
Artists and songs that don't qualify for display are not included.
39
+
40
+
-`artists`: (ArtistData[]) Array of artists
41
+
> ArtistData
42
+
> -`name`: (string) Name of the artist
43
+
> -`totalPlays`: (number) Number
44
+
--`songs`: (StrippedSongData[]) Array of songs
45
+
> StrippedSongData
46
+
> -`title`: (string) Title of the song
47
+
> -`artist`: (number) Index of the song's artist
48
+
> -`totalPlays`: (number) Total amount of plays
49
+
-`songCount`: (number) Total number of songs a user has listened to
50
+
-`artistCount`: (number) Total number of artists a user has listened to
0 commit comments