reposGetTopPaths
Get top referral paths
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/traffic/popular/paths - Operation ID:
repos/get-top-paths
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"
]
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposGetTopPaths', {
# Add required parameters here
})