I made a few iOS Apps that access Wordpress blogs via WP REST API and I'm wondering if the calls I'm making register in the site stats in the dashboard. If I call the root posts endpoint to get the latest posts does it register as a page view? And if I call a posts/$postId endpoint does it register as a page view as well?


1 Answer 1


This will depend on the type of plugin you use for counting page hits. In general stats are being counted on front end, either by inserting some image or JS which generates a server hit on the stats server that will be counted (google analytics, wordpress.com stats) or by counting the hit and storing it in the wordpress DB when the front end page is actually being generated.

The Rest API do not have easy means to add tracking JS and images, and do not follow the front end page generation code flow, so the answer to your question is 99.9% it will not be counted. Counting those types of requests will require some different strategy than the current plugins employ, but what is true for now might change in the future, although I assume that such tracking code will have different tracking for front page tracking and API tracking.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.