getPostMetrics( )


Retrieves a post's metrics.

A post's metrics include the comments, likes, and views the post receives.

Permissions
Manage Blog
Read Blog
Read Draft Blog Posts
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
postIdstringRequired

Post ID to retrieve metrics for.

Returns
Return Type:Promise<GetPostMetricsResponse>
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?