# Alo Yoga Scraper & Price Tracker (`superslowsloth/aloyoga-products`) Actor

Alo Yoga scraper for www.aloyoga.com: the whole catalogue or any collection, one row per product with USD price range, price before markdown, discount percent, per-colour and per-size stock and SKU, tags, photo and publish date. For new-drop alerts and markdown and restock tracking.

- **URL**: https://apify.com/superslowsloth/aloyoga-products.md
- **Developed by:** [Superslow Sloth](https://apify.com/superslowsloth) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.35 / 1,000 product scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Alo Yoga Scraper & Price Tracker

An **Alo Yoga scraper** and **Alo Yoga price tracker** for
[www.aloyoga.com](https://www.aloyoga.com), the premium activewear shop. Read
the whole catalogue or any collection (`new-arrivals`, `mens-new-arrivals`,
`mens-sale`, `bras`) and get one flat row per product: the current price and its
range in **USD**, the price before markdown, the largest discount in percent,
whether it is in stock and how many sizes are, and every size variant with its
own SKU, price and stock flag. Run it on a schedule for **new-drop alerts** (which
leggings, sets or jackets went live today) and for **price, markdown and restock
tracking** (which styles were reduced since yesterday, by how much, and which
sizes came back).

No account, no API key, no login, no browser. One request returns 250 products;
the whole catalogue (4,393 products on 2026-11-16) is 18 requests.

### Input

| Field | Notes |
|---|---|
| `collections` | Alo Yoga collections to read instead of the whole catalogue, one per line: the name from the address bar (`new-arrivals`, `mens-new-arrivals`, `mens-sale`, `bras`, `accessories`) or the link (`https://www.aloyoga.com/collections/mens-sale`). Each is read in the shop's own order. A product found by two collections is returned once, under the first. Leave empty to read the whole catalogue, newest first. A collection name the shop does not have fails at no charge. |
| `publishedAfter` | Only products that went live after this moment: `24 hours`, `7 days`, `2 weeks`, a date (`2026-11-01`) or a date-time (`2026-11-01T12:00:00Z`). On the whole catalogue the run stops at the first older product, since the feed is newest-published first. Leave empty for no cut-off. |
| `onlyOnSale` | Return only products where at least one variant is priced below its price before markdown (`on_sale`). Others are read, not returned and not charged, and do not count toward `maxItems`. |
| `maxItems` | Products to return per collection, or for the whole catalogue (default 250, up to 25,000). 250 per page. |
| `proxyConfiguration` | Apify datacenter proxy by default. |

Example input, products that went live in the last 24 hours (a new-drop alert):

```json
{
  "publishedAfter": "24 hours",
  "maxItems": 500
}
```

Example input, everything currently marked down (a markdown watch):

```json
{
  "onlyOnSale": true,
  "maxItems": 1000
}
```

### Output

Prices are numbers in US dollars; `currency` is `USD` (the shop's own
`/meta.json` and `/cart.js` say so). A field the shop did not send is `null`,
never `0` or `""`.

| Field | Notes |
|---|---|
| `query`, `position` | The shop URL (whole catalogue) or collection URL that first found the product, and its place in that list (1 is first, 250 per page). The whole catalogue is newest-published first. |
| `store` | `www.aloyoga.com`. |
| `product_id`, `handle`, `url` | Shopify's product id (a string), its URL handle, and the product link. One product is one colourway of a style, with its sizes as variants; men's and women's cuts are separate products. |
| `title`, `vendor`, `product_type` | As the shop sends them (`Match Point Short - Neon Bubblegum`, `Alo Yoga`, `Women:Bottoms:Shorts`). `product_type` is the shop's own colon-separated category path. Null when empty. |
| `tags` | The shop's own merchandising tags (categories, colours, `clearance`), as sent. Not a standard vocabulary. |
| `price`, `price_max` | The lowest and highest current variant price. They differ when only some variants are priced differently; a gift card spans its amounts. |
| `original_price`, `original_price_max` | The lowest and highest price **before markdown**: per variant its `compare_at_price` when that is above its price, otherwise its price. Equal to the current price when nothing is reduced. |
| `on_sale` | True when at least one variant's `compare_at_price` is above its price. |
| `discount_percent` | The largest reduction of any variant, `(1 - price / compare_at_price) * 100`, one decimal place. Worked out from the prices, not sent. **Null when nothing is reduced**, never 0. |
| `available`, `variant_count`, `available_variant_count` | Whether any variant can be bought now, how many variants there are, and how many can be bought: the restock signal. |
| `option_names` | The product's options, e.g. `["Color", "Size"]`, or `["Color", "Size", "Length"]` for pants sold in inseams. |
| `variants` | Every variant: `variant_id`, `title` (`Neon Bubblegum / XXS`), `sku`, `price`, `compare_at_price` (null when the shop sends none), `available`, and `options` (the variant's values in `option_names` order). |
| `created_at`, `published_at`, `updated_at` | ISO 8601 times with the shop's Pacific offset (`-08:00` or `-07:00`). `published_at` is when the product went live, which is what `publishedAfter` reads; `created_at` can be many months older. `updated_at` is rewritten in bulk, so it is not a price-change time. |
| `image_url`, `image_count` | The first photo on cdn.shopify.com, as sent (null when there is none), and how many photos there are. |

Example row (real values, 2026-11-16; `tags` and `variants` shortened here to
three and one entries):

```json
{
  "query": "https://www.aloyoga.com",
  "position": 3,
  "store": "www.aloyoga.com",
  "product_id": "9092744642919",
  "title": "Match Point Short - Neon Bubblegum",
  "handle": "w6334r-match-point-short-neon-bubblegum",
  "url": "https://www.aloyoga.com/products/w6334r-match-point-short-neon-bubblegum",
  "vendor": "Alo Yoga",
  "product_type": "Women:Bottoms:Shorts",
  "tags": [
    "BVCategory:Women",
    "clearance",
    "Color:Neon Bubblegum:Color"
  ],
  "created_at": "2025-04-03T19:11:55-07:00",
  "published_at": "2026-11-15T11:47:22-08:00",
  "updated_at": "2026-11-15T12:03:11-08:00",
  "image_url": "https://cdn.shopify.com/s/files/1/2185/2813/files/w6334r_06279_b2_s1_a2_m218.jpg?v=1752101398",
  "image_count": 6,
  "currency": "USD",
  "price": 54.0,
  "price_max": 54.0,
  "original_price": 78.0,
  "original_price_max": 78.0,
  "on_sale": true,
  "discount_percent": 30.8,
  "available": true,
  "variant_count": 5,
  "available_variant_count": 1,
  "option_names": [
    "Color",
    "Size"
  ],
  "variants": [
    {
      "variant_id": "50661360664935",
      "title": "Neon Bubblegum / XXS",
      "sku": "W6334R062790",
      "price": 54.0,
      "compare_at_price": 78.0,
      "available": false,
      "options": [
        "Neon Bubblegum",
        "XXS"
      ]
    }
  ]
}
```

#### Honest nulls

- **No ratings, reviews or stock counts.** The catalogue feed carries none.
  `available` says a variant can be bought, nothing more.
- **`discount_percent` is null when nothing is reduced.** On 2026-11-16, 625 of
  4,393 products carried a variant priced below its `compare_at_price` (a legging
  at 93.00 against 134.00). A `compare_at_price` equal to the price (3 variants)
  is not a reduction, so that line is `on_sale: false`.

### Pricing

Pay per event:

- **$0.002** per run (`actor-start`), charged only after your input is
  validated, so a run that fails on bad input costs nothing.
- **$0.00035** per product row written (`product-scraped`), i.e. $0.35 per
  1,000 products, so the whole catalogue of about 4,400 products costs about
  $1.54. A row that is not written is not charged: rows filtered by
  `onlyOnSale` or `publishedAfter`, and repeats of a product another collection
  already returned, are free.

### How it fetches

It reads `/products.json`, the public catalogue feed every Shopify shop serves
(and `/collections/<name>/products.json` for a collection). Measured
2026-11-16: HTTP 200 JSON, about 1.1 to 1.7 MB per page of 250 products, no key
or cookie needed, open from Apify datacenter addresses (10 of 10), residential
addresses (9 of 10) and no proxy (10 of 10). A refusal (403, 429, 430, 5xx), a
200 that is not the feed, or a dropped connection is treated as the address being
blocked, and the actor rotates to a fresh one and retries.

Things worth knowing, all measured:

- **Prices are always USD.** The shop did not re-price the feed for a request
  from a Japanese address, and a `localization` country cookie for the US, UK,
  Japan, Canada and Australia changed nothing, so the currency does not depend
  on where the run starts.
- **250 per page is the ceiling.** A larger `limit` is silently capped at 250.
- **The end is an empty page, not a short one.** Pages 2 to 18 held 249, 250,
  240, 241, 238 ... products and page 19 is HTTP 200 with `{"products":[]}`; the
  actor stops there.
- **Newest-published first.** All 18 pages of the whole catalogue are in
  `published_at` order, which is what makes `publishedAfter` stop early. A drop
  often lands as a batch (198 products went live on 2026-11-14), so check a new
  drop with `"publishedAfter": "24 hours"` on a daily schedule.
- **Collections are in the shop's own order, not newest first.** `new-arrivals`
  ("Women's New Arrivals") returned 545 products against the 576 its record
  counts, because the record counts unpublished products too.
- **There is no `sale` collection.** `/collections/sale` and `/collections/womens-sale`
  return an empty list; use `onlyOnSale` on the whole catalogue (625 reduced
  products on 2026-11-16) or `mens-sale` (149 products, all reduced).
- **The feed holds records that are not garments.** 189 products are typed
  `Internal` (loyalty rewards, gift-with-purchase items, a shipping-threshold
  line), the gift cards have `product_type` `E Gift Card` and `Gift Card`, and two
  "Dummy Product for Navigation Images" rows are priced 9,999,990 and 9,999,999.
  They are returned as the shop sends them; filter on `product_type` if you only
  want clothing.
- **An unknown collection looks empty.** The feed answers an unknown name with
  an empty list; the actor asks the collection's own record, and a name that
  does not exist fails instead of being reported as empty.

If Alo Yoga changes its feed, the run fails with a message instead of returning
empty rows.

# Actor input Schema

## `collections` (type: `array`):

Alo Yoga collections to read instead of the whole catalogue, one per line: the name from the shop's address bar (new-arrivals, mens-new-arrivals, mens-sale, bras, accessories) or the whole link (https://www.aloyoga.com/collections/mens-sale). A collection is in the shop's own order, not newest first, so Published after filters it without stopping early. Leave empty to read the whole catalogue, newest first (about 4,400 products). A collection the shop does not have fails at no charge.

## `publishedAfter` (type: `string`):

Return only products that went live on Alo Yoga after this moment: a span back from now (24 hours, 7 days, 2 weeks), a date (2026-11-01, midnight UTC) or a date-time (2026-11-01T12:00:00Z). This is the product's publish time (published_at). On the whole catalogue the run stops at the first older product, because the feed is newest-published first, so a new-drop check is fast and cheap. Leave empty for no cut-off.

## `onlyOnSale` (type: `boolean`):

Return only products where at least one size or colour is priced below its price before markdown (the on_sale field). A price equal to the price before markdown is not a sale. Other products are read but not returned, not charged, and do not count toward Max products.

## `maxItems` (type: `integer`):

Return at most this many products for the catalogue or for each collection. The feed holds 250 per page. Up to 25,000 are accepted, which is the most Shopify serves for any one list; the whole Alo Yoga catalogue is about 4,400.

## `proxyConfiguration` (type: `object`):

Use Apify's automatic datacenter proxy (the default). A refused request is retried from a fresh address.

## Actor input object example

```json
{
  "collections": [
    "new-arrivals"
  ],
  "onlyOnSale": false,
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `items` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "collections": [
        "new-arrivals"
    ],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("superslowsloth/aloyoga-products").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "collections": ["new-arrivals"],
    "maxItems": 30,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("superslowsloth/aloyoga-products").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "collections": [
    "new-arrivals"
  ],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call superslowsloth/aloyoga-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superslowsloth/aloyoga-products"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/c7ZheMXdFi4we9jdu/builds/e7Wp5tL151kf2dviQ/openapi.json
