[wp-trac] [WordPress Trac] #54989: Download stats API returning unexpected results
WordPress Trac
noreply at wordpress.org
Sat Jan 29 16:34:24 UTC 2022
#54989: Download stats API returning unexpected results
--------------------------+-----------------------------
Reporter: pyves | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
The download stats API endpoint documented
[here](https://codex.wordpress.org/WordPress.org_API) is returning
unexpected results.
Consider the following API requests:
https://api.wordpress.org/stats/plugin/1.0/downloads.php?slug=definitely-
not-a-real-plugin
https://api.wordpress.org/stats/plugin/1.0/downloads.php?slug=100
https://api.wordpress.org/stats/plugin/1.0/downloads.php?slug=sadikovtdjoiybvjtdoivgrdjashc
As you'll probably have guessed, none of the above plugins exist, yet the
API is indicating up to several hundred daily downloads. This makes me
wonder whether the API can be trusted at all, even for valid plugin slugs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54989>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list