# Target Scraper (`neuro-scraper/target-scraper`) Actor

Target Scraper SD - Target Scraper is an e-commerce data tool that extracts Target.com search, category and brand results, full product details and customer reviews: TCIN, price, sale price, rating, seller, UPC, specifications, variants and review text - no login.

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

## Pricing

from $1.19 / 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/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 — Target.com products, prices and reviews

Target Scraper turns Target.com searches, category pages, brand pages and product links into clean rows: TCIN, title, brand, price, sale price, rating, badges, seller and more. Product links (or bare TCINs) get the full product: UPC, description, highlights, specifications, images, category path and variants. In `reviews` mode it collects customer reviews of any product it finds or is given.

It reads the same JSON APIs the Target website uses (Redsky for products, r2d2 for reviews). The public web API key, the visitor id and the store Target assigns are read from a live target.com page on every run, never hardcoded. No login and no browser cookies are used.

#### Input

| Field | Type | Default | Meaning |
|---|---|---|---|
| `mode` | select | `products` | `products` = one row per product; `reviews` = one row per customer review |
| `searchTerms` | array | `["coffee maker"]` (prefill) | Words you would type in the Target search box |
| `startUrls` | array | empty | Search (`/s?searchTerm=`), category (`/c/.../N-<id>`), brand (`/b/.../N-<id>`) or product (`/p/.../A-<TCIN>`) URLs, or bare TCINs |
| `maxItems` | integer | `20` | Rows in total (products or reviews) |
| `maxPagesPerSearch` | integer 1–50 | `50` | Result pages (24 products each) per search, category or brand |
| `sortBy` | select | `default` | Target's own sort options: relevance, Featured, PriceLow, PriceHigh, RatingHigh, bestselling, newest |
| `includeSponsored` | boolean | `false` | Add sponsored placements, flagged `isSponsored` |
| `includeDetails` | boolean | `false` | Add full product details to search rows (1 extra request per row) |
| `maxReviewsPerProduct` | integer | `20` | Reviews mode: reviews per product |
| `reviewsSort` | select | `most_recent` | Reviews mode: most_recent, helpfulness_desc, highest_rating, lowest_rating |
| `storeId` | string | empty | Target store number sent as the pricing store; empty = the store Target assigns |
| `proxyConfiguration` | proxy | Apify RESIDENTIAL, US | Proxy for all requests |

#### Output — products mode

| Field | Meaning |
|---|---|
| `tcin`, `title`, `brand`, `url`, `image` | Target item number, product title, brand, product page, main image |
| `price`, `priceText`, `priceType` | Current price as a number, as shown ("$69.99 - $79.99", "See price in cart"), and `reg` / `sale` / `clearance` |
| `regularPrice`, `savePercent` | Regular (comparison) price and the discount in % for items on sale |
| `rating`, `ratingCount` | Average stars and number of ratings (a variant shows its parent's rating) |
| `isSponsored`, `position`, `page` | Search rows: ad flag, position in Target's list, result page |
| `badges`, `itemType` | "Bestseller", "Highly rated", "New At Target" ...; Target's item type |
| `soldBy` | "Target", or the Target Plus partner that sells the item |
| `dpci`, `parentTcin` | Target's department-class-item number (Target-sold items); parent TCIN of a variant |
| `upc`, `description`, `highlights`, `specifications`, `images` | Product URLs/TCINs and `includeDetails` only |
| `category`, `categoryPath`, `department` | Same: category and breadcrumb path |
| `reviewCount`, `questionCount`, `recommendedPercentage`, `ratingDistribution` | Same: review statistics |
| `variantCount`, `variants` | Same: every variant with TCIN, attributes (e.g. "Color: Black"), URL and sold-out flag |
| `priceLocationId` | The location Target priced the item at |
| `searchTerm` / `inputUrl`, `scrapedAt` | The input that produced the row; UTC timestamp |

#### Output — reviews mode

`reviewId`, `tcin`, `productTitle`, `rating`, `title`, `text`, `submittedAt`, `authorNickname`, `isVerifiedPurchase`, `isRecommended`, `isIncentivized`, `helpfulVotes`, `unhelpfulVotes`, `photos`, `secondaryRatings` (e.g. quality, value), `brandResponse`, `productRating`, `productReviewCount`, `productUrl`, `searchTerm` / `inputUrl`, `scrapedAt`.

#### Measured limits (local test runs, 2026-10-03)

- Target serves 24 products per page and at most 50 pages per query: the API refuses any offset above 1,199. "shirt" gave 1,154 unique products from those 1,200 listings (46 repeated between pages and were skipped) in 88 seconds.
- Speed is about 1 request per second: 100 search results took 9 s, 200 reviews took 11 s. `includeDetails` adds about 1 s per row (8 rows: 12 s).
- Reviews come 50 per request (a bigger page is refused). Variants share their parent's reviews, so each product's reviews are collected once.
- Every price in the tests came back for location 3991, even with other store ids (3412 New York, 2870 Honolulu). `storeId` is passed to Target, but it did not change prices from the test IP; check `priceLocationId`.
- For a keyword with no matches, Target returns popular products instead of an empty list (a random string gave 200 toy listings). Target gives no flag for this, so the scraper cannot filter them out. Misspellings are auto-corrected by Target, and the log says so.
- Filter ids added to a category URL (`N-5xtdjZ55e6u`) are not applied; only the category or brand id is used.
- Sponsored products appear only in unsorted results (6 per page in the tests).

#### Example input

```json
{"mode": "products", "searchTerms": ["air fryer"], "startUrls": ["https://www.target.com/p/-/A-94469587"], "sortBy": "bestselling", "maxItems": 100}
```

# Actor input Schema

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

products = one row per product (search, category and brand URLs give the result list; a product URL or TCIN gives the full product). reviews = one row per customer review of every product given by URL / TCIN or found by the search terms.

## `searchTerms` (type: `array`):

What you would type in the Target search box, one per line. Example: coffee maker

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

Search URLs (https://www.target.com/s?searchTerm=air+fryer), category URLs (https://www.target.com/c/kitchen-appliances-dining/-/N-5xtrs), brand URLs (https://www.target.com/b/keurig/-/N-5uvm4), product URLs (https://www.target.com/p/-/A-94469587) or bare TCINs (94469587). The kind is detected from each line.

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

Maximum number of rows in total (products in products mode, reviews in reviews mode). Result pages are read until this number is reached or Target has no more.

## `maxPagesPerSearch` (type: `integer`):

Safety limit on result pages (24 products each) read per search term, category or brand. Target serves at most 50 pages (1,200 products) per query.

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

Order of search, category and brand results, using Target's own sort options. Default keeps Target's order (relevance for searches, featured for categories).

## `includeSponsored` (type: `boolean`):

Add the sponsored (ad) placements Target mixes into unsorted results, flagged isSponsored = true. An advertised product can then appear twice: once as an ad and once in its organic position.

## `includeDetails` (type: `boolean`):

Products mode: reads the product API for every search result and adds UPC, description, highlights, specifications, all images, category path, review and question counts, rating distribution and variants. One extra request (about 1 second) per row. Product URLs and TCINs always get these details.

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

Reviews mode: maximum number of reviews read for each product (50 per request). The run still stops at Max results.

## `reviewsSort` (type: `string`):

Reviews mode: order in which Target returns the reviews.

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

Target store number sent as the API's pricing store, e.g. 3412 (New York, Chelsea). Empty = the store Target itself assigns to the visitor (read from the page on every run). Each row's priceLocationId shows the location Target actually priced it at.

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

Target serves US visitors. A US residential proxy is recommended and is the default.

## Actor input object example

```json
{
  "mode": "products",
  "searchTerms": [
    "coffee maker"
  ],
  "startUrls": [],
  "maxItems": 20,
  "maxPagesPerSearch": 50,
  "sortBy": "default",
  "includeSponsored": false,
  "includeDetails": false,
  "maxReviewsPerProduct": 20,
  "reviewsSort": "most_recent",
  "storeId": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "searchTerms": [
        "coffee maker"
    ],
    "startUrls": [],
    "maxItems": 20,
    "maxReviewsPerProduct": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/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 = {
    "searchTerms": ["coffee maker"],
    "startUrls": [],
    "maxItems": 20,
    "maxReviewsPerProduct": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/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 '{
  "searchTerms": [
    "coffee maker"
  ],
  "startUrls": [],
  "maxItems": 20,
  "maxReviewsPerProduct": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call neuro-scraper/target-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/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/0dUn9CKesWMvtVIb9/builds/IuFiEXxcA7CNjLsO6/openapi.json
