Artists

Get all artists

Type: GET
Route: /artists
1
2

Response 200

{
	"message": "Successfully retrieved all artists.",
	"artists": [
		{
			"id": 1,
			"image": null,
			"name": "Aiobahn",
			"nameRomaji": null,
			"releaseCount": 1,
			"slug": "Aiobahn",
			"songCount": 9
		},
		...
	]
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

Possible errors

# Code 403
{ "message": "Not authorized." }
1
2

Get a specific artist

Type: GET
Route: /artists/{id}
1
2

URI Parameters

Name: id
Type: String
Required: True
1
2
3

Response 200

{
	"message": "Successfully retrieved artist.",
	"artist": {
		"albums": [
			{
				"artistAlbum": {
					"artistId": 1,
					"albumId": 1
				},
				"id": 1,
				"image": "Märchen-EP_cover.jpg",
				"name": "Märchen EP",
				"nameRomaji": null,
				"releaseDate": "1970-01-01T00:00:00.000Z",
				"type": 1
			},
			...
		],
		"id": 1,
		"image": null,
		"lastPlayed": "1970-01-01T00:00:00.000Z",
		"name": "Aiobahn",
		"nameRomaji": null,
		"played": 15,
		"slug": "Aiobahn",
		"songs": [
			{
				"albums": [
					{
						"albumId": 1,
						"songId": 1,
						"trackNumber": 1
					},
					...
				],
				"artistSong": {
					"artistId": 1,
					"songId": 1
				},
				"artists": [
					{
						"artistSong": {
							"artistId": 1,
							"songId": 1
						},
						"id": 1,
						"name": "Aiobahn",
						"nameRomaji": null
					},
					...
				],
				"duration": 176,
				"id": 1,
				"lastPlayed": "1970-01-01T00:00:00.000Z",
				"played": 1,
				"snippet": "1-1. ヘンゼルとグレーテルの森_snippet.mp3",
				"title": "ヘンゼルとグレーテルの森",
				"titleRomaji": null,
				"uploader": {
					"uuid": "345c45aa-5h76-9zh4-6tr7-6tkl52rn5783",
					"username": "testuser",
					"displayName": "TestUser"
				}
			},
			...
		]
	}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68

Possible errors

# Code 400
{ "message": "No params provided." }
{ "message": "Invalid params provided." }

# Code 403
{ "message": "Not authorized." }

# Code 404
{ "message": "No artist found." }
1
2
3
4
5
6
7
8
9
Last Updated: 6/22/2018, 1:55:36 AM