Use YouTube's free oEmbed API (no API key needed):
https://www.youtube.com/oembed?url={youtube_music_url}&format=json
After fetching oEmbed data, check:
| 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 |
https://www.youtube.com/oembed?url=...&format=jsontitle and author_name from JSON response&list=... or &si=... - strip these before calling oEmbed共 1 个版本