GET/repos/{owner}/{repo}/traffic/popular/referrers

Get top referral sources

Retrieves the top 10 referral sources for a repository over the last 14 days. Use this endpoint to review which sources drive visits to the repository.

2 parameters
ownerstringrequired
The account owner of the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.

2 status codes
200Returns an array of referral source objects, each containing the referrer name, visit count, and unique visitor count.
referrerstringrequired
countintegerrequired
uniquesintegerrequired
403Returned when the authenticated user is not permitted to access repository traffic data.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 403 is returned when the authenticated user cannot access traffic data for the repository. The owner and repo path parameters must identify the repository.