Shopify · Arazzo Workflow

Shopify Find Collection and List Its Products

Version 1.0.0

Find a custom collection by title, then list the products it contains.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub CommerceE-CommercePaymentsRetailShopping CartT1ArazzoWorkflows

Provider

shopify

Workflows

find-collection-and-list-products
Resolve a collection by title and list the products inside it.
Searches custom collections by title and, when found, lists the products in the matched collection.
2 steps inputs: limit, title outputs: collectionId, products
1
findCollection
Search custom collections filtered by the supplied title, returning at most one candidate match.
2
listProducts
List the products that belong to the matched collection.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Shopify Find Collection and List Its Products
  summary: Find a custom collection by title, then list the products it contains.
  description: >-
    A storefront merchandising read flow. The workflow searches custom
    collections by title and branches: when a collection matches it lists the
    products that belong to that collection, and when none matches it ends
    cleanly. This lets a caller resolve a human-friendly collection name into
    the products that should be displayed for it. Every step spells out its
    request inline so the flow can be read and executed without opening the
    underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: collectionsApi
  url: ../openapi/shopify-collections-api-openapi.yml
  type: openapi
- name: customCollectionsApi
  url: ../openapi/shopify-custom-collections-api-openapi.yml
  type: openapi
workflows:
- workflowId: find-collection-and-list-products
  summary: Resolve a collection by title and list the products inside it.
  description: >-
    Searches custom collections by title and, when found, lists the products in
    the matched collection.
  inputs:
    type: object
    required:
    - title
    properties:
      title:
        type: string
        description: The collection title to resolve.
      limit:
        type: integer
        description: Maximum number of products to return.
        default: 50
  steps:
  - stepId: findCollection
    description: >-
      Search custom collections filtered by the supplied title, returning at
      most one candidate match.
    operationId: listCustomCollections
    parameters:
    - name: title
      in: query
      value: $inputs.title
    - name: limit
      in: query
      value: 1
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      collectionId: $response.body#/custom_collections/0/id
    onSuccess:
    - name: collectionFound
      type: goto
      stepId: listProducts
      criteria:
      - context: $response.body
        condition: $.custom_collections.length > 0
        type: jsonpath
    - name: collectionMissing
      type: end
      criteria:
      - context: $response.body
        condition: $.custom_collections.length == 0
        type: jsonpath
  - stepId: listProducts
    description: List the products that belong to the matched collection.
    operationId: listCollectionProducts
    parameters:
    - name: collection_id
      in: path
      value: $steps.findCollection.outputs.collectionId
    - name: limit
      in: query
      value: $inputs.limit
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      products: $response.body#/products
  outputs:
    collectionId: $steps.findCollection.outputs.collectionId
    products: $steps.listProducts.outputs.products

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/shopify-find-collection-and-list-products-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.