---
title: "Get profile view counts (24h/7d/30d × unique/total) for an account"
method: POST
path: "/v1/account.getViewStats"
tags: ["account"]
---

# Get profile view counts (24h/7d/30d × unique/total) for an account

`POST /v1/account.getViewStats`

## Request body

- AccountSearch
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `id` IDSearch
    - `accountId` integer — Account ID to search for
    - `steamId64` string — SteamID64 to search for
  - `vanity` VanitySearch
    - `type` 'steam' | 'internal', required — Which type of vanity to search for
    - `value` string, required — Vanity to search for

## Response `200`

OK

- AccountViewStats
  - `$schema` string, uri — A URL to the JSON Schema for this object.
  - `total24h` integer, required — Total profile loads in the last 24 hours
  - `total30d` integer, required — Total profile loads in the last 30 days
  - `total7d` integer, required — Total profile loads in the last 7 days
  - `unique24h` integer, required — Distinct viewers in the last 24 hours
  - `unique30d` integer, required — Distinct viewers in the last 30 days
  - `unique7d` integer, required — Distinct viewers in the last 7 days

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/steamsets/apis/steamsets-api.md) · [All operations](https://skmtc.net/steamsets/apis/steamsets-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steamsets/steamsets-api/versions/2e8ba266b27f/schema)
