v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
repos

Get page 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.

get/repos/{owner}/{repo}/traffic/views

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

Query parameters

per'day' | 'week'

The time frame to display results for.

Response

Response

countinteger required
uniquesinteger required

Example response

{
  "count": 14850,
  "uniques": 3782
}