Open Context Protocol is live! 🚀 Read the launch post

reposGetTopPaths

Get top referral paths

GET /repos/{owner}/{repo}/traffic/popular/paths HTTP/1.1

Parameters

{
  "owner": {
    "description": "The account owner of the repository. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "repo": {
    "description": "The name of the repository without the `.git` extension. The name is not case sensitive.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "type": "array",
  "items": {
    "title": "Content Traffic",
    "description": "Content Traffic",
    "type": "object",
    "properties": {
      "path": {
        "type": "string",
        "example": "/github/hubot"
      },
      "title": {
        "type": "string",
        "example": "github/hubot: A customizable life embetterment robot."
      },
      "count": {
        "type": "integer",
        "example": 3542
      },
      "uniques": {
        "type": "integer",
        "example": 2225
      }
    },
    "required": [
      "path",
      "title",
      "uniques",
      "count"
    ]
  }
}