Claim an artist
curl --request POST \
--url https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"musixmatch_user_id": "mxm:123456789012345678901",
"partner_user_id": "123456",
"artist": [
{
"spotify_artist_id": "4Z8W4fKeB5YxbusRsdQVPb",
"partner_artist_id": "123456"
}
],
"trustee": "my-distributor"
}
'import requests
url = "https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim"
payload = {
"musixmatch_user_id": "mxm:123456789012345678901",
"partner_user_id": "123456",
"artist": [
{
"spotify_artist_id": "4Z8W4fKeB5YxbusRsdQVPb",
"partner_artist_id": "123456"
}
],
"trustee": "my-distributor"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
musixmatch_user_id: 'mxm:123456789012345678901',
partner_user_id: '123456',
artist: [{spotify_artist_id: '4Z8W4fKeB5YxbusRsdQVPb', partner_artist_id: '123456'}],
trustee: 'my-distributor'
})
};
fetch('https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'musixmatch_user_id' => 'mxm:123456789012345678901',
'partner_user_id' => '123456',
'artist' => [
[
'spotify_artist_id' => '4Z8W4fKeB5YxbusRsdQVPb',
'partner_artist_id' => '123456'
]
],
'trustee' => 'my-distributor'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim"
payload := strings.NewReader("{\n \"musixmatch_user_id\": \"mxm:123456789012345678901\",\n \"partner_user_id\": \"123456\",\n \"artist\": [\n {\n \"spotify_artist_id\": \"4Z8W4fKeB5YxbusRsdQVPb\",\n \"partner_artist_id\": \"123456\"\n }\n ],\n \"trustee\": \"my-distributor\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"musixmatch_user_id\": \"mxm:123456789012345678901\",\n \"partner_user_id\": \"123456\",\n \"artist\": [\n {\n \"spotify_artist_id\": \"4Z8W4fKeB5YxbusRsdQVPb\",\n \"partner_artist_id\": \"123456\"\n }\n ],\n \"trustee\": \"my-distributor\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"musixmatch_user_id\": \"mxm:123456789012345678901\",\n \"partner_user_id\": \"123456\",\n \"artist\": [\n {\n \"spotify_artist_id\": \"4Z8W4fKeB5YxbusRsdQVPb\",\n \"partner_artist_id\": \"123456\"\n }\n ],\n \"trustee\": \"my-distributor\"\n}"
response = http.request(request)
puts response.read_body{
"message": "artist claim submitted",
"data": {
"artist_claim": {
"claim_id_list": [
"clm_abc123",
"clm_def456"
]
}
}
}{
"message": "<string>",
"data": {
"error": {
"code": "<string>",
"namespace": "<string>",
"extraData": "<unknown>"
}
}
}{
"message": "<string>",
"data": {
"error": {
"code": "<string>",
"namespace": "<string>",
"extraData": "<unknown>"
}
}
}{
"message": "<string>",
"data": {
"error": {
"code": "<string>",
"namespace": "<string>",
"extraData": "<unknown>"
}
}
}Artist Claims
Claim an artist
Associates a Musixmatch user with one or more artist identities from an external service. Submit at least one artist identifier per item. Musixmatch returns a list of claim_ids confirming the association. Use GET /distribution/v1/artist/claim/{partner_user_id} to query the status of a claim.
POST
/
distribution
/
v1
/
artist
/
claim
Claim an artist
curl --request POST \
--url https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"musixmatch_user_id": "mxm:123456789012345678901",
"partner_user_id": "123456",
"artist": [
{
"spotify_artist_id": "4Z8W4fKeB5YxbusRsdQVPb",
"partner_artist_id": "123456"
}
],
"trustee": "my-distributor"
}
'import requests
url = "https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim"
payload = {
"musixmatch_user_id": "mxm:123456789012345678901",
"partner_user_id": "123456",
"artist": [
{
"spotify_artist_id": "4Z8W4fKeB5YxbusRsdQVPb",
"partner_artist_id": "123456"
}
],
"trustee": "my-distributor"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
musixmatch_user_id: 'mxm:123456789012345678901',
partner_user_id: '123456',
artist: [{spotify_artist_id: '4Z8W4fKeB5YxbusRsdQVPb', partner_artist_id: '123456'}],
trustee: 'my-distributor'
})
};
fetch('https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'musixmatch_user_id' => 'mxm:123456789012345678901',
'partner_user_id' => '123456',
'artist' => [
[
'spotify_artist_id' => '4Z8W4fKeB5YxbusRsdQVPb',
'partner_artist_id' => '123456'
]
],
'trustee' => 'my-distributor'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim"
payload := strings.NewReader("{\n \"musixmatch_user_id\": \"mxm:123456789012345678901\",\n \"partner_user_id\": \"123456\",\n \"artist\": [\n {\n \"spotify_artist_id\": \"4Z8W4fKeB5YxbusRsdQVPb\",\n \"partner_artist_id\": \"123456\"\n }\n ],\n \"trustee\": \"my-distributor\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"musixmatch_user_id\": \"mxm:123456789012345678901\",\n \"partner_user_id\": \"123456\",\n \"artist\": [\n {\n \"spotify_artist_id\": \"4Z8W4fKeB5YxbusRsdQVPb\",\n \"partner_artist_id\": \"123456\"\n }\n ],\n \"trustee\": \"my-distributor\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://varco-{partner}.musixmatch.com/distribution/v1/artist/claim")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"musixmatch_user_id\": \"mxm:123456789012345678901\",\n \"partner_user_id\": \"123456\",\n \"artist\": [\n {\n \"spotify_artist_id\": \"4Z8W4fKeB5YxbusRsdQVPb\",\n \"partner_artist_id\": \"123456\"\n }\n ],\n \"trustee\": \"my-distributor\"\n}"
response = http.request(request)
puts response.read_body{
"message": "artist claim submitted",
"data": {
"artist_claim": {
"claim_id_list": [
"clm_abc123",
"clm_def456"
]
}
}
}{
"message": "<string>",
"data": {
"error": {
"code": "<string>",
"namespace": "<string>",
"extraData": "<unknown>"
}
}
}{
"message": "<string>",
"data": {
"error": {
"code": "<string>",
"namespace": "<string>",
"extraData": "<unknown>"
}
}
}{
"message": "<string>",
"data": {
"error": {
"code": "<string>",
"namespace": "<string>",
"extraData": "<unknown>"
}
}
}Authorizations
Access token obtained via the Client Credentials OAuth 2.0 flow at https://connect.musixmatch.com/oauth/token
Body
application/json
The Musixmatch user ID obtained via token introspection
List of artist identifiers. At least one identifier per item is required.
Minimum array length:
1Show child attributes
Show child attributes
The trustee identifier representing the submitting partner
The partner's internal user identifier
Was this page helpful?
⌘I