Free Roblox codes API and widget for your website
Show current Roblox codes on your site with one snippet, or read them as JSON with your own key. We check every game on a schedule, take expired codes off the list and mark new codes as being verified until a second source confirms them. Free, in 14 languages.
Widget: get your snippet · Roblox codes API (JSON) with your own key
Widget: get your snippet
We do not track a game by that name yet. Pick one from the list.
Paste it where the list should appear: in a post, a sidebar block or an HTML widget. Put the script once per page, even with several lists.
Preview
The one condition: keep the link
- The snippet holds a link to the game's code page on BloxArchive. Keep it in the snippet and visible. It is the only thing we ask in return.
- You may change the link text to the game's name or to BloxArchive, and point it at any BloxArchive page. The game's page is the most useful one for your readers.
- If the link is taken out or hidden, the widget shows a short note with a link to the codes instead of the list.
- Codes marked as being verified are not confirmed yet. Please do not present them as confirmed.
How the widget works
- The script is small, loads with
asyncand draws the list inside its own Shadow DOM, so your styles and ours do not clash. - Every page view reads the current list; a visitor's browser keeps it for one minute.
- Confirmed codes come first, then new codes that are being verified. Codes that may have expired are left out.
- Rewards are translated into the language you pick. A game we merge or rename keeps working under its old address.
- We see which sites load the widget and for which game, and we read those pages now and then to see the link. We do not set cookies or read anything about your visitors.
- The Auto theme follows the visitor's light or dark setting. To match your design, pick the theme, color, font, corners and width above, or set CSS variables on the box in your own stylesheet:
[data-bloxarchive] { --ba-accent: #e11d48; --ba-radius: 4px; }. Available:--ba-bg,--ba-ink,--ba-muted,--ba-line,--ba-soft,--ba-accent,--ba-accent-ink,--ba-radius,--ba-max-width. Older snippets keep their look.
Roblox codes API (JSON) with your own key
Want the codes in your own design? Get a personal key for the JSON API. The condition is the same: the page that shows our codes links to bloxarchive.com. Add the link first, publish the page, then enter its address here. We read the page and give the key at once if the link is there.
Copy it now: we keep only a fingerprint of it and cannot show it again.
Requests
Send the key in the X-API-Key header (or as ?key=). Answers are JSON; add locale for one of the 14 languages.
GET https://bloxarchive.com/api/partner/v1/games?locale=en&limit=100&offset=0
GET https://bloxarchive.com/api/partner/v1/games/blox-fruits-codes?locale=en
X-API-Key: ba_.../games: every game we publish, games with codes first, with its slug, name, player count and how many confirmed and pending codes it has./games/{slug}: one game.codes.activeare confirmed,codes.pendingare new and being verified,codes.expiredstopped working. Rewards come in the language you asked for.- Every answer has an
attributionobject with the link to put next to the codes, as HTML ready to paste. - A key belongs to one site. Calls from a browser on another site are refused. A key can make 20,000 requests a day; keep the answers for a few minutes on your side.
If the link goes missing
We read your page every day. If the link to bloxarchive.com is not in its HTML, every API answer carries a notice with the date the key stops. After 7 days without the link the key stops working. It turns back on by itself within a week of the link being back.
Questions
Is the Roblox codes API free?
Yes. The widget and the JSON API are free. The only condition is a visible link to BloxArchive on the page that shows the codes.
How often are the codes updated?
Every game is checked on a schedule. A code is listed as working once the developer or two independent sources confirm it, and expired codes are taken off the list.
Which games and languages are covered?
Every game published on BloxArchive, in 14 languages, with the rewards translated.
Do I need an account?
No. The widget needs no sign-up. For the API, enter the page that links to us and the key is issued at once.