You've been referred — save 30% on your first year. See plans

Developers

Put a SoundToggle player anywhere.

Every player is a URL. Embed it with an iframe, unfurl it with oEmbed, or drop it into any platform that accepts custom HTML — Squarespace, Wix, WordPress, Webflow, Notion.

Player URLs

Each project has a share URL. Add &embed=true for embedding, and optionally &transparent=true for a transparent background.

https://app.soundtoggle.io/Player?id={PLAYER_ID}

Iframe embed

Copy the exact snippet from any player's Share & Embed dialog in the app — it includes the right height for your layout. The general shape:

<iframe
  src="https://app.soundtoggle.io/Player?id={PLAYER_ID}&embed=true&transparent=true"
  width="100%" height="420" frameborder="0"
  style="border:none;color-scheme:light;background:transparent;"
  allowtransparency="true" allow="autoplay">
</iframe>

Heights vary by layout (seven layouts: default, waveform, compact, minimal, social, full-width, video sync) — the app's embed dialog fills in the right one. The Responsive code in that dialog is the same iframe plus a one-line script that auto-sizes the frame by listening for the player's soundtoggle-resize postMessage. If a site strips scripts, the iframe still renders at its fixed height.

A different look per embed

One project can be drawn with a different layout and colors in each embed — a wide waveform player on a homepage, a compact dark one on a portfolio page — without duplicating it. The look travels in the player URL, and the project itself doesn't change.

In the app: open a player's Share & Embed dialog, pick the Responsive or Iframe tab, and switch on Different look for this embed. Choose a layout and colors (or Copy look from another project), then copy the code.

By hand: add any of these parameters to the player URL.

ParameterSetsValues
layoutPlayer layoutdefault, waveform, compact, minimal, social, fullwidth
bgBackgroundSix-digit hex, without the # — e.g. 111827
c1First color: first version's button, play button, played waveform
c2Second color: second version's button
c3Third color: third version's button (three-way players)
textTitle text
text2Secondary text: times, icons, unplayed waveform
https://app.soundtoggle.io/Player?id={PLAYER_ID}&embed=true&layout=compact&bg=111827&c1=3B82F6&text=FFFFFF
  • Leave out transparent=true when you set bg: a transparent embed has no background for the color to show on.
  • The owner's plan decides what applies. Free players can switch between default and minimal; the other layouts and all custom colors need Pro or Studio. Anything the plan doesn't include is ignored.
  • Misspelled or invalid values are ignored one by one; the player falls back to the project's own setting for that item.
  • Fonts, corner style and button labels always come from the project.
  • If you change layout by hand in a plain iframe, set its height to suit: minimal 80, compact 260, full-width 320, default and waveform 420, social 480, playlists 500.

Share pages

Every player also has a share page that serves rich previews (Open Graph cards) when the link is posted to social platforms and chat apps:

https://app.soundtoggle.io/api/functions/share?p={PLAYER_ID}

Public players are indexable; unlisted and private players are served with noindex.

oEmbed

SoundToggle serves standard oEmbed responses, so platforms that support link unfurling can render players from a bare URL:

GET https://app.soundtoggle.io/api/functions/oembed?url={PLAYER_URL}

{ "version": "1.0", "type": "rich", "provider_name": "SoundToggle",
  "title": "…", "html": "<iframe …>", "width": 480, "height": 480 }

Visibility & access

  • Public — embeddable and shareable by anyone; eligible for the Showcase; indexable.
  • Unlisted (default) — the link and embed work anywhere, but the player isn't listed or indexed. On paid plans, an Unlisted player can be locked with an access password that gates both the direct link and any embed.
  • Private — owner-only; embeds won't render for visitors.

Programmatic player creation

An API for creating players programmatically (upload two files → get back a player URL) is in development. If you're building something that should create SoundToggle players — an app, a workflow, an AI agent — we'd like to hear from you: info@soundtoggle.io.

For AI assistants

A machine-readable summary of SoundToggle — current facts, pricing, and capabilities — lives at soundtoggle.io/llms.txt.