# Target Scraper: Prices, UPC, Variants, Store Stock & Reviews (`memo23/target-scraper`) Actor

Scrape Target.com products by keyword, category, brand, link, TCIN or UPC: price, regular and sale price, deals, rating, UPC and DPCI, every colour and size with its own price and stock, units on hand and aisle at your store, stock at nearby stores, and customer reviews.

- **URL**: https://apify.com/memo23/target-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (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 $0.80 / 1,000 products

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: Prices, UPC, Variants, Store Stock & Reviews

<p align="center"><img src="https://api.apify.com/v2/key-value-stores/of9ggBtTaRkZU3wkb/records/logo" alt="Target Scraper" width="140"></p>

**Get Target.com products with the numbers retail teams actually work with: current and regular price, sale and clearance type, UPC barcode, every colour and size with its own price, barcode and stock, the quantity on hand and aisle at your store, and stock at each Target near a ZIP code.** Search by keyword, paste category, brand or product links, or look products up by TCIN, UPC or DPCI. Customer reviews come as their own rows when you want them.

One clean row per product, ready for price monitoring, stock checks, catalog matching and review analysis.

### Why Use This Scraper?

- **Barcodes for matching**: the UPC of every product and of every colour and size, plus Target's DPCI store code, so rows join your catalog or another retailer's feed.
- **The full variant matrix**: each colour and size with its own price, regular price, UPC, shipping and pickup availability, package size and purchase limit.
- **Store-level stock**: give a ZIP code and every row shows your store's pickup status, units on hand and aisle; turn on nearby stock to see the quantity at each Target around you.
- **Deals in the row**: sale or clearance type, regular price, discount %, savings in dollars, and the promotion text (buy one get one, 2 for $9, Circle offers) Target attaches.
- **Filters Target itself applies**: sort order, price range, deals only (sale, clearance, Weekly Ad, BOGO and more) and available-at-your-store.
- **Barcode lookup**: paste a UPC or DPCI from a shelf tag and get the product with its full page.
- **Reviews with substance**: star rating, sub-ratings (quality, value, ease of use and others), verified purchase, helpful votes, photos and the brand's reply, filtered by stars and sorted your way.

### Overview

This actor reads target.com, the US retailer's online store. It suits price-intelligence teams, brands watching their own listings at Target, resellers checking clearance and local stock, catalog and data teams that need UPCs, and anyone researching what shoppers say about a product.

The dataset holds two kinds of rows, told apart by `recordType`:

- `product`: one per product (or one per colour/size, when Target lists them separately in search results). Price, deal, rating, availability and identifiers are always there; the full product page, store stock and your-store fields are added when you ask for them.
- `review`: one per customer review, linked to its product by `tcin`.

All prices are in US dollars.

### Supported Inputs

| What you give | What you get |
|---|---|
| A search term, e.g. `coffee maker` or `lego star wars` | Target's search results in Target's order, up to about 1,200 products per search |
| A search link, e.g. `https://www.target.com/s?searchTerm=air+fryer&sortBy=PriceLow` | The same search, with its sort and filters kept |
| A category link, e.g. `https://www.target.com/c/single-serve-brewers-coffee-espresso-makers-kitchen-appliances-dining/-/N-fh3tj` | Every product in that category |
| A brand link, e.g. `https://www.target.com/b/keurig/-/N-5uvm4` | Every product of that brand |
| A product link, e.g. `https://www.target.com/p/-/A-90116759` | That product with its full page and every variant |
| A TCIN (Target item number), e.g. `91466170` | That product with its full page |
| A UPC barcode, e.g. `611247401545` | The product carrying that barcode, with its full page |
| A DPCI store code, e.g. `072-08-0313` | The product with that shelf code, with its full page |

#### Copy-pasteable start links

```json
{
  "startUrls": [
    "https://www.target.com/s?searchTerm=air+fryer",
    "https://www.target.com/b/keurig/-/N-5uvm4",
    "https://www.target.com/p/-/A-90116759"
  ]
}
```

#### Not supported

- Anything behind a Target login: your orders, Target Circle account offers, registry and list pages.
- Target's other sites and apps (Shipt, Target Business, Target Australia).
- Product questions and answers (the row carries `questionCount` only).
- Price history: each run reads today's price. Schedule the actor to build your own history.

### Use Cases

| Who | What they do with it |
|---|---|
| Brands and manufacturers | Watch their own listings at Target: price, sale periods, ratings, stock by store |
| Price-intelligence teams | Feed Target prices and deal types into comparisons, matched by UPC |
| Resellers and deal hunters | Find clearance and sale items with units on hand at nearby stores |
| Retail analysts | Size a category: price bands, top brands, ratings, share on sale |
| Catalog and data teams | Pull UPCs, DPCIs, package sizes and variant matrices for product data |
| Product and CX teams | Read reviews and sub-ratings to find what buyers like and complain about |

### How It Works

![How the Target Scraper works](https://api.apify.com/v2/key-value-stores/of9ggBtTaRkZU3wkb/records/how-it-works)

1. **You choose what to read**: search terms, Target links, item numbers or barcodes, with sort, price and deal filters.
2. **The actor reads Target's results** in Target's own order, 24 products a page, and adds online availability to every row.
3. **With a ZIP code** it finds your nearest Target and adds your store's pickup status, units on hand and aisle, plus stock at the stores around you when asked.
4. **It opens product pages when you ask**, adding the UPC, every colour and size, specifications and the rating breakdown, and reads reviews 50 at a time.
5. **You get clean rows** in the dataset, ready to export as JSON, CSV or Excel.

### Input Configuration

#### Input fields

| Field | Type | Default | What it does |
|---|---|---|---|
| `searchTerms` | list of text | | Words to search target.com for, one search each. A target.com link typed here works too. |
| `startUrls` | list of links | | Any target.com search, category, brand or product link. |
| `productIds` | list of text | | TCINs, UPC barcodes or DPCI codes; each returns one product with its full page. |
| `maxItemsPerInput` | number | `50` | Most products per search term or link (Target lets one search reach about 1,200). |
| `sortBy` | `relevance`, `bestselling`, `price_low`, `price_high`, `top_rated`, `newest` | `relevance` | Order of search and category results. |
| `minPrice` | number (USD) | | Only products at or above this price. |
| `maxPrice` | number (USD) | | Only products at or below this price. |
| `deals` | `none`, `all_deals`, `sale`, `clearance`, `weekly_ad`, `bogo`, `new_lower_price`, `circle_offers` | `none` | Only products in one of Target's deal groups. |
| `includeSponsored` | true / false | `false` | Keep the paid placements in search results, marked `sponsored: true`. |
| `zipCode` | text | | A US ZIP code; the nearest Target becomes your store. |
| `storeAvailability` | `any`, `pickup`, `in_store`, `same_day`, `get_it_today` | `any` | Only products offered this way at your store (needs `zipCode`). |
| `includeStoreStock` | true / false | `false` | Quantity and pickup status at each store near your ZIP code (needs `zipCode`). |
| `storeRadiusMiles` | number | `25` | How far from the ZIP code to look for stores. |
| `maxStores` | number | `10` | Most stores listed per product, nearest first. |
| `includeDetails` | true / false | `false` | Open each product page: UPC, variants, description, specifications, package size, images, rating breakdown. |
| `includeReviews` | true / false | `false` | Add each product's reviews as separate rows. |
| `maxReviewsPerProduct` | number | `50` | Most reviews per product. |
| `reviewSort` | `most_recent`, `most_helpful`, `highest_rating`, `lowest_rating` | `most_recent` | Which reviews come first. |
| `reviewRating` | `any`, `1` to `5` | `any` | Only reviews with that many stars. |

#### Common scenarios

**Price and stock check at your store, cheapest first:**

```json
{
  "searchTerms": ["air fryer"],
  "sortBy": "price_low",
  "zipCode": "60614",
  "maxItemsPerInput": 100
}
```

**Clearance near you, with units at each nearby store:**

```json
{
  "searchTerms": ["toys"],
  "deals": "clearance",
  "zipCode": "10001",
  "includeStoreStock": true,
  "maxStores": 10
}
```

**Barcode lookup with full product data and the worst reviews:**

```json
{
  "productIds": ["611247401545", "072-08-0313"],
  "includeReviews": true,
  "reviewRating": "1",
  "maxReviewsPerProduct": 100
}
```

### Output Overview

Every `product` row starts with the identifiers (`tcin`, `parentTcin` for a colour or size of a larger product), then title and brand, then the price block: `price`, `regularPrice`, `priceType` (`sale`, `clearance` or `regular`), `onSale`, `discountPercent`, `saveAmount`. Rating, rating count, `badges` (Bestseller, Highly rated and others) and `promotions` follow, then online availability (`shippingStatus`, `deliveryDate`).

With a ZIP code the row adds your store: `storeName`, `storeQuantity`, `pickupStatus`, `inStoreStatus`, `aisle`. With `includeDetails` it adds the product page: `upc`, `description`, `highlights`, `specifications`, `variants`, `packageDimensions`, `images`, `ratingDistribution`, `secondaryRatings`. With `includeStoreStock` it adds `storeStock`, a list of nearby stores with their quantity.

A `review` row carries the review and a link back to its product.

### Output Samples

**A product row** (product link with a ZIP code, nearby stock on; long lists shortened):

```json
{
  "recordType": "product",
  "tcin": "90116759",
  "parentTcin": "91466170",
  "title": "Keurig K-Mini Go Single-Serve K-Cup Pod Coffee Maker Gray: Compact Electric Brewer, 12 oz Capacity, Uses K-Cups & Pods",
  "brand": "Keurig",
  "price": 49.99,
  "regularPrice": 88.99,
  "priceText": "$49.99",
  "priceType": "sale",
  "onSale": true,
  "discountPercent": 44,
  "saveAmount": 39,
  "currency": "USD",
  "rating": 3.98,
  "ratingCount": 2241,
  "reviewCount": 1080,
  "upc": "611247401545",
  "dpci": "072-08-1111",
  "itemType": "Coffee Makers",
  "category": "Single-Serve Brewers",
  "badges": ["Highly rated"],
  "shippingStatus": "IN_STOCK",
  "deliveryDate": "2026-11-25",
  "storeName": "Minneapolis Dinkytown",
  "storeQuantity": 6,
  "pickupStatus": "IN_STOCK",
  "inStoreStatus": "IN_STOCK",
  "aisle": "Aisle A29",
  "detailsIncluded": true,
  "highlights": ["FITS ANYWHERE: Less than 5 inches wide, perfect for small spaces"],
  "specifications": [{ "name": "Capacity (Volume)", "value": "42 fl oz (US)" }],
  "variationAxes": ["Color"],
  "variantCount": 5,
  "selectedOptions": { "Color": "Gray" },
  "variants": [
    {
      "tcin": "90116759",
      "options": { "Color": "Gray" },
      "price": 49.99,
      "regularPrice": 88.99,
      "upc": "611247401545",
      "dpci": "072-08-1111",
      "shippingAvailable": true,
      "storePickupAvailable": true,
      "soldOut": false,
      "purchaseLimit": 10
    }
  ],
  "packageDimensions": { "weight": 6, "weightUnit": "POUND", "height": 5.8, "width": 13.7, "depth": 14.6, "dimensionUnit": "INCH" },
  "ratingDistribution": { "1": 447, "2": 76, "3": 73, "4": 133, "5": 1512 },
  "secondaryRatings": [{ "name": "Ease of use", "value": 4.24 }, { "name": "Value", "value": 3.43 }],
  "recommendedPercent": 53,
  "storesWithStock": 2,
  "storeStock": [
    { "storeId": "3200", "storeName": "Minneapolis Dinkytown", "city": "Minneapolis", "distanceMiles": 0.07, "quantity": 6, "pickupStatus": "IN_STOCK", "inStoreStatus": "IN_STOCK" }
  ],
  "url": "https://www.target.com/p/keurig-k-mini-go-single-serve-k-cup-pod-coffee-maker-gray/-/A-90116759",
  "image": "https://target.scene7.com/is/image/Target/GUEST_17b87f23-79f3-4bbb-b0a2-98d278f42e6b",
  "inputType": "product",
  "scrapedAt": "2026-11-24T07:54:11.835Z"
}
```

**A review row** (most helpful first; text shortened):

```json
{
  "recordType": "review",
  "tcin": "90116759",
  "reviewId": "53075c1c-172a-4a77-b3e0-972349b39d81",
  "rating": 4,
  "title": "Concerns",
  "text": "I dislike that the screws in the water reservoir are completely exposed…",
  "author": "glabal77",
  "submittedAt": "2024-11-08T21:54:28.000+00:00",
  "verifiedPurchase": false,
  "helpfulVotes": 26,
  "secondaryRatings": { "Design": 4, "Quality": 4, "Value": 4, "Ease of use": 5 },
  "photos": [],
  "brandResponder": "Keurig Care",
  "productUrl": "https://www.target.com/p/keurig-k-mini-go-single-serve-k-cup-pod-coffee-maker-gray/-/A-90116759"
}
```

### Key Output Fields

**Identifiers**

- `tcin`: Target's item number for this row; `parentTcin`: the product it is a colour or size of
- `upc`: barcode; `dpci`: Target's store code (department-class-item)

**Price and deals**

- `price`, `priceMax` (top of a range), `regularPrice`, `priceText`
- `priceType` (`sale`, `clearance`, `regular`), `onSale`, `discountPercent`, `saveAmount`
- `promotions`: offer text, kind (BOGO and others), whether it is a Circle offer, online or in store

**Ratings**

- `rating`, `ratingCount`, `reviewCount`, `ratingDistribution` (1-5), `secondaryRatings`, `recommendedPercent`, `questionCount`

**Availability**

- `shippingStatus`, `deliveryDate`, `soldOut`
- With a ZIP code: `storeName`, `storeQuantity`, `pickupStatus`, `pickupDate`, `inStoreStatus`, `sameDayDeliveryStatus`, `aisle`
- With nearby stock: `storeStock` (each store's quantity and status), `storesWithStock`

**Product page** (`includeDetails`, product links and barcodes)

- `description`, `highlights`, `specifications`, `images`, `videos`, `categoryPath`, `department`
- `variants`: every colour and size with options, price, UPC, DPCI, availability, package size, purchase limit
- `packageDimensions`, `returnPolicy`, `purchaseLimit`

**Reviews** (`recordType: review`)

- `rating`, `title`, `text`, `author`, `submittedAt`, `verifiedPurchase`, `recommended`, `helpfulVotes`, `secondaryRatings`, `photos`, `brandResponse`

### FAQ

**Which links work?**
Target search pages (`/s?searchTerm=…`), category pages (`/c/…/-/N-…`), brand pages (`/b/…/-/N-…`) and product pages (`/p/…/-/A-…`). Sort and filters in a search or category link are kept.

**Why do some rows have a `parentTcin`?**
Target sells many products in colours or sizes, each with its own item number. Search results often list one colour; that row has its own `tcin` and price and points to the whole product in `parentTcin`. Its `variants` list (with `includeDetails`) holds every colour and size.

**Why is `upc` empty on some rows?**
Search results do not carry barcodes. Turn on `includeDetails` (or give product links, item numbers or barcodes, which always read the product page). A row for a whole product with several colours has no single UPC; each entry in `variants` carries its own.

**How exact is the stock?**
`storeQuantity` and `storeStock[].quantity` are the units Target shows as available at that store at the time of the run. Shelf counts change through the day; schedule runs to follow them.

**Do I need a ZIP code?**
No. Without one, rows carry online availability. With one, they also carry your store's pickup status, units on hand and aisle, and you can filter by store availability and read stock at nearby stores.

**Why did a search return nothing when Target's site shows products?**
When Target cannot match a search term it shows unrelated best sellers instead. The actor recognizes that and returns nothing for that term, with a note in the run summary, rather than filling your dataset with unrelated items.

**Why do I get fewer products than the total Target shows?**
Target lets one search or category reach about 1,200 products. Split a bigger one with price ranges (`minPrice`, `maxPrice`) or filters. Duplicates across pages are delivered once.

**How are reviews of a product with colours and sizes handled?**
Target keeps one set of reviews for the whole product. It is read once per run, on the first colour or size that appears, and its rows carry that row's `tcin`.

**What does a run cost?**
The actor is paid per event: $0.002 per run start (per GB of memory, 512 MB by default), $0.0008 per product row, $0.0025 per product page read (product links, item numbers and barcodes always read it), $0.0005 per product's nearby-store stock, and $0.0002 per review row. 100 products from a search cost about $0.08; with product pages about $0.33. On the free Apify plan a run returns up to 20 rows from the first input.

**What happens under a spending limit?**
Each product is reserved in full (row, page and store stock when asked) before it is read, so the run stops after the last product it can pay for completely, then reads that product's reviews while the limit allows. If not even one product fits, the run says so in its status.

### Support

Found a bug or missing a field? Open an issue on the actor's [Issues tab](https://apify.com/memo23/target-scraper/issues) with your run link and input.

### Additional Services

Need a scheduled price or stock feed, a custom export, or Target data joined with another retailer by UPC? Ask on the Issues tab; tailored work is available.

### Explore More Scrapers

- [**Walmart Scraper**](https://apify.com/memo23/walmart-scraper): Walmart products, prices, sellers and reviews.
- [**Best Buy Scraper**](https://apify.com/memo23/bestbuy-scraper): Best Buy prices, stock and reviews.
- [**Costco Scraper**](https://apify.com/memo23/costco-scraper): Costco prices, savings and stock.
- [**Lowe's Product Scraper**](https://apify.com/memo23/lowes-scraper): Lowe's prices, store stock, specs and UPC.
- [**Home Depot Scraper**](https://apify.com/memo23/homedepot-scraper): Home Depot prices, store stock and specs.

### 🤖 For AI Agents & LLM Apps

Compact reference for agents calling this actor through the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/target-scraper`).

**Purpose:** Target.com (US) products by search term, category, brand, link, TCIN, UPC or DPCI, with price and deal data, online and store availability, optional product pages (UPC and every variant's price, barcode and stock), stock at nearby stores and customer reviews.

**Minimal input:**

```json
{ "searchTerms": ["coffee maker"], "maxItemsPerInput": 20 }
```

**Output:** rows with `recordType` product: tcin, parentTcin, title, brand, price, regularPrice, priceType, onSale, discountPercent, rating, ratingCount, dpci, badges, promotions, shippingStatus, url, image; with `zipCode`: storeName, storeQuantity, pickupStatus, inStoreStatus, aisle; with `includeDetails`: upc, description, specifications, variants \[{tcin, options, price, upc, shippingAvailable, storePickupAvailable}], packageDimensions, ratingDistribution; with `includeStoreStock`: storeStock \[{storeName, distanceMiles, quantity, pickupStatus}]. Rows with `recordType` review: tcin, rating, title, text, author, submittedAt, verifiedPurchase, helpfulVotes.

**Behaviors an agent should know:**

- Always set `maxItemsPerInput`; one search can return about 1,200 products and each option adds requests.
- `productIds` accepts TCINs, UPCs and DPCIs; each returns the full product page.
- `includeStoreStock`, `storeAvailability` and store fields need a US `zipCode`.
- A search term Target cannot match returns no rows (Target would show unrelated best sellers).
- Billing: $0.002 per run start (per GB of memory, 512 MB by default), `product` $0.0008 per product row, `product-details` $0.0025 per product page read (product links, ids and rows with `includeDetails`), `store-stock` $0.0005 per product's nearby-store stock, `review` $0.0002 per review row. Under a spending limit the run stops after the last product it can pay for in full.

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Target Corporation or any of its subsidiaries. Target, Target Circle and the Bullseye Design are trademarks of Target Brands, Inc.; all trademarks mentioned are the property of their respective owners.

The scraper reads only publicly available target.com data: no account pages, order history or content behind a Target login. Users are responsible for making sure their use complies with Target's Terms and Conditions, applicable data-protection law (GDPR, CCPA and others), and any contractual obligations of their own organization.

### SEO Keywords

target scraper, target.com scraper, scrape target, target API, target product scraper, Apify target, target price tracker, target stock checker, target store inventory, target clearance finder, target UPC lookup, TCIN lookup, DPCI lookup, target reviews scraper, target deals scraper, retail price monitoring, US ecommerce scraper, product barcode data, store level inventory data, price comparison data, retail analytics data, product variant data

# Actor input Schema

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

Words to search target.com for, one search each (for example coffee maker, lego star wars, nike running shoes). A target.com link typed here works too.

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

Any target.com link: a search page (its sort and filters are kept), a category page (target.com/c/...), a brand page (target.com/b/...) or a product page (target.com/p/...).

## `productIds` (type: `array`):

Target item numbers (TCIN, the number after A- in a product link, like 91466170), UPC barcodes (like 611247401545) or DPCI store label codes (like 072-08-0313). Each returns one product with its full page.

## `maxItemsPerInput` (type: `integer`):

The most products each search term or link returns. Target lets one search reach about 1,200 products; split a bigger one with price ranges or filters.

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

How Target orders search and category results.

## `minPrice` (type: `integer`):

Only products priced at or above this, in whole dollars.

## `maxPrice` (type: `integer`):

Only products priced at or below this, in whole dollars.

## `deals` (type: `string`):

Keep only products in one of Target's deal groups. A search where Target lists no such deals returns nothing and says so.

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

Keep the paid placements Target mixes into search results (marked sponsored: true). Off by default: they repeat products from the regular results.

## `zipCode` (type: `string`):

A US ZIP code. The nearest Target becomes your store: rows then show its pickup status, quantity on hand and aisle, and the options below can check stock at the stores around it.

## `storeAvailability` (type: `string`):

Keep only products Target offers this way at your store. Needs a ZIP code.

## `includeStoreStock` (type: `boolean`):

For each product, the stores near your ZIP code with the quantity each holds and its pickup and in-store status. One extra request per product. Needs a ZIP code.

## `storeRadiusMiles` (type: `integer`):

How far from your ZIP code to look for stores.

## `maxStores` (type: `integer`):

The most stores listed for each product, nearest first.

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

Add each product's page: UPC barcode, every colour and size with its own price, UPC and availability, description, highlights, specifications, package size and weight, all images, the 1-5 star breakdown and sub-ratings. One extra request per product. Product links and barcodes always come with their page.

## `includeReviews` (type: `boolean`):

Add each product's reviews as their own rows (recordType: review), 50 a request. Colours and sizes of one product share one set of reviews, which is read once.

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

The most reviews returned for each product.

## `reviewSort` (type: `string`):

Which reviews come first.

## `reviewRating` (type: `string`):

Keep only 1, 2, 3, 4 or 5 star reviews.

## Actor input object example

```json
{
  "searchTerms": [
    "coffee maker"
  ],
  "maxItemsPerInput": 50,
  "sortBy": "relevance",
  "deals": "none",
  "includeSponsored": false,
  "storeAvailability": "any",
  "includeStoreStock": false,
  "storeRadiusMiles": 25,
  "maxStores": 10,
  "includeDetails": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 50,
  "reviewSort": "most_recent",
  "reviewRating": "any"
}
```

# Actor output Schema

## `results` (type: `string`):

All rows in the default dataset.

## `summary` (type: `string`):

What each input delivered or could not read.

# 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"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/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"] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/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"
  ]
}' |
apify call memo23/target-scraper --silent --output-dataset

```

## MCP server setup

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