I added ‘search’ to make the code work,
but I found that if the result is empty, it will be recorded multiple times. If there is data in the result, it will only be recorded once
e.g.
https://example.com/wp-json/wp/v2/posts?search=cat
‘cat’ have 1 post in JSON,Search statistics occur once, and subsequent requests of the same type will no longer be recorded
https://example.com/wp-json/wp/v2/posts?search=bibibi
‘bibibi’ have no post in JSON,Search statistics will always be recorded
I hope to receive your help
thanks