Embed a live counter
Put a live SnapCount total on a web page with oEmbed, or on a stream as a transparent OBS overlay.
Updated
On this page
oEmbed
Open a live session, choose Share, then Embed on a website to copy its embed URL. It looks like https://snapcount.app/embed/SESSION_ID. Sites and tools that speak oEmbed can turn that URL into a live counter.
GEThttps://snapcount.app/api/oembed
| Parameter | Required | Meaning |
|---|---|---|
url | Yes | The embed URL. |
maxwidth | No | Maximum iframe width in pixels, capped at 300. |
maxheight | No | Maximum iframe height in pixels, capped at 200. |
curl -G https://snapcount.app/api/oembed \
--data-urlencode "url=https://snapcount.app/embed/SESSION_ID" \
-d maxwidth=300{
"type": "rich",
"version": "1.0",
"title": "Live Counter: Gate A",
"author_name": "SnapCount",
"author_url": "https://snapcount.app",
"provider_name": "SnapCount",
"provider_url": "https://snapcount.app",
"cache_age": 60,
"html": "<div ...><iframe src=\"https://snapcount.app/embed/SESSION_ID\" ...></iframe>...</div>",
"width": 300,
"height": 230,
"thumbnail_url": "https://snapcount.app/og-v2.png"
}The html holds the iframe and a small "Powered by SnapCount" line under it, which is why height is 30 pixels taller than the frame. Responses may be cached for 60 seconds; the counter inside the frame stays live.
OBS overlay
Put a live count on stream as a transparent overlay. In a live session, open Share, choose Embed on a website, then press Stream overlay (OBS) and copy the overlay URL.
https://snapcount.app/embed/SESSION_ID?bg=transparent&hideTitle=true&scale=2| Parameter | Effect |
|---|---|
bg=transparent | Drops the page background so the scene shows through. |
hideTitle=true | Hides the counter name. |
scale | Makes the number bigger, for example 2. Optional. |
Add it to OBS
- In OBS, add a Browser Source to your scene.
- Paste the overlay URL into the URL field.
- Set the width and height to fit your layout, for example 400 by 200, and raise
scalerather than stretching the source. - Leave the background alone. The page is already transparent, so no custom CSS is needed.
Scoreboard overlay
A two-team scoreboard session shows both team names and scores side by side, like a score bug. Team names stay on in the overlay; tick Hide team names if your scene already has them.
The scoreboard overlay only displays the score, so keep scoring from the scoreboard page.
Was this page helpful?
Ready to connect SnapCount?
Create an API key or a webhook endpoint in Settings. The public API and webhooks come with Pro and Enterprise.