# Old Navy Scraper (`datascrapers/oldnavy-gap-scraper`) Actor

Scrapes Old Navy product listings from search queries or category URLs, with optional product details and reviews.

- **URL**: https://apify.com/datascrapers/oldnavy-gap-scraper.md
- **Developed by:** [Data Scrapers](https://apify.com/datascrapers) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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** creates a structured dataset of products collected from Old Navy. Each dataset item is one product and can include the style id, product id, title, brand, price, currency, review score, color count, inventory status, and the search or category that found it. Product details and reviews are added only when those inputs are turned on. Query the source with a search phrase or an Old Navy category URL, and limit results with `maxItems`. Retrieve records through the Apify Dataset API or export them as JSON, CSV, Excel, or XML.

[![Old Navy Scraper — input to structured data](https://raw.githubusercontent.com/faizanalii/apify-actor-assets/main/oldnavy-gap-scraper/oldnavy-gap-scraper-value-demo.gif)](https://apify.com/datascrapers/oldnavy-gap-scraper)

### Dataset at a glance

| Property | Value |
|---|---|
| Source | Old Navy (oldnavy.gap.com) |
| Record unit | One product |
| Input methods | Search query or category URL |
| Main identifiers | `styleId`, `productId`, `url` |
| Delivery | Apify Dataset and API |
| Export formats | JSON, CSV, Excel, XML, RSS |
| Update model | Fresh records per Actor run |
| Pricing | $1.50 per 1,000 products on the free plan |

### Coverage and available records

A run can use `searchQueries`, `startUrls`, or both. The search prefill is `jackets`. The URL prefill is an Old Navy category page. The market and locale on stored records are `us` and `en_US`, with prices in USD.

`includeProductDetails` and `includeReviews` default to false. When they are false, `details` is null and `reviews` is empty. `maxReviewsPerProduct` defaults to 10. `maxItems` at `0` means no cap. The prefill is 20. The Actor collects public catalog products. It does not collect carts, accounts, or checkout.

### Data dictionary

| Field | Type | Nullable | Description | Example |
|---|---|---:|---|---|
| title | string | yes | Product title | Buffalo Bills Oversized Jacket for Adults |
| styleId | string | no | Style id. Use this to deduplicate a style | 916619 |
| productId | string | yes | Product id used in the product URL | 916453002 |
| productType | string | yes | Category label | mens accessories |
| url | string | yes | Product URL | https://oldnavy.gap.com/browse/product.do?pid=916453002 |
| brand | string | yes | Brand name | Old Navy |
| brandCode | string | yes | Brand code | on |
| market | string | yes | Market | us |
| locale | string | yes | Locale | en_US |
| currency | string | yes | Price currency | USD |
| currentPrice | string | yes | Current price | 114.99 |
| regularPrice | string | yes | Regular price | 114.99 |
| discountPercentage | number | yes | Discount when the source sends one | null |
| reviewScore | string | yes | Average review score | 0.0 |
| reviewCount | string | yes | Review count | 0 |
| imageUrl | string | yes | Main image | https://www.gap.com/webcontent/0063/703/586/cn63703586.jpg |
| colorCount | number | yes | Number of colors | 11 |
| colors | array | yes | Color objects | \[] |
| marketingFlags | array | yes | Merchandising flags | \[] |
| inventoryStatus | string | yes | Stock label | In Stock |
| seed | string | yes | Search or category that found the row | jackets |
| details | object | yes | Present when product details are enabled | null |
| reviews | array | yes | Present when reviews are enabled | \[] |
| scrapedReviewCount | number | yes | Reviews saved on this run | 0 |

Deduplicate on `styleId`. Prices and review counts are text when the source sends them as text.

### Example dataset record

```json
{
  "title": "Buffalo Bills Oversized Jacket for Adults",
  "styleId": "916619",
  "productId": "916453002",
  "url": "https://oldnavy.gap.com/browse/product.do?pid=916453002",
  "brand": "Old Navy",
  "brandCode": "on",
  "market": "us",
  "locale": "en_US",
  "currency": "USD",
  "currentPrice": "114.99",
  "regularPrice": "114.99",
  "discountPercentage": null,
  "reviewScore": "0.0",
  "reviewCount": "0",
  "inventoryStatus": "In Stock",
  "seed": "jackets",
  "details": null,
  "reviews": [],
  "scrapedReviewCount": 0
}
```

This record came from the search seed `jackets` with product details and reviews left off.

### Query and input reference

| Input | Type | Required | Default | Accepted values | Description |
|---|---|---:|---|---|---|
| searchQueries | array | no | none | search text | Prefill is `jackets` |
| startUrls | array | no | none | Old Navy category URLs | Prefill is one category URL |
| includeProductDetails | boolean | no | false | true, false | Charge `product-details` when saved |
| includeReviews | boolean | no | false | true, false | Charge `product-reviews` when saved |
| maxReviewsPerProduct | integer | no | 10 | positive integer | Review cap per product |
| detailConcurrency | integer | no | 10 | positive integer | Parallel detail requests |
| maxItems | integer | no | 0 | 0 or a positive integer | Product cap. Prefill is 20 |
| proxyConfiguration | object | no | Apify residential | Apify proxy object | Proxy used for the request |

Minimal request:

```json
{ "searchQueries": ["jackets"], "maxItems": 5 }
```

### Retrieve the data through the API

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("datascrapers/oldnavy-gap-scraper").call(
    run_input={"searchQueries": ["jackets"], "maxItems": 5}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["styleId"], item["title"], item["currentPrice"])
```

### Data quality and record handling

A product row is saved after a `product` charge. Detail and review charges happen only when those inputs are on and the page returns that block. `currentPrice` and `regularPrice` stay strings. Deduplicate on `styleId`. The same style can appear from more than one seed in a single run if you pass both a query and a category URL.

### Pricing and cost examples

Platform usage is included. Each event uses the same tier prices.

| Plan | Price per event | 1,000 events |
|---|---:|---:|
| Free | $0.0015 | $1.50 |
| Bronze | $0.0014 | $1.40 |
| Silver | $0.0013 | $1.30 |
| Gold, Platinum, Diamond | $0.0012 | $1.20 |

Events are `product`, `product-details`, and `product-reviews`. A catalog-only run of 1,000 products costs $1.50 on the free plan. Details and reviews add their own charges when those blocks are saved.

### Limitations and responsible data use

Prices, stock, and review counts change on the Old Navy catalog. A row is the page state at run time, not a price history. This is not a historical archive unless you store the dataset yourself. Use the records in line with the site's terms and applicable privacy rules.

### Dataset questions

#### What does one dataset item represent?

One Old Navy product style.

#### Which field should I use as a unique identifier?

Use `styleId`. Use `productId` when you need the id in the product URL.

#### Are fields nullable or conditional?

`details` is null and `reviews` is empty unless the matching input is enabled. `discountPercentage` is null when the source does not send a discount.

#### Can I retrieve the records as CSV or JSON?

Yes. Export the dataset as JSON, CSV, Excel, XML, or RSS, or read it from the Dataset API.

#### What counts as a billable result?

Each saved product charges `product`. Details and reviews charge `product-details` and `product-reviews` when those blocks are saved.

### Related datasets from Data Scrapers

- [H\&M Scraper](https://apify.com/datascrapers/h-and-m-scraper) for apparel products and prices.
- [Levi's Scraper](https://apify.com/datascrapers/levi-scraper) for Levi's product records.
- [Under Armour Scraper](https://apify.com/datascrapers/underarmour-scraper) for Under Armour styles and prices.

### Data Scrapers support

Need an additional field, record type, or export workflow? Contact Data Scrapers at stardustspotlight@gmail.com. Include a sample source URL, required fields, expected record volume, and preferred delivery format.

# Actor input Schema

## `searchQueries` (type: `array`):

Product search terms, for example jackets or linen shirt. Uses the Old Navy US storefront. You can combine these with start URLs.

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

Old Navy category, search, or product URLs, for example https://oldnavy.gap.com/browse/category.do?cid=3036071, https://oldnavy.gap.com/browse/search.do?searchText=jackets, or https://oldnavy.gap.com/browse/product.do?pid=732283002.

## `includeProductDetails` (type: `boolean`):

Fetch description, fabric, fit, sizes, and colors for each product. Charged as a product-details event in addition to the product event. Requests run in parallel with a fresh proxy per request.

## `includeReviews` (type: `boolean`):

Fetch individual product reviews. Charged as product-reviews events (one per review). Disabled by default.

## `maxReviewsPerProduct` (type: `integer`):

Maximum reviews to fetch per product when Include Reviews is enabled. Use 0 for all reviews.

## `detailConcurrency` (type: `integer`):

How many products to enrich at once when product details or reviews are enabled. Each request uses a new proxy.

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

Maximum number of products to scrape. Use 0 for no limit.

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

Proxy settings. Residential proxies are recommended. When product details or reviews are enabled, each request uses a new proxy.

## Actor input object example

```json
{
  "searchQueries": [
    "jackets"
  ],
  "startUrls": [
    {
      "url": "https://oldnavy.gap.com/browse/category.do?cid=3036071"
    }
  ],
  "includeProductDetails": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 10,
  "detailConcurrency": 10,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Scraped Old Navy products, details, and reviews

## `runStats` (type: `string`):

Aggregate scrape statistics for this run

# 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 = {
    "searchQueries": [
        "jackets"
    ],
    "startUrls": [
        {
            "url": "https://oldnavy.gap.com/browse/category.do?cid=3036071"
        }
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("datascrapers/oldnavy-gap-scraper").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 = {
    "searchQueries": ["jackets"],
    "startUrls": [{ "url": "https://oldnavy.gap.com/browse/category.do?cid=3036071" }],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("datascrapers/oldnavy-gap-scraper").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 '{
  "searchQueries": [
    "jackets"
  ],
  "startUrls": [
    {
      "url": "https://oldnavy.gap.com/browse/category.do?cid=3036071"
    }
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call datascrapers/oldnavy-gap-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datascrapers/oldnavy-gap-scraper"
        }
    }
}
```

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/PWBiXVHqoVfUngAa4/builds/TTeGm9ZWygfMR1bcy/openapi.json
