Count sites

View as MarkdownOpen in Claude
Returns the total number of websites matching the filters - the same public filter vocabulary as "List sites" (`id[]`, `team[]`, `tags[]`, `connected`, `core_version[]`, `engine_version[]`, `s`). Sorting, pagination, includes and sparse fieldsets have no effect on a scalar count and answer 422 if sent. Answers **200** with a meta-only JSON:API document: `meta.count`.

Authentication

AuthorizationBearer

Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

Query parameters

filter[s]stringOptional
filter[core_version][]stringOptional

Exact WordPress versions of the website, for example 6.8.1; repeat the parameter for several, any of them matches

filter[engine_version][]stringOptional

Exact PHP versions of the website, for example 8.2.27; repeat the parameter for several, any of them matches

Response

200 - Website count

jsonapiobjectOptional
metaobjectOptional