
- 在专辑/歌单内摁下
Ctrl+U会自动查询歌曲的首次播放时间,播放次数,总播放时长
const xhr = new XMLHttpRequest();
xhr.open("GET", `https://interface3.music.163.com/api/content/activity/music/first/listen/info?songId=${songId}`);
xhr.onreadystatechange = function () {
if (xhr.readyState === 4) {
if (xhr.status === 200) {
try {
const response = JSON.parse(xhr.responseText);
onfinish(response);
} catch (e) {
console.error("Failed to parse response:", e);
}
} else {
console.error("Request failed with status:", xhr.status);
}
}
}
xhr.send();