Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

BrowserStats

A HTTP API written in Go that exposes StatsCounter's browser share dataset as JSON

Production Host

http://browser-stats.herokuapp.com/stats?from=2016-06&to=2016-06

API

GET /stats

Returns an array of the most popular browsers and respective market shares.

Query Parameters

  • from - the month and year at which the data should start
  • to - the month and year at which the data should end

These parameters must be specified in a YYYY-MM format, otherwise one will receive a HTTP 400.

Local Development

  • go get github.com/tools/godep
  • cd <your Go src directory>
  • git clone https://github.com/jamesseanwright/browserstats.git
  • cd browserstats
  • godep restore
  • PORT=8080 go run server.go

Unit Tests

go test ./internal/tests/

Only some coverage thus far.

About

A HTTP API written in Go that exposes StatsCounter's browser share dataset as JSON

Resources

Releases

No releases published

Packages

No packages published

Languages