Counts events by status. To learn about working with query endpoints, see API Query Language, Sorting and Paging, and Field Projection.
Filter object in the following format:
"filter" : { "fieldName1": "value1" }
.
Parameters to count events by.
Whether draft events should be returned in the response.
Note: This parameter requires the WIX_EVENTS.READ_DRAFT_EVENTS
permission.
Metadata for the paginated results.
Filter facets.
curl -X POST 'https://www.wixapis.com/events/v3/events/count-by-status' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
"query": {
"filter": {
"status": {
"$eq": "CANCELED"
}
},
"paging": {
"limit": 10
}
},
"facet": ["status"],
"includeDrafts": false
}'
{
"pagingMetadata": {
"count": 10,
"offset": 0,
"total": 10,
"tooManyToCount": null,
"cursors": null,
"hasNext": null
},
"facets": {
"status": {
"counts": {
"CANCELED": 10
}
}
}
}
There is 1 error with this status code.
This method may also return standard errors. Learn more about standard Wix errors.