API for Post Stats for Self-Hosted WordPress using JetPack [closed]

There is indeed a Stats API that will allow you to access stats from a WordPress.com or a Jetpack site.

You can read more about it here:

Jetpack uses this API to populate the Top Posts widget:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)