Shop API icon

Shop API

Call Shop API

Contacts → Count

AI-generated

Summary

Counts contacts matching an optional JSON filter by posting to the contacts search endpoint with pagination disabled. Returns the API’s total count as one n8n item.

Inputs

  • Request filter — Optional JSON object used to filter contacts. Invalid JSON or a non-object value is ignored, so the request uses an empty filter.

Output shape

A single item with a JSON object containing a numeric total field.

The request sets page and pageSize to 0. If the API response has no total field, the output is {"total":0}.

Links

Discussion