WooCommerce Product Categories Taxonomy
Retrieve public WooCommerce Store API v1 product categories, slugs, parent hierarchy, item counts, and category permalinks.
curl -sG "https://api.agentapigate.ai/v1/commerce/woocommerce/categories" \ --data-urlencode "store_domain=woocommerce.com" \ --data-urlencode "per_page=20" \ --data-urlencode "page=1" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# WooCommerce Product Categories Taxonomy (`commerce.woocommerce.categories`) **store_domain**: https://woocommerce.com · **page**: 1 · **count**: 20 ## categories - [1] id: 1028, name: Accounting, slug: accounting-extensions, description: Accounting Extensions for WooCommerce, parent_id: 1888 - [2] id: 28911, name: Additional purchases, slug: additional-purchases, parent_id: 28663, product_count: 27 - [3] id: 1913, name: Admin and notifications, slug: admin-notifications, parent_id: 1888, product_count: 54 - [4] id: 28694, name: Advertising and promotions, slug: advertising-and-promotions, parent_id: 1024, product_count: 71 - [5] id: 3769, name: Arts and crafts, slug: arts-and-crafts, parent_id: 1033, product_count: 23 - [6] id: 28693, name: Automation, slug: automation, parent_id: 1024, product_count: 22 - [7] id: 28672, name: B2B, slug: b2b, parent_id: 28663, product_count: 84 - [8] id: 35538, name: B2B payments, slug: b2b-payments, parent_id: 1023, product_count: 2 - [9] id: 3770, name: Bookings and accommodation, slug: bookings-and-accommodation, parent_id: 1033, product_count: 8 - [10] id: 28664, name: Bookings and appointments, slug: bookings-and-appointments, parent_id: 28663, product_count: 17 - [11] id: 28803, name: Bundles, slug: bundles, parent_id: 28663, product_count: 21 - [12] id: 34246, name: Business Formation, slug: business-formation, parent_id: 33694, product_count: 2 - [13] id: 28712, name: Business insights, slug: business-insights, parent_id: 1888, product_count: 27 - [14] id: 33694, name: Business Services, slug: business-services, parent_id: 0, product_count: 17 - [15] id: 35676, name: Buy now pay later, slug: buy-now-pay-later, parent_id: 1023, product_count: 7
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:commerce.woocommerce.categories · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| store_domain | string | required | woocommerce.com | Public WooCommerce domain (e.g. woocommerce.com) |
| per_page | number | optional | 20 | Categories per page (1-50) |
| page | number | optional | 1 | Page number (>=1) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | commerce_woocommerce_categories | OAuth 2.1 Hub & /mcp/commerce |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 505 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 3196t → 467t (-85%) | Partner credit: eligible |
More commerce.woocommerce Sibling Endpoints
Detect whether a domain runs WordPress + WooCommerce, verify public `/wp-json/wc/store/v1` availability, and inspect currency metadata.
Search and paginate public WooCommerce Store API v1 products with normalized decimal prices, sale flags, ratings, categories, and stock status.
Fetch complete WooCommerce product details, full descriptions, attributes, categories, ratings, and live stock by numeric ID, slug, or URL.
Frequently Asked Questions
How do I call WooCommerce Product Categories Taxonomy (commerce.woocommerce.categories) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/commerce/woocommerce/categories with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool commerce_woocommerce_categories on https://mcp.agentapigate.ai/mcp.
What does commerce.woocommerce.categories cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on commerce.woocommerce.categories?
Passing ?format=md transforms the response into normalized Markdown (~467 tokens vs ~3196 raw tokens, saving 85% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only commerce endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["commerce"], optional allowed_endpoints: ["commerce.woocommerce.categories"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.