---
title: "Get statistics data for a universe."
method: GET
path: "/v1/universes/{universeId}/stats"
tags: ["Universes"]
---

# Get statistics data for a universe.

`GET /v1/universes/{universeId}/stats`

## Request

- Base URL: `https://economycreatorstats.roblox.com`
- URL: `https://economycreatorstats.roblox.com/v1/universes/{universeId}/stats`
- Auth: API key in cookie `.ROBLOSECURITY`

## Path parameters

- `universeId` integer, required

## Query parameters

- `Type` 'PremiumUpsells' | 'PremiumVisits', required
- `StartTime` string, date-time, required
- `EndTime` string, date-time, required

## Response `200`

OK

- RobloxEconomyCreatorStatsApiModelsStatisticsResponse: The response model
  - `dataGranularity` 0 | 1 | 2: The Roblox.EconomyCreatorStats.Api.StatisticsDataGranularity. ['Hourly' = 0, 'Daily' = 1, 'Monthly' = 2]
  - `data` object: The actual data.

## Other responses

- `400`: 1: The Universe is invalid. 3: Too many data points requested. 4: The requested data type is not known.
- `401`: 0: Authorization has been denied for this request. 2: Not authorized to perform this action.

---

[API](https://skmtc.dev/roblox/apis/roblox-api.md) - [All operations](https://skmtc.dev/roblox/apis/roblox-api/llms.txt) - [OpenAPI document](https://skmtc.dev/roblox/apis/roblox-api/revisions/bcfdc20689cd?raw)
