Skip to content
//WooCommerce Scraper example\\

On-sale products, cheapest first

Only discounted products, sorted by price from low to high.

Updated November 14, 2026

What this example returns

This example returns up to 10 products.

The dataset’s “Products” view shows 20 columns: Image, Product, URL, Store, Price, Regular price, Sale price, Currency, On sale, In stock, Stock, Rating, Reviews, SKU, Type, Variations, Categories, Tags, Brands, and Attributes. See every output field.

What each setting does

The input this example runs WooCommerce Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Store URLs or domains startUrls

https://www.mandarinstone.com

WooCommerce stores to scrape. A domain or home page (mystore.com) scrapes the whole catalogue, a category URL (/product-category/...) scrapes that category, a tag URL (/product-tag/...) that tag, and a product URL (/product/...) saves that one product. Any format works: with or without https:// and www.

Maximum products per store maxResults

10

Stop after this many products from each store address. 0 means no limit: the whole catalogue (or category) is saved, so use the run's maximum charge to bound very large stores.

Default: 20 → this example uses 10

On sale only onSaleOnly

Yes

Only products that currently have a sale price.

Default: No → this example uses Yes

Sort by sortBy

Price

Order in which products are read. With a product limit this decides which products you get (for example the cheapest or the best rated).

Default: Newest → this example uses Price

Sort direction sortOrder

Ascending

Descending gives newest, most expensive, most popular or best rated first. Leave empty for the natural direction of the chosen sort (A to Z for names, newest or highest first otherwise).

.json
{
  "startUrls": [
    "https://www.mandarinstone.com"
  ],
  "onSaleOnly": true,
  "sortBy": "price",
  "sortOrder": "asc",
  "maxResults": 10
}

What it costs

From about $0.0026 for 10 products

An estimate at the lowest plan price: 10 × $0.000255 per product (Charged once per product saved, with its prices, stock, rating, images, categories, attributes and (when turned on) variations). A run is charged for the events it reports, so one that finds fewer products costs less. Platform usage is included in the event price.

Full pricing

When to use this example

From the WooCommerce Scraper readme:

Why is a field empty?

The store did not fill it (many stores have no SKU, short description, tags or reviews). salePrice is null when a product is not on sale and averageRating is null when it has no reviews.

Known limit

For variable products price is the lowest variation price; turn on Include variations for every variation's own price.

Other ways to run WooCommerce Scraper

All examples of WooCommerce Scraper

About WooCommerce Scraper

Scrape products from any WooCommerce store: names, prices, sale prices, stock, ratings, reviews, SKUs, images, categories, tags, attributes and variations. Paste a store domain, category or product URL. No login needed.

Price:
From $0.255 / 1,000 results
Developer:
Shelfbright
Category:
E-commerce

WooCommerce Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.