Value Grow a Garden
Open navigation menu

Free embed · no key · no cookies · Roblox public data

Grow a Garden 2 Player Count Widget

Add the current GAG2 concurrent-player count to a wiki, blog, dashboard or fan tool with one crawlable link and one dependency-free script. The badge keeps its source page, observation time and fallback behavior attached instead of turning a volatile number into an unexplained claim.

Live preview

The badge updates in place

This example starts as ordinary linked HTML. After the script receives a valid response, it replaces only the label and adds an observation-time tooltip.

Server value
591,138 playing
Source mode
Live Roblox response

Basic HTML

Paste two elements before the closing body tag

<a
  href="https://valuegrowagarden.com/grow-a-garden-2/player-count"
  data-vgag-gag2-player-count
>
  Grow a Garden 2 player count
</a>
<script
  async
  src="https://valuegrowagarden.com/widgets/gag2-player-count.js"
></script>

Keep the linked fallback text. It gives visitors a useful destination when scripts are disabled, the network is offline or the upstream Roblox endpoint is temporarily unavailable.

Display options

Compact, dark and custom-label attributes

Use data-format="compact" for abbreviated values such as 583.9K. Set data-theme to light, dark or auto. A custom data-label changes the visible game label but not the source URL, Universe ID or underlying definition.

<a
  href="https://valuegrowagarden.com/grow-a-garden-2/player-count"
  data-vgag-gag2-player-count
  data-format="compact"
  data-theme="dark"
>
  Grow a Garden 2 player count
</a>
<script
  async
  src="https://valuegrowagarden.com/widgets/gag2-player-count.js"
></script>

No visitor tracking

The widget sets no cookies, reads no storage, sends no analytics and collects no visitor identifiers. Its only network request is the public statistics JSON endpoint.

One-minute refresh

The script refreshes once per minute. The API and edge cache protect the Roblox source from per-visitor request amplification while keeping the displayed timestamp visible.

Fail-open HTML

A failed request leaves the original anchor untouched. The widget does not hide the badge, inject an unlabelled stale number or rewrite unrelated elements on the host page.

Correct interpretation

The badge reports CCU, not total players

Roblox's playing field is the point-in-time concurrent-player count returned for Universe 10200395747. It can rise or fall between minute-level requests and should be quoted with the observation time available in the badge tooltip or JSON response.

Do not relabel the number as daily active users, monthly users, lifetime players, downloads, owners or an all-time peak. The widget also does not calculate rank, historical trends, retention or revenue because the public response does not contain those fields.

Integration notes

CSP, CORS, accessibility and multiple badges

Sites with a Content Security Policy must allow https://valuegrowagarden.com in both script-src and connect-src. The API sends Access-Control-Allow-Origin: *, so no key, account or server-side proxy is required.

The badge remains an ordinary link and receives an accessible label containing the full unabridged player count. Its title includes the UTC fetch time and whether the API returned a live Roblox response or the dated fallback snapshot.

One script instance can update multiple matching anchors on the same page. The script makes one API request per refresh cycle and applies the result to every element marked with data-vgag-gag2-player-count.