Shop API icon

Shop API

Call Shop API

Product Types → Count

AI-generated

Summary

Count product types matching an optional JSON filter by posting it to the Shop API product type search endpoint with pagination disabled. Returns the API’s total count as one n8n item.

Inputs

  • filter — Optional JSON object used to filter product types. Invalid JSON or a non-object value is ignored; the request then uses an empty filter.

Output shape

A single item with a JSON object containing total (a number).

The request posts to /v1/product-types/search and sets page and pageSize to 0. If the response has no total property, the output is `{ "total": 0 }.

Links

Discussion