Skip to Content

Catalog

Search products

GET /api/ucp/{slug}/catalog/search?q={query}&first={n}

Full-text product search proxied to the Shopify Admin API.

Parameters

ParameterTypeDefaultDescription
qstringrequiredSearch terms
firstinteger20Max results to return

Response

{ "products": [ { "id": "gid://shopify/Product/123456", "title": "Running Shoes", "description": "Lightweight running shoes...", "handle": "running-shoes", "url": "https://mystore.myshopify.com/products/running-shoes", "price_range": { "min": 7900, "max": 12900, "currency": "USD" }, "variants": [ { "id": "gid://shopify/ProductVariant/789", "title": "Size 10", "price": 9900, "currency": "USD", "available": true } ], "media": [{ "url": "https://cdn.shopify.com/...", "alt": "Running shoes" }] } ] }

Look up products by ID

GET /api/ucp/{slug}/catalog/lookup?ids={id1},{id2}

Fetch specific products or variants by Shopify GID.

Parameters

ParameterTypeDescription
idsstringComma-separated Shopify GIDs

Accepts Product GIDs (gid://shopify/Product/...) and ProductVariant GIDs (gid://shopify/ProductVariant/...).

Last updated on