Woocommerce Public Categories avatar

Woocommerce Public Categories

Pricing

$2.00 / 1,000 results

Go to Apify Store
Woocommerce Public Categories

Woocommerce Public Categories

Pricing

$2.00 / 1,000 results

Rating

0.0

(0)

Developer

Eichan Jolly

Eichan Jolly

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

2 days ago

Last modified

Categories

Features

Limited permissions

Share

Collect up to 20 public product categories from one WooCommerce store's open Store API: /wp-json/wc/store/v1/products/categories. For store owners, catalog auditors and analysts who want a small category inventory without a login or API key.

Input

The prefilled example was publicly checked on 2026-11-01: the endpoint returned a nonempty JSON category list with category ID, name, slug, count and parent ID.

{"storeUrl":"https://www.cancork.com","limit":1}

The actor makes one request to https://www.cancork.com/wp-json/wc/store/v1/products/categories?per_page=1. limit is an integer from 1 through 20 (default 1). No pagination.

Output (one item per category)

{
"storeUrl": "https://www.cancork.com",
"categoryId": 3757,
"name": "3D CompMold Cork Wall & Ceiling Panels",
"slug": "3d-acoustic-wall-panels",
"productCount": 12,
"parentId": 3584,
"status": "ok",
"error": null
}

Each row contains storeUrl, categoryId, name, slug, productCount, parentId, status, and error. productCount is the count reported by the API, not a separately audited count; parentId is the API's parent field (0 may represent no parent). Errors produce one status: "error" row with null category-specific fields and a plain-language message.

Limits and behavior

  • Public HTTPS store base URL only; one same-host request to the open Store API; no login, keys, pagination, hidden taxonomy, or crawling. If installed under a WordPress subdirectory, include that base subpath.
  • Not every WooCommerce store exposes Store API routes. A missing/blocked/empty response becomes an honest error item. No auth bypass or cross-host redirects.
  • The endpoint may return a subset by store configuration, visibility and limit; categories or counts may change at any time. 15-second timeout and 2-MB response cap.
  • The prefill was checked by a public web retrieval tool; live execution from this Python environment was not possible due to DNS restriction. Reproducible python src/main.py smoke runs use recorded fixture responses, not live HTTP, as documented in tests/smoke_evidence.txt.

Running

On Apify, INPUT is fetched via the default key-value store REST API using APIFY_DEFAULT_KEY_VALUE_STORE_ID and APIFY_TOKEN; dataset items are posted through REST using APIFY_DEFAULT_DATASET_ID. Input priority: ACTOR_INPUT_JSON, then platform INPUT, then local storage/key_value_stores/default/INPUT.json. No Apify SDK.

Local: ACTOR_INPUT_JSON='{"storeUrl":"https://www.cancork.com","limit":1}' python src/main.py (requires internet). Offline replay: python tests/run_smoke.py. Unit tests: python -m unittest discover -s tests -p 'test_*.py' -v.

Suggested Apify Store settings

Category ECOMMERCE; $2 / 1,000 results ($0.002 per result), proposed only. No publishing or billing is configured.