All Projects → doowb → Github Traffic

doowb / Github Traffic

Licence: mit
Get the Github traffic for the specified repository

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Github Traffic

Analytics.usa.gov
The US federal government's web traffic.
Stars: ✭ 564 (+632.47%)
Mutual labels:  statistics, analytics, traffic
Pypistats
Command-line interface to PyPI Stats API to get download stats for Python packages
Stars: ✭ 86 (+11.69%)
Mutual labels:  api, statistics, stats
Stats
A well tested and comprehensive Golang statistics library package with no dependencies.
Stars: ✭ 2,196 (+2751.95%)
Mutual labels:  statistics, analytics, stats
Sportsipy
A free sports API written for python
Stars: ✭ 229 (+197.4%)
Mutual labels:  api, statistics, stats
Data Science Best Resources
Carefully curated resource links for data science in one place
Stars: ✭ 1,104 (+1333.77%)
Mutual labels:  api, statistics, analytics
Tautulli
A Python based monitoring and tracking tool for Plex Media Server.
Stars: ✭ 4,152 (+5292.21%)
Mutual labels:  statistics, analytics, stats
Umami
Umami is a simple, fast, website analytics alternative to Google Analytics.
Stars: ✭ 9,228 (+11884.42%)
Mutual labels:  statistics, analytics
Homer
HOMER - 100% Open-Source SIP / VoIP Packet Capture & Monitoring
Stars: ✭ 855 (+1010.39%)
Mutual labels:  statistics, analytics
Falko Api
📈 Falko API: Plataform for agile projects management 📊
Stars: ✭ 13 (-83.12%)
Mutual labels:  api, github-api
App
Just a little analytics insight for your personal or indie project
Stars: ✭ 40 (-48.05%)
Mutual labels:  analytics, stats
Swagger Stats
API Observability. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices.
Stars: ✭ 559 (+625.97%)
Mutual labels:  api, statistics
Analytics
Simple, open-source, lightweight (< 1 KB) and privacy-friendly web analytics alternative to Google Analytics.
Stars: ✭ 9,469 (+12197.4%)
Mutual labels:  statistics, analytics
Google Analytics Api Symfony
Google Analytics API Symfony Bundle
Stars: ✭ 43 (-44.16%)
Mutual labels:  api, analytics
Github Api
Java API for GitHub
Stars: ✭ 743 (+864.94%)
Mutual labels:  api, github-api
Build
TeaWeb-可视化的Web代理服务。DEMO: http://teaos.cn:7777
Stars: ✭ 656 (+751.95%)
Mutual labels:  api, statistics
Github Repo Size
🚀 Chrome extension to display repository size on GitHub
Stars: ✭ 859 (+1015.58%)
Mutual labels:  github-api, statistics
Promcord
📊 Analyze your entire discord guild in grafana using prometheus. Message, User, Game and Voice statistics...
Stars: ✭ 39 (-49.35%)
Mutual labels:  statistics, analytics
Monocle
Detect anomalies in your GitHub/Gerrit projects
Stars: ✭ 50 (-35.06%)
Mutual labels:  analytics, stats
Githubapi
Swift implementation of Github REST API v3
Stars: ✭ 55 (-28.57%)
Mutual labels:  api, github-api
Excelize
Golang library for reading and writing Microsoft Excel™ (XLSX) files.
Stars: ✭ 10,286 (+13258.44%)
Mutual labels:  statistics, analytics

github-traffic NPM version NPM downloads Build Status

Get the Github traffic for the specified repository

Install

Install with npm:

$ npm install --save github-traffic

Usage

var traffic = require('github-traffic');

API

traffic

Get the last 14 days (this is Github's limitation) of Github traffic for the specified repository. The results will contain 4 keys (one for each of the traffic endpoints specified in the api documentation). See the example results for the expanded results from the example. See the other methods below to get results for a specific endpoint.

Params

  • repo {String}: Full repository to get traffic, formatted as :owner/:repo. If the repository is published to NPM, the NPM name may be used.
  • options {Object}: Options containing the Github authentication information. This is required since user's must be administrators on the repository to retrieve traffic information.
  • options.username {String}: Github username of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.password {String}: Github user's password of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.token {String}: Github oauth token for the repository administrator retrieving the traffic informatino. This is required if the username/password combination is not used.
  • cb {Function}: Optional callback function that will be called with error information or the results. When omitted a Promise is returned.
  • returns {Promise}: Promise with the traffic information when ready.

Example

var options = {
  username: 'doowb',
  password: '**********'
};

traffic('assemble/assemble', options, function(err, results) {
  if (err) return console.error(err);
  console.log(results);
  //=> {
  //=>   referrers: [ ... ],
  //=>   paths: [ ... ],
  //=>   views: {
  //=>     count: 4043,
  //=>     uniques: 1155,
  //=>     views: [ ... ]
  //=>   },
  //=>   clones: {
  //=>     count: 47,
  //=>     uniques: 38,
  //=>     clones: [ ... ]
  //=>   }
  //=> }
});

.referrers

Get referrers for the specified repository from the Github traffic api.

Params

  • repo {String}: Full repository to get traffic, formatted as :owner/:repo. If the repository is published to NPM, the NPM name may be used.
  • options {Object}: Options containing the Github authentication information. This is required since user's must be administrators on the repository to retrieve traffic information.
  • options.username {String}: Github username of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.password {String}: Github user's password of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.token {String}: Github oauth token for the repository administrator retrieving the traffic informatino. This is required if the username/password combination is not used.
  • cb {Function}: Optional callback function that will be called with error information or the results. When omitted a Promise is returned.
  • returns {Promise}: Promise with the traffic information when ready.

Example

var options = {
  username: 'doowb',
  password: '**********'
};

traffic.referrers('assemble/assemble', options, function(err, results) {
  if (err) return console.error(err);
  console.log(results);
  //=> [
  //=>   { referrer: 'Google', count: 765, uniques: 377 },
  //=>   ...
  //=> ],
});

.paths

Get paths for the specified repository from the Github traffic api.

Params

  • repo {String}: Full repository to get traffic, formatted as :owner/:repo. If the repository is published to NPM, the NPM name may be used.
  • options {Object}: Options containing the Github authentication information. This is required since user's must be administrators on the repository to retrieve traffic information.
  • options.username {String}: Github username of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.password {String}: Github user's password of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.token {String}: Github oauth token for the repository administrator retrieving the traffic informatino. This is required if the username/password combination is not used.
  • cb {Function}: Optional callback function that will be called with error information or the results. When omitted a Promise is returned.
  • returns {Promise}: Promise with the traffic information when ready.

Example

var options = {
  username: 'doowb',
  password: '**********'
};

traffic.paths('assemble/assemble', options, function(err, results) {
  if (err) return console.error(err);
  console.log(results);
  //=> [
  //=>   {
  //=>     path: '/assemble/assemble',
  //=>     title: 'GitHub - assemble/assemble: Static site generator and rapid prototyping frame...',
  //=>     count: 1551,
  //=>     uniques: 839
  //=>   },
  //=>   ...
  //=> ],
});

.views

Get views for the specified repository from the Github traffic api.

Params

  • repo {String}: Full repository to get traffic, formatted as :owner/:repo. If the repository is published to NPM, the NPM name may be used.
  • options {Object}: Options containing the Github authentication information. This is required since user's must be administrators on the repository to retrieve traffic information.
  • options.username {String}: Github username of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.password {String}: Github user's password of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.token {String}: Github oauth token for the repository administrator retrieving the traffic informatino. This is required if the username/password combination is not used.
  • cb {Function}: Optional callback function that will be called with error information or the results. When omitted a Promise is returned.
  • returns {Promise}: Promise with the traffic information when ready.

Example

var options = {
  username: 'doowb',
  password: '**********'
};

traffic.views('assemble/assemble', options, function(err, results) {
  if (err) return console.error(err);
  console.log(results);
  //=> {
  //=>   count: 4043,
  //=>   uniques: 1155,
  //=>   views: [ ... ]
  //=> }
});

.clones

Get clones for the specified repository from the Github traffic api.

Params

  • repo {String}: Full repository to get traffic, formatted as :owner/:repo. If the repository is published to NPM, the NPM name may be used.
  • options {Object}: Options containing the Github authentication information. This is required since user's must be administrators on the repository to retrieve traffic information.
  • options.username {String}: Github username of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.password {String}: Github user's password of the repository administrator retrieving the traffic information. This is required if an oauth token is not used.
  • options.token {String}: Github oauth token for the repository administrator retrieving the traffic informatino. This is required if the username/password combination is not used.
  • cb {Function}: Optional callback function that will be called with error information or the results. When omitted a Promise is returned.
  • returns {Promise}: Promise with the traffic information when ready.

Example

var options = {
  username: 'doowb',
  password: '**********'
};

traffic.clones('assemble/assemble', options, function(err, results) {
  if (err) return console.error(err);
  console.log(results);
  //=> {
  //=>   count: 47,
  //=>   uniques: 38,
  //=>   clones: [ ... ]
  //=> }
});

About

Related projects

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Please read the contributing guide for avice on opening issues, pull requests, and coding standards.

Building docs

(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)

To generate the readme and API documentation with verb:

$ npm install -g verb verb-generate-readme && verb

Running tests

Install dev dependencies:

$ npm install -d && npm test

Author

Brian Woodward

License

Copyright © 2016, Brian Woodward. Released under the MIT license.


This file was generated by verb-generate-readme, v0.1.30, on September 16, 2016.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].