Creator API
The API lets you reward players who vote and display your rank. Generate a key in the creator space and call it from your server : a key visible in the browser can be stolen.
Authentication: header Authorization: Bearer ji_… on every request.
Has a player voted?
Returns the latest vote in the last 1 h 30, by username (entered on the vote page) or by IP address.
curl "https://jeux-inde.com/api/v1/votes?pseudo=Itachi" \
-H "Authorization: Bearer ji_xxx"
{"voted":true,"voted_at":"2026-10-27T14:02:11.000Z","next_vote_at":"2026-10-27T22:02:11.000Z"}Category rank and votes
curl "https://jeux-inde.com/api/v1/jeu" -H "Authorization: Bearer ji_xxx"
{"slug":"mon-jeu","title":"Mon jeu","genre":"mmorpg","universe":"dofus","genre_rank":1,"votes_month":312,"votes_total":2950}Send player scores
Only each player's best score is kept. Scores show up on your page and in the leaderboards.
curl -X POST "https://jeux-inde.com/api/partner/scores" \
-H "Authorization: Bearer ji_xxx" \
-H "Content-Type: application/json" \
-d '{"player_id":"123","player_name":"Itachi","score":4200}'
{"ok":true,"best":4200,"record":true}Vote webhook
On every vote, a POST request is sent to the address set in the creator space (5 s timeout, no retry):
POST https://mon-jeu.fr/api/vote
Content-Type: application/json
X-JeuxInde-Signature: sha256=<HMAC-SHA256 of the body with your secret, in hexadecimal>
{"event":"vote","game":"mon-jeu","pseudo":"Itachi","voted_at":"2026-10-27T14:02:11.000Z","votes_month":313}Always check the signature before handing out a reward. Node.js example:
import { createHmac, timingSafeEqual } from "node:crypto";
const expected = "sha256=" + createHmac("sha256", process.env.JEUX_INDE_SECRET).update(rawBody).digest("hex");
const ok = expected.length === signature.length && timingSafeEqual(Buffer.from(expected), Buffer.from(signature));Banner
SVG image updated every 10 minutes, with your rank in your category and your votes this month. The ready-to-paste HTML code is in the creator space.
<a href="https://jeux-inde.com/jeux/mon-jeu/voter"> <img src="https://jeux-inde.com/api/widget/mon-jeu" width="320" height="64" alt="Voter pour Mon jeu"> </a>
Error codes
401: missing or invalid key.400: missing parameter (the message says which one).503: service temporarily unavailable.