GET

Get Total Posts


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Gets the total amount of published posts of the blog.

Permissions
Manage Blog
Read Blog
Read Draft Blog Posts
Learn more about app permissions.
Endpoint
GET
https://www.wixapis.com/blog/v2/stats/posts/total

Query Params
languagestring

Language filter.

2-or-4-letter language code in IETF BCP 47 language tag format. Pass a language to receive the total amount of posts in that specified language.

Response Object
totalintegerminimum 0

Total amount of published posts.

Get Total Posts Example 1
Request
cURL
curl 'www.wixapis.com/blog/v2/stats/posts/total' \ -H 'Content-Type: application/json' \ -H 'Authorization: <AUTH>'
Response
JSON
{ "total": 9 }
Errors

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

Did this help?