CMM-1221 add remaining most viewed endpoints#1151
Draft
Conversation
…-the-stats-country-endpoint # Conflicts: # wp_api/src/wp_com/client.rs # wp_api/src/wp_com/endpoint.rs # wp_api/src/wp_com/mod.rs
Create a new endpoint for stats region views following the
stats_country_views pattern. This provides location analytics
at the region/state/province level within countries.
- Add StatsRegionViewsParams with period, date, summarize, etc.
- Add StatsRegionViewsResponse with summary and days fields
- Add endpoint at /sites/{id}/stats/location-views/region
- Add comprehensive unit tests
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Create a new endpoint for stats city views following the
stats_country_views pattern. This provides location analytics
at the city level with coordinate-based map markers.
- Add StatsCityViewsParams with period, date, summarize, etc.
- Add StatsCityViewsResponse with summary and days fields
- Add StatsCityCoordinates for latitude/longitude data
- Add endpoint at /sites/{id}/stats/location-views/city
- Add comprehensive unit tests
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…naming-Most-Viewed-endpoints
4aa8913 to
9208e76
Compare
…ask/CMM-1221-Add-renaming-Most-Viewed-endpoints
Base automatically changed from
task/CMM-1202-create-the-stats-country-endpoint
to
trunk
February 5, 2026 21:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
WPComLanguagefor locale parameterChanges
New Location Stats Endpoints
/sites/{id}/stats/location-views/region): Regional/state/province level stats within countries/sites/{id}/stats/location-views/city): City-level stats with latitude/longitude coordinates for map markersNew Content Stats Endpoint
/sites/{id}/stats/top-authors): Author traffic analytics with post-level breakdowns, follow data, and view countsImprovements
WPComLanguageenum instead ofStringfor the locale parameterstats_country_views:summarize: booldefaulting totruesummary(aggregated) anddays(per-day breakdown) response formats