WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#5046 closed enhancement (fixed)

Statistics API for the Plugin Directory

Reported by: johnbillion Owned by: 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)

comment:1 follow-up: Viper007Bond7 years ago

I believe this was brought up on wp-hackers.

comment:2 in reply to: ↑ 1 johnbillion7 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?

comment:4 johnbillion7 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?

comment:5 DD327 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).

comment:6 Nazgul7 years ago

  • Milestone set to 2.5

comment:7 johnbillion5 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.