如何通过SoundCloud分享URL获取Track ID?
Hey there, embedding SoundCloud tracks is super straightforward—here are the two main ways to do it depending on your platform:
嵌入SoundCloud内容的两种方法
1. WordPress可视化编辑器快速嵌入
This is the easiest route if you're using WordPress:
- Grab the SoundCloud share URL for your track (example:
https://soundcloud.com/alo-wala/the-coconut-song) - Open your WordPress visual editor, paste the URL directly into the content area (no extra formatting needed)
- The editor will automatically parse the URL and generate the embedded SoundCloud player iframe for you—done!
2. Manual iframe embed (works for any website)
If you need full control over the player's size, permissions, or want to embed on a non-WordPress site, use the official iframe code. Here's an example:
<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/[YOUR_TRACK_ID]&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true"></iframe>
- Replace
[YOUR_TRACK_ID]with the encoded share URL of your track (or the direct API track URL) - Tweak parameters like
width,height,allow, and thesrcquery string to customize the player's look and behavior (e.g., enable autoplay, hide comments, change accent color)
内容的提问来源于stack exchange,提问作者Kushal Jayswal
相关产品推荐
相关产品推荐

