stats/visits endpoint no longer supports quantity parameter #35414
Labels
[Feature] Stats Data
Feature that enables users to track their site's traffic and gain insights on popular content.
[Feature] WPCOM API
[Plugin] Jetpack
Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/
[Pri] High
[Status] Priority Review Triggered
The guild in charge of triage has been notified of this issue in Slack
Triaged
[Type] Bug
When a feature is broken and / or not performing as intended
Impacted plugin
Jetpack
Quick summary
stats/visits
started ignoringquantity
parameter when returning pieces of data. It directly affects API users such as Jetpack app.Expected behavior (before)
WP.COM API GET
v1.1/sites/3584907/stats/visits/?period=week&quantity=1
Response
Current behavior (now)
WP.COM API GET
v1.1/sites/3584907/stats/visits/?period=week&quantity=1
Response
Test details
I sandboxed and tested ~one week old API which doesn't have this issue, so that caused this issue was made recently.
Steps to reproduce
Expected: 1 piece of
data
Actual: 30 pieces of
data
A clear and concise description of what you expected to happen.
No response
What actually happened
No response
Impact
Most (> 50%)
Available workarounds?
No but the platform is still usable
Platform (Simple and/or Atomic)
No response
Logs or notes
No response
The text was updated successfully, but these errors were encountered: