---
title: "Totals for 7, 30 or 90 days"
method: GET
path: "/api/v2/vendor/stats"
tags: ["Stats"]
---

# Totals for 7, 30 or 90 days

`GET /api/v2/vendor/stats`

## Request

- Base URL: `https://craftwork.design`
- URL: `https://craftwork.design/api/v2/vendor/stats`
- Auth: HTTP bearer

## Query parameters

- `range` '7d' | '30d' | '90d'

## Response `200`

Each metric with the previous period of the same length, and pack counts by status.

- object
  - `data` Stats, required
    - `range` string
    - `from` string, date
    - `to` string, date
    - `timezone` string
    - `totals` object: views, packDownloads, assetDownloads, sales, saves, earnings, pendingEarnings: each { current, previous }; plus earningsBySource
    - `packs` object: Pack count by status

## Other responses

- `400`: A query or path parameter is invalid.
- `401`: Missing, invalid or revoked API key.
- `403`: The key lacks the scope this endpoint needs (INSUFFICIENT_SCOPE).
- `429`: 120 requests a minute per key, or the daily upload limit (DAILY_UPLOAD_LIMIT). See Retry-After.

---

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