Title: Does this work with WP-API?
Last modified: August 30, 2016

---

# Does this work with WP-API?

 *  Resolved [jamiefuchs](https://wordpress.org/support/users/jamiefuchs/)
 * (@jamiefuchs)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/does-this-work-with-wp-api/)
 * Hey,
 * I’m building a highly customized website that needs some statistics. WordPress
   will be used for the backend and an android/IOS app for user interaction.
 * Will this plugin record statistics for calls made through the API?
 * [https://wordpress.org/plugins/wp-statistics/](https://wordpress.org/plugins/wp-statistics/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/does-this-work-with-wp-api/#post-6315403)
 * Most likely not, we use the WordPress shutdown hook which isn’t called in the
   ajax api.
 *  Thread Starter [jamiefuchs](https://wordpress.org/support/users/jamiefuchs/)
 * (@jamiefuchs)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/does-this-work-with-wp-api/#post-6315406)
 * Okay, thanks for the quick reply!
 * If you were to build something like that, what would you recommend? Me to modify
   what you’ve done already, or build a custom solution from scratch? For the most
   part I’m just learning how to extend wordpress so I was hoping to find ready-
   made solutions for most things and this was the closest that I found.
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/does-this-work-with-wp-api/#post-6315426)
 * That would entirely depend on what kind of stats you were looking for. If your
   looking to track just basic visitors you could make a custom ajax call that would
   fire off the shutdown function in WP Statistics.
 * But if you wanted more detailed information, like what post or pages they “loaded”(
   not really a page load since you’d be doing it through an ajax call), WP Statistics
   wouldn’t be able to track that as we record the URL, which for all ajax calls
   is the same.
 *  Thread Starter [jamiefuchs](https://wordpress.org/support/users/jamiefuchs/)
 * (@jamiefuchs)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/does-this-work-with-wp-api/#post-6315472)
 * Ah, thank you very much. I will need a bit more detailed information, so I’ll
   have to create some custom code.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Does this work with WP-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/)

## Tags

 * [api](https://wordpress.org/support/topic-tag/api/)

 * 4 replies
 * 2 participants
 * Last reply from: [jamiefuchs](https://wordpress.org/support/users/jamiefuchs/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/does-this-work-with-wp-api/#post-6315472)
 * Status: resolved