Using a Perl script to obtain blog statistics

  • Author
    Posts
  • #3346461

    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 anautismobserver.wordpress.com.

    #3346698

    kokkieh
    Staff

    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.

    #3361948

    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?

    #3362071

    fstat
    Staff

    Hi there,

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

    https://developer.wordpress.com/contact/

You must be logged in to reply to this topic.