ROBLOX Web API

Hosts and versions

Three ways to reach the same routes, one version, and a legacy set for old wrapper libraries.

The three shapes#

Every route is declared once and can be reached one of three ways, depending on how a deployment is configured:

ModeURL shapeExample
PathOne prefix on the main site, every service under its own segment.https://<site>/public-api/users/v1/users/1
HostEach service answers on its own subdomain, at the root.https://users.<domain>/v1/users/1
BothPath and host modes active at once, same routes either way.either of the above

This deployment is configured for a single path prefix on the main site. Links on this docs site already point at the right shape for you — for example, the Users service page.

The docs live wherever the API does#

This documentation is served by the API itself, at the same address the API answers requests on — there is no separate docs host to keep in sync.

This page’s own address, /v2/api/docs, is the canonical root for every link on this site: every guide, every service page, and the machine-readable spec hang off it.

Versioning#

Every service route (other than the legacy set below) is versioned in its path: /v1/.... v1 is the only version today and is read-only — writes are planned for a later version behind their own scopes, and existing v1 routes will keep answering unchanged when that arrives.

The legacy compatibility set#

One service, named legacy, reproduces a handful of the original 2016-2018 api.roblox.com paths exactly as they were: no /v1, and PascalCase field names (Id, Username, IsOnline) instead of the camelCase every other service uses. It exists for one reason — an old wrapper library (noblox.js, roblox-js, and similar tooling from that era) hardcodes those exact paths and that exact casing, so pointing one at this deployment is a base-URL change, not a rewrite.

In path mode it sits under its own segment (/public-api/api/..., not /public-api/legacy/... — the era it reproduces predates this API’s own naming); in host mode it answers at the root of the single legacy API host, where one is configured, alongside every other service under its own /v1 segment on that same host.

See the legacy service reference for the exact endpoints this set currently covers — it is a known subset of the original surface, not a full reproduction.

Machine-readable#

An OpenAPI 3.0 document describing every route this deployment has registered is generated from the same declarations these docs are, so the two can never drift apart:

The spec
curl "/v2/api/docs/json/v1"

Paste it into Swagger UI, Postman, or any client generator that reads OpenAPI.