---
title: "Get site statistics"
method: GET
path: "/stats/"
tags: ["Stats"]
---

# Get site statistics

`GET /stats/`

Get site statistics.

## Response `200`

OK

- object
  - `totals[threads]` integer
  - `totals[messages]` integer
  - `totals[users]` integer
  - `latest_user[user_id]` integer
  - `latest_user[username]` string
  - `latest_user[register_date]` integer
  - `online[total]` integer
  - `online[members]` integer
  - `online[guests]` integer

## Other responses

- `default` — Error

## Changes

- **2026-03-18** `e271d0e41f6d` — 5 info
  - api operation id `get_stats_` removed and replaced with `getStats`
  - the endpoint scheme security `XF-Api-Key` was added to the API
  - the endpoint scheme security `XF-OAuth2` was added to the API
  - added the new optional `header` request parameter `XF-Api-User` to all path's operations
  - …1 more
- **2026-02-03** `fc0a40f3b859` — 4 warning, 3 info
  - the optional response header `XF-Latest-Api-Version` removed for the status `200`
  - the optional response header `XF-Request-User` removed for the status `200`
  - the optional response header `XF-Request-User-Extras` removed for the status `200`
  - the optional response header `XF-Used-Api-Version` removed for the status `200`
  - …3 more

[Change history](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/changes/stats/get.md)

---

[API](https://skmtc.dev/xenforo-ltd/apis/xenforo-api.md) · [All operations](https://skmtc.dev/xenforo-ltd/apis/xenforo-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/xenforo-ltd/xenforo-api/revisions/b15eba33657a/schema)
