octokit.rest

Get top referral sources

Get the top 10 referrers over the last 14 days.

Parameters

string The token will be passed in the authorization header.

string

string

Request

GET https://api.github.com/repos///traffic/popular/referrers
authorization: bearer undefined
accept: application/vnd.github.v3+json
user-agent: octokit.rest


Example Response

Status: 200
[
  {
    "referrer": "Google",
    "count": 4,
    "uniques": 3
  },
  {
    "referrer": "stackoverflow.com",
    "count": 2,
    "uniques": 2
  },
  {
    "referrer": "eggsonbread.com",
    "count": 1,
    "uniques": 1
  },
  {
    "referrer": "yandex.ru",
    "count": 1,
    "uniques": 1
  }
]

See documentation on GitHub developer guides