# Roblox APIs Bloxlytics uses

> Every Roblox API Bloxlytics calls, why it calls it, which Open Cloud scope it needs, how often, and what you see when Roblox refuses or rate limits a request.

Bloxlytics talks to Roblox in three ways, each with its own credential:

| Channel | Direction | Credential | Where it lives |
| --- | --- | --- | --- |
| Roblox public web APIs | Bloxlytics → Roblox | None | — |
| Roblox Open Cloud | Bloxlytics → Roblox | Your Open Cloud API key | Bloxlytics servers only, encrypted |
| Sign in with Roblox | Your browser ⇄ Roblox ⇄ Bloxlytics | Bloxlytics's OAuth app | — |

Separately, your game servers call Bloxlytics (the SDK and the Cmdr bridge) with the project's write and bridge keys. Those keys can't call Roblox, and your Open Cloud key is never sent to a game server or back to your browser. See [Data sources](https://docs.bloxlytics.app/data-sources) for what each source gives you and [Security and privacy](https://docs.bloxlytics.app/security) for how keys are stored.

Every call to Roblox is made from Bloxlytics servers, never from your browser, and times out after 15 seconds (30 seconds to submit an analytics query).

## Sign in with Roblox

Bloxlytics accounts are Roblox accounts. Sign-in uses Roblox's OAuth 2.0 authorisation code flow with PKCE (S256) on `apis.roblox.com`:

| Step | Endpoint | Why |
| --- | --- | --- |
| Authorise | `GET /oauth/v1/authorize` | Sends you to Roblox to approve the `openid` and `profile` scopes |
| Exchange the code | `POST /oauth/v1/token` | Swaps the one-time code for tokens, proving the PKCE verifier |
| Read your profile | `GET /oauth/v1/userinfo` | Your Roblox user id, username, display name and avatar |
| Revoke | `POST /oauth/v1/token/revoke` | Ends the authorisation straight away; Bloxlytics keeps no Roblox tokens |

The ID token's audience, nonce, subject and expiry are checked before you're signed in. If Roblox refuses or can't be reached, you're returned to the sign-in page with an explanation, and nothing is created.

## Public web APIs

These need no key, which is why Bloxlytics shows live players, visits, favourites and likes for any project from the moment you add it.

| API | Endpoint | Used for | How often |
| --- | --- | --- | --- |
| Games | `GET games.roblox.com/v1/games?universeIds=…` | Experience name, creator, root place, live player count, visits, favourites, creation date | Live players every minute and visits and favourites every hour, for every project in batches of 50; experience details when you add a project, connect Open Cloud and on every sync |
| Game votes | `GET games.roblox.com/v1/games/votes?universeIds=…` | Likes and dislikes | Every hour, with the visits snapshot |
| Place to universe | `GET apis.roblox.com/universes/v1/places/{placeId}/universe` | Accepting a place ID (the number in a game's URL) when you add an experience | When you add a project |
| Groups | `GET groups.roblox.com/v1/groups/{groupId}` | Finding a group's owner, to check you own a group experience you add | When you add a project |
| Users | `GET users.roblox.com/v1/users/{userId}` | Player lookup by id, player profiles, invitations by user id | On demand; profiles are cached for an hour |
| Usernames | `POST users.roblox.com/v1/usernames/users` | Player lookup and invitations by username | On demand |
| Experience icons | `GET thumbnails.roblox.com/v1/games/icons` | The project's icon (150×150) | With experience details |
| Avatar headshots | `GET thumbnails.roblox.com/v1/users/avatar-headshot` | Player avatars in lists, feeds and profiles, 100 players per request | On demand; cached for 6 hours |

Live counters shown before the first hourly snapshot exists are cached for a minute. Icons and avatars are best-effort: if Roblox doesn't return one, it's left out rather than causing an error. If the votes API fails, likes and dislikes are left out of that snapshot and the other counters are still recorded.

### Who may add an experience

Adding a project uses these APIs to confirm you control the experience. Bloxlytics accepts, in order: your Roblox account created it; your account owns the group that owns it; or an Open Cloud API key that reaches it (for group members and collaborators, whose role permissions the public APIs don't show). See [Add an experience](https://docs.bloxlytics.app/projects/add-an-experience).

## Open Cloud

Open Cloud calls use your project's API key in the `x-api-key` header. When you connect a key, Bloxlytics reads its scopes and enables each feature separately, so a key with only read scopes can never be used to write.

### Scopes

| Capability | Scope | Used for |
| --- | --- | --- |
| List DataStores | `universe-datastores.control:list` | The DataStores list; confirming an "all experiences" key |
| List entries | `universe-datastores.objects:list` | Browsing keys |
| Read entries | `universe-datastores.objects:read` | Opening an entry or a revision, and the conflict check before every save |
| Update entries | `universe-datastores.objects:update` | Saving edits and restoring revisions |
| Create entries | `universe-datastores.objects:create` | **New entry** |
| Delete entries | `universe-datastores.objects:delete` | Deleting an entry |
| List versions | `universe-datastores.versions:list` | Version history |
| Read ordered DataStores | `universe.ordered-data-store.scope.entry:read` | Ordered entries, and the check before every **Set value** and delete |
| Edit ordered DataStores | `universe.ordered-data-store.scope.entry:write` | **Increment**, **Set value**, **New entry** and deleting |
| Read sorted maps | `memory-store.sorted-map:read` | Browsing sorted maps and opening items |
| Edit sorted maps | `memory-store.sorted-map:write` | Saving, creating and deleting sorted map items |
| Read queues | `memory-store.queue:dequeue` | Peeking at a queue and **Read and hold** |
| Add to queues | `memory-store.queue:add` | **Add item** |
| Discard queue items | `memory-store.queue:discard` | Discarding held items |
| Flush MemoryStores | `memory-store:flush` or `universe.memory-store:flush` | **Flush…** |
| Read bans | `universe.user-restriction:read` | Ban status, ban history, the bans sync; confirming an "all experiences" key |
| Ban and unban | `universe.user-restriction:write` | **Ban player** and **Unban** |
| Read Roblox analytics | `universe.analytics:read` | Roblox-reported metrics and Roblox funnels |

Developer product names and prices use Roblox's developer products API, which needs read access to your experience's developer products. If your key can't list them, Bloxlytics names products from your game's purchase events instead.

### Endpoints

All on `apis.roblox.com`. `{u}` is your Universe ID and `…/entries` is `/cloud/v2/universes/{u}/data-stores/{ds}/scopes/{scope}/entries`.

| Feature | Endpoint | Scope |
| --- | --- | --- |
| Validate a key | `POST /api-keys/v1/introspect` | None (the key itself) |
| List DataStores | `GET /cloud/v2/universes/{u}/data-stores` (up to 100 per page, optional name prefix) | `universe-datastores.control:list` |
| List keys | `GET …/entries` (up to 100 per page; scope `-` lists every scope) | `universe-datastores.objects:list` |
| Read an entry or revision | `GET …/entries/{key}` and `…/entries/{key}@{revisionId}` | `universe-datastores.objects:read` |
| Update an entry | `PATCH …/entries/{key}?allowMissing=…`, with the entry's `etag` | `universe-datastores.objects:update` |
| Create an entry | `POST …/entries?id={key}` | `universe-datastores.objects:create` |
| Delete an entry | `DELETE …/entries/{key}` (Roblox keeps it recoverable for 30 days) | `universe-datastores.objects:delete` |
| Version history | `GET …/entries/{key}:listRevisions` (50 per page) | `universe-datastores.versions:list` |
| List ordered entries | `GET /cloud/v2/universes/{u}/ordered-data-stores/{name}/scopes/{scope}/entries` (up to 100 per page, `orderBy=value desc`, value range filter) | `universe.ordered-data-store.scope.entry:read` |
| Read, set, create or delete an ordered entry | `GET`, `PATCH`, `POST` and `DELETE` on those entries | `…entry:read` or `…entry:write` |
| Increment an ordered entry | `POST …/entries/{key}:increment` | `universe.ordered-data-store.scope.entry:write` |
| List sorted map items | `GET /cloud/v2/universes/{u}/memory-store/sorted-maps/{map}/items` (up to 200 per page, filter on `id` and `sortKey`) | `memory-store.sorted-map:read` |
| Read, update, create or delete a sorted map item | `GET`, `PATCH` (with the item's `etag`), `POST` and `DELETE` on `…/items/{id}` | `memory-store.sorted-map:read` or `:write` |
| Add a queue item | `POST /cloud/v2/universes/{u}/memory-store/queues/{queue}/items` | `memory-store.queue:add` |
| Read queue items | `GET …/queues/{queue}/items:read` (up to 100; a 0-second invisibility window for peeking) | `memory-store.queue:dequeue` |
| Discard queue items | `POST …/queues/{queue}/items:discard` with the read id | `memory-store.queue:discard` |
| Flush MemoryStores | `POST /cloud/v2/universes/{u}/memory-store:flush` | `memory-store:flush` |
| Ban status | `GET /cloud/v2/universes/{u}/user-restrictions` and `…/user-restrictions/{userId}` | `universe.user-restriction:read` |
| Ban or unban | `PATCH …/user-restrictions/{userId}?updateMask=gameJoinRestriction` with an idempotency key | `universe.user-restriction:write` |
| Ban history | `GET …/user-restrictions:listLogs` | `universe.user-restriction:read` |
| Roblox analytics | `POST /analytics-query-api/v1/universes/{u}/metrics`, then polling the operation it returns | `universe.analytics:read` |
| Developer products | `GET /developer-products/v2/universes/{u}/developer-products/creator` (beta) | Developer product read access |

Entry keys that contain `@` are read as `{key}@latest`, as the API requires.

### Connecting a key

**Connect Open Cloud** in **Integrations** runs these steps and shows the result of each, so you can see exactly where a connection failed:

1. **Validate API key**: introspection must say the key is enabled and not expired.
2. **Check permissions**: the key needs at least one scope Bloxlytics can use, and it must reach this experience. Either the experience is listed on the key, or the key is set to all experiences its owner can access; in that case Bloxlytics confirms it with one read-only call (listing DataStores or bans), so the key needs `universe-datastores.control:list` or `universe.user-restriction:read`.
3. **Retrieve experience**: name, creator and root place from the games API.
4. **Store credentials**: the key is encrypted; only its last four characters are kept readable.
5. **Import historical analytics**: queued if the key has `universe.analytics:read`, otherwise skipped with a note.

Use a key on your own Roblox account. Roblox is retiring group-owned keys, and a user key works for group experiences you manage. See [Connect Open Cloud](https://docs.bloxlytics.app/projects/open-cloud).

### Sync schedule

| Data | When |
| --- | --- |
| Experience details and developer products | Every 6 hours while automatic sync is on, and on **Sync now** |
| Bans | Same, if the key can read bans: every restriction Roblox lists, up to 5,000 |
| Roblox analytics and funnels | Same, if the key has `universe.analytics:read`. Scheduled syncs re-import the last 7 days, **Sync now** the last 30 |
| Full analytics history | Once, when you first connect: every day Roblox still holds, up to 4 years or back to the experience's creation. Projects connected before full-history import existed get it on their next sync, and **Import full history** re-runs it (plus bans and developer products) |

Scheduled syncs skip analytics while an import is already queued or running. Each sync is listed in **Integrations** as queued, running, succeeded, partial or failed, with what it imported and why it stopped. You can turn automatic sync off for a project there.

### Roblox analytics

Bloxlytics requests these metrics, one day at a time: `DailyActiveUsers`, `DailyRevenue`, `ForwardD1Retention`, `ForwardD7Retention`, `ForwardD30Retention`, `PayingUsersCVR`, `AverageSessionLengthMinutes`, `NewUsers` and `PeakConcurrentUsers`. Roblox only reports complete days, so the most recent day is yesterday (UTC).

History is imported newest first in 180-day windows. If Roblox says a window asks for too many data points, the window is halved, down to 7 days. When a window crosses the point where Roblox stops holding data, Bloxlytics narrows it to the exact day and imports everything after it. Re-importing a day replaces it, so syncs never double count.

Roblox numbers are always shown separately from SDK numbers, labelled **Roblox**, and never blended into the same series. See [Roblox data](https://docs.bloxlytics.app/analytics/roblox-data).

### Roblox funnels

Funnels your game logs with `AnalyticsService:LogFunnelStepEvent` or `LogOnboardingFunnelStepEvent` are imported with the same scope and shown under **From Roblox** on the Funnels page. No Bloxlytics SDK is needed.

- Roblox reports funnel metrics as totals over a date range, so each sync stores a snapshot for the last 7, 30 and 90 days and 12 months of complete UTC days. Roblox only accepts `FunnelName` as a filter, so Bloxlytics first lists the funnels with `POST /analytics-query-api/v1/universes/{u}/dimension-values`, then queries `FunnelUserTotalCount` (players) and `FunnelStepTotalCount` (funnel sessions) for each funnel, broken down by `FunnelStep`.
- Conversion and drop-off are worked out from the player counts. Roblox counts a player who skips a step as completing the steps before it.
- Each funnel's `FunnelCohortCompletionRate` is imported per day: across the full history on the first import, then for the period each sync covers.
- A funnel Roblox no longer reports in a window drops out of that window's snapshot.

See [Funnels](https://docs.bloxlytics.app/analytics/funnels).

### DataStore edits

- The editor sends the revision you loaded. Bloxlytics reads the entry again first; if the revision has moved on (for example, a live server saved), nothing is written and you're shown the newer value to review.
- The update also carries the entry's `etag`, so a save that races between that check and the update is rejected by Roblox, and you're shown the newer value again.
- The entry's users and attributes are carried over on every update, because Roblox clears them when they're left out.
- Restoring a version writes that version's value as a new revision. History is never rewritten.

See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores).

### Ordered DataStore and MemoryStore edits

- Roblox gives ordered entries no version tag. Before **Set value** or a delete, Bloxlytics reads the entry and writes nothing if the value changed since you opened it. **Increment** uses Roblox's atomic increment instead, so it never races with a server.
- Sorted map saves and deletes check the item's `etag`, and the save sends it to Roblox, so a server's write between your load and your save is never overwritten.
- Peeking at a queue reads with a 0-second invisibility window, which leaves items available to servers. **Read and hold** hides items for the window you choose; only a discard removes them.
- Roblox keeps no history for either, so the audit log stores the value each change replaced.

See [DataStore Explorer](https://docs.bloxlytics.app/operations/datastores#ordered-datastores) and [MemoryStore Explorer](https://docs.bloxlytics.app/operations/memorystores).

### Bans

After every ban or unban, Bloxlytics reads the restriction back from Roblox, because Roblox can report success without applying the change. The moderation record is marked **confirmed** or **failed** accordingly. Each request carries an idempotency key, so a retried request can't apply twice. Kicks and warnings don't use Open Cloud: they go through the Cmdr bridge and are confirmed when the game reports success. See [Moderation](https://docs.bloxlytics.app/operations/moderation).

## Failures and rate limits

When Roblox refuses a request you made in the dashboard, you see Roblox's reason rather than a generic error, and the API returns it with the code `roblox_error` and Roblox's own status (see [Errors](https://docs.bloxlytics.app/api/errors)):

| Roblox says | You see | Bloxlytics returns |
| --- | --- | --- |
| Unreachable, timed out, or a server error | "Couldn't reach Roblox" or Roblox's message | `502` |
| `401` | "Roblox rejected the API key (missing, invalid or revoked)." | `400` |
| `403` | "The API key lacks permission for this operation", with Roblox's detail | `400` |
| `404` | Roblox's message, or "Not found on Roblox." | `404` |
| `429` | "Roblox rate limit reached. Try again shortly." | `429` |

Where a scope is missing, the page says which scope to add instead of failing silently.

In the background:

- **Rejected key.** If Roblox rejects the key during a sync, the integration shows **Needs attention** with Roblox's error. Reconnect a working key in **Integrations**.
- **Analytics rate limit.** Roblox allows 30 analytics requests a minute per key owner, so Bloxlytics spaces requests at least 2.1 seconds apart. If Roblox still rate limits, it waits and retries up to four times, 15 seconds longer each time. An analytics query Roblox hasn't finished within a minute counts as a failed request.
- **Metrics Roblox won't report.** Any metric Roblox rejects for your experience is shown as **Not available** with Roblox's reason, and nothing is estimated in its place. The sync is marked partial and names the metrics.
- **History that stops early.** If a later window fails after earlier ones succeeded, what was imported is kept and the sync is marked partial, naming the metrics whose history stopped early.
- **No Roblox funnels.** If Roblox doesn't report funnels for the experience, the Funnels page says so with Roblox's reason.
- **Developer products.** If the key can't list developer products, the sync is marked partial and product names come from your game's purchase events instead.
- **More than 5,000 bans.** The first 5,000 are synced and the sync is marked partial.

## What is not supported and why

| Capability | Status |
| --- | --- |
| Listing DataStore **scopes** | Open Cloud has no endpoint for this. Enter a scope, or list across every scope with `-`. |
| Listing ordered DataStores, sorted maps or queues | Open Cloud has no endpoint for this. Open one by name and save it for the project. |
| Releasing held queue items early | Open Cloud has no endpoint for this. Held items return when the invisibility window ends. |
| Teleporting a team member to a player | Not possible from a website. **Join server** opens the Roblox link for the player's server instead. |
| Purchase **attempts** for developer products | Roblox only lets a game server see that a purchase prompt finished (`PromptProductPurchaseFinished`). Prompts closed without buying are recorded as attempts; nothing earlier is observable. |
| Premium payouts and engagement-based payouts | Open Cloud doesn't expose them to third parties. |
| Roblox analytics metrics beyond the list above | The Analytics Query API is in beta. Bloxlytics requests only the metrics listed in [Roblox analytics](#roblox-analytics), and any that Roblox rejects are shown as **Not available**, never estimated. |
| Time between steps and lists of players who dropped, for Roblox funnels | Roblox reports funnel totals only, not per-player events. Use funnels built from SDK events for these (see [Funnels](https://docs.bloxlytics.app/analytics/funnels)). |
| Retention from before you installed the SDK | Bloxlytics computes retention from SDK data, so its history starts when the SDK is installed. Roblox-reported retention is shown separately where Roblox provides it. |
| Confirming an "all experiences" key without DataStore list or ban read scopes | Introspection shows such a key as `*`, which says nothing about one experience, so Bloxlytics must make a read-only call to prove it reaches yours. Add one of those two scopes, or add the experience to the key by name. |
| Group-owned API keys | Roblox is retiring them. Use a key on your own account; it works for group experiences you manage. |
| Calling into a game server | Roblox doesn't allow inbound connections to game servers. Commands, kicks and warnings work only through the Cmdr bridge, which your servers poll. |
