api for engagement metrics