---
title: "Get total views for a short URL"
method: GET
path: "/short-url/{shortCode}/get-views"
tags: ["Analytics"]
---

# Get total views for a short URL

`GET /short-url/{shortCode}/get-views`

## Request

- Base URL: `https://api.qrcodly.de/api/v1`
- URL: `https://api.qrcodly.de/api/v1/short-url/{shortCode}/get-views`
- Auth: HTTP bearer

Returns the total view count for a short URL. Results are cached for 1 hour for performance. Only the owner can access view counts for their short URLs.

## Path parameters

- `shortCode` string, required

## Response `200`

Default Response

- object
  - `views` number: Total number of pageviews for this short URL

## Other responses

- `401`: Unauthorized — missing or invalid Bearer token.
- `403`: Forbidden — you do not have permission to access this resource.
- `404`: Not Found — the requested resource does not exist.
- `429`: Too Many Requests — rate limit exceeded. Retry after the rate limit window resets.

---

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