Skip to content

Commit

Permalink
add api docs for top downloads for today
Browse files Browse the repository at this point in the history
  • Loading branch information
cldwalker committed Aug 5, 2011
1 parent 264182e commit 0cc6619
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions rubygems-org-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,26 @@ Returns an object containing the total number of downloads on RubyGems.
"total": 242674788
}

### GET - `/api/v1/downloads/top.(json|xml|yaml)`

Returns an object containing the top 50 downloaded gem versions for today.

$ curl https://rubygems.org/api/v1/downloads/top.json

{
"gems": [
[
# version attributes
{
'full_name' => 'mime-types-1.16' # more attributes ...
},
# downloads today
2806
],
# more download/version pairs ...
]
}

### GET - `/api/v1/downloads/[GEM NAME]-[GEM VERSION].(json|xml|yaml)`

Returns an object containing the total number of downloads for a paritcular gem
Expand Down

0 comments on commit 0cc6619

Please sign in to comment.