Woocommerce Public Products avatar

Woocommerce Public Products

Pricing

$2.00 / 1,000 results

Go to Apify Store
Woocommerce Public Products

Woocommerce Public Products

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

16 days ago

Last modified

Categories

Features

Limited permissions

Share

One small job: Get at most 5 (default) published product records from a WooCommerce store's public, unauthenticated Store API. One store, one HTTP request, one page, up to 50 items. No checkout, authentication, private WooCommerce REST API, or multi-store crawling.

For: Store owners, catalog integrators, or developers who need a tiny product feed sample, not a bulk crawler.

First-run example (real public store)

The Console prefill is:

{"store_url":"https://www.cancork.com","limit":5}

On 2026-11-01, the public product collection at https://www.cancork.com/wp-json/wc/store/v1/products?per_page=1 returned a non-empty product JSON response, including a product called Warm Wall Textures. The Actor requests page=1&per_page=5 with the same documented WooCommerce API. The demo is a third-party live store: its owner can change products, block API clients, or take it offline. The exact 5-item response was not tested on the Apify platform; this is not a guaranteed fixture. If it stops working, replace the store URL with one you own or are authorized to query.

Sample normalized dataset item (illustrative snapshot, not a guaranteed live response):

{"product_id":185296,"name":"Warm Wall Textures","slug":"warm-wall-textures","permalink":"https://www.cancork.com/sample-sets/warm-wall-textures/","price":"9.95","currency":"CAD"}

Output fields: product_id (integer), name (string), slug (string or null), permalink (string or null), price (decimal string or null), currency (ISO currency string or null). One dataset item per product; missing optional fields are null. price is computed as raw Store API prices.price / (10 ** currency_minor_unit) using decimal arithmetic; for example 995 with 2 minor units becomes "9.95", not "995".

Run locally (no SDK)

$ACTOR_INPUT_JSON='{"store_url":"https://www.cancork.com","limit":1}' python src/main.py

Or place the JSON in storage/key_value_stores/default/INPUT.json and run python src/main.py. Local results go to storage/datasets/default/000000001.json, 000000002.json, etc. When Apify supplies APIFY_TOKEN and the run's ACTOR_DEFAULT_DATASET_ID, records are posted to the default dataset through Apify's REST API. When Apify supplies a default key-value store ID, input is read from the INPUT record. No SDK is needed.

Limitations and care

  • Requires a public HTTPS WooCommerce root that exposes GET /wp-json/wc/store/v1/products; not all installations expose it. Subdirectory WordPress installations may use their installation root. No login or access-control bypass.
  • One page / one store / maximum 50 products. No pagination, cart requests, discovery crawling, or variant enrichment. The first page's order is store-defined.
  • Does not request other hosts: custom redirects are rejected. Public DNS addresses only; private, localhost, Amazon and eBay are excluded. Bounded response: 2 MB and 15 seconds.
  • If a live store returns 403/404 or HTML, the Actor reports a plain-language error and writes no invented results. The publisher's demo domain is not controlled by this project.
  • Respect site terms and request limits. One request per run is intentional. No retries, proxies, or browser automation.
  • Local unit tests and script-mode offline smoke tests are shipped in tests/. The smoke uses a declared simulated HTTP response so the CLI path can be exercised without internet access; it is not evidence of a live Apify run.

Store categories and pricing (proposal only)

  • Apify Store categories (declare on Store listing): ECOMMERCE, SCRAPING.
  • Suggested pricing: $3 per 1,000 emitted dataset items (equivalent $0.003/item), subject to Apify's current pricing-model availability and minimums. No billing or publishing is configured.

Verification

Run python -m unittest discover -s tests -v from the Actor directory; run python tests/smoke.py to execute python src/main.py with a valid actual-domain input and mocked HTTP fixture. This is a repeatable offline execution check. See Batch 2's root VERIFICATION.md for the captured terminal output and item.

API documentation: https://developer.woocommerce.com/docs/apis/store-api/resources-endpoints/products/