# Old Navy Scraper - Price, Markdown & New Arrival Tracker (`superslowsloth/oldnavy-products`) Actor

Old Navy scraper: category ids or links to one row per style-color with USD price, full price, markdown dollars and percent, price type (regular, promo, markdown), stock, rating, badges, promo lines, link and photo. For apparel price, markdown and new-arrival watching.

- **URL**: https://apify.com/superslowsloth/oldnavy-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 $1.05 / 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

## Old Navy scraper: clothing price, markdown and new-arrival tracker (USA)

This Old Navy scraper reads [Old Navy](https://oldnavy.gap.com) (the Gap Inc.
family clothing chain) category lists and returns one flat row per
**style-color**: the current price in **USD**, the full price, the markdown in
dollars and percent, whether the price is regular, promotional or a clearance
markdown, stock, rating, badges, promotion lines, the product link and the
photo. Run it on a schedule and diff the dataset to get an **apparel price,
markdown and new-arrival watch per category**: which pants went from 44.99 to
26.99, which colors just landed, which are down to "Low" stock.

No account, no API key, no login, no browser. One request returns up to 60 colors.

### Input

| Field | Notes |
|---|---|
| `categoryIds` | Old Navy category ids, one per line. The id is the number after `cid=` in any oldnavy.gap.com browse link. Default example: `5475` (Women's Pants). Also checked 2026-11-08: `1185233` Shop All Women's, `1031099` Shop All Men's, `85729` Women's Jeans, `55474` Women's Coats & Jackets, `3045016` Shop All Baby. |
| `startUrls` | Category links instead of (or as well as) ids, for example `https://oldnavy.gap.com/browse/women/pants?cid=5475`. The id is read from `cid=`. A product link (`product.do?pid=...`) or a link to another site is refused. |
| `maxItems` | Rows to return per category (default 100, up to 10,000). |
| `onlyOnSale` | Return only colors whose price is below their full price (`on_sale`). Colors at full price are read, not returned and not charged, and do not count toward `maxItems`. |
| `proxyConfiguration` | Apify **residential** proxy by default, used only when the platform's own address is refused. See "How it fetches". |

Example input:

```json
{
  "categoryIds": ["5475", "85729"],
  "startUrls": [{ "url": "https://oldnavy.gap.com/browse/men/shop-all-mens?cid=1031099" }],
  "maxItems": 300,
  "onlyOnSale": true
}
```

A category id Old Navy does not know (HTTP 404 from its API) or that is not a
number is reported in the log and skipped at no charge. A bad id or link in the
input stops the run before anything is charged. Ids belong to one brand: an
Athleta or Gap category id is not an Old Navy one (HTTP 404).

### One row is one style-color, not one style

Old Navy sells a garment per **color**. A style (`style_id`, "High-Waisted Satin
Track Pants") comes in several colors, each with its own id (`color_id`), its
own price, its own stock and its own link. The site's list counts colors, not
styles, so a row per color is what the source gives and what a price watch
needs. **`color_id` is the unique key** of a row; `style_id` repeats once per
color. To get one line per style, group by `style_id`.

A color that two sections of a category both list is listed twice by the site.
You get it once, under the section that listed it first (`section`), and are
charged once. The same holds across categories in one run.

### Output

Prices are numbers in US dollars; `currency` is `USD` (market `us`).

| Field | Notes |
|---|---|
| `category_id`, `category_name`, `section`, `position` | The category the row was read from, its name ("Pants"), the section that listed the color first ("Wear to Work Pants"; null for a category without sections) and its place in the site's own order (1 is first, counted over every entry of the pages read, repeats included). |
| `style_id`, `color_id` | Old Navy's style id and color id, both strings. `color_id` is unique per row and is the `pid` of the product link. |
| `name`, `color`, `color_name` | The style name, the color family (`Brown`) and the color's own name (`Earthen`). |
| `product_type` | The site's product type, for example `womens bottoms`. |
| `url` | The product page of this color. |
| `image_url` | The main photo (the site's `P01` image), an absolute link on oldnavy.gap.com. |
| `price` | The current price. |
| `regular_price` | The full price. Equal to `price` when nothing is marked down. |
| `price_type` | Why `price` is what it is: `regular`, `promo` (a promotional price) or `markdown` (a clearance markdown, "Clearance: Price as marked."). The site's own codes are R, P and M. |
| `on_sale` | True when `price` is below `regular_price`. |
| `discount_amount`, `percent_off` | Dollars off and the site's whole-number percent off. **Null when not on sale**, never 0. |
| `rating`, `review_count` | The style's average star rating and how many reviews it is from. **Style-level**: every color of a style carries the same pair. **`rating` is null for a style with no reviews** (the site sends 0, which is not a rating of 0; `review_count` is 0 then). |
| `inventory_count`, `inventory_status` | Units in stock for this color across sizes, and the site's word for it: `In Stock`, `Low`, `Very Low` or `Out of Stock`. |
| `promo_flags` | The color's promotion lines as sent, for example `Card Perk! 50% Off Original Price w/Code: FIFTY + Extra 15% Off in App`, `Clearance: Price as marked.`, `Clearance: Final sale. No returns or exchanges.` **A code or in-app discount is not in `price`.** Empty list when none. |
| `badges` | The card badges in the site's order, for example `Best Seller`, `New`, `Linen`, `100% Cotton`, `Family Matching`. Empty list when none. |
| `excluded_from_promotion` | True when the style is excluded from promotions. Null if the site sends none. |
| `currency` | `USD`. |

Example row (real values, 2026-11-08):

```json
{
  "category_id": "5475",
  "category_name": "Pants",
  "section": "Wear to Work Pants",
  "position": 9,
  "style_id": "905519",
  "color_id": "905519002",
  "name": "High-Waisted Satin Track Pants",
  "color": "Brown",
  "color_name": "Earthen",
  "product_type": "womens bottoms",
  "url": "https://oldnavy.gap.com/browse/product.do?pid=905519002",
  "image_url": "https://oldnavy.gap.com/webcontent/0062/755/653/cn62755653.jpg",
  "currency": "USD",
  "price": 26.99,
  "regular_price": 44.99,
  "price_type": "promo",
  "on_sale": true,
  "discount_amount": 18.0,
  "percent_off": 40,
  "rating": 4.6,
  "review_count": 163,
  "inventory_count": 4,
  "inventory_status": "Low",
  "promo_flags": ["Card Perk! 50% Off Original Price w/Code: FIFTY + Extra 15% Off in App"],
  "badges": [],
  "excluded_from_promotion": false
}
```

#### Honest nulls

A field the source did not send is `null`, never `0` or `""`. `promo_flags`
and `badges` are empty lists when there are none.

- **No sizes or per-size stock.** The list carries one total per color.
- **No description, materials or variants.** This is the category list, one row per color.
- **No code, card or in-app price.** A "w/Code" or "in App" line is shown in
  `promo_flags`; that discount is applied in the cart and is not in `price`.
- **Prices are the US store's** (`market=us`, USD). Other markets are not read.

### 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.00105** per product row written (`product-scraped`), i.e. $1.05 per 1,000
  products. A row that is not written is not charged: rows filtered by
  `onlyOnSale`, and repeats of a color another section or category already
  returned, are free.

### How it fetches

It calls the JSON list behind oldnavy.gap.com's own category pages (the same
Gap Inc. API Athleta's site uses, with `brand=on`):

```
https://api.gap.com/commerce/search/products/v2/cc?brand=on&market=us&cid=<cid>&locale=en_US&pageSize=60&pageNumber=<n>
```

Measured 2026-11-08: HTTP 200 JSON of 0.2 to 0.5 MB per page, no key or cookie
needed. From Apify addresses, 10 requests per route: the platform's own address
10 of 10, **residential** 10 of 10, **datacenter** 2 of 10 (the other 8 an
Akamai "Access Denied" HTTP 403). So the actor asks from the platform's own
address first and, after refusals in a row, moves to the proxy you configured
(residential by default) and stays there; a datacenter proxy is never the only
route. A refusal (403, 429, 5xx), a 200 that is not the list, a page other than
the one asked for, or a dropped connection is treated as the address being
blocked, and the actor rotates to a fresh one and retries. If you switch the
proxy off, or bring proxies of your own, only that route is used.

Things worth knowing, all measured:

- **Paging is `pageNumber`, 0-based.** Page 0 is the first. A page past the last
  is HTTP 200 with no entries (`pageNumber=8` of Women's Pants, which has 8
  pages 0-7, returned an empty list), and the actor stops there. The page says
  which page it served; a mismatch is treated as a refusal rather than read twice.
- **60 entries per page, entries not styles.** The list of a page holds exactly
  60 colors (the last page fewer). The response also carries the other colors of
  every style it touches; those are not rows, so you never get a color from a
  page it was not listed on.
- **Parent categories work.** `1185233` Shop All Women's listed 5,223 entries over
  88 pages, `1031099` Shop All Men's 3,351 over 56, `3045016` Shop All Baby 823
  over 14 (2026-11-08).
- **Depth.** At most 10,000 rows per category are read.

If Old Navy changes its list format, the run fails with a message instead of
returning empty rows.

# Actor input Schema

## `categoryIds` (type: `array`):

Old Navy category ids, one per line. The id is the number after cid= in an oldnavy.gap.com browse link. Examples that were checked: 5475 Women's Pants, 1185233 Shop All Women's, 1031099 Shop All Men's, 85729 Women's Jeans, 55474 Women's Coats and Jackets, 3045016 Shop All Baby. Each category is read separately, 60 colors per page; a style-color that two sections or two categories both list is returned once, under the first. An id Old Navy does not know is reported and skipped at no charge.

## `startUrls` (type: `array`):

Old Navy category pages to read in full, for example https://oldnavy.gap.com/browse/women/pants?cid=5475 or https://oldnavy.gap.com/browse/category.do?cid=1031099. The category id is taken from the cid= parameter. Product links (product.do?pid=...) and links to other sites are refused. Leave empty to use category ids only.

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

Read at most this many style-colors for each category. Old Navy lists 60 per page, so 100 reads two pages. Up to 10,000 are accepted.

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

Return only style-colors whose current price is below their full price (the on_sale field), which covers both promotional prices and clearance markdowns. Colors at full price are read but not returned and not charged, and do not count toward Max rows. A category with few markdowns reads many pages to find them.

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

Used only when the platform's own address is refused. Old Navy's product API sits behind Akamai: measured 2026-11-08 from Apify, the platform's own address passed 10 of 10, residential exits 10 of 10 and datacenter exits 2 of 10 (the rest an Access Denied HTTP 403). The actor asks from the platform address first and moves to this proxy after refusals in a row. A page is 0.2 to 0.5 MB, which residential traffic is billed for.

## Actor input object example

```json
{
  "categoryIds": [
    "5475"
  ],
  "startUrls": [],
  "maxItems": 30,
  "onlyOnSale": false,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# 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 = {
    "categoryIds": [
        "5475"
    ],
    "startUrls": [],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("superslowsloth/oldnavy-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 = {
    "categoryIds": ["5475"],
    "startUrls": [],
    "maxItems": 30,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("superslowsloth/oldnavy-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 '{
  "categoryIds": [
    "5475"
  ],
  "startUrls": [],
  "maxItems": 30,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call superslowsloth/oldnavy-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,superslowsloth/oldnavy-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/BKoEZgv43ZKPNAA0i/builds/P1gi7Oz13e3v8dA0c/openapi.json
