YouTube Music MV Detector
Detection Method
Use YouTube's free oEmbed API (no API key needed):
CODEBLOCK0
Classification Rules
After fetching oEmbed data, check:
🎬 MV (Music Video) - if ANY true:
- 1. Author does NOT contain " - Topic"
- Title contains "(Official Music Video)", "(Music Video)", "MV", "(Official Video)"
🎵 Song (Audio) - if ANY true:
- 1. Author contains " - Topic" (YouTube Topic channels = audio tracks)
- Title is just the song name without video indicators
Examples
| URL | Title | Author | Result |
|---|
| music.youtube.com/watch?v=1rvqA8rMTu8 | Iceage - Star (Official Music Video) | Iceage | 🎬 MV |
| music.youtube.com/watch?v=Mh5Y8vusknE |
Star | Iceage - Topic | 🎵 Song |
| music.youtube.com/watch?v=wtJcLWeY114 | amazarashi...ED | amazarashi Official YouTube Channel | 🎬 MV |
| music.youtube.com/watch?v=HPMwDxi9-e0 | Kisetsu Wa Tsugitsugi Shindeiku | amazarashi - Topic | 🎵 Song |
Workflow
- 1. Extract video ID from YouTube Music URL
- Call oEmbed API: INLINECODE0
- Parse
title and author_name from JSON response - Apply classification rules above
- Return result with title and classification
Notes
- - YouTube Music URLs may include extra params like
&list=... or &si=... - strip these before calling oEmbed - oEmbed is free and doesn't require authentication
- This works for both regular YouTube and YouTube Music links
YouTube Music MV 检测器
检测方法
使用 YouTube 免费的 oEmbed API(无需 API 密钥):
https://www.youtube.com/oembed?url={youtubemusicurl}&format=json
分类规则
获取 oEmbed 数据后,检查以下条件:
🎬 MV(音乐视频)- 满足任一条件即为真:
- 1. 作者名称不包含 - Topic
- 标题包含(Official Music Video)、(Music Video)、MV、(Official Video)
🎵 歌曲(音频)- 满足任一条件即为真:
- 1. 作者名称包含 - Topic(YouTube Topic 频道 = 音频轨道)
- 标题仅为歌曲名称,不含视频标识
示例
| URL | 标题 | 作者 | 结果 |
|---|
| music.youtube.com/watch?v=1rvqA8rMTu8 | Iceage - Star (Official Music Video) | Iceage | 🎬 MV |
| music.youtube.com/watch?v=Mh5Y8vusknE |
Star | Iceage - Topic | 🎵 歌曲 |
| music.youtube.com/watch?v=wtJcLWeY114 | amazarashi...ED | amazarashi Official YouTube Channel | 🎬 MV |
| music.youtube.com/watch?v=HPMwDxi9-e0 | Kisetsu Wa Tsugitsugi Shindeiku | amazarashi - Topic | 🎵 歌曲 |
工作流程
- 1. 从 YouTube Music URL 中提取视频 ID
- 调用 oEmbed API:https://www.youtube.com/oembed?url=...&format=json
- 从 JSON 响应中解析 title 和 author_name
- 应用上述分类规则
- 返回结果,包含标题和分类
注意事项
- - YouTube Music URL 可能包含额外参数,如 &list=... 或 &si=... - 调用 oEmbed 前需去除这些参数
- oEmbed 是免费的,无需身份验证
- 此方法适用于常规 YouTube 和 YouTube Music 链接