Export wordpress stats using public-api
-
I followed guides: https://developer.wordpress.com/docs/oauth2/ and https://developer.wordpress.com/docs/api/1.1/get/sites/%24site/stats/#apidoc-resource-url but I am failing to retrieve stats for my wordpress blog. I successfully retrieved my api key in format: http://chmuroman.pl/#access_token=API_TOKEN&expires_in=1209600&token_type=bearer&site_id=111607323 and when trying to get stats with curl like:
curl -H “Authorization: Bearer API_TOKEN” “https://public-api.wordpress.com/rest/v1.1/sites/111607323/stats”
I am getting following error:
{“error”:”invalid_token”,”message”:”The OAuth2 token is invalid.”}I also tried with Code type of token but it is giving me “error”:”unauthorized”,”message”:”user cannot view stats.
I need simple statistics information: how many users entered my blog every day for lets say last year. Getting this in CSV would be great.
The blog I need help with is: (visible only to logged in users)
- The topic ‘Export wordpress stats using public-api’ is closed to new replies.