Using a Perl script to obtain blog statistics

  • Is it possible to use a Perl script to obtain blog statistics (such as number of views, visitors, followers, comments, likes, or some other metric of popularity) for an arbitrary WordPress blog (not my own)?

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    We offer a REST API that does have some endpoints for Insights/stats data:

    https://developer.wordpress.com/docs/api/

    But you’d first have to authenticate as a user on the site in question that has access to that data – on WordPress.com sites stats are not considered public data and are only available to site admins; on Jetpack-connected sites the owner of the Jetpack connection sets the permissions for which user roles on the site have access.

    So you can’t use the API to just access this data for any site you’re not an admin of.

  • The number of followers of a WordPress blog is public information that is displayed on the blog feed (eg https://wordpress.com/read/feeds/93815501). I can determine the blog feed from the page source for the blog’s home page.

    Since it is public information, is there an automated means (such as a Perl script) to obtain the number of followers for each of a list of WordPress blog URL’s (without admin privileges)? If so, can you give me tips on how to get started?

  • Hi there,

    This falls outside of the scope of support for these forums. I suggest contacting our developers using the following form:

    Contact

  • The topic ‘Using a Perl script to obtain blog statistics’ is closed to new replies.