REST API
Live filtering is served by a small REST surface under ivasure/v1. It is the same data the storefront uses, so anything the filter can do, a client of yours can do too.
The endpoints
| Route | Method | Access |
|---|---|---|
/ivasure/v1/filters/schema | GET | Public |
/ivasure/v1/filters/query | GET | Public |
/ivasure/v1/filters/reindex | POST | Requires manage_sc_shop_settings or manage_options |
schema describes the filter - which facets exist, their terms and counts. query answers a filtered request: the same description, plus the matching products.
Parameters
Both read endpoints accept the same URL parameters the storefront uses, so a filtered address can be handed to the API unchanged.
GET /wp-json/ivasure/v1/filters/query?ks_room=bedroomurl for the filtered view, built from the page the request came from. Without currentUrl there is nothing to build it from, so it echoes the REST address instead. The storefront always sends it; current_url is accepted as a synonym.What query returns
| Key | Contains |
|---|---|
state | The parsed filter state: prefix, operator, selections, price, rating, page. |
activeCount | How many filters are applied. |
activeItems | One entry per applied filter, with the label to show on a chip. |
facets | Every facet with its terms and counts. |
found | Total matching products. |
maxPages | Pages at the current page size. |
pagination | Rendered pagination, when there is more than one page. |
html | The rendered results grid. |
url | Canonical URL for this filtered view. |
emptyStateText | What to show when nothing matched. |
zeroRelaxations | Suggested single removals when a combination matched nothing. |
Rate limiting
| Caller | Budget | Counted per |
|---|---|---|
| Anonymous | 300 per minute | IP address, user agent and language together |
| Signed in | 60 per minute | User ID |
Over the limit the endpoint returns 429. The storefront treats that as “keep what is on screen” rather than showing an error, so a shopper who trips it sees the products they already had and the next request works.
Both the limits and the window are filterable, and sites behind a CDN can correct the client IP - see the filter reference.
Was this page helpful?