Github API

Getting access, Developing, Testing

Back to Github

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.

Input

type: object properties: parameters: type: object properties: owner: type: string description: The account owner of the repository. The name is not case sensitive. repo: type: string description: The name of the repository. The name is not case sensitive. per: type: string enum: - day - week default: day description: The time frame to display results for. required: - owner - repo title: Parameters

Output

type: object title: View Traffic properties: count: type: integer example: 14850 uniques: type: integer example: 3782 views: type: array items: type: object title: Traffic properties: timestamp: type: string format: date-time uniques: type: integer count: type: integer