28 lines
669 B
Markdown
28 lines
669 B
Markdown
|
# MusicBrainz API
|
||
|
Available at ```http://musicbrainz.org/ws/2```
|
||
|
|
||
|
## Most useful queries
|
||
|
* artist by name
|
||
|
```
|
||
|
/artist/?query=artist:$artist_name&inc=releases
|
||
|
```
|
||
|
* albums of artist
|
||
|
```
|
||
|
/artist/$artist_id?inc=releases
|
||
|
```
|
||
|
* songs of album
|
||
|
```
|
||
|
/release/$album_id?inc=recordings
|
||
|
```
|
||
|
* song by name, album and artist
|
||
|
```
|
||
|
/recording?query="$song_name" AND artist:"$artist_name" AND release:"$release_name"
|
||
|
```
|
||
|
|
||
|
## Misc
|
||
|
* enable JSON response: ```&fmt=json```
|
||
|
|
||
|
## See also
|
||
|
* [Web Service](https://wiki.musicbrainz.org/Development/JSON_Web_Service)
|
||
|
* [Web Service/Search](https://wiki.musicbrainz.org/Development/XML_Web_Service/Version_2/Search)
|