Permalink
Browse files

add api docs for top downloads for today

  • Loading branch information...
1 parent 264182e commit 0cc66198dab5ad8f375dc7c2c5e463c3965c729f @cldwalker cldwalker committed Aug 5, 2011
Showing with 20 additions and 0 deletions.
  1. +20 −0 rubygems-org-api.md
View
@@ -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

0 comments on commit 0cc6619

Please sign in to comment.