Make WordPress Core

Opened 16 years ago

Closed 15 years ago

#5046 closed enhancement (fixed)

Statistics API for the Plugin Directory

Reported by: johnbillion's profile johnbillion Owned by: matt's profile matt
Milestone: Priority: normal
Severity: trivial Version:
Component: WordPress.org Site Keywords: wordpress.org plugin stats api
Focuses: Cc:

Description

Are there any plans for an API for plugin download statistics on the Plugin Directory?

Wouldn't it be great to be able to display the total number of downloads for your plugin on your blog, just like on your plugin's statistics page on wordpress.org/extend.

A simple XML file is all that would be needed. I see there's already an XML file[1] for recent download activity (which is used to build the graph on the stats page) but none for total downloads etc.

How about it?

[1] Example: http://wordpress.org/extend/stats/plugin-xml.php?slug=podpress

Change History (7)

#1 follow-up: @Viper007Bond
16 years ago

I believe this was brought up on wp-hackers.

#2 in reply to: ↑ 1 @johnbillion
16 years ago

Replying to Viper007Bond:

I believe this was brought up on wp-hackers.

I thought it had too but couldn't find anything. Anyone got a link?

#4 @johnbillion
16 years ago

Thanks DD32. So the only thing missing is a way of getting the total number of downloads without having to add up all the download counts for every date returned in plugin-xml.php.

Any way the total download count could be added to plugin-xml.php?

#5 @DD32
16 years ago

So the only thing missing is a way of getting the total number of downloads without having to add up all the download counts for every date returned in plugin-xml.php

I've got no knowledge of the backend of the script, But i think plugin-xml.php only returns the last 30 days worth of downloads too(as thats all that the graph needs).

#6 @Nazgul
16 years ago

  • Milestone set to 2.5

#7 @johnbillion
15 years ago

  • Milestone 2.9 deleted
  • Resolution set to fixed
  • Status changed from new to closed

This functionality is now available through the plugins_api() function in 2.7.

Note: See TracTickets for help on using tickets.