---
title: "Get Application Statistics"
method: GET
path: "/v2/projects/{id}/applications/{application_id}/statistics"
tags: ["Projects V2"]
---

# Get Application Statistics

`GET /v2/projects/{id}/applications/{application_id}/statistics`

Returns overview statistics for the given application and date range within a project. Requires applications:read scope.

## Path parameters

- `id` string, required — Project ID
- `application_id` string, required — Application ID

## Query parameters

- `environment` 'PRODUCTION' | 'SANDBOX', required — Environment to query
- `date_preset` 'last_24_hours' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_180_days' | 'last_365_days' | 'year_to_date' — Preset reporting window
- `from` string — Start datetime (legacy; used when date_preset is absent)
- `to` string — End datetime (legacy; used when date_preset is absent)
- `refresh` 'true' | 'false' — a string to be decoded into a boolean

## Response `200`

Success

- object
  - `object` 'application_statistics', required
  - `params` object, required
    - `application_id` string, required — a string to be decoded into a number
    - `environment` 'PRODUCTION' | 'SANDBOX', required
    - `from` string, required
    - `to` string, required
    - `date_preset` 'last_24_hours' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days' | 'last_180_days' | 'last_365_days' | 'year_to_date' — Preset reporting window
  - `computed_at` number, required — Unix epoch (ms) when this statistics snapshot was computed
  - `statistics` object[], required
    - `key` string, required
    - `chart` string, required
    - `name` string, required
    - `value` union, required
      - object
        - `type` 'currency', required
        - `value` number, required
      - object
        - `type` 'number', required
        - `value` number, required
      - object
        - `type` 'percentage', required
        - `value` number, required
      - object
        - `type` 'error', required
        - `value` string, required
    - `previous_value` union — Matching metric value for the previous comparable reporting window
      - object
        - `type` 'currency', required
        - `value` number, required
      - object
        - `type` 'number', required
        - `value` number, required
      - object
        - `type` 'percentage', required
        - `value` number, required
      - object
        - `type` 'error', required
        - `value` string, required
    - `description` string, required

## Other responses

- `400` — The request did not match the expected schema
- `401` — No API key was provided in the request
- `403` — The API key does not have permission to perform this action
- `404` — The requested resource was not found
- `429` — Too many requests have been made in a short period
- `500` — An unexpected error occurred on the server

---

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