# Target Product Scraper · Prices & ratings · $1/1K (`mlg14/target-scraper`) Actor

Scrape Target search results and product pages for price monitoring, competitor research and ecommerce analytics: prices, sale status, ratings, images, product details. $1/1K products.

- **URL**: https://apify.com/mlg14/target-scraper.md
- **Developed by:** [MLG Data](https://apify.com/mlg14) (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

$1.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?

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

Scrape Target search results and direct product pages for current prices, regular prices, ratings, product images, and identifiers. Export Target product data to CSV, JSON, or Excel as a practical Target API alternative for catalog analysis and recurring price checks.

Enter one or more keywords to collect product listings, or supply Target product URLs to collect deeper product information. A search result records the price shown in Target's public structured listing; a direct product URL can add availability, UPC, DPCI, images, a description, and feature bullets. Each dataset row includes the product identifier and extraction time so results from separate runs can be compared.

### What data can you extract from Target?

| Field | Description | Example |
| --- | --- | --- |
| `tcin` | Target product identifier reported by the listing. A listing variant may link to a parent product URL with a different ID. | `1011892690` |
| `title` | Product name. | `HP Essential 14\" HD Laptop...` |
| `price` | Current listed price as a number. | `289.99` |
| `priceString` | Display-ready price in US dollars. | `$289.99` |
| `regularPrice` | Strikethrough price when shown; otherwise the current price. | `483.32` |
| `onSale` | Whether `price` is below `regularPrice`. | `true` |
| `currency` | Currency supplied by the offer. | `USD` |
| `rating` | Average star rating, when present. | `3.4` |
| `reviewCount` | Total customer rating count. | `17` |
| `writtenReviewCount` | Count of written reviews on a direct product page, when available. | `1515` |
| `brand` | Product brand. | `Apple` |
| `category` | Category reported by the listing, when present. | `Laptop Computers` |
| `thumbnail` | Primary product image URL. | `https://target.scene7.com/is/image/Target/...` |
| `images` | Available product image URLs. Direct product pages can provide more than listings. | `[...]` |
| `url` | Link to the Target product page. | `https://www.target.com/p/.../A-85978615` |
| `isSponsored` | Sponsored status if structured data exposes it. Currently usually `null`. | `null` |
| `availability` | Availability from a direct product offer. | `InStock` |
| `storeId` | Store identifier reported by a direct product offer. | `3991` |
| `zipCode` | ZIP code if Target reports one in the offer. Currently usually `null`. | `null` |
| `upc` | Barcode from a direct product page. Leading zeros are preserved. | `0195949688522` |
| `dpci` | Target item code from a direct product page. | `057-10-6413` |
| `description` | Text description from a direct product page. | `AirPods 4 with Active Noise Cancellation...` |
| `bullets` | Public feature bullets from a direct product page. | `['REBUILT FOR COMFORT...']` |
| `searchQuery` | Keyword that produced a search row; `null` for a direct URL row. | `laptop` |
| `scrapedAt` | UTC time when the row was extracted. | `2026-09-26T20:04:07Z` |

Search listings and direct product pages expose different fields. A blank detail field in a search row is expected. Use `productUrls` when UPC, DPCI, longer descriptions, or extra images are important. If a URL describes a product family, the actor selects the exact identifier in the supplied URL from the page's variant data.

### How to scrape Target

1. Enter keywords in `searchQueries`. For a URL-only run, use an empty keyword list and fill `productUrls` with full Target product links.
2. Set `maxProductsPerSearch` and `maxSearchPages` for keyword runs. Each search page contains up to 24 product records, and some pages expose fewer.
3. Choose a supported sort order: relevance, ascending price, descending price, or bestselling. Leave relevance selected when you want the site's default order.
4. Run the actor. The Products dataset fills as each page is processed; duplicate identifiers are skipped across keywords, pages, and direct URLs.
5. Download the dataset as JSON, CSV, or Excel. Keep `tcin` and `scrapedAt` when comparing snapshots from recurring runs.

For a quick price survey, begin with one specific keyword and two pages. For a known product list, paste the product URLs and leave `searchQueries` empty. The total item limit gives you a hard ceiling on dataset rows across all input sources.

### Input

| Parameter | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQueries` | String list | Empty | Independent keyword searches. Use product terms, model names, or category phrases. |
| `productUrls` | String list | Empty | Full Target product URLs with an `A-` product identifier. |
| `maxProductsPerSearch` | Integer | `100` | Maximum records emitted for each keyword. |
| `maxSearchPages` | Integer | `5` | Maximum search pages fetched for each keyword; allowed range is 1–20. |
| `sort` | String | `relevance` | `relevance`, `price_low`, `price_high`, or `bestselling`. |
| `maxItems` | Integer | `0` | Overall row cap. Zero means no cap beyond the per-search and page limits. |
| `maxRequestRetries` | Integer | `3` | Maximum attempts for a failed page request. |
| `proxyConfiguration` | Object | Apify Proxy | Optional proxy override. The actor first tries datacenter traffic. |

Example input for a small catalog and one known item:

```json
{
  "searchQueries": ["laptop"],
  "productUrls": [
    "https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"
  ],
  "maxProductsPerSearch": 35,
  "maxSearchPages": 2,
  "sort": "relevance",
  "maxItems": 40
}
```

This input produced 36 distinct rows in a remote validation run: 35 from two search pages and one from the direct product URL. The exact results and prices can change as Target updates its catalog. An empty `searchQueries` array is valid when at least one `productUrls` entry is present. A run with neither input raises an error so it does not silently return an empty dataset.

### Output example

This search row came from a validated run. Detail-only fields are empty because this record came from a keyword result:

```json
{
  "tcin": "1011892690",
  "title": "HP Essential 14\" HD Laptop, Intel N150, 4GB RAM, 128GB eMMC, Windows 11 Home, 1-Year Microsoft 365 Included",
  "price": 289.99,
  "priceString": "$289.99",
  "regularPrice": 483.32,
  "onSale": true,
  "currency": "USD",
  "rating": 3.4,
  "reviewCount": 17,
  "writtenReviewCount": null,
  "brand": "HP Inc.",
  "category": "Laptop Computers",
  "thumbnail": "https://target.scene7.com/is/image/Target/GUEST_9fb5dca1-6f98-40e1-a863-2da7fe314c51",
  "images": ["https://target.scene7.com/is/image/Target/GUEST_9fb5dca1-6f98-40e1-a863-2da7fe314c51"],
  "url": "https://www.target.com/p/hp-essential-14-hd-laptop-intel-n150-4gb-ram-128gb-emmc-windows-11-home-1-year-microsoft-365-included/-/A-1013205909",
  "isSponsored": null,
  "availability": null,
  "storeId": null,
  "zipCode": null,
  "upc": null,
  "dpci": null,
  "description": null,
  "bullets": [],
  "searchQuery": "laptop",
  "scrapedAt": "2026-09-26T20:04:07Z"
}
```

A validated direct URL row for product `85978615` included a price of `129.99`, `InStock` availability, UPC `0195949688522`, DPCI `057-10-6413`, eight image URLs, a description, and nine feature bullets. Those fields come from the product page and should not be expected on every search listing. The actor returns flat records, which makes filtering by price, brand, query, or extraction date straightforward in a spreadsheet or downstream database.

### Use cases

- **Price tracking:** Schedule the same keywords each day, then compare rows by `tcin`. Track `price`, `regularPrice`, and `onSale` separately so a sale label is not confused with a price change.
- **Assortment research:** Collect two or more category phrases and compare brands, categories, rating counts, and listed prices. Deduplication prevents a product that appears in both queries from being counted twice.
- **Product catalog enrichment:** Start with known product URLs and collect UPC, DPCI, descriptive copy, feature bullets, and multiple images for internal catalog matching.
- **Offer checks:** Use direct URLs to inspect the public offer availability and store identifier displayed with a product. Store availability can differ from shipping availability, so review the returned value in context.
- **Sale analysis:** Filter `onSale: true` and calculate the difference between `regularPrice` and `price`. A strikethrough price reflects what the page showed at extraction time; it does not establish a product's historical price.
- **Quality screening:** Pair `rating` with `reviewCount` when narrowing a catalog. A high average based on a handful of ratings should be interpreted differently from one backed by thousands.

### How much does it cost to scrape Target?

The actor's current pay-per-event price is **$0.001 per result**, or **$1.00 per 1,000 dataset rows**. A result is charged when it is written to the dataset. Repeated listings skipped by deduplication do not create another result event. Search and direct URL rows have the same event price. Platform usage is included in the event price for this actor; the dataset row limit lets you control the maximum number of charged results in a run.

| Delivered rows | Event cost | Example |
| ---: | ---: | --- |
| 36 | $0.036 | Two search pages plus one direct product in the validated input. |
| 250 | $0.25 | Several focused category searches. |
| 1,000 | $1.00 | A larger recurring catalog snapshot. |

These examples count delivered rows. A broad query can have more available pages than the selected limits, and a narrow query can return fewer products. Direct product links that fail or duplicate an existing `tcin` do not add a dataset row. Check the run's dataset count for the actual number of emitted events.

### Tips for best results

Use product-specific keywords when you need consistent comparisons. Broad words such as “laptop” can surface mixed models, bundles, and related products, while a model number or brand plus category narrows the set. Keep the keyword list unchanged between scheduled runs if you plan to compare assortment changes. The `searchQuery` field tells you which term produced each record.

Allow enough pages to reach your desired item count. A search page can contain 23 rather than 24 structured products, so `maxProductsPerSearch: 40` usually needs at least two pages. The actor uses Target's public `Nao` paging parameter and stops when a page has no product data or repeats already seen identifiers. The `maxSearchPages` input also bounds requests even when the site advertises more results.

Use `sort: price_low` when the cheapest visible matches matter, and `price_high` for the opposite end. `bestselling` follows the site's public ranking. Sorting can change which products appear in the first few pages. A ranking is a snapshot, not a stable product identifier; use `tcin` for comparisons across time.

Add direct product URLs when the output needs catalog depth. Search results are optimized for discovery and pricing. The direct page adds identifiers and copy where public page data contains them. Direct URLs are processed first, so their richer row takes precedence if the same identifier appears in a later keyword result. Run detail-only URLs separately when you want every emitted row to have been checked against its product page.

### Limits

Only public Target US product information is collected. The site does not expose the same fields in every public search listing. Product pages can omit availability, barcodes, descriptions, or feature bullets for a specific item. Rating counts can update between visits. Some links point to a product family while the listing's `tcin` identifies a particular variant; retain both `tcin` and `url` if you need to join later snapshots accurately.

The direct JSON search endpoint rejected anonymous datacenter and residential requests during development. The actor uses the structured product data in Target's public crawler-rendered pages instead. That source showed up to 24 products per search page in validation, and a high offset returned no products. The input limits stop unnecessary paging. The standard page shell did not include search products, which is why ordinary page HTML alone is not used as the search source.

Store and ZIP localization are not configurable in this version. A direct product offer may report a store ID, while search rows often do not. Do not interpret a null `storeId` as a particular store, and do not assume that two runs came from the same local store context solely because their queries matched. Sponsored placement status is also not exposed consistently by this source, so `isSponsored` remains `null` rather than making an unsupported claim. Newest-first ordering is not offered because the tested site route returned no structured products for that sort value.

### Use with AI agents (MCP)

Add this actor to any MCP client (Claude, Cursor, VS Code, n8n and others) with one URL:

`https://mcp.apify.com?tools=mlg14/target-scraper`

The actor returns one dataset item per Target product (title, price, sale status, rating, images, identifiers). Keep `maxItems` small so the answer arrives in seconds and costs cents. Treat null fields as unavailable public data.

**Prompt 1:** "Get the 20 cheapest laptops on Target."

```json
{"searchQueries": ["laptop"], "sort": "price_low", "maxProductsPerSearch": 20, "maxSearchPages": 1}
```

**Prompt 2:** "Find best-selling air fryers on Target with prices and ratings."

```json
{"searchQueries": ["air fryer"], "sort": "bestselling", "maxProductsPerSearch": 30, "maxSearchPages": 2}
```

**Prompt 3:** "Get details for this Target product page."

```json
{"searchQueries": [], "productUrls": ["https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"]}
```

### FAQ

**Is it legal to collect this data?** The actor collects public product information without a login. Review the site's terms and applicable laws for your use. Avoid using output for personal-data collection or misuse; this dataset concerns products and offers.

**Do I need to configure a proxy?** No. The default configuration uses Apify Proxy. The shared fetch layer tries datacenter traffic first and can retry and escalate if a page blocks it. You can override the proxy input if your deployment has different access requirements.

**How fast is a run?** The validated 36-row run finished in about 15 seconds after its build. Duration depends on the number of queries, pages, URLs, retries, and site response time. A direct product URL needs an extra page request for deeper catalog fields.

**Can I schedule price monitoring?** Yes. Run the same input on a schedule and compare datasets by `tcin`. Include `scrapedAt` in your export so a current sale can be distinguished from an older snapshot. A changed product URL does not necessarily mean a new product if the identifier stays the same.

**Can I export to a spreadsheet?** Yes. The default dataset can be downloaded as CSV or Excel, or sent through an integration. Array fields such as `images` and `bullets` remain most convenient in JSON; spreadsheet exports may display them as serialized values.

**Why is a field empty?** Search listings expose a smaller set than product pages. Detail fields may require a direct URL, and even a direct page can omit a value. The actor leaves unsupported fields null instead of inventing a price, location, sponsorship label, or product identifier.

**Why did I get fewer products than the limit?** The limit is a ceiling, not a promise. A query may have fewer available items, a page may expose fewer than 24 structured records, duplicate identifiers are removed, or a later page may have no products. Raise `maxSearchPages` for a broad query before raising the per-search item limit alone.

### Integrations

Use the dataset with the Apify API, webhooks, scheduling, Google Sheets, Zapier, Make, or n8n. A daily schedule can create a fresh catalog snapshot; a webhook can start a comparison as soon as the run finishes. Keep the extraction timestamp and product identifier in any export so later comparisons remain traceable to a specific run.

### Support

Open an issue on the Issues tab; we reply within 24h and add fields on request.

# Actor input Schema

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

Keywords to search on Target.com, each paged separately. Example: \["laptop", "air fryer"]. Use for category or product discovery; leave empty for URL-only runs.

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

Direct Target product page URLs to extract, with identifiers, descriptions and feature bullets. Example: \["https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"]. Use to track specific products; leave empty for keyword runs.

## `maxProductsPerSearch` (type: `integer`):

Maximum products returned per keyword, e.g. 40. Products without public structured data are skipped. Use a small value for quick tests.

## `maxSearchPages` (type: `integer`):

Maximum search result pages per keyword, 24 products each. Example: 2. Use a higher value for deeper coverage of a keyword.

## `sort` (type: `string`):

Order of keyword search results. Allowed values: relevance, price_low, price_high, bestselling. Example: price_low. Use bestselling for popular products.

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

Hard cap across all keywords and URLs, e.g. 100. Set 0 for no additional cap (the per-keyword limit still applies).

## `maxRequestRetries` (type: `integer`):

Maximum attempts for each page request, including network failures and blocked responses, e.g. 3. Use a higher value on unstable connections.

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

Apify Proxy configuration. Datacenter traffic is tried first, with escalation when needed.

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "productUrls": [
    "https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"
  ],
  "maxProductsPerSearch": 40,
  "maxSearchPages": 2,
  "sort": "relevance",
  "maxItems": 0,
  "maxRequestRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `products` (type: `string`):

Scraped product records in the default dataset.

# 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": [
        "laptop"
    ],
    "productUrls": [
        "https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"
    ],
    "maxProductsPerSearch": 40,
    "maxSearchPages": 2,
    "sort": "relevance"
};

// Run the Actor and wait for it to finish
const run = await client.actor("mlg14/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": ["laptop"],
    "productUrls": ["https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"],
    "maxProductsPerSearch": 40,
    "maxSearchPages": 2,
    "sort": "relevance",
}

# Run the Actor and wait for it to finish
run = client.actor("mlg14/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": [
    "laptop"
  ],
  "productUrls": [
    "https://www.target.com/p/ap2022-true-wireless-bluetooth-headphones/-/A-85978615"
  ],
  "maxProductsPerSearch": 40,
  "maxSearchPages": 2,
  "sort": "relevance"
}' |
apify call mlg14/target-scraper --silent --output-dataset

```

## MCP server setup

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