Count websites
Returns how many websites match the filters, without listing them. Use it to size a selection, for example how many websites carry a tag or run a given PHP version, before you act on it.
It accepts the same filters as “List websites”. Only filter is accepted: sort, page, fields and include answer 422.
Authentication
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Query parameters
Free-text search on the website's name, slug or address.
Exact WordPress versions, for example 6.8.1. Several values match any of them.
Exact PHP versions, for example 8.2.27. Several values match any of them.
1 for websites whose connection works, 0 for websites that are not connected.
1 for websites with Patch & Protect switched on, 0 for websites without it.
Response
200 - Website count
