reposGetTopReferrers
Get top referral sources
Details
- Method:
GET - Path:
/repos/{owner}/{repo}/traffic/popular/referrers - Operation ID:
repos/get-top-referrers
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": "Referrer Traffic",
"description": "Referrer Traffic",
"type": "object",
"properties": {
"referrer": {
"type": "string",
"example": "Google"
},
"count": {
"type": "integer",
"example": 4
},
"uniques": {
"type": "integer",
"example": 3
}
},
"required": [
"referrer",
"uniques",
"count"
]
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('github')
# Call this tool
result = await agent.call_tool('reposGetTopReferrers', {
# Add required parameters here
})