Overview
The Wordgrid leaderboard API is a simple HTTP JSON API for retrieving and submitting daily game scores. It exposes two endpoints and requires no authentication. Base URL:https://wordgrid-api.proplayer919.dev:7000
No authentication is required to use any leaderboard endpoint.
GET /leaderboard/{date}
Retrieve all leaderboard entries for a given date. Method:GETPath:
/leaderboard/{date}
Path parameters
The date to retrieve scores for, in
YYYY-MM-DD format (e.g. 2025-01-15). Maximum 10 characters.Response
Returns a JSON array of leaderboard entry objects. Entries are sorted ascending by score at the server level. Status:200 OK
The player’s name.
The player’s numeric score.
The date the score was submitted, in
YYYY-MM-DD format.Example request
Example response
POST /leaderboard
Submit a new score to the leaderboard. Method:POSTPath:
/leaderboardContent-Type:
application/json
There is no deduplication. Multiple entries with the same name and date are allowed.
Request body
The player’s name. Cannot be empty. Maximum 50 characters.
The player’s numeric score.
The date for the score, in
YYYY-MM-DD format. Cannot be empty. Maximum 10 characters.Responses
201 Created — Score submitted successfully.
400 Bad Request — Submission failed. Possible error responses:
| Error message | Cause |
|---|---|
"Invalid data!" | One or more required fields (name, score, date) are missing. |
"Invalid data types!" | A field has the wrong type (name or date is not a string, or score is not an integer). |
"Name and date cannot be empty!" | name or date is an empty string. |
"Name is too long!" | name exceeds 50 characters. |
"Date is too long!" | date exceeds 10 characters. |