Skip to main content
Weekly reports for a game you own: saved snapshots, CSV exports, webhooks that receive each report, and a drain that returns each change since a cursor, for your own system to store. Authentication covers each credential, and errors covers the JSON error body.

Read last week’s activity for your published games

GET https://opengame.io/api/v1/analytics/public Authentication: None. No sign-in and no parameters. Covers the last complete ISO week, 7 days from Monday 00:00 UTC, frozen the first time it is read, for each published game listed in the gallery. A game with at least one and under 5 players shows null numbers. Games are ordered by a quality score built only from numbers that are shown, then by public ID. Only the 200 includes Access-Control-Allow-Origin: *; errors include no CORS header, so a page on another site sees only a failed request.

Request

cURL

Response 200

The weekly report.

Errors

Read report mail and alert settings for one game

GET https://opengame.io/api/v1/analytics/preferences Authentication: A creator token or a signed-in browser session. Reads the mail and alert settings for one of your games, with a browser session or a token with the read scope. Defaults come back until the settings are first saved.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The settings.

Errors

Save report mail and alert settings

PATCH https://opengame.io/api/v1/analytics/preferences Authentication: A signed-in browser session. Browser session only. Send each field; this replaces the settings for this game.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
boolean
required
Example: true.
boolean
required
Example: true.
boolean
required
Example: true.
string
default:"UTC"
Always UTC. Optional, and UTC only: reports are read in complete UTC weeks.
number
required
From 1.5 to 100. Example: 3.
number
required
Above 0, up to 10,000. Example: 5.

Request

cURL

Response 200

The saved settings.

Errors

List saved reports for one game

GET https://opengame.io/api/v1/analytics/reports Authentication: A creator token or a signed-in browser session. Newest first, at most 100, from the last 90 days, with a browser session or a token with the read scope. Read one by ID for the numbers.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The reports.

Errors

Ask for a snapshot report

POST https://opengame.io/api/v1/analytics/reports Authentication: A signed-in browser session. Browser session only. Queues a snapshot of the Stats report for this week and funnel, read at the week’s own receipt cutoff. It appears in the report list once it is built. Retrying with the same Idempotency-Key queues it once. Rejected while 20 reports, exports and deliveries for this account are already waiting.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Headers

string
Optional. Without one, each request queues another snapshot. 1 to 128 characters. Matches ^[A-Za-z0-9._:-]+$. Example: report-2026-w42.

Body

Sent as application/json.
string
default:"week"
Only week.
string
Which ISO week, such as 2026-W43. Defaults to the newest complete week. At most 104 weeks back, and never a week starting before 2026-08-01. A week that starts more than 90 days ago has numbers only if it was read before then; otherwise they are null and freshness.unavailable names why.
string
Always UTC. Optional, and UTC only.
object
Accepted only when empty, for clients written before filters were removed. A filter in it is rejected as filters_removed.
array of string
Event names in order. 2 to 10 items.

Request

cURL

Response 200

Queued.

Errors

Read one saved report

GET https://opengame.io/api/v1/analytics/reports/{id} Authentication: A creator token or a signed-in browser session. Reads one saved report and the numbers, with a browser session or a token with the read scope. Reports are kept 90 days. After that the answer is 410 report_expired until the report is deleted, and 404 not_found afterwards.

Parameters

Path

string
required
Report UUID. Example: e41b7c90-3d2a-4f68-8b15-9a0c6e2d7f43.

Request

cURL

Response 200

The report and the numbers.

Errors

Export a saved report

POST https://opengame.io/api/v1/analytics/reports/{id}/exports Authentication: A creator token or a signed-in browser session. Queues a file of the report in the chosen format, with a browser session or a token with the read scope. Asking again for the same report and format answers with the same export and extends how long it is kept. Download it from downloadUrl. Exports are kept 7 days.

Parameters

Path

string
required
Report UUID. Example: e41b7c90-3d2a-4f68-8b15-9a0c6e2d7f43.

Body

Sent as application/json.
string
required
One of json, csv or parquet.

Request

cURL

Response 200

Queued.

Errors

Download an export

GET https://opengame.io/api/v1/analytics/exports/{id} Authentication: A creator token or a signed-in browser session. With a browser session or a token with the read scope. JSON and CSV come back as an attachment; the JSON export is { snapshotId, window, watermark, insight, report }. Parquet is a redirect to a private download address that works for 60 seconds, or that address as JSON when the request sends Accept: application/json. The 200 and the 307 both include x-content-sha256, the hex SHA-256 of the file, so the bytes can be checked. For Parquet it is the hash of the file at the address, not of the JSON that names it.

Parameters

Path

string
required
Export UUID. Example: 7d3e9a12-c4b6-4e05-a8f1-2b9c5d0e6a74.

Request

cURL

Response 200

The file, or for Parquet with Accept: application/json, the address.

Headers

string
The hex SHA-256 of the exported file. Matches ^[0-9a-f]{64}$.

Response 307

Parquet: the private download address.

Headers

string (uri)
The private download address. It works for 60 seconds.
string
The hex SHA-256 of the file at that address. Matches ^[0-9a-f]{64}$.

Errors

List where this game’s reports are sent

GET https://opengame.io/api/v1/analytics/webhooks Authentication: A signed-in browser session. Browser session only. A game has at most one endpoint per account, and it is listed even when turned off.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The endpoints.

Errors

Send this game’s reports to an address

POST https://opengame.io/api/v1/analytics/webhooks Authentication: A signed-in browser session. Browser session only. A game has one endpoint per account, and saving turns it on. A new address, an endpoint that was turned off, or rotateSecret: true gets a new signing secret, shown in this answer and never again. Saving the same address otherwise keeps the secret your receiver already has and answers signingSecret: null.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Body

Sent as application/json.
string (uri)
required
A public https:// address with no port, credentials or fragment, at most 2048 bytes. The name must resolve only to public addresses. Example: https://hooks.example.com/opengame.
boolean
Replace the signing secret even though the address is unchanged. Example: true.

Request

cURL

Response 200

The endpoint, and the secret when it is new.

Errors

Stop sending reports to an endpoint

DELETE https://opengame.io/api/v1/analytics/webhooks/{id} Authentication: A signed-in browser session. Browser session only. The endpoint is turned off, not deleted, so the delivery history stays readable. Turning off an endpoint that is already off answers the same.

Parameters

Path

string
required
Endpoint UUID. Example: 1f6a8d3c-5e2b-4c97-b0d4-8e3a7c1f9b26.

Request

cURL

Response 200

Turned off.

Errors

List recent webhook deliveries for one game

GET https://opengame.io/api/v1/analytics/deliveries Authentication: A signed-in browser session. Browser session only. Newest first, at most 100.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The deliveries.

Errors

Read one delivery and the attempts

GET https://opengame.io/api/v1/analytics/deliveries/{id} Authentication: A signed-in browser session. Browser session only. A delivery is tried up to 8 times. This answer leaves out next_attempt_at.

Parameters

Path

string
required
Delivery UUID. Example: a9c2e5f8-1b4d-4e7a-9c3f-6d8b0e2a5c17.

Request

cURL

Response 200

The delivery.

Errors

Send a delivery again

POST https://opengame.io/api/v1/analytics/deliveries/{id}/replay Authentication: A signed-in browser session. Browser session only. Queues a new delivery of the same report, which must still be kept, to an endpoint that is turned on. A report that already reached the webhook is not sent again, and asking while one is on the way answers with that one. Replaying to an endpoint that is turned off answers 503 today.

Parameters

Path

string
required
Delivery UUID. Example: a9c2e5f8-1b4d-4e7a-9c3f-6d8b0e2a5c17.

Request

cURL

Response 200

Queued, or already on the way.

Errors

Read report changes since a cursor

GET https://opengame.io/api/v1/analytics/drains Authentication: A creator token or a signed-in browser session. For keeping a copy of this game’s reports in sync, with a browser session or a token with the read scope. Each page holds up to 20 changes in order. Start without cursor, then pass nextCursor until hasMore is false; keep the last cursor to read later changes. A cursor works only for the game, from and to it was issued for. Changes older than the kept history end the cursor with cursor_expired, and a new drain starts again from what is kept.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.
string
nextCursor from the previous page. At most 2048 characters.
string (date)
Only changes to reports of weeks starting on or after this day. Each change is filed under the week’s Monday. Example: 2026-10-14.
string (date)
Only changes to reports of weeks starting on or before this day. Example: 2026-10-21.

Request

cURL

Response 200

A page of changes.

Errors

List drain batches the webhook did not accept

GET https://opengame.io/api/v1/analytics/drain-batches Authentication: A signed-in browser session. Browser session only. Newest first, at most 100. A batch with blocking true has stopped this game’s feed: nothing newer is sent until it is delivered. Send it again with POST /api/v1/analytics/drains/{id}/replay.

Parameters

Query

string
required
Game UUID or public ID. Example: b3e1d9a4-27c6-4f80-9d15-0a6e8c4b2f71.

Request

cURL

Response 200

The failed batches.

Errors

Read one drain batch and the attempts

GET https://opengame.io/api/v1/analytics/drains/{id} Authentication: A creator token or a signed-in browser session. Reads one batch of drain changes sent to this game’s webhook, in any state, with each attempt. Takes a browser session or a token with the read scope.

Parameters

Path

string
required
Batch UUID. Example: 4e8b1d6a-9c3f-4a25-8e7d-0b5c2f9a3d61.

Request

cURL

Response 200

The batch.

Errors

Send a drain batch again

POST https://opengame.io/api/v1/analytics/drains/{id}/replay Authentication: A signed-in browser session. Browser session only. Queues the same changes to the webhook again. Changes that already reached it are not sent again, and asking while they are on their way answers with that batch.

Parameters

Path

string
required
Batch UUID. Example: 4e8b1d6a-9c3f-4a25-8e7d-0b5c2f9a3d61.

Request

cURL

Response 200

Queued, or already on the way.

Errors