For AI agents: markdown of this page — /docs-content-en/entities/catalog-services/aggregate.md documentation index — /llms.txt

Aggregate services

POST /v1/catalog-services/aggregate

Counts and groups services within a catalog. filter.iblockId is required.

Terminal
curl -X POST "https://vibecode.bitrix24.com/v1/catalog-services/aggregate" \
  -H "X-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"filter":{"iblockId":25},"aggregate":[{"field":"*","function":"count"}]}'