---
title: "Get page views"
method: GET
path: "/repos/{owner}/{repo}/traffic/views"
tags: ["repos"]
---

# Get page views

`GET /repos/{owner}/{repo}/traffic/views`

Get the total number of views and breakdown per day or week for the last 14 days. Timestamps are aligned to UTC midnight of the beginning of the day or week. Week begins on Monday.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `per` 'day' | 'week'

## Response `200`

Response

- ViewTraffic — View Traffic
  - `count` integer, required
  - `uniques` integer, required
  - `views` Traffic[], required
    - `timestamp` string, date-time, required
    - `uniques` integer, required
    - `count` integer, required

## Other responses

- `403` — Forbidden

---

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