# Target Scraper — Products, Prices, Stock, TCIN & Reviews (`logiover/target-scraper`) Actor

Extract Target.com product catalogs, sale & regular prices, store & shipping stock status, TCIN/DPCI/UPC identifiers, star ratings, review counts, images, and specs via Target Redsky JSON APIs. Built for retail price monitoring & ecommerce analytics.

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

## Pricing

from $1.30 / 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.
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

## Target Scraper — Products, Prices, Stock, TCIN & Reviews

> **Disclaimer:** This Actor is an independent data extraction tool and is not affiliated with, endorsed by, or sponsored by Target Corporation or its parent company. All trademarks belong to their respective owners.

**Target Scraper** (`logiover/target-scraper`) is an enterprise-ready **Target scraper** (`target.com scraper`) engineered to extract structured retail product catalogs, current selling prices, regular comparison prices, dollar and percentage sale discounts, real-time localized store pickup inventory (`storeStockQuantity` & `orderPickupAvailable`), parcel shipping eligibility, `TCIN` / `DPCI` / `UPC` identifiers, guest star ratings, review counts, high-resolution Scene7 gallery images, merchandising badges, and specification bullets directly from **Target.com** (`target.com`). Purpose-built as a high-speed, zero-maintenance **Target API alternative**, it lets ecommerce brands, retail intelligence teams, MAP compliance auditors, CPG analysts, and pricing engineers **scrape target.com without API key** approvals or fragile browser automation.

Whether you are tracking daily Buy Box price movements on 50 core SKUs at a specific Target store (`storeId`) or sweeping **10,000+ unique deduplicated products** across Electronics, Kitchen, Home, Beauty, Toys, Baby, and Grocery departments, you can **export Target to CSV, Excel, JSON**, Parquet, or stream live structured records straight into Snowflake, BigQuery, Databricks, Google Sheets, n8n, Make, or Zapier. Fully **AI agent & MCP ready**, this Actor connects directly to Claude Desktop, Cursor, OpenAI Agents SDK, and LangChain via the official Apify MCP Server with predictable Pay-Per-Event billing and strict per-run cost guardrails.

***

### At a Glance

| Capability | Specification |
| :--- | :--- |
| **Target Platform** | Target (`https://www.target.com`) — Official Redsky Web JSON Aggregation Endpoints |
| **Extraction Modes** | 1) Keyword Search (`searchQueries`) · 2) Department / Category Browse (`categoryIds`) · 3) Direct Product URL / `TCIN` Lookup (`productUrls`) · 4) Multi-Department Bulk Catalog Expansion (`expandCategories: true`) |
| **Inventory & Store Localization** | Supports any US Target `storeId` (e.g. `1771` Cedar Rapids South, `2789` Manhattan Herald Square, `3991` Target.com Online) with real-time store `available-to-promise` stock counts |
| **Primary Deduplication Key** | `tcin` / `id` (Target.com Item Number — `0` duplicates verified across `11,200` rows) |
| **Verified Platform Throughput** | **30 rich products in `12.2s`** (default QC run) · **11,200 unique Target products in `237.1s`** (high-volume scale run) |
| **Pricing Model** | Pay-Per-Event (`apify-default-dataset-item`) — **$2.00 / 1,000 results** (FREE) down to **$1.30 / 1,000 results** (GOLD / PLATINUM / DIAMOND) |
| **Budget Guard** | Native `Actor.getChargingManager()` guard — stops cleanly with `SUCCEEDED` status at your exact `Max cost per run` ceiling |
| **Export Formats** | JSON, JSONL, CSV, Excel (`.xlsx`), XML, RSS, and direct REST API / MCP tool streaming |

***

### Key Features & Extraction Modes

#### 1. Direct Redsky Aggregation Architecture + Dynamic Key Refresh

Instead of rendering bloated headless Chromium tabs, **Target Scraper** communicates directly with Target's `redsky.target.com` JSON aggregation layer (`plp_search_v2`, `product_summary_with_fulfillment_v1`, and `pdp_client_v1`):

- **Verified US Session Pool Warmup:** Automatically warms up and pins clean US proxy sessions before dispatching catalog waves, maintaining fast HTTP 200 JSON responses and instant rotation if any IP encounters rate-limiting.
- **Self-Healing API Key Fallback:** Starts instantly with Target's live web aggregation key and automatically refreshes the `apiKey` token from `target.com` if Target ever rotates its frontend key.

#### 2. Real-Time Localized Store & Parcel Inventory (`product_summary_with_fulfillment_v1`)

Every page of catalog results is enriched in batch with localized store & shipping availability for your chosen `storeId`:

- **Exact Store Stock Counts:** Extracts `storeStockQuantity` (available-to-promise unit count at the selected physical store, e.g. `7` units at `Cedar Rapids South`), `orderPickupAvailable` (Drive Up / Order Pickup), and `storeName`.
- **Shipping & Free-Shipping Signals:** Captures `availabilityStatus` (`IN_STOCK`, `OUT_OF_STOCK`, `LIMITED_STOCK`, `PRE_ORDER_SELLABLE`), `fulfillmentShipping`, and `freeShipping`.

#### 3. Complete Retail Identifier Coverage (`TCIN`, `DPCI`, and Optional `UPC`)

- **`tcin` (`100.0%` fill):** Target's canonical 8–10 digit item identifier (`"91863920"`).
- **`dpci` (`69.2% – 96.7%` fill):** Target's in-store `Department-Class-Item` shelf code (`"072-08-0313"`).
- **`upc` (Optional `includeUpc: true`):** Performs per-item `pdp_client_v1` lookups to attach primary 12/13-digit `UPC`/`EAN` barcodes (`"053891177337"`) for cross-retailer Amazon / Walmart / Best Buy catalog matching.

#### 4. Multi-Mode Search, Category & Bulk Expansion

- **Keyword Search (`searchQueries`):** Paginates `offset = 0, 24, 48, ...` up to 1,200 products per search query with selectable `sortBy` (`relevance`, `Featured`, `bestselling`, `PriceLow`, `PriceHigh`, `RatingHigh`, `newest`).
- **Category IDs or URLs (`categoryIds`):** Accepts raw node IDs (`"5xtg6"`), `N-` codes (`"N-5xtg6"`), or full URLs (`"https://www.target.com/c/electronics/-/N-5xtg6"`).
- **Direct Product URLs or TCINs (`productUrls`):** Pass exact `/p/.../-/A-<tcin>` URLs or raw TCIN strings for targeted SKU monitoring.
- **One-Click Bulk Department Expansion (`expandCategories: true`):** Expands automatically across 15 major Target retail departments × multiple sort facets + 35 high-velocity product categories to collect **10,000–50,000+ unique products** in minutes.

#### 5. Rich Merchandising, Pricing & Specification Normalization

- **Clean Bullet Specifications:** Strips inline HTML tags (`<B>`, `</B>`) and decodes HTML entities across `title` and `bulletDescriptions` (`Dimensions`, `Weight`, `Capacity`, `Material`, `Power Source`, `Warranty`).
- **Demand & Social-Proof Badges:** Captures Target merchandising cues (`"Bestseller"`, `"4k+ bought in last month"`, `"Highly rated"`) inside `badges`.

***

### 12 High-ROI Retail, CPG & AI Use Cases

1. **Competitive Price & Promotion Monitoring:** Track hourly or daily shifts in `currentPrice`, `regularPrice`, `isOnSale`, `discountAmount`, and `discountPercent` across Target's national online catalog or specific regional store markets.
2. **MAP (Minimum Advertised Price) Compliance Auditing:** Automatically flag SKUs (`onSaleOnly: true` or `maxPrice` filters) selling below authorized brand MAP thresholds with timestamped URLs and formatted prices.
3. **Hyper-Local Store Shelf & Drive-Up Stock Intelligence:** Monitor `storeStockQuantity` and `orderPickupAvailable` across key Target stores (`storeId`) for CPG field-sales teams, out-of-stock (`OOS`) alerts, and regional demand forecasting.
4. **Cross-Retailer Assortment & Barcode Matching (Target vs. Walmart / Amazon):** Enable `includeUpc: true` to join Target `TCIN` + `DPCI` records directly against Amazon ASINs and Walmart Item IDs via universal `UPC` barcodes.
5. **Digital Shelf Share-of-Search (SoS) Analytics:** Measure organic rank position on high-intent keywords (`"coffee maker"`, `"protein powder"`, `"diapers"`, `"sunscreen"`) across `relevance` and `bestselling` sort orders.
6. **Private-Label vs. National Brand Benchmarking:** Compare pricing tiers, `rating`, and `reviewCount` between Target's owned brands (*good & gather*, *up & up*, *Threshold*, *Room Essentials*, *Cat & Jack*, *heyday*) and national CPG competitors.
7. **Retail Arbitrage & Clearance Deal Discovery:** Filter strictly for discounted in-stock merchandise (`"onSaleOnly": true`, `"inStockOnly": true`) sorted by `PriceLow` or `bestselling` to surface high-margin markdowns.
8. **Product Content & PDP Quality Audits:** Verify that every brand SKU on Target.com carries accurate `title` copy, complete `images` galleries, and rich `bulletDescriptions` specifications.
9. **Guest Sentiment & Review Velocity Tracking:** Monitor `rating` and `reviewCount` growth across new product launches alongside Target's `"Highly rated"` and `"4k+ bought in last month"` social-proof `badges`.
10. **AI Shopping Assistants & Autonomous Merchandising Agents (MCP):** Connect LLM agents directly to `logiover/target-scraper` via Apify MCP so agents can answer live product comparison, gift recommendation, and local store stock queries with zero hallucination.
11. **Macro Inflation & Consumer Basket Tracking:** Build longitudinal CPI-style retail price indexes across Electronics, Grocery (`5xtq9`), Household Essentials (`5xt3c`), and Baby (`5xtz1`) categories.
12. **Catalog Seeding & PIM Enrichment:** Populate ecommerce Product Information Management (`PIM`) systems with clean dimensions, weights, materials, department classifications, and high-res Scene7 image URLs.

***

### Copy-Paste JSON Input Recipes

#### Recipe 1: Fast Kitchen Appliances Catalog & Store Stock Check (Default Prefill — 30 Items in ~12s)

```json
{
  "searchQueries": [
    "coffee maker",
    "air fryer"
  ],
  "storeId": "1771",
  "sortBy": "relevance",
  "includeUpc": false,
  "onSaleOnly": false,
  "inStockOnly": false,
  "expandCategories": false,
  "maxResults": 30,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 2: Exact SKU / TCIN Monitoring with Primary UPC Barcodes (`includeUpc: true`)

```json
{
  "productUrls": [
    "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920",
    "94482782",
    "92038440"
  ],
  "searchQueries": [],
  "storeId": "2789",
  "includeUpc": true,
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 3: 11,200+ Product Multi-Department Scale Sweep (Verified Benchmark Input)

```json
{
  "searchQueries": [
    "coffee maker",
    "wireless headphones",
    "air fryer",
    "vacuum cleaner",
    "lego",
    "laptop",
    "gaming monitor",
    "running shoes"
  ],
  "storeId": "1771",
  "includeUpc": false,
  "expandCategories": true,
  "maxResults": 11200,
  "concurrency": 18,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 4: Target Electronics & Gaming Category Crawl by Category URL / Node ID

```json
{
  "categoryIds": [
    "https://www.target.com/c/electronics/-/N-5xtg6",
    "5xtb0"
  ],
  "searchQueries": [],
  "storeId": "1771",
  "sortBy": "bestselling",
  "inStockOnly": true,
  "includeUpc": false,
  "maxResults": 500,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 5: On-Sale Markdown & Clearance Deal Hunter (`onSaleOnly: true`)

```json
{
  "searchQueries": [
    "bluetooth speaker",
    "robot vacuum",
    "espresso machine",
    "noise cancelling headphones"
  ],
  "storeId": "1771",
  "sortBy": "bestselling",
  "onSaleOnly": true,
  "inStockOnly": true,
  "ratingMin": 4,
  "maxResults": 250,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 6: Beauty, Skincare & Personal Care Assortment Audit Under $35

```json
{
  "categoryIds": ["5xu1n", "5xtlj"],
  "searchQueries": ["sunscreen", "retinol serum", "moisturizer"],
  "storeId": "1771",
  "sortBy": "RatingHigh",
  "priceMin": 5,
  "priceMax": 35,
  "includeUpc": true,
  "maxResults": 150,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 7: Baby Gear & Nursery Inventory Check at Manhattan Herald Square (`storeId: "2789"`)

```json
{
  "categoryIds": ["5xtz1"],
  "searchQueries": ["stroller", "baby monitor", "car seat"],
  "storeId": "2789",
  "inStockOnly": true,
  "includeUpc": false,
  "maxResults": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

#### Recipe 8: Grocery & Household Essentials Private-Label Price Basket

```json
{
  "searchQueries": [
    "good and gather coffee",
    "up and up paper towels",
    "olive oil",
    "laundry detergent"
  ],
  "storeId": "1771",
  "sortBy": "relevance",
  "includeUpc": false,
  "maxResults": 300,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

***

### Full Input Reference

| Parameter | Type | Default / Prefill | Description |
| :--- | :--- | :--- | :--- |
| `searchQueries` | `array<string>` | `["coffee maker", "air fryer"]` | Keywords searched on Target.com (`plp_search_v2`). Leave `[]` when scraping only `categoryIds` or `productUrls`. |
| `categoryIds` | `array<string>` | `[]` | Target category node IDs (`"5xtg6"`, `"N-5xtg6"`) or full Target category URLs (`"https://www.target.com/c/electronics/-/N-5xtg6"`). |
| `productUrls` | `array<string>` | `[]` | Direct Target product URLs (`"https://www.target.com/p/.../-/A-91863920"`) or raw 8–10 digit TCINs (`"91863920"`). |
| `storeId` | `string` | `"1771"` | Target store ID used for localized pricing and physical pickup stock (`"1771"` Cedar Rapids South, `"2789"` Manhattan Herald Square, `"3991"` Target Online). |
| `sortBy` | `string` | `"relevance"` | Sort order: `"relevance"`, `"Featured"`, `"bestselling"`, `"PriceLow"`, `"PriceHigh"`, `"RatingHigh"`, or `"newest"`. |
| `priceMin` | `integer` | — | Optional minimum `currentPrice` filter in USD. |
| `priceMax` | `integer` | — | Optional maximum `currentPrice` filter in USD. |
| `ratingMin` | `integer` | — | Optional minimum guest star `rating` filter (`0` to `5`). |
| `onSaleOnly` | `boolean` | `false` | Keep only discounted items (`isOnSale === true`). |
| `inStockOnly` | `boolean` | `false` | Exclude `OUT_OF_STOCK` items. |
| `includeUpc` | `boolean` | `false` | When `true`, performs additional `pdp_client_v1` lookups per product to attach `upc` (`primary_barcode`). Keep `false` for maximum throughput on large sweeps. |
| `expandCategories` | `boolean` | `false` | Automatically expands across 15 major Target departments × multiple sort facets + 35 high-volume search queries for 5,000–50,000+ product runs. |
| `maxResults` | `integer` | `200` (`30` prefill) | Maximum unique products (deduplicated by `tcin`) to extract (`1` to `100,000`). Enforced synchronously before batch push. |
| `concurrency` | `integer` | `12` | Parallel Redsky worker count (`1` to `30`). |
| `proxyConfiguration` | `object` | `{ "useApifyProxy": true }` | Apify Proxy settings (uses verified US Datacenter Proxy sessions automatically). |

***

### Complete Data Dictionary & Real Measured Fill Rates

Measured directly across **11,200 unique Target products** on live Apify platform run `zb6RzeH1bdNByvLM5` (and 30-row prefill run `hTOCtWzk8Wp9H2Rky`) on **2026-11-17**:

| Field | Type | Measured Fill Rate (`11,200` Rows) | Description & Example |
| :--- | :--- | :--- | :--- |
| `id` | `string` | **100.0%** | Primary deduplication key matching `tcin` (`"91863920"`). |
| `tcin` | `string` | **100.0%** | Official Target.com Item Number (`"91863920"`). |
| `dpci` | `string \| null` | **69.2% – 96.7%** | Target `Department-Class-Item` shelf code (`"072-08-0313"`; `null` on select Marketplace-only items). |
| `upc` | `string \| null` | **When `includeUpc: true`** | 12/13-digit primary UPC/EAN barcode (`"053891177337"`) populated when `includeUpc: true` or via `productUrls`. |
| `title` | `string` | **100.0%** | Clean HTML-decoded product title (`"Mr. Coffee 12-Cup Programmable Coffee Maker Black"`). |
| `brand` | `string` | **100.0%** | Brand name (`"Mr. Coffee"`). |
| `brandUrl` | `string` | **100.0%** | Canonical Target brand page URL (`"https://www.target.com/b/mr-coffee/-/N-5s76z"`). |
| `url` | `string` | **100.0%** | Canonical Target PDP URL (`"https://www.target.com/p/.../-/A-91863920"`). |
| `currentPrice` | `number` | **100.0%** | Current selling price in USD (`19.99`). |
| `regularPrice` | `number` | **100.0%** | Regular / comparison retail price in USD (`34.99`). |
| `formattedPrice` | `string` | **100.0%** | Display price string (`"$19.99"`). |
| `priceType` | `string` | **100.0%** | Price state (`"sale"`, `"reg"`, `"clearance"`). |
| `currency` | `string` | **100.0%** | ISO 4217 currency code (`"USD"`). |
| `isOnSale` | `boolean` | **100.0%** | `true` when discounted below `regularPrice`. |
| `discountAmount` | `number` | **100.0%** | Dollar savings off regular price (`15`, or `0` when regular price). |
| `discountPercent` | `number` | **100.0%** | Percentage savings off regular price (`43`, or `0` when regular price). |
| `rating` | `number \| null` | **55.8% – 80.0%** | Average guest star rating (`4.27`; `null` on newly launched unreviewed items). |
| `reviewCount` | `number` | **100.0%** | Total guest review count (`1041`, or `0` when unreviewed). |
| `availabilityStatus` | `string` | **100.0%** | Inventory status (`"IN_STOCK"`, `"OUT_OF_STOCK"`, `"LIMITED_STOCK"`, `"PRE_ORDER_SELLABLE"`). |
| `fulfillmentShipping` | `boolean` | **100.0%** | Whether standard / 2-day parcel delivery is available. |
| `freeShipping` | `boolean` | **100.0%** | Whether the item qualifies for free standard shipping. |
| `orderPickupAvailable` | `boolean` | **100.0%** | Whether same-day Order Pickup / Drive Up is available at `storeId`. |
| `storeStockQuantity` | `number \| null` | **100.0%** | Exact store available-to-promise unit quantity (`7`, `5`, `0`) at the selected Target location. |
| `storeName` | `string` | **100.0%** | Physical Target store name (`"Cedar Rapids South"`). |
| `storeId` | `string` | **100.0%** | Target store ID queried (`"1771"`). |
| `primaryImageUrl` | `string` | **100.0%** | Primary high-res Target Scene7 image URL. |
| `images` | `array<string>` | **100.0%** | Deduplicated array of all high-resolution gallery image URLs. |
| `bulletDescriptions` | `array<string>` | **99.7%** | Clean specification bullet points (`Dimensions`, `Weight`, `Material`, `Warranty`, etc.). |
| `badges` | `array<string>` | **100.0%** | Merchandising & social-proof badges (`["Bestseller"]`, `["4k+ bought in last month"]`, `["Highly rated"]`). |
| `categoryId` | `string` | **100.0%** | Target category node identifier (`"658ml"`). |
| `categoryName` | `string` | **100.0%** | Item classification name (`"Coffee Makers"`). |
| `departmentId` | `number \| null` | **100.0%** | Target merchandise department number (`72`). |
| `relationshipType` | `string` | **100.0%** | Catalog SKU relationship (`"Stand Alone"`, `"Variation Parent"`, `"Collection Parent"`). |
| `searchQuery` | `string` | **100.0%** | Originating keyword, `category:<id>`, or `tcin:<id>`. |
| `scrapedAt` | `string` | **100.0%** | ISO 8601 UTC extraction timestamp. |

***

### Real Unmasked JSON Output Sample (Live Platform Run `hTOCtWzk8Wp9H2Rky`)

Below is an exact, unedited product record extracted live on Apify on **2026-11-17**:

```json
{
  "id": "91863920",
  "tcin": "91863920",
  "dpci": "072-08-0313",
  "title": "Mr. Coffee 12-Cup Programmable Coffee Maker Black",
  "brand": "Mr. Coffee",
  "brandUrl": "https://www.target.com/b/mr-coffee/-/N-5s76z",
  "url": "https://www.target.com/p/mr-coffee-12c-programmable-drip-coffee-maker-stainless-steel-finish/-/A-91863920",
  "currentPrice": 19.99,
  "regularPrice": 34.99,
  "formattedPrice": "$19.99",
  "priceType": "sale",
  "currency": "USD",
  "isOnSale": true,
  "discountAmount": 15,
  "discountPercent": 43,
  "rating": 4.27,
  "reviewCount": 1041,
  "availabilityStatus": "IN_STOCK",
  "fulfillmentShipping": true,
  "freeShipping": false,
  "orderPickupAvailable": true,
  "storeStockQuantity": 7,
  "storeName": "Cedar Rapids South",
  "storeId": "1771",
  "primaryImageUrl": "https://target.scene7.com/is/image/Target/GUEST_fd026130-c56b-41d3-9e88-992fcf06debf",
  "images": [
    "https://target.scene7.com/is/image/Target/GUEST_fd026130-c56b-41d3-9e88-992fcf06debf",
    "https://target.scene7.com/is/image/Target/GUEST_22aead54-0df3-4d28-9158-7de16148d656",
    "https://target.scene7.com/is/image/Target/GUEST_c4da4ed8-1abb-40b5-b060-e40be685b2ea",
    "https://target.scene7.com/is/image/Target/GUEST_b589d0f6-282f-4a35-be74-f8b2fbfd46a6",
    "https://target.scene7.com/is/image/Target/GUEST_6ef5f7d0-1970-414f-8ea9-b310bf5fd6d1"
  ],
  "bulletDescriptions": [
    "Dimensions (Overall): 13.6 Inches (H) x 10.75 Inches (W) x 11.5 Inches (D)",
    "Weight: 5.71 Pounds",
    "Capacity (Volume): 60 fl oz (US)",
    "Cup Capacity: 12",
    "Mount Type: Freestanding",
    "Includes: Glass Carafe, Removable Filter Basket",
    "Safety and Security Features: Automatic Shut-Off",
    "Coffee Filter Type: Paper",
    "Coffee Type Used: Ground Coffee",
    "Cup Capacity Size: 5 oz",
    "Material: Plastic, Glass",
    "Power Source: Electric",
    "Battery: No Battery Used",
    "Care & Cleaning: Dishwasher-Safe Parts",
    "Warranty: 1 Year Limited Warranty. To obtain a copy of the manufacturer's or supplier's warranty for this item prior to purchasing the item, please call Target Guest Services at 1-800-591-3869"
  ],
  "badges": [
    "Bestseller"
  ],
  "categoryId": "658ml",
  "categoryName": "Coffee Makers",
  "departmentId": 72,
  "relationshipType": "Stand Alone",
  "searchQuery": "coffee maker",
  "scrapedAt": "2026-11-17T11:38:04.909Z"
}
```

***

### Measured Performance & Scale Proof (Verified `2026-11-17`)

All benchmarks below were executed live on the Apify cloud platform (`1024 MB` container) on **2026-11-17**:

| Benchmark Scenario | Apify Run ID | Configuration | Unique Rows | Duplicates | Empty Columns | Duration | Peak RAM | Status |
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
| **Default Prefill QC Run** | `hTOCtWzk8Wp9H2Rky` | `["coffee maker", "air fryer"]`, `storeId: "1771"` | **30** | **0** | **0** | **12.2s** | 66 MB | `SUCCEEDED` |
| **Multi-Department Scale Proof** | `zb6RzeH1bdNByvLM5` | `expandCategories: true`, 556 Redsky pages + 538 fulfillment batches | **11,200** | **0** | **0** | **237.1s** | 146 MB | `SUCCEEDED` |
| **PPE Max-Cost Budget Proof** | `u2AGbW9KW4xWipOYe` | Pay-Per-Event `$0.05` Hard Ceiling Test | **28** | **0** | **0** | **7.1s** | 66 MB | `SUCCEEDED` |

***

### Pricing — What You Pay (Pay-Per-Event)

**Target Scraper** uses transparent **Pay-Per-Event (PPE)** billing (`apify-default-dataset-item`). You pay strictly per unique Target product delivered to your dataset—with **no monthly subscription fees**, no residential proxy surcharges required, and automatic volume discounts based on your Apify Store plan tier:

| Apify Plan Tier | Price per Result | Price per 1,000 Results | 10,000 Products |
| :--- | :--- | :--- | :--- |
| **FREE** | `$0.002000` | **$2.00 / 1k** | `$20.00` |
| **BRONZE** | `$0.001767` | **$1.77 / 1k** | `$17.67` |
| **SILVER** | `$0.001533` | **$1.53 / 1k** | `$15.33` |
| **GOLD** | `$0.001300` | **$1.30 / 1k** | `$13.00` |
| **PLATINUM** | `$0.001300` | **$1.30 / 1k** | `$13.00` |
| **DIAMOND** | `$0.001300` | **$1.30 / 1k** | `$13.00` |

#### Controlling Spend with "Maximum Cost Per Run"

You have deterministic spend control on every run:

1. Set **Maximum cost per run** in Apify Console (under **Run Options**) or pass `?maxTotalChargeUsd=2.50` via the API.
2. Before pushing each batch of products, our runtime charging guard queries `calculateMaxEventChargeCountWithinLimit` to slice the exact affordable count.
3. Once your dollar cap is reached, the Actor records a `STOPPED_AT_BUDGET` summary in the Key-Value Store (`SUMMARY`) and exits cleanly with `SUCCEEDED` status—never stranding your pipeline with an `ABORTED` status.

***

### AI Agent & Official Apify MCP Server Integration

**Target Scraper** is **AI agent & MCP ready**. Connect Claude Desktop, Cursor, Windsurf, OpenAI Agents SDK, or LangGraph agents directly to live Target.com catalog, pricing, and store inventory intelligence via the official Apify MCP Server:

- **MCP Endpoint:** `https://mcp.apify.com?tools=logiover/target-scraper`

#### Claude Desktop / Cursor `mcp.json` Configuration

```json
{
  "mcpServers": {
    "target-scraper": {
      "url": "https://mcp.apify.com?tools=logiover/target-scraper",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_API_TOKEN"
      }
    }
  }
}
```

Example natural-language prompt for your MCP-connected AI agent:

> *"Use `logiover/target-scraper` to find on-sale espresso machines and coffee makers rated 4+ stars on Target.com at store `1771`, and compare their sale discounts and exact store stock quantities."*

***

### Code & Automation Integrations

#### Node.js (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_API_TOKEN });

const run = await client.actor('logiover/target-scraper').call(
    {
        searchQueries: ['espresso machine', 'drip coffee maker'],
        storeId: '1771',
        onSaleOnly: true,
        inStockOnly: true,
        includeUpc: true,
        maxResults: 100,
    },
    { maxTotalChargeUsd: 0.5 },
);

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Extracted ${items.length} discounted Target products:`, items[0]);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_API_TOKEN"])

run = client.actor("logiover/target-scraper").call(
    run_input={
        "categoryIds": ["5xtg6"],
        "searchQueries": [],
        "storeId": "2789",
        "sortBy": "bestselling",
        "inStockOnly": True,
        "maxResults": 250,
    },
    max_total_charge_usd=1.00,
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
for prod in items[:5]:
    print(prod["tcin"], "|", prod["formattedPrice"], "| stock:", prod["storeStockQuantity"], "|", prod["title"])
```

#### cURL (Synchronous Dataset JSON Output)

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~target-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_API_TOKEN&maxTotalChargeUsd=0.25" \
  -H "Content-Type: application/json" \
  -d '{
    "searchQueries": ["wireless headphones"],
    "storeId": "1771",
    "sortBy": "bestselling",
    "maxResults": 30
  }'
```

#### n8n / Make / Zapier / Google Sheets Workflows

- **n8n & Make:** Schedule `logiover/target-scraper` every 6 hours with your brand's `productUrls` (`TCIN` list), compare `currentPrice` against your MAP floor, and post instant alerts to Slack or Microsoft Teams whenever a markdown or store stockout (`storeStockQuantity === 0`) occurs.
- **Google Sheets / Excel:** Export any dataset directly as `.xlsx` or `.csv` from the Apify Console Dataset tab, or sync live rows into Google Sheets using the official Apify Google Sheets integration.

***

### Troubleshooting & Best Practices

- **Collecting More Than 1,200 Products:** Target's Redsky `plp_search_v2` API paginates up to 50 pages (`offset = 0..1176`, ~1,200 products) per individual search keyword or category/sort stream. To extract 5,000–50,000+ unique products in one run, pass multiple `searchQueries` / `categoryIds` or set `"expandCategories": true`.
- **When to Enable `includeUpc`:** Keep `"includeUpc": false` (default) for fast catalog, pricing, review, and store-stock crawls (`11,200` items in under 4 minutes!). Enable `"includeUpc": true` when matching SKUs by 12-digit `UPC` barcode—since `includeUpc` executes an extra `pdp_client_v1` request per item.
- **Finding a Target `storeId`:** Open any store detail page on `target.com/sl/...`—the trailing number in the URL or store details (e.g. `1771`, `2789`, `1375`) is its `storeId`. Use `"3991"` if you want pure national Target.com online pricing.
- **Support & Issue Reporting:** Need an extra Redsky attribute or spotted an edge case? Open a ticket on the [Actor Issues tab](https://apify.com/logiover/target-scraper/issues) or leave a note on the [Reviews tab](https://apify.com/logiover/target-scraper/reviews).

***

### Frequently Asked Questions (FAQ)

#### Do I need a Target API key or partner developer account to use this Actor?

No. **Target Scraper** queries Target's public web Redsky JSON aggregation endpoints directly and includes automatic dynamic key refresh from `target.com` if Target ever updates its frontend token.

#### What is the difference between `TCIN`, `DPCI`, and `UPC` on Target.com?

`TCIN` (Target.com Item Number, e.g. `"91863920"`) is Target's primary online catalog ID (`100%` fill). `DPCI` (Department-Class-Item, e.g. `"072-08-0313"`) is Target's internal store shelf/POS inventory code. `UPC` (e.g. `"053891177337"`) is the manufacturer's universal barcode, extracted whenever `"includeUpc": true` or `productUrls` is used.

#### How does localized store inventory (`storeStockQuantity`) work?

For every page of up to 24 products, the Actor executes a batch `product_summary_with_fulfillment_v1` call against your chosen `storeId`, returning exact `storeStockQuantity` (available-to-promise unit counts), `orderPickupAvailable` (Drive Up / Order Pickup), and `storeName`.

#### How many unique Target products can I extract in a single run?

Up to `100,000` unique deduplicated products per run (`maxResults`). In our live platform benchmark (`zb6RzeH1bdNByvLM5` on `2026-11-17`), the Actor extracted **11,200 unique Target products** in **237.1 seconds** (`~3.95 minutes`) with **0 duplicates**.

#### Do I need expensive Residential or Unblocker proxies?

No! This Actor is specifically engineered to run over standard Apify Datacenter Proxy (`{ "useApifyProxy": true }`) using verified US session warmup and automatic session rotation—keeping runs fast and reliable without residential proxy overhead.

#### How does deduplication work when products appear in multiple categories or searches?

Every item is tracked in an in-memory `Set` keyed by `tcin` before `maxResults` reservation and dataset batch flushing. Even when `"expandCategories": true` sweeps dozens of overlapping departments and keywords, zero duplicate `TCIN` records are written or billed.

#### Can I scrape specific Target product URLs or a list of TCINs directly?

Yes. Pass full URLs (`https://www.target.com/p/.../-/A-91863920`) or bare TCIN numbers (`"91863920"`) in `productUrls` (and set `"searchQueries": []` if you only want those exact SKUs).

#### Can I scrape an entire Target category URL?

Yes. Paste any Target category URL (such as `"https://www.target.com/c/electronics/-/N-5xtg6"`) or bare node ID (`"5xtg6"`) into `categoryIds`.

#### Why is `rating` `null` on some Target products?

Newly launched, seasonal, or low-volume Marketplace SKUs on Target.com legitimately have `0` guest reviews (`reviewCount: 0`), in which case Target reports no star average (`rating: null`) rather than an artificial zero.

#### Can I filter strictly for discounted / clearance items?

Yes. Set `"onSaleOnly": true` (and optionally `"inStockOnly": true`, `"priceMin"`, `"priceMax"`, `"ratingMin"`). Non-matching items are filtered out before `maxResults` reservation so you only pay for matching sale items.

#### How much does it cost to scrape 1,000 or 10,000 Target products?

Under Pay-Per-Event pricing, 1,000 unique Target products cost **$2.00** on the Apify FREE tier, **$1.77** on BRONZE, **$1.53** on SILVER, and **$1.30** on GOLD, PLATINUM, and DIAMOND tiers.

#### What happens when my run hits "Maximum cost per run"?

Our built-in charging guard checks remaining event allowance before every push, trims the final batch to fit your exact dollar ceiling, saves run telemetry to `SUMMARY`, and finishes cleanly with `SUCCEEDED` status (proven live in run `u2AGbW9KW4xWipOYe` at `$0.05`).

#### Are HTML tags stripped from Target's `bullet_descriptions`?

Yes. Raw Redsky strings like `"<B>Weight:</B> 5.71 Pounds"` and HTML character entities (`&amp;`, `&#8482;`, `&quot;`) are automatically cleaned into crisp plain-text specifications (`"Weight: 5.71 Pounds"`) ready for spreadsheets and LLMs.

#### Can I export Target data to CSV or Excel without writing code?

Yes. On any completed run in Apify Console, open the **Storage -> Dataset** tab and click **Export** to download **Excel (`.xlsx`)**, **CSV**, **JSON**, **JSONL**, or **XML**.

#### Is this Actor compatible with the Apify MCP Server and AI agents?

Yes. Configure your MCP client with `https://mcp.apify.com?tools=logiover/target-scraper` to give Claude, Cursor, or custom AI agents live access to Target product search, pricing, and store inventory.

#### Where can I inspect run diagnostics and summary counters?

Every run writes a structured `SUMMARY` JSON record to the default Key-Value Store reporting `extractedProducts`, `pagesFetched`, `fulfillmentBatches`, `pdpFetched`, `duplicatesSkipped`, `filteredOut`, and `durationSecs`.

# Changelog

This Actor's version history is a separate document: https://apify.com/logiover/target-scraper/changelog.md

# Actor input Schema

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

Keywords to search on Target.com (e.g. 'coffee maker', 'wireless headphones', 'air fryer', 'lego').

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

Optional Target category IDs (e.g. '5xtg6', 'N-5xtg6') or full Target category URLs (e.g. 'https://www.target.com/c/electronics/-/N-5xtg6').

## `productUrls` (type: `array`):

Optional direct Target product URLs ('https://www.target.com/p/.../-/A-91863920') or raw TCIN identifiers ('91863920').

## `storeId` (type: `string`):

Target store ID used for localized pricing and store pickup inventory (e.g. '1771' Cedar Rapids South, '2789' Manhattan Herald Square, '3991' Target.com Online).

## `sortBy` (type: `string`):

Sort order for Target search and category results.

## `priceMin` (type: `integer`):

Optional minimum current retail price filter in USD.

## `priceMax` (type: `integer`):

Optional maximum current retail price filter in USD.

## `ratingMin` (type: `integer`):

Optional minimum average guest star rating filter (1 to 5).

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

Return only products currently discounted on sale below regular retail price.

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

Return only products currently available for shipping or store pickup.

## `includeUpc` (type: `boolean`):

Fetch individual PDP data to attach primary UPC/EAN barcode identifiers. Keep false for fast Redsky catalog + batch fulfillment extraction.

## `expandCategories` (type: `boolean`):

Automatically expand across top Target retail departments and sort facets to collect 5,000–50,000+ unique products in a single run.

## `maxResults` (type: `integer`):

Maximum number of unique Target products (deduplicated by TCIN) to extract.

## `concurrency` (type: `integer`):

Number of parallel Redsky API workers.

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

Proxy settings for requests.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee maker",
    "air fryer"
  ],
  "storeId": "1771",
  "sortBy": "relevance",
  "onSaleOnly": false,
  "inStockOnly": false,
  "includeUpc": false,
  "expandCategories": false,
  "maxResults": 30,
  "concurrency": 12,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "searchQueries": [
        "coffee maker",
        "air fryer"
    ],
    "storeId": "1771",
    "sortBy": "relevance",
    "onSaleOnly": false,
    "inStockOnly": false,
    "includeUpc": false,
    "expandCategories": false,
    "maxResults": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/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 = {
    "searchQueries": [
        "coffee maker",
        "air fryer",
    ],
    "storeId": "1771",
    "sortBy": "relevance",
    "onSaleOnly": False,
    "inStockOnly": False,
    "includeUpc": False,
    "expandCategories": False,
    "maxResults": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("logiover/target-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": [
    "coffee maker",
    "air fryer"
  ],
  "storeId": "1771",
  "sortBy": "relevance",
  "onSaleOnly": false,
  "inStockOnly": false,
  "includeUpc": false,
  "expandCategories": false,
  "maxResults": 30
}' |
apify call logiover/target-scraper --silent --output-dataset

```

## MCP server setup

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