# Target Product Scraper (`crawlerbros/target-scraper`) Actor

Scrape Target.com products with search by keyword, browse by category, look up by TCIN, or fetch trending deals. Returns price, ratings, availability, images, and fulfillment options via Target's RedSky API. No proxy or auth required.

- **URL**: https://apify.com/crawlerbros/target-scraper.md
- **Developed by:** [Crawler Bros](https://apify.com/crawlerbros) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 11 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $3.00 / 1,000 results

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

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Target Product Scraper

Scrape Target.com products at scale — search by keyword, browse by department, look up specific products by TCIN, paste any Target URL, or pull trending deals. Returns prices, ratings, availability, images, and fulfillment options via Target's RedSky API. No login required; the actor uses residential proxy sessions internally for reliability.

### What this actor does

- **5 modes:** `search`, `byTcin`, `byCategory`, `byUrl`, `deals`
- **Full price data:** current price, original price, sale savings, promotion labels
- **Ratings & reviews:** average rating, review count, question count
- **Availability:** IN_STOCK / LIMITED_STOCK / OUT_OF_STOCK
- **Fulfillment options:** shipping, in-store pickup, same-day delivery flags
- **Images:** primary product image + additional image gallery
- **Filters:** price range, min rating, on-sale only, in-stock only
- **Empty fields are omitted** — clean, consistent output every time

### Output per product

| Field | Type | Description |
|---|---|---|
| `tcin` | string | Target product ID |
| `title` | string | Product title |
| `brand` | string | Brand name |
| `description` | string | Product description |
| `price` | number | Current selling price (USD) |
| `originalPrice` | number | Regular/list price (USD) |
| `isOnSale` | boolean | True when price < originalPrice |
| `saleSavings` | number | Dollar amount saved when on sale |
| `promotions` | array | Active promotion label texts |
| `rating` | number | Average customer rating (0–5) |
| `ratingCount` | integer | Total number of ratings |
| `questionCount` | integer | Number of customer Q&As |
| `itemType` | string | Product category/department |
| `primaryImageUrl` | string | Main product image URL |
| `additionalImages` | array | Additional product image URLs |
| `availability` | string | IN_STOCK / LIMITED_STOCK / OUT_OF_STOCK |
| `fulfillment` | object | `{shipping, pickup, sameDay}` booleans |
| `productUrl` | string | Direct link to Target product page |
| `recordType` | string | Always `"product"` |
| `siteName` | string | Always `"Target"` |
| `scrapedAt` | string | ISO-8601 timestamp |

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | select | `search` | Operating mode |
| `query` | string | `iPhone case` | Search keyword (mode=search) |
| `tcins` | array | – | TCIN product IDs (mode=byTcin) |
| `categoryId` | select | `electronics` | Department to browse (mode=byCategory) |
| `url` | string | – | Target product or search URL (mode=byUrl) |
| `minPrice` | number | – | Filter: minimum price in USD |
| `maxPrice` | number | – | Filter: maximum price in USD |
| `minRating` | number | – | Filter: minimum average rating (0–5) |
| `onSaleOnly` | boolean | `false` | Only return products currently on sale |
| `inStockOnly` | boolean | `true` | Only return in-stock products |
| `maxItems` | integer | `24` | Hard cap on returned products (1–500) |

### Modes

#### search — keyword search
```json
{
  "mode": "search",
  "query": "bluetooth headphones",
  "maxItems": 48,
  "inStockOnly": true
}
````

#### byTcin — fetch specific products

```json
{
  "mode": "byTcin",
  "tcins": ["84512345", "12345678"]
}
```

#### byCategory — browse a department

```json
{
  "mode": "byCategory",
  "categoryId": "electronics",
  "maxItems": 100,
  "onSaleOnly": true
}
```

#### byUrl — paste any Target URL

```json
{
  "mode": "byUrl",
  "url": "https://www.target.com/p/apple-airpods-pro/-/A-85978612"
}
```

#### deals — trending deals

```json
{
  "mode": "deals",
  "maxItems": 50,
  "maxPrice": 50.00
}
```

### Categories available

`electronics`, `clothing-women`, `clothing-men`, `toys`, `home`, `baby`, `beauty`, `food`, `sports-outdoors`, `books`, `video-games`, `furniture`, `kitchen`, `health`, `pets`, `automotive`, `office`, `school-supplies`, `movies`, `music`

### FAQ

**Do I need a Target account or API key?**
No. This actor uses Target's public RedSky API. No authentication required.

**Does this need a proxy?**
The actor manages proxy sessions internally. You do not need to supply proxy input, but the scraper does rely on residential proxy rotation for reliable live runs.

**How many products can I scrape?**
Up to 500 per run. For large catalogs, run multiple times with different search terms or categories.

**Which mode is safest for smoke tests?**
`search` is the most reliable positive live smoke-test mode right now. `byTcin` and `byUrl` are still supported, but Target sometimes rate-limits or redirects direct PDP lookups in ways that make them less deterministic for repeated scheduled smoke tests. `deals` is also best-effort because Target sometimes suppresses the top-deals feed even after browser fallback.

**Why might a field be missing?**
Target doesn't always return all fields for every product. Empty fields are automatically omitted to keep the output clean.

**What is a TCIN?**
A TCIN (Target Corporation Item Number) is Target's internal product identifier, visible in product page URLs as `/A-XXXXXXXX`.

# Actor input Schema

## `mode` (type: `string`):

What to fetch from Target.

## `query` (type: `string`):

Keyword to search for (mode=search). E.g. 'iPhone case'.

## `tcins` (type: `array`):

One or more Target product IDs (TCINs). Accepts numeric strings like '84512345'. Comma-separated strings are also accepted.

## `categoryId` (type: `string`):

Top-level department to browse (mode=byCategory).

## `url` (type: `string`):

A Target product detail page URL or search URL. E.g. 'https://www.target.com/p/item/-/A-12345678' or a search result URL.

## `minPrice` (type: `number`):

Filter out products cheaper than this price.

## `maxPrice` (type: `number`):

Filter out products more expensive than this price.

## `minRating` (type: `number`):

Filter out products with average rating below this value (0.0–5.0).

## `onSaleOnly` (type: `boolean`):

Only emit products that are currently on sale.

## `inStockOnly` (type: `boolean`):

Only emit products with IN\_STOCK availability.

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

Hard cap on emitted records (1–500).

## Actor input object example

```json
{
  "mode": "search",
  "query": "iPhone case",
  "tcins": [
    "95003103"
  ],
  "categoryId": "electronics",
  "onSaleOnly": false,
  "inStockOnly": true,
  "maxItems": 5
}
```

# Actor output Schema

## `records` (type: `string`):

Dataset containing all scraped Target products.

# 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 = {
    "mode": "search",
    "query": "iPhone case",
    "tcins": [
        "95003103"
    ],
    "categoryId": "electronics",
    "onSaleOnly": false,
    "inStockOnly": true,
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawlerbros/target-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 = {
    "mode": "search",
    "query": "iPhone case",
    "tcins": ["95003103"],
    "categoryId": "electronics",
    "onSaleOnly": False,
    "inStockOnly": True,
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("crawlerbros/target-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "mode": "search",
  "query": "iPhone case",
  "tcins": [
    "95003103"
  ],
  "categoryId": "electronics",
  "onSaleOnly": false,
  "inStockOnly": true,
  "maxItems": 5
}' |
apify call crawlerbros/target-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=crawlerbros/target-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Target Product Scraper",
        "description": "Scrape Target.com products with search by keyword, browse by category, look up by TCIN, or fetch trending deals. Returns price, ratings, availability, images, and fulfillment options via Target's RedSky API. No proxy or auth required.",
        "version": "1.0",
        "x-build-id": "WyOhDmJL16O9iWvxh"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/crawlerbros~target-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-crawlerbros-target-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/crawlerbros~target-scraper/runs": {
            "post": {
                "operationId": "runs-sync-crawlerbros-target-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/crawlerbros~target-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-crawlerbros-target-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "search",
                            "byTcin",
                            "byCategory",
                            "byUrl",
                            "deals"
                        ],
                        "type": "string",
                        "description": "What to fetch from Target.",
                        "default": "search"
                    },
                    "query": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Keyword to search for (mode=search). E.g. 'iPhone case'.",
                        "default": "iPhone case"
                    },
                    "tcins": {
                        "title": "TCINs (mode=byTcin)",
                        "type": "array",
                        "description": "One or more Target product IDs (TCINs). Accepts numeric strings like '84512345'. Comma-separated strings are also accepted.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "categoryId": {
                        "title": "Category",
                        "enum": [
                            "electronics",
                            "clothing-women",
                            "clothing-men",
                            "toys",
                            "home",
                            "baby",
                            "beauty",
                            "food",
                            "sports-outdoors",
                            "books",
                            "video-games",
                            "furniture",
                            "kitchen",
                            "health",
                            "pets",
                            "automotive",
                            "office",
                            "school-supplies",
                            "movies",
                            "music"
                        ],
                        "type": "string",
                        "description": "Top-level department to browse (mode=byCategory).",
                        "default": "electronics"
                    },
                    "url": {
                        "title": "Target URL (mode=byUrl)",
                        "type": "string",
                        "description": "A Target product detail page URL or search URL. E.g. 'https://www.target.com/p/item/-/A-12345678' or a search result URL."
                    },
                    "minPrice": {
                        "title": "Min price (USD)",
                        "minimum": 0,
                        "maximum": 99999,
                        "type": "number",
                        "description": "Filter out products cheaper than this price."
                    },
                    "maxPrice": {
                        "title": "Max price (USD)",
                        "minimum": 0,
                        "maximum": 99999,
                        "type": "number",
                        "description": "Filter out products more expensive than this price."
                    },
                    "minRating": {
                        "title": "Min rating",
                        "minimum": 0,
                        "maximum": 5,
                        "type": "number",
                        "description": "Filter out products with average rating below this value (0.0–5.0)."
                    },
                    "onSaleOnly": {
                        "title": "On sale only",
                        "type": "boolean",
                        "description": "Only emit products that are currently on sale.",
                        "default": false
                    },
                    "inStockOnly": {
                        "title": "In-stock only",
                        "type": "boolean",
                        "description": "Only emit products with IN_STOCK availability.",
                        "default": true
                    },
                    "maxItems": {
                        "title": "Max items",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Hard cap on emitted records (1–500).",
                        "default": 5
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
