Retrieves a list of categories, given the provided paging, filtering, and sorting. Query Categories runs with these defaults, which you can override:
createdDate
is sorted in ASC
orderpaging.limit
is 100
paging.offset
is 0
For field support for filters and sorting, see Categories: Supported Filters and Sorting.
To learn about working with Query endpoints, see API Query Language, Sorting and Paging, and Field Projection.Options to use when querying categories. See API Query Language for more details.
Predefined sets of fields to return.
COUNTS
: Returns assignedEventsCount
.List of categories.
Metadata for the paginated results.
curl -X POST 'https://www.wixapis.com/events/v1/categories/query' \
-H 'Content-Type: application/json' \
-H 'Authorization: <AUTH TOKEN>' \
-d '{
{
"query": {
"filter": {
"name": {
"$eq": "food"
}
}
}
}
{
"categories": [
{
"id": "e9779de3-a085-4255-b3a6-9559990d4436",
"name": "food",
"states": ["MANUAL"],
"createdDate": "2021-04-01T09:49:37.068Z"
}
],
"metaData": {
"count": 2,
"offset": 0,
"total": 2
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.