Title: REST API
Last modified: December 15, 2020

---

# REST API

 *  [xescugc](https://wordpress.org/support/users/xescugc/)
 * (@xescugc)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/rest-api-103/)
 * We installed yesterday the REST API and I have a few questions and things to 
   comment on it 🙂
 * * First of all the documentation on [https://documenter.getpostman.com/view/3239688/RWTkSeby](https://documenter.getpostman.com/view/3239688/RWTkSeby)
   is not up to date. Doing the `https://{your-domain}/wp-json/wpstatistics/v1` 
   will display the actual documentation
    * I’ve seen it’s not possible to filter
   by dates not even with `from|to` or `rangestart|rangeend` and it can only be 
   done by `days` which if you want old information or specific date range is a 
   PITA to use. Reading the code I did not see any possibility to have that but 
   on the actual WP-Statistics it’s how it works, you filter by dates.
 * I don’t know if this is the right place to do this or I should open an Issue 
   to the right GitHub repo (if you link it to me I can do that).
 * The main thing for me is to be able to filter by dates `from|to` instead of having
   to use the `days`.
 * We are using the Version: 1.2.3
 * **PS**: I’ve read a bit more the code and where it’s missing is on the `hits`(
   which is what I’m using) on other places you have the `'rangestartdate'` and `'
   rangeenddate'` defined, like on the browsers.
 * Thanks for your work 🙂
    -  This topic was modified 5 years, 5 months ago by [xescugc](https://wordpress.org/support/users/xescugc/).
    -  This topic was modified 5 years, 5 months ago by [xescugc](https://wordpress.org/support/users/xescugc/).
    -  This topic was modified 5 years, 5 months ago by [xescugc](https://wordpress.org/support/users/xescugc/).

The topic ‘REST API’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [xescugc](https://wordpress.org/support/users/xescugc/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/rest-api-103/)
 * Status: not resolved