---
title: "Statistic"
method: GET
path: "/stats/{type}"
tags: ["Statistic"]
---

# Statistic

`GET /stats/{type}`

Get the statistics of various data analysis

## Path parameters

- `type` 'latest_comments' | 'latest_pages' | 'pv_most_pages' | 'comment_most_pages' | 'page_pv' | 'site_pv' | 'page_comment' | 'site_comment' | 'rand_comments' | 'rand_pages', required

## Query parameters

- `limit` integer
- `page_keys` string
- `site_name` string

## Response `200`

OK

- CommonJSONResult
  - `data` unknown
  - `msg` string — Message

## Other responses

- `400` — Bad Request
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error

## Changes

- **2024-01-24** `83bbd341664a` — 1 info
  - endpoint added
- **2023-01-28** `6a7a8a92e7c3` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/artalkjs/apis/artalk-api/changes/stats/:type/get.md)

---

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