work.validity.post
curl --request POST \
--url 'https://api.musixmatch.com/ws/1.1/work.validity.post?apikey=' \
--header 'Content-Type: application/json' \
--data '
"{\n \"data\": {\n \"identifier\": \"00001100196005\", // Your Musical Work’s unique identifier used in the work ingestion phase\n \"validity_end\": \"2024-01-01\" // End of deal, in YYYY-MM-DD format.\n }\n}"
'import requests
url = "https://api.musixmatch.com/ws/1.1/work.validity.post?apikey="
payload = "{
\"data\": {
\"identifier\": \"00001100196005\", // Your Musical Work’s unique identifier used in the work ingestion phase
\"validity_end\": \"2024-01-01\" // End of deal, in YYYY-MM-DD format.
}
}"
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify('{\n "data": {\n "identifier": "00001100196005", // Your Musical Work’s unique identifier used in the work ingestion phase\n "validity_end": "2024-01-01" // End of deal, in YYYY-MM-DD format.\n }\n}')
};
fetch('https://api.musixmatch.com/ws/1.1/work.validity.post?apikey=', 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://api.musixmatch.com/ws/1.1/work.validity.post?apikey=",
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('{
"data": {
"identifier": "00001100196005", // Your Musical Work’s unique identifier used in the work ingestion phase
"validity_end": "2024-01-01" // End of deal, in YYYY-MM-DD format.
}
}'),
CURLOPT_HTTPHEADER => [
"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://api.musixmatch.com/ws/1.1/work.validity.post?apikey="
payload := strings.NewReader("\"{\\n \\\"data\\\": {\\n \\\"identifier\\\": \\\"00001100196005\\\", // Your Musical Work’s unique identifier used in the work ingestion phase\\n \\\"validity_end\\\": \\\"2024-01-01\\\" // End of deal, in YYYY-MM-DD format.\\n }\\n}\"")
req, _ := http.NewRequest("POST", url, payload)
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://api.musixmatch.com/ws/1.1/work.validity.post?apikey=")
.header("Content-Type", "application/json")
.body("\"{\\n \\\"data\\\": {\\n \\\"identifier\\\": \\\"00001100196005\\\", // Your Musical Work’s unique identifier used in the work ingestion phase\\n \\\"validity_end\\\": \\\"2024-01-01\\\" // End of deal, in YYYY-MM-DD format.\\n }\\n}\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/work.validity.post?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "\"{\\n \\\"data\\\": {\\n \\\"identifier\\\": \\\"00001100196005\\\", // Your Musical Work’s unique identifier used in the work ingestion phase\\n \\\"validity_end\\\": \\\"2024-01-01\\\" // End of deal, in YYYY-MM-DD format.\\n }\\n}\""
response = http.request(request)
puts response.read_body{
"message": {
"body": "work updated",
"header": {
"execute_time": 0.41507601737976,
"status_code": 200
}
}
}CATALOG FEED
work.validity.post
Submit validity dates for a musical work.
POST
/
ws
/
1.1
/
work.validity.post
work.validity.post
curl --request POST \
--url 'https://api.musixmatch.com/ws/1.1/work.validity.post?apikey=' \
--header 'Content-Type: application/json' \
--data '
"{\n \"data\": {\n \"identifier\": \"00001100196005\", // Your Musical Work’s unique identifier used in the work ingestion phase\n \"validity_end\": \"2024-01-01\" // End of deal, in YYYY-MM-DD format.\n }\n}"
'import requests
url = "https://api.musixmatch.com/ws/1.1/work.validity.post?apikey="
payload = "{
\"data\": {
\"identifier\": \"00001100196005\", // Your Musical Work’s unique identifier used in the work ingestion phase
\"validity_end\": \"2024-01-01\" // End of deal, in YYYY-MM-DD format.
}
}"
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify('{\n "data": {\n "identifier": "00001100196005", // Your Musical Work’s unique identifier used in the work ingestion phase\n "validity_end": "2024-01-01" // End of deal, in YYYY-MM-DD format.\n }\n}')
};
fetch('https://api.musixmatch.com/ws/1.1/work.validity.post?apikey=', 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://api.musixmatch.com/ws/1.1/work.validity.post?apikey=",
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('{
"data": {
"identifier": "00001100196005", // Your Musical Work’s unique identifier used in the work ingestion phase
"validity_end": "2024-01-01" // End of deal, in YYYY-MM-DD format.
}
}'),
CURLOPT_HTTPHEADER => [
"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://api.musixmatch.com/ws/1.1/work.validity.post?apikey="
payload := strings.NewReader("\"{\\n \\\"data\\\": {\\n \\\"identifier\\\": \\\"00001100196005\\\", // Your Musical Work’s unique identifier used in the work ingestion phase\\n \\\"validity_end\\\": \\\"2024-01-01\\\" // End of deal, in YYYY-MM-DD format.\\n }\\n}\"")
req, _ := http.NewRequest("POST", url, payload)
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://api.musixmatch.com/ws/1.1/work.validity.post?apikey=")
.header("Content-Type", "application/json")
.body("\"{\\n \\\"data\\\": {\\n \\\"identifier\\\": \\\"00001100196005\\\", // Your Musical Work’s unique identifier used in the work ingestion phase\\n \\\"validity_end\\\": \\\"2024-01-01\\\" // End of deal, in YYYY-MM-DD format.\\n }\\n}\"")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.musixmatch.com/ws/1.1/work.validity.post?apikey=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "\"{\\n \\\"data\\\": {\\n \\\"identifier\\\": \\\"00001100196005\\\", // Your Musical Work’s unique identifier used in the work ingestion phase\\n \\\"validity_end\\\": \\\"2024-01-01\\\" // End of deal, in YYYY-MM-DD format.\\n }\\n}\""
response = http.request(request)
puts response.read_body{
"message": {
"body": "work updated",
"header": {
"execute_time": 0.41507601737976,
"status_code": 200
}
}
}
Use this api to submit validity end for a work.
You have to submit a payload with your unique work identifier used in the work ingestion phase, together with the validity end.
Please note that you are responsible for transmitting only trustworthy and verified data.
Was this page helpful?
⌘I