# Gapcanada Category Scraper (`getdataforme/gapcanada-category-scraper`) Actor

Effortlessly scrape product data from Gap Canada's categories like t-shirts with this Apify Actor. Extract detailed info including prices, images, and descriptions in clean JSON format. Ideal for market research, price monitoring, and competitive analysis....

- **URL**: https://apify.com/getdataforme/gapcanada-category-scraper.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** Automation, E-commerce, Lead generation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.00 / 1,000 results

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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Gapcanada Category Scraper

### Introduction

The Gapcanada Category Scraper is a powerful Apify Actor designed to extract product data from specific categories on the Gap Canada website. It leverages web scraping technology to gather detailed information about items, enabling users to collect insights on fashion products efficiently. This tool is ideal for e-commerce professionals, researchers, and businesses seeking automated data collection from Gap Canada's online catalog.

### Features

- **Targeted Category Scraping**: Precisely scrape products from user-specified categories like t-shirts, ensuring focused and relevant data extraction.
- **High-Performance Crawling**: Built on CheerioCrawler for fast, reliable scraping with minimal resource usage.
- **Customizable Limits**: Set maximum items to control crawl depth and avoid overwhelming the target site.
- **Structured Data Output**: Delivers clean, JSON-formatted data ready for analysis or integration into databases.
- **Error-Resilient**: Handles common web scraping challenges like dynamic content and rate limits gracefully.
- **Apify Integration**: Seamlessly runs on the Apify platform with easy monitoring and result export options.
- **Privacy-Compliant**: Respects robots.txt and implements ethical scraping practices to avoid site disruption.

### Input Parameters

| Parameter      | Type    | Required | Description                                                                 | Example          |
|----------------|---------|----------|-----------------------------------------------------------------------------|------------------|
| searchCategory | string  | Yes      | The category to search on Gap Canada's website, such as product types.      | "tshirt"         |
| maxItems       | integer | No       | Maximum number of requests (items) to crawl, limiting the scope of the run. | 100              |

### Example Usage

#### Input JSON

```json
{
  "searchCategory": "tshirt",
  "maxItems": 50
}
```

#### Output JSON

```json
[
  {
    "productId": "12345",
    "name": "Classic Cotton T-Shirt",
    "price": "$19.99",
    "category": "tshirt",
    "url": "https://www.gapcanada.ca/browse/product.do?pid=12345",
    "imageUrl": "https://www.gapcanada.ca/images/product/12345.jpg",
    "description": "Comfortable and stylish cotton t-shirt available in multiple colors."
  },
  {
    "productId": "67890",
    "name": "Graphic Print T-Shirt",
    "price": "$24.99",
    "category": "tshirt",
    "url": "https://www.gapcanada.ca/browse/product.do?pid=67890",
    "imageUrl": "https://www.gapcanada.ca/images/product/67890.jpg",
    "description": "Eye-catching graphic print on a soft fabric blend."
  }
]
```

### Use Cases

- **Market Research**: Analyze product trends and pricing in specific categories to inform business strategies.
- **Competitive Intelligence**: Compare Gap Canada's offerings with competitors for pricing and feature insights.
- **Price Monitoring**: Track price changes on items to optimize purchasing or sales decisions.
- **Content Aggregation**: Build databases of fashion products for blogs, apps, or e-commerce platforms.
- **Academic Research**: Study consumer goods data for studies on fashion industry dynamics.
- **Business Automation**: Automate inventory checks or feed data into retail management systems.

### Installation and Usage

1. Search for "Gapcanada Category Scraper" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters (e.g., set searchCategory to "tshirt" and maxItems to 100).
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The Actor outputs a JSON array of objects, each representing a scraped product. Key fields include:

- `productId`: Unique identifier for the product.
- `name`: Product title.
- `price`: Current price as a string.
- `category`: The searched category.
- `url`: Direct link to the product page.
- `imageUrl`: URL of the product image.
- `description`: Brief product details.

This structured format ensures easy parsing and integration with tools like spreadsheets or databases.

### Support

For custom/simplified outputs or bug reports, please contact:

- Email: support@getdataforme.com
- Subject line: "custom support"
- Contact form: https://getdataforme.com/contact/

We're here to help you get the most out of this Actor!

***

### PART 2: Concise Description

Unlock Gap Canada's fashion data effortlessly! This scraper extracts product details from categories like t-shirts, delivering clean JSON outputs for market research, price monitoring, and competitive analysis. Fast, reliable, and customizable—run it on Apify today! (148 characters)

# Actor input Schema

## `searchCategory` (type: `string`):

The category to search.

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

Maximum number of requests that can be made by this crawler.

## Actor input object example

```json
{
  "searchCategory": "tshirt",
  "maxItems": 100
}
```

# Actor output Schema

## `overview` (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 = {
    "searchCategory": "tshirt"
};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/gapcanada-category-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 = { "searchCategory": "tshirt" }

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/gapcanada-category-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 '{
  "searchCategory": "tshirt"
}' |
apify call getdataforme/gapcanada-category-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getdataforme/gapcanada-category-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/CgJJUg0GeDo4bnv4b/builds/e0BqoLi1qdeQ5V7Z6/openapi.json
