File size: 25,862 Bytes
d17ec2c |
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 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Meting API - Elegant Music Service</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body {
font-family: 'Poppins', sans-serif;
background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
min-height: 100vh;
}
.card {
transition: all 0.3s ease;
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
border-radius: 12px;
overflow: hidden;
background: rgba(255,255,255,0.9);
backdrop-filter: blur(10px);
}
.card:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.music-player {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
color: white;
}
.api-endpoint {
position: relative;
overflow: hidden;
}
.api-endpoint::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 4px;
height: 100%;
background: linear-gradient(to bottom, #667eea, #764ba2);
}
.btn-primary {
background: linear-gradient(to right, #667eea, #764ba2);
transition: all 0.3s ease;
}
.btn-primary:hover {
transform: translateY(-2px);
box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.animate-pulse-slow {
animation: pulse 3s infinite;
}
@keyframes pulse {
0%, 100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
.wave {
position: relative;
}
.wave::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 100px;
background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23667eea"/><path d="M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z" opacity=".5" fill="%23667eea"/><path d="M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,233.58-19.2,13.27,4.81,22.45,14.91,28.75,23.68,9.23,13.21,12.15,28.66,6.51,44.69C1209.49,86.99,1159,93.2,1200,103.89V0Z" fill="%23667eea"/></svg>');
background-size: cover;
z-index: -1;
}
.music-visualizer {
display: flex;
align-items: flex-end;
height: 40px;
gap: 3px;
}
.music-bar {
width: 4px;
background: white;
border-radius: 2px;
animation: equalize 1.5s infinite ease-in-out;
}
@keyframes equalize {
0%, 100% {
height: 5px;
}
50% {
height: 20px;
}
}
.music-bar:nth-child(1) { animation-delay: -0.9s; }
.music-bar:nth-child(2) { animation-delay: -1.2s; }
.music-bar:nth-child(3) { animation-delay: -0.6s; }
.music-bar:nth-child(4) { animation-delay: -0.3s; }
.music-bar:nth-child(5) { animation-delay: -0.1s; }
.music-bar:nth-child(6) { animation-delay: -0.7s; }
.music-bar:nth-child(7) { animation-delay: -0.5s; }
.music-bar:nth-child(8) { animation-delay: -0.2s; }
</style>
</head>
<body class="text-gray-800">
<div class="wave">
<div class="container mx-auto px-4 py-12">
<!-- Header -->
<header class="flex flex-col items-center mb-12">
<div class="flex items-center justify-center mb-4">
<div class="music-visualizer mr-4">
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
<div class="music-bar w-1 h-5"></div>
</div>
<h1 class="text-4xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-indigo-500 to-purple-600">
Meting API
</h1>
</div>
<p class="text-xl text-center text-gray-600 max-w-2xl">
强大而优雅的音乐服务接口,支持多平台无缝集成
</p>
</header>
<!-- Platforms Section -->
<section class="mb-16">
<h2 class="text-2xl font-semibold mb-6 flex items-center">
<i class="fas fa-plug mr-3 text-indigo-500"></i> 支持平台
</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6">
<!-- Netease Card -->
<div class="card p-6 flex flex-col items-center">
<div class="w-16 h-16 bg-red-100 rounded-full flex items-center justify-center mb-4">
<i class="fab fa-napster text-3xl text-red-500"></i>
</div>
<h3 class="text-xl font-semibold mb-2">网易云音乐</h3>
<p class="text-gray-600 text-center mb-4">中国领先的音乐平台</p>
<span class="px-3 py-1 bg-red-100 text-red-600 rounded-full text-sm">netease</span>
</div>
<!-- QQ Music Card -->
<div class="card p-6 flex flex-col items-center">
<div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-music text-3xl text-green-500"></i>
</div>
<h3 class="text-xl font-semibold mb-2">QQ音乐</h3>
<p class="text-gray-600 text-center mb-4">腾讯旗下音乐服务</p>
<span class="px-3 py-1 bg-green-100 text-green-600 rounded-full text-sm">tencent</span>
</div>
<!-- Kugou Card -->
<div class="card p-6 flex flex-col items-center">
<div class="w-16 h-16 bg-blue-100 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-headphones text-3xl text-blue-500"></i>
</div>
<h3 class="text-xl font-semibold mb-2">酷狗音乐</h3>
<p class="text-gray-600 text-center mb-4">高品质音乐平台</p>
<span class="px-3 py-1 bg-blue-100 text-blue-600 rounded-full text-sm">kugou</span>
</div>
<!-- Kuwo Card -->
<div class="card p-6 flex flex-col items-center">
<div class="w-16 h-16 bg-purple-100 rounded-full flex items-center justify-center mb-4">
<i class="fas fa-compact-disc text-3xl text-purple-500"></i>
</div>
<h3 class="text-xl font-semibold mb-2">酷我音乐</h3>
<p class="text-gray-600 text-center mb-4">海量正版音乐</p>
<span class="px-3 py-1 bg-purple-100 text-purple-600 rounded-full text-sm">kuwo</span>
</div>
</div>
</section>
<!-- API Demo Section -->
<section class="mb-16">
<h2 class="text-2xl font-semibold mb-6 flex items-center">
<i class="fas fa-code mr-3 text-indigo-500"></i> API 接口
</h2>
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
<!-- Parameters Card -->
<div class="card p-6">
<h3 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-sliders-h mr-2 text-indigo-500"></i> 接口参数
</h3>
<div class="space-y-4">
<div>
<h4 class="font-medium text-gray-700 mb-1">数据源 (server)</h4>
<div class="flex flex-wrap gap-2">
<span class="px-2 py-1 bg-red-100 text-red-600 rounded text-xs">netease</span>
<span class="px-2 py-1 bg-green-100 text-green-600 rounded text-xs">tencent</span>
<span class="px-2 py-1 bg-blue-100 text-blue-600 rounded text-xs">kugou</span>
<span class="px-2 py-1 bg-purple-100 text-purple-600 rounded text-xs">kuwo</span>
</div>
<p class="text-gray-500 text-sm mt-1">默认: netease</p>
</div>
<div>
<h4 class="font-medium text-gray-700 mb-1">类型 (type)</h4>
<div class="flex flex-wrap gap-2">
<span class="px-2 py-1 bg-gray-100 text-gray-600 rounded text-xs">name</span>
<span class="px-2 py-1 bg-gray-100 text-gray-600 rounded text-xs">artist</span>
<span class="px-2 py-1 bg-indigo-100 text-indigo-600 rounded text-xs">url</span>
<span class="px-2 py-1 bg-indigo-100 text-indigo-600 rounded text-xs">pic</span>
<span class="px-2 py-1 bg-indigo-100 text-indigo-600 rounded text-xs">lrc</span>
<span class="px-2 py-1 bg-gray-100 text-gray-600 rounded text-xs">song</span>
<span class="px-2 py-1 bg-gray-100 text-gray-600 rounded text-xs">playlist</span>
</div>
<p class="text-gray-500 text-sm mt-1">红色标注需要鉴权</p>
</div>
</div>
</div>
<!-- Examples Card -->
<div class="card p-6">
<h3 class="text-xl font-semibold mb-4 flex items-center">
<i class="fas fa-laptop-code mr-2 text-indigo-500"></i> 接口示例
</h3>
<div class="space-y-4">
<div class="api-endpoint bg-gray-50 p-4 rounded">
<h4 class="font-medium text-gray-700 mb-1 flex items-center">
<i class="fas fa-link mr-2 text-sm text-indigo-500"></i> GET 获取音乐URL (需要鉴权)
</h4>
<div class="text-sm bg-gray-800 text-gray-200 p-3 rounded overflow-x-auto">
https://api.ixingchen.org.cn/unms/u/?type=url&id=416892104&auth=2decad9d48290bd57cfa2f3b77dec5d139817a512c79e3269913039eaecb6d69|1746462897|2cd1d4182535f7943b7ea238f6b21bf4
</div>
<p class="text-gray-500 text-xs mt-1">注意: auth参数包含签名、时间戳和随机数,有效期为300秒</p>
</div>
<div class="api-endpoint bg-gray-50 p-4 rounded">
<h4 class="font-medium text-gray-700 mb-1 flex items-center">
<i class="fas fa-info-circle mr-2 text-sm text-indigo-500"></i> GET 获取歌曲信息
</h4>
<div class="text-sm bg-gray-800 text-gray-200 p-3 rounded overflow-x-auto">
https://api.ixingchen.org.cn/unms/u/?type=song&id=591321
</div>
<p class="text-gray-500 text-xs mt-1">提示: 返回的URL、封面和歌词链接已包含鉴权参数</p>
</div>
</div>
</div>
</div>
</section>
<!-- Authentication Section -->
<section class="mb-16">
<h2 class="text-2xl font-semibold mb-6 flex items-center">
<i class="fas fa-lock mr-3 text-indigo-500"></i> 鉴权说明
</h2>
<div class="card p-6">
<div class="flex flex-col md:flex-row gap-6">
<div class="flex-1">
<h3 class="text-lg font-semibold mb-3 text-indigo-600">需要鉴权的API</h3>
<ul class="space-y-2">
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span>获取音乐URL (type=url)</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span>获取封面图片 (type=pic)</span>
</li>
<li class="flex items-start">
<i class="fas fa-check-circle text-green-500 mt-1 mr-2"></i>
<span>获取歌词 (type=lrc)</span>
</li>
</ul>
</div>
<div class="flex-1">
<h3 class="text-lg font-semibold mb-3 text-indigo-600">鉴权参数格式</h3>
<div class="bg-gray-800 text-gray-200 p-4 rounded">
<code>auth=签名|时间戳|随机数</code>
</div>
<p class="text-gray-600 mt-3 text-sm">
签名由服务器使用HMAC-SHA256算法生成,包含时间戳和随机数以防止重放攻击。
</p>
</div>
</div>
</div>
</section>
<!-- Music Player Demo -->
<section class="mb-16">
<h2 class="text-2xl font-semibold mb-6 flex items-center">
<i class="fas fa-play-circle mr-3 text-indigo-500"></i> 音乐播放演示
</h2>
<div class="card music-player p-0 overflow-hidden">
<div class="flex flex-col md:flex-row">
<div class="md:w-1/3 p-6 flex flex-col items-center justify-center">
<div class="w-40 h-40 bg-white bg-opacity-20 rounded-full flex items-center justify-center mb-6 animate-pulse-slow">
<img src="https://p2.music.126.net/4HGEnXVexEfBACKi2Q2XGg==/109951165136101673.jpg" alt="Album Cover" class="w-32 h-32 rounded-full object-cover shadow-lg">
</div>
<h3 class="text-xl font-bold text-white">夜曲</h3>
<p class="text-white text-opacity-80">周杰伦</p>
</div>
<div class="md:w-2/3 p-6 bg-white bg-opacity-10">
<div class="flex items-center justify-between mb-6">
<div class="flex items-center">
<button class="w-10 h-10 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white mr-4 hover:bg-opacity-30 transition">
<i class="fas fa-step-backward"></i>
</button>
<button class="w-12 h-12 rounded-full bg-white flex items-center justify-center text-indigo-600 shadow-lg hover:scale-105 transition transform">
<i class="fas fa-play"></i>
</button>
<button class="w-10 h-10 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white ml-4 hover:bg-opacity-30 transition">
<i class="fas fa-step-forward"></i>
</button>
</div>
<div class="flex items-center">
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white mr-2 hover:bg-opacity-30 transition">
<i class="fas fa-random"></i>
</button>
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white hover:bg-opacity-30 transition">
<i class="fas fa-redo"></i>
</button>
</div>
</div>
<div class="mb-4">
<div class="h-1 bg-white bg-opacity-20 rounded-full mb-1">
<div class="h-1 bg-white rounded-full w-1/3"></div>
</div>
<div class="flex justify-between text-white text-opacity-80 text-sm">
<span>1:23</span>
<span>4:12</span>
</div>
</div>
<div class="flex items-center justify-between">
<div class="flex items-center">
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white mr-2 hover:bg-opacity-30 transition">
<i class="fas fa-volume-up"></i>
</button>
<div class="w-20 h-1 bg-white bg-opacity-20 rounded-full">
<div class="h-1 bg-white rounded-full w-3/4"></div>
</div>
</div>
<div class="flex items-center">
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white mr-2 hover:bg-opacity-30 transition">
<i class="fas fa-microphone"></i>
</button>
<button class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center text-white hover:bg-opacity-30 transition">
<i class="fas fa-list-ul"></i>
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Call to Action -->
<section class="text-center">
<h2 class="text-2xl font-semibold mb-4">开始使用 Meting API</h2>
<p class="text-gray-600 mb-8 max-w-2xl mx-auto">
此API基于 Meting 构建,提供强大而优雅的音乐服务接口,支持多平台无缝集成
</p>
<div class="flex justify-center space-x-4">
<a href="https://github.com/metowolf/Meting" class="btn-primary px-6 py-3 rounded-full text-white font-medium inline-flex items-center">
<i class="fab fa-github mr-2"></i> GitHub 项目
</a>
<a href="#" class="px-6 py-3 rounded-full border border-indigo-500 text-indigo-500 font-medium hover:bg-indigo-50 transition inline-flex items-center">
<i class="fas fa-book mr-2"></i> 文档指南
</a>
</div>
</section>
</div>
</div>
<footer class="bg-gray-900 text-gray-400 py-8">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="mb-4 md:mb-0">
<div class="flex items-center">
<div class="music-visualizer mr-3">
<div class="music-bar w-1 h-3"></div>
<div class="music-bar w-1 h-3"></div>
<div class="music-bar w-1 h-3"></div>
</div>
<span class="text-white font-medium">Meting API</span>
</div>
<p class="text-sm mt-2">强大而优雅的音乐服务接口</p>
</div>
<div class="flex space-x-6">
<a href="#" class="hover:text-white transition">
<i class="fab fa-github text-lg"></i>
</a>
<a href="#" class="hover:text-white transition">
<i class="fab fa-twitter text-lg"></i>
</a>
<a href="#" class="hover:text-white transition">
<i class="fab fa-discord text-lg"></i>
</a>
<a href="#" class="hover:text-white transition">
<i class="fas fa-envelope text-lg"></i>
</a>
</div>
</div>
<div class="border-t border-gray-800 mt-8 pt-8 text-sm text-center">
<p>© 2023 Meting API. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Simple animation for music bars
document.addEventListener('DOMContentLoaded', function() {
const bars = document.querySelectorAll('.music-bar');
function animateBars() {
bars.forEach(bar => {
const randomHeight = Math.floor(Math.random() * 20) + 5;
bar.style.height = `${randomHeight}px`;
});
setTimeout(animateBars, 300);
}
animateBars();
// Play button interaction
const playButton = document.querySelector('.music-player .fa-play').parentElement;
playButton.addEventListener('click', function() {
const icon = this.querySelector('i');
if(icon.classList.contains('fa-play')) {
icon.classList.remove('fa-play');
icon.classList.add('fa-pause');
} else {
icon.classList.remove('fa-pause');
icon.classList.add('fa-play');
}
});
});
</script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=ixingchen/unmsapi" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |