[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [WooCommerce product search](https://spiral.ai/integrations/codex/woocommerce-product-search)

# How to Use WooCommerce product search in Codex

Returns matching products from one store's catalog, including advertised prices and stock information. Use it to build a shortlist before inspecting individual products.

|  |  |
| --- | --- |
| Model | WooCommerce product search |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with WooCommerce product search in Codex

- Use WooCommerce product search to find HP EliteDesk mini PCs on itman.ae and populate this project's comparison table with the returned names, advertised prices, currency, and availability.
- Use WooCommerce product search to find booking extensions on woocommerce.com and draft product cards in this project's existing format with returned descriptions and product links.
- Use WooCommerce product search to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from WooCommerce product search and tell me what changed since last week.
- Check WooCommerce product search and summarize what you find in three bullet points.

## How to set up WooCommerce product search in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run WooCommerce product search**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "woocommerce-com/products/search_products",
    "input": {
      "store": "<store>"
    }
  }'
```

Then paste one of the prompts above: Codex finds WooCommerce product search on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## WooCommerce product search tools and prices

- [WooCommerce stores · Search products](https://spiral.ai/tools/alexandria/woocommerce-com/products/search_products) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| tag |  | — | One product tag id or slug. Pattern: ^[^,\s]+$. |
| page | 1 to 10000 | 1 | 1-based page; use next_page from the previous result. |
| order | asc, desc | — | order |
| query |  | — | Keywords matched against product title and content. |
| on_sale |  | — | Only products on sale. |
| orderby | date, modified, id, title, slug, price, popularity, rating, menu_order | — | Sort key; the store's default (relevance for a query, else date) otherwise. |

## What can you do with WooCommerce product search in Codex?

Build a WooCommerce catalog browser with product records, category navigation, and attribute labels from a real store. Use the returned catalog structure to populate the project's browsing and comparison components.

### Build a buying shortlist

Browse a store's departments, identify useful attribute labels, find matching products, and inspect the shortlisted items before recommending a purchase.

### Design product comparison filters

Use the store's attribute vocabulary and matching product records to decide which characteristics belong in a comparison table. Inspect individual products to check how those characteristics are populated.

### Audit category navigation

Map category parent relationships, inspect products assigned to each department, and identify confusing labels or misplaced items for a merchant's review.

### Prepare a public catalog migration

Inventory published products, category relationships, and attribute vocabulary. Inspect representative product records to plan how public catalog content should map into the destination system.

### Research a competitor's assortment

Compare departments, product characteristics, and matching listings in a public business catalog. Inspect selected products to explain differences in advertised features and availability.

### Create a shopping support reference

Organize published product descriptions by department and attribute, then attach matching product links so support staff can answer catalog questions with specific examples.

### Review product listing content

Find products in a department and inspect their descriptions, images, and category assignments. Prepare a merchant review list of listings with thin descriptions or confusing organization.

### Report catalog organization changes

Compare successive observations of categories, attribute labels, and product records. Summarize renamed departments, new product characteristics, and changed assignments with example product links.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## WooCommerce product search in other agents

- [Amp](https://spiral.ai/integrations/amp/woocommerce-product-search)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/woocommerce-product-search)
- [Claude](https://spiral.ai/integrations/claude-desktop/woocommerce-product-search)
- [Claude Code](https://spiral.ai/integrations/claude-code/woocommerce-product-search)
- [Cline](https://spiral.ai/integrations/cline/woocommerce-product-search)
- [Cursor](https://spiral.ai/integrations/cursor/woocommerce-product-search)
- [Devin](https://spiral.ai/integrations/devin/woocommerce-product-search)
- [dots](https://spiral.ai/integrations/dots/woocommerce-product-search)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/woocommerce-product-search)
- [Gemini](https://spiral.ai/integrations/gemini/woocommerce-product-search)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/woocommerce-product-search)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/woocommerce-product-search)
- [goose](https://spiral.ai/integrations/goose/woocommerce-product-search)
- [Grok](https://spiral.ai/integrations/grok/woocommerce-product-search)
- [Grok Build](https://spiral.ai/integrations/grok-build/woocommerce-product-search)
- [Hermes](https://spiral.ai/integrations/hermes/woocommerce-product-search)
- [Instinct](https://spiral.ai/integrations/instinct/woocommerce-product-search)
- [Manus](https://spiral.ai/integrations/manus/woocommerce-product-search)
- [Muse](https://spiral.ai/integrations/muse/woocommerce-product-search)
- [Muse Code](https://spiral.ai/integrations/muse-code/woocommerce-product-search)
- [n8n](https://spiral.ai/integrations/n8n/woocommerce-product-search)
- [Notion](https://spiral.ai/integrations/notion/woocommerce-product-search)
- [OpenClaw](https://spiral.ai/integrations/openclaw/woocommerce-product-search)
- [opencode](https://spiral.ai/integrations/opencode/woocommerce-product-search)
- [Perplexity](https://spiral.ai/integrations/perplexity/woocommerce-product-search)
- [Raycast](https://spiral.ai/integrations/raycast/woocommerce-product-search)
- [VS Code](https://spiral.ai/integrations/vscode/woocommerce-product-search)
- [Windsurf](https://spiral.ai/integrations/windsurf/woocommerce-product-search)
- [Zapier](https://spiral.ai/integrations/zapier/woocommerce-product-search)

## More Codex guides

- [WooCommerce product details](https://spiral.ai/integrations/codex/woocommerce-product-details)
- [Woot category offers](https://spiral.ai/integrations/codex/woot-category-offers)
- [WooCommerce product categories](https://spiral.ai/integrations/codex/woocommerce-product-categories)
- [Woot daily deals](https://spiral.ai/integrations/codex/woot-daily-deals)
- [WooCommerce product attributes](https://spiral.ai/integrations/codex/woocommerce-product-attributes)
- [Woot offer details](https://spiral.ai/integrations/codex/woot-offer-details)

## Questions about WooCommerce product search in Codex

**Can Codex use WooCommerce product search?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run WooCommerce product search like any built-in tool.

**How much does WooCommerce product search cost in Codex?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an Alexandria account to use WooCommerce product search in Codex?**

No. Spiral runs WooCommerce product search on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up WooCommerce product search in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while WooCommerce product search runs?**

WooCommerce product search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Which stores does the data cover?**

The data comes from individual WooCommerce storefronts through their public Store API. Each query describes the selected store's own catalog.

**Does the catalog include unpublished products?**

Only published products are accessible through the Store API. Draft, pending, and other unpublished products are excluded from product collections.

**Why might a published product have an empty description?**

Password-protected products remain visible, but their descriptions and short descriptions are blank until the correct password has been submitted. Their prices, images, and categories can still be available.

**How many catalog records can WooCommerce return per page?**

WooCommerce documents a maximum of 100 items per page for paginated Store API collections. Larger catalogs require multiple pages.

**How are categories different from attributes?**

Categories describe departments and include parent relationships and product counts. Attributes describe product characteristics, such as Color or Size, while terms represent values such as Large.

