# Target Scraper - Cheapest In-Store Price & Stock Near You (`scrapebench/target-product-price-store-stock-scraper`) Actor

Find the Target store near you that has an item in stock at the lowest price: units, aisle and price at every store near a ZIP code, cheapest in-stock store first. One row per product per store, $0.8 per 1,000 rows.

- **URL**: https://apify.com/scrapebench/target-product-price-store-stock-scraper.md
- **Developed by:** [ScrapeBench](https://apify.com/scrapebench) (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.0008 / product (per store)

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/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 - Cheapest In-Store Price & Stock Near You

### Pain points

- Target shows stock and price for one store at a time: to find the cheapest store near you that has an item, you change your store and reopen the page, again and again.
- Target prices many items by store. On 2026-11-27 Cinnamon Toast Crunch (family size, TCIN 81875472) was $5.29 at Farmington Hills, Michigan, $5.69 in Redwood City, California and $5.99 in Chelsea, New York; a Good & Gather half gallon of milk was $1.89 and $2.99.
- On 2026-11-27 a Greenworks 24V drill kit (TCIN 94408487) had 5 units at Farmington Hills, Michigan (aisle K16), 1 at Southland (aisle C27) and none at Dearborn, 0.9 miles from ZIP 48126. Nothing on the product page says so.
- Most Target tools return the online store's answer (store 3991) or one default store, so the price and stock you read are not for the store you will visit.

### What we solve

- Answers 'which Target store near ZIP Y has item X in stock at the lowest price': give an item and a ZIP code, turn on Compare prices, and row 1 is that store with its price, units and aisle; the other rows are the runner-up list.
- Takes a TCIN, a UPC, a DPCI (the number on the shelf tag), a product link, search words or a category link, and returns one flat row per product per store: units available, Target's own status word, aisle, price, regular price, sale or clearance label, promotions and pickup, same-day and ship-to-home availability.
- Gives each row the price at its own store (price_scope STORE when Target set it for that store, NETWORK for the online price) and never copies one store's price onto another.
- Splits a variation parent (sizes, colours, flavours) into its variations: one row per variation per store, each with its own TCIN, DPCI, UPC, price and stock.
- Searches Target at a store, cheapest first if you ask, with that store's units, aisle and price on each product, and flags third-party (marketplace) items.
- Checks that every answer is for the store you asked for. An answer for another store is asked again once; if it is still wrong it is dropped into a free notice, never delivered or charged.
- Says so, free, when nothing matches: an unknown item, no store near the ZIP, or 'checked 5 stores near 48126, none have it'.
- Optional product details (specification list, description, highlights, images, weight, dimensions, videos, once per product) and customer reviews, newest first.

### Summary

Target answers stock, aisle and price per store, and its site shows one store at a time. This actor finds the cheapest Target store near you that has an item in stock: give an item (TCIN, UPC, DPCI or link) and a ZIP code, turn on Compare prices, and the first row is the in-stock store with the lowest price, with its units, aisle, distance and address; the next rows are the runners-up. Without Compare prices a ZIP code and an item is one call for up to 20 stores, in stock first and then nearest, with the price of the nearest store. Every row is one product at one store: units available (Target's available-to-promise count, not a shelf count), Target's availability status, aisle, the price at that store, the regular price and whether it is a regular, sale or clearance price, promotions, store pickup, same-day delivery and ship-to-home availability, and the store's name, address and distance. Variation parents become one row per variation. Search words, category links, TCINs, UPCs, DPCIs and product links all work, a search can be sorted cheapest first, and product details and reviews are options. Every row is checked against the store you asked for. With no store and no ZIP the run uses store 1375 (Minneapolis Nicollet Mall) and says so on every row.

### Who it's for

- Shoppers and shopping or assistant agents asking which nearby store has an item cheapest today
- Resellers and deal hunters watching sale and clearance prices by store
- Brand and field teams checking on-shelf availability of a SKU list across stores
- Retail analysts comparing range and stock between stores
- Developers and AI agents that need Target store stock as clean JSON

### How to use

Set the input, run the actor, and collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API). Example input:

```json
{
  "itemIds": [
    "81875472"
  ],
  "zipCodes": [
    "48126"
  ],
  "nearbyStores": 10,
  "comparePrices": true,
  "inStoreOnly": true
}
```

See **Inputs** below for every available field.

### What you get

One row per record:

| Field | Description |
|---|---|
| `item_id, item_number, parent_tcin, brand, title, product_url, category_path` | The TCIN, the DPCI (shelf-tag number), the variation parent's TCIN when the item is one size or flavour of it, brand, product name, link and category path |
| `price, was_price, savings_amount, savings_percent, price_type, price_scope` | Current price AT THIS STORE, regular price and saving when on sale, how Target labels it (reg, sale, clearance), and whether it is a store price (STORE) or the online price (NETWORK) |
| `store_number, store_name, store_address, store_city, store_state, store_zip, store_distance_miles` | The store the row is for (always the store you asked for) and its distance from your ZIP code |
| `on_hand_at_store, stock_status, in_stock` | Units available at the store (Target's available-to-promise count, not a shelf count), Target's own status word, and in_stock = units above 0 |
| `aisle` | Block and aisle in the store, e.g. K16, for stores that have units |
| `pickup_available, delivery_available, parcel_available, network_available` | Store pickup, same-day delivery and ship-to-home availability, and units Target can ship from its online stock |
| `upc, rating, review_count` | UPC barcode on item ID rows, star rating and number of ratings |
| `is_marketplace` | True for an item a third-party seller sells through Target, False for Target's own |
| `specs, description, bullets, images, weight_lbs, dimensions_in` | Product details option: specifications, description, highlights, image links, package weight and dimensions |
| `extras` | Pickup date, curbside, ship-to-store and same-day status words, promotions (and circle_offer for a Target Circle offer), purchase limit, department, videos |
| `review rows` | Customer reviews option: review_id, rating, title, text, author, submitted_at, verified_purchaser, helpful_votes, responses |

Sample:

```json
{
  "record_type": "product",
  "retailer": "Target",
  "item_id": "81875472",
  "item_number": "231-00-0980",
  "brand": "General Mills",
  "title": "General Mills Size Cinnamon Toast Crunch Cereal",
  "product_url": "https://www.target.com/p/-/A-81875472",
  "price": 5.29,
  "price_type": "reg",
  "price_scope": "STORE",
  "store_number": "611",
  "store_name": "Farmington Hills",
  "store_state": "Michigan",
  "store_distance_miles": 11.93,
  "on_hand_at_store": 10,
  "stock_status": "IN_STOCK",
  "aisle": "K16",
  "pickup_available": true,
  "in_stock": true,
  "parent_tcin": "89089937",
  "is_marketplace": false
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `itemIds` | no | array | `["81875472"]` | Target items to check, one per line: a TCIN (8 digits, e.g. 81875472, the number after A- in a product link), a UPC barcode (12 or 13 digits) or a DPCI (e.g. 231-00-0980, the number printed on the shelf tag). Each is checked at every store and ZIP code below. An item with sizes or flavours becomes one row per variation. CHEAPEST STORE NEAR ME: one item here, your ZIP code, Stores per ZIP code 10 to 20, Compare prices on and Only stores that have it on: row 1 of the result is the answer. |
| `queries` | no | array | `[]` | Words to search Target for, one per line (cordless drill, paper towels). Each returns up to Maximum results products per store, with that store's units, aisle and price. |
| `query` | no | string | — | One search, for saved tasks and API calls that send a single value. Use Search words above for several. |
| `startUrls` | no | array | `[]` | Product links (https://www.target.com/p/.../A-94408487), category links (https://www.target.com/c/.../N-5xtbp) and/or search links (https://www.target.com/s?searchTerm=drill), one per line. A product returns one row per store; a category or search returns up to Maximum results products per store. |
| `zipCodes` | no | array | `["48126"]` | US ZIP codes, one per line. For each ZIP the run checks the nearest stores (as many as Stores per ZIP says) and returns one row per product per store, in stock first, then nearest. |
| `nearbyStores` | no | integer | `5` | How many of the nearest Target stores to check for each ZIP code, 1 to 20. For the cheapest store near you, use 10 to 20 together with Compare prices. |
| `stores` | no | array | `[]` | Target store numbers, one per line (611 is Farmington Hills, Michigan). Every item, search and category runs at each store: one row per product per store. With no store numbers and no ZIP codes the run uses store 1375 (Minneapolis Nicollet Mall) and says so on every row. |
| `store` | no | string | — | One store number, for saved tasks and API calls that send a single value. Use Store numbers above for several. |
| `inStoreOnly` | no | boolean | `false` | Return only the product-store pairs where Target shows units available at the store. For the cheapest store near you that HAS the item, turn this on together with Compare prices. When no store has the item, a free notice says how many stores were checked. |
| `comparePrices` | no | boolean | `false` | Get the price Target sets at EVERY store of a ZIP-code sweep (many grocery and household items cost different amounts by store). The stores then come back in stock first, then lowest price, then nearest, so row 1 is the cheapest store near you that has the item. Charged as Store price per product per store, on top of the product row; nothing extra when Target's price is the same online price everywhere. Off: the price is given for the nearest store only, never copied to the others. |
| `sortBy` | no | string | `"relevance"` | Order of search words and search links. Lowest price first lists the cheapest matches at each store first (cheapest air fryer near me: Search words 'air fryer', a ZIP code, Stores per ZIP code 5, Lowest price first). Item IDs are not affected. |
| `includeDetails` | no | boolean | `false` | Also return the full specification list, description, highlights, all images, weight, dimensions and videos (the UPC is always on item ID rows). Charged once per product (not per store) as Product details. |
| `includeReviews` | no | boolean | `false` | Also return each product's customer reviews, newest first (rating, title, text, author, date, verified purchaser, helpful votes, replies). One row per review, charged as Review. Reviews are per product, not per store. |
| `maxReviews` | no | integer | `20` | Newest reviews to return for each product when Customer reviews is on. |
| `maxResults` | no | integer | `20` | Cap for EACH search or category at EACH store. Item IDs and product links are not capped. |
| `proxyConfiguration` | no | object | `{"useApifyProxy": true}` | Leave as set: with Apify Proxy on and no group picked, the run uses the connection Target answers. Picking a group yourself overrides that. |

### Pricing (Pay Per Event)

A fixed **$0.001 per run**, charged even when the run returns no rows, plus a charge per row (`product`, *$0.0008/row*). Example: **1000 products** ≈ **$0.801** including the run fee.

$0.001 per run to start, then $0.0008 per product per store. Compare prices adds $0.001 per product per store of a ZIP-code sweep. Product details add $0.001 once per product; customer reviews are $0.0003 each ($0.30 per 1,000). Examples: one item at the 5 nearest stores = $0.005; one item at the 20 nearest stores = $0.017; cheapest store among the 10 nearest, with Compare prices = $0.019; 50 SKUs at 10 stores = $0.401. Notices are never charged.

### Use cases

- Cheapest store near me: one item, a ZIP code, Compare prices on; row 1 is the in-stock store with the lowest price.
- Cheapest air fryer (or any search) at the stores near me, sorted lowest price first.
- In-stock check before a trip: units available and aisle at the nearest stores to a ZIP code.
- A SKU or UPC list across a store list in one run, one row per SKU per store.
- Sale and clearance tracking by store on a schedule: price, regular price, price type and promotions.
- A scheduled stock and price feed into a sheet, n8n or Make.

### Why this actor

- Row 1 is the answer: with Compare prices the stores come back in stock first, then lowest price, then nearest.
- The price on every row is the price at that store, never another store's, and price_scope says which kind it is.
- The store is checked on every row, and an answer for the wrong store is never delivered (never the online store 3991).
- A one-field call works: give an item ID and a ZIP code, nothing else is needed.
- Simple prices: $0.001 per run, $0.0008 per product per store, $0.001 extra per store price with Compare prices, product details $0.001 once per product, reviews $0.0003 each.

### Limitations & updates

Target's public product, price and stock data only: no member (signed-in) prices or cart totals; Target Circle offers appear as promotions when Target lists them. The unit count is Target's available-to-promise number for the store, not a shelf count, the aisle is given only for stores that have units, and Target reports no units for perishables such as milk. Target sets many grocery prices by store; the price on a row is the price at that row's store. Target limits how fast one connection can ask, so a run's speed is about one store lookup per second; a free notice names anything it could not check. Prices and stock are as Target shows them at the time of the run.

### FAQ

**How do I find the cheapest Target store near me that has an item?**

Give the item (TCIN, UPC, DPCI or product link), your ZIP code and Stores per ZIP code (up to 20), and turn on Compare prices and Only stores that have it. The first row is the store that has it in stock at the lowest price, with units, aisle, distance and address; the other rows are the runners-up. Perishables such as milk show no units at any store in Target's data, so use shelf-stable items.

**What does 'units available' mean?**

on_hand_at_store is Target's available-to-promise count for the store: the units Target will sell for pickup or in-store there. It is not a count of items on the shelf. On 2026-11-27 the Greenworks drill kit showed 5 at Farmington Hills (aisle K16), 1 at Southland (aisle C27) and 0 at Dearborn.

**How do I find which stores near me have an item?**

Give the item, your ZIP code and how many stores to check (Stores per ZIP code, up to 20). You get one row per store, in stock first and then nearest, with the distance in miles, units and aisle.

**Is the price the same at every store?**

Not always. Target sets the price by store for many items, groceries above all (the same cereal was $5.29, $5.69 and $5.99 in three states on 2026-11-27), and gives hardware and electronics one price. Every row's price is the price at that row's store (price_scope STORE) or Target's online price (NETWORK). A ZIP-code sweep without Compare prices carries the price of the nearest store only, because one store's price is never copied onto another; turn on Compare prices to get every store's own price.

**What happens with items that come in sizes or colours?**

A variation parent (an item with sizes, colours or flavours) has no UPC or stock of its own, so it is split into its variations: one row per variation per store, each with its own TCIN, DPCI, UPC, price and stock, and the parent's TCIN in parent_tcin. Asking for one variation's TCIN returns just that one.

**Which store is used when I give none?**

Store 1375 (Minneapolis Nicollet Mall), a real store, named on every row. Store 3991, which some tools return, is Target's online store and is never used. Give your store numbers or ZIP codes for your area.

**What is the aisle?**

The block and aisle Target shows for the item at that store, for example K16. It is given for stores that have units available; a store with none returns it empty.

**What is charged and what is free?**

Each run is $0.001 to start (also when it finds nothing). Each product row is $0.0008: one product at one store. With Compare prices on, each product per store of a ZIP-code sweep that got its own price adds $0.001. Product details are $0.001 once per product, however many stores. Each customer review row is $0.0003. Notices (an unknown item, no store near a ZIP, nothing in stock, a store that answered for the wrong store, a list cut short, an input that could not be used) are free, and a run with no usable input is not charged at all.

### Guides & use cases

Written up on **[scrapebench.dev](https://scrapebench.dev)** — the bench that runs and verifies this actor against the live source every night:

- **How-to:** [How to run Target Scraper - Cheapest In-Store Price & Stock Near You](https://scrapebench.dev/guides/how-to-target-product-price-store-stock-scraper/)
- **Use case:** [Find the cheapest Target store near you for an item](https://scrapebench.dev/use-cases/find-cheapest-target-store-near-me/)

More actors, coverage and nightly verification results: **[scrapebench.dev](https://scrapebench.dev)**

### Works with AI assistants (MCP)

Callable as an MCP tool, so Claude, Cursor, VS Code Copilot and other MCP clients can run it directly. Grab the config from the [MCP tab](https://apify.com/scrapebench/target-product-price-store-stock-scraper/api/mcp) on this page — Apify hosts the server and keeps that snippet current, and OAuth signs you in on first connect, so no API token goes in your config file.

Then just ask:

> "Which Target store near ZIP 48126 has Cinnamon Toast Crunch family size cereal (TCIN 81875472) in stock at the lowest price? Check the 10 nearest stores and tell me the store, price, units and aisle."

Run as {"itemIds":\["81875472"],"zipCodes":\["48126"],"nearbyStores":10,"comparePrices":true,"inStoreOnly":true}. Row 1 is the answer. Runs started this way bill exactly like any other run.

### Data & lawful use

This actor collects publicly available information that Target Corporation (Minneapolis, Minnesota) publishes for public
lookup — licence records, business listings and the contact details professionals list there.
Some of it identifies individuals (sole proprietors, licence holders, agents), so treat any
names, phone numbers and emails in your results as personal data.

When you run this actor, you decide what is collected and what it is used for, so you are the
controller of that data and we act only as your processor (Apify Standard Actor Contract).
You need a lawful basis for your use, must honour opt-out and deletion requests, and must
follow the marketing rules that apply to you (CAN-SPAM, TCPA, GDPR, CCPA and similar).
Don't use the output for unsolicited bulk messaging, for screening covered by the FCRA, or
for anything the source's own terms forbid.

Your results are stored in your own Apify account. We don't keep a copy of your results and
don't sell or share them.

### Disclaimer

This is an independent tool. It is not affiliated with, endorsed by or sponsored by
Target Corporation (Minneapolis, Minnesota). Names and marks are used only to describe the data source. Records are
provided as published by the source and may be out of date or incomplete. For anything
consequential (hiring, a permit, a legal decision), confirm the record with the issuing
agency. You are responsible for making sure your use complies with applicable law and the
source's terms.

### Need help?

Open an issue on this actor's **Issues** tab and we'll respond there. Bug reports, missing
fields and feature requests are all welcome. Guides and examples: [scrapebench.dev](https://scrapebench.dev).

If you are a person named in this data and want your record removed from our copy, email
apify-help@scrapebench.dev; the source agency remains the official record.

Your run may be used to improve our services. If something looks off, or you want this actor to fit your use better, please share your run data with us: [Apify Console → Settings → Security → Share run data with developers](https://console.apify.com/settings/security). It lets us see exactly what went wrong and keep improving the actor.

If this actor saved you time, a short review on its Store page helps other buyers find it.

# Actor input Schema

## `itemIds` (type: `array`):

Target items to check, one per line: a TCIN (8 digits, e.g. 81875472, the number after A- in a product link), a UPC barcode (12 or 13 digits) or a DPCI (e.g. 231-00-0980, the number printed on the shelf tag). Each is checked at every store and ZIP code below. An item with sizes or flavours becomes one row per variation. CHEAPEST STORE NEAR ME: one item here, your ZIP code, Stores per ZIP code 10 to 20, Compare prices on and Only stores that have it on: row 1 of the result is the answer.

## `queries` (type: `array`):

Words to search Target for, one per line (cordless drill, paper towels). Each returns up to Maximum results products per store, with that store's units, aisle and price.

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

One search, for saved tasks and API calls that send a single value. Use Search words above for several.

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

Product links (https://www.target.com/p/.../A-94408487), category links (https://www.target.com/c/.../N-5xtbp) and/or search links (https://www.target.com/s?searchTerm=drill), one per line. A product returns one row per store; a category or search returns up to Maximum results products per store.

## `zipCodes` (type: `array`):

US ZIP codes, one per line. For each ZIP the run checks the nearest stores (as many as Stores per ZIP says) and returns one row per product per store, in stock first, then nearest.

## `nearbyStores` (type: `integer`):

How many of the nearest Target stores to check for each ZIP code, 1 to 20. For the cheapest store near you, use 10 to 20 together with Compare prices.

## `stores` (type: `array`):

Target store numbers, one per line (611 is Farmington Hills, Michigan). Every item, search and category runs at each store: one row per product per store. With no store numbers and no ZIP codes the run uses store 1375 (Minneapolis Nicollet Mall) and says so on every row.

## `store` (type: `string`):

One store number, for saved tasks and API calls that send a single value. Use Store numbers above for several.

## `inStoreOnly` (type: `boolean`):

Return only the product-store pairs where Target shows units available at the store. For the cheapest store near you that HAS the item, turn this on together with Compare prices. When no store has the item, a free notice says how many stores were checked.

## `comparePrices` (type: `boolean`):

Get the price Target sets at EVERY store of a ZIP-code sweep (many grocery and household items cost different amounts by store). The stores then come back in stock first, then lowest price, then nearest, so row 1 is the cheapest store near you that has the item. Charged as Store price per product per store, on top of the product row; nothing extra when Target's price is the same online price everywhere. Off: the price is given for the nearest store only, never copied to the others.

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

Order of search words and search links. Lowest price first lists the cheapest matches at each store first (cheapest air fryer near me: Search words 'air fryer', a ZIP code, Stores per ZIP code 5, Lowest price first). Item IDs are not affected.

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

Also return the full specification list, description, highlights, all images, weight, dimensions and videos (the UPC is always on item ID rows). Charged once per product (not per store) as Product details.

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

Also return each product's customer reviews, newest first (rating, title, text, author, date, verified purchaser, helpful votes, replies). One row per review, charged as Review. Reviews are per product, not per store.

## `maxReviews` (type: `integer`):

Newest reviews to return for each product when Customer reviews is on.

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

Cap for EACH search or category at EACH store. Item IDs and product links are not capped.

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

Leave as set: with Apify Proxy on and no group picked, the run uses the connection Target answers. Picking a group yourself overrides that.

## Actor input object example

```json
{
  "itemIds": [
    "81875472"
  ],
  "queries": [],
  "startUrls": [],
  "zipCodes": [
    "48126"
  ],
  "nearbyStores": 5,
  "stores": [],
  "inStoreOnly": false,
  "comparePrices": false,
  "sortBy": "relevance",
  "includeDetails": false,
  "includeReviews": false,
  "maxReviews": 20,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

Products with units, aisle and price at each store from your run.

# 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 = {
    "itemIds": [
        "81875472"
    ],
    "zipCodes": [
        "48126"
    ],
    "nearbyStores": 5,
    "maxResults": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapebench/target-product-price-store-stock-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 = {
    "itemIds": ["81875472"],
    "zipCodes": ["48126"],
    "nearbyStores": 5,
    "maxResults": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapebench/target-product-price-store-stock-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 '{
  "itemIds": [
    "81875472"
  ],
  "zipCodes": [
    "48126"
  ],
  "nearbyStores": 5,
  "maxResults": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call scrapebench/target-product-price-store-stock-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapebench/target-product-price-store-stock-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/4PIJah7SEY40hVnhS/builds/y4uMCS49izwr5RIlX/openapi.json
