Game Embed API
Three ways to use it. Every example below is complete — copy, paste, done.
1. Embed a Game with a Script GET /api/embed/{game}/script.js
The script builds the iframe for you. The game fills it and adapts to size changes, including fullscreen. This is a complete working page using Earth Burger — swap the game name for any game slug:
Change width and height in the URL to resize the embed.
2. Embed a Game with an Iframe GET /api/embed/{game}
Load the game directly in your own iframe — full control over placement and sizing:
3. List Available Games GET /api/games
Returns the public game catalog as JSON — use it to build your own game picker or directory:
Or from the command line:
Response shape:
Available Games
Use any of these slugs in the embed URLs above:
earth-burger— Earth Burgerearth-burger-2— Earth Burger 2vaders— Spaced Invaderszombee-hive— Zombee Hivezombie-graeyard— Zombie Graveyard
Terms of Use
- Do not modify or reverse-engineer the game code
- Attribute games to Gam3bug.com where reasonable
- Do not use the API for illegal or harmful content
See our Terms of Service and Privacy Policy for full details.