# Store Prices & Stock by ZIP: Lowe's, Sephora, DICK'S, Michaels (`niches/store-prices-stock`) Actor

Product name, price, stock, brand, size, store, ZIP and link for Lowe's, Sephora, Ace Hardware, Michaels, DICK'S Sporting Goods, Tractor Supply, Staples and Five Below. Search chains in one call, with free comparisons and price tracking. Instacart prices may exceed in-store prices.

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

## Pricing

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

## Store prices and stock by ZIP: Lowe's, Sephora, Ace Hardware, Michaels, DICK'S, Tractor Supply, Staples and Five Below

Get **product names, prices and availability by ZIP code across eight retail chains** in one call: **Lowe's, Sephora, Ace Hardware, Michaels, DICK'S Sporting Goods, Tractor Supply, Staples and Five Below**. Send arrays of search terms, ZIP codes and chains, then read a consistent product schema, a free comparison for each search and free price-change fields.

**Prices are those shown by each chain's Instacart shop and may exceed in-store shelf prices.** They exclude taxes, delivery fees, tips, memberships and checkout discounts. Availability is the source's current signal, not a reservation or an independently checked shelf count.

**Tested in Apify's cloud:** the default paint search in Chicago ZIP 60601 returned **60 priced products and one free comparison in 23 seconds** (Lowe's, Ace Hardware and Michaels), costing **$0.09** in product events. An eight-chain run returned every chain with a shop at that ZIP.

**Compare search results with care.** A wall-paint quart, a small craft bottle and a multipack can all match paint. The minimum and median describe only the delivered search sample. Only equal checksum-valid UPC/GTIN values are treated as the same product across chains. No UPC values appeared in the default response.

**Ready-to-run input:**

```json
{
  "searches": [
    "paint"
  ],
  "zipCodes": [
    "60601"
  ],
  "chains": [
    "lowes",
    "ace-hardware",
    "michaels"
  ],
  "maxProductsPerChain": 20
}
```

### What you get

| Field | What it holds |
|---|---|
| Record type | `kind=product` is a paid product. `kind=comparison` is a free record per search. Filter by kind before importing into a product-only table. |
| Chain and store | `chainId`, `chain`, `source`, `storeId`, `zipCode`, `fulfillment`. The source retailer location ID identifies the shop; a physical address is not inferred from the ZIP. |
| Product | `productId`, `productName`, `brand`, `size`, `searchTerm`, `rank`, `image`, `productUrl`, `scrapedAt`, `resultId`. All product rows have the same 35 fields. |
| Prices | `price`, `regularPrice`, `onSale`, `currency`, `priceBasis`, `unitPrice`, `unit`. USD amounts are numeric. A reference price is null if none is published; a missing unit price is never estimated. |
| Stock and identity | `availability`, `inStock`, `upc`. Source omissions remain null. Product IDs are never used as UPCs. Stock labels do not promise physical quantities. |
| Free price tracking | `previousPrice`, `priceChange`, `priceChangePercent`, `priceStatus`, `firstSeenAt`, `priceDropped`, `priceRose`, `newProduct`. These fields remain present and null when tracking is off. |
| Free comparison | `productsCompared`, `byChain` (count, cheapest and median, with `byZip`), `cheapestProduct`, `upcMatches`, `partial`, `scope`, `comparisonNote`, `generatedAt`. Empty or failed chains remain visible. |

### What people use it for

- **Price monitoring:** schedule consistent product searches across the chains you sell through, then inspect drops, rises and products first seen in your history.
- **Retail analysis:** compare published price distributions by chain and ZIP while retaining product sizes, source prices and stock signals.
- **Shopping and inventory apps:** collect several chains in one call and display source, size and timestamp beside every price.
- **AI agents:** send arrays once, use one product schema, and read comparison coverage before answering a price question.

### How to use it

1. Enter search terms and five-digit US ZIP codes as arrays. Use a model, size or specific phrase to narrow results.
2. Choose the chains. The defaults compare paint at Lowe's, Ace Hardware and Michaels in ZIP 60601. Every selected search is sent to every selected chain at every ZIP.
3. Set maxProductsPerChain: a cap for each chain, search and ZIP, not the whole run. Some searches return fewer products than the cap.
4. Run the Actor and read the dataset. Product rows are charged; one comparison per search is free. SUMMARY describes coverage, failures, request counts and tracking.
5. Schedule the same inputs to compare against your previous completed price history. Use a trackingName for a separate list.

### Input

| Field | Example | Notes |
|---|---|---|
| searches | \["paint"] | Array of 1–20 search terms. Specific names and sizes make comparisons more useful. |
| zipCodes | \["60601"] | Array of 1–10 five-digit US ZIPs. Coverage is checked separately for every chain. |
| chains | \["lowes", "ace-hardware", "michaels"] | Array using lowes, sephora, ace-hardware, michaels, dicks-sporting-goods, tractor-supply, staples, five-below. |
| maxProductsPerChain | 20 | Integer 1–500, default 20, per search and ZIP for each chain. Source search responses may contain fewer items. |
| trackPrices | true | Compare with your last completed history, enabled by default. No extra charge. |
| trackingName | weekly-paint | Optional short history name. Run one job at a time per history. |

### Output

Each result is one row in the run's dataset (download it as JSON, CSV, Excel, XML or HTML, or read it through the API). An example row (values shortened):

```json
[
  {
    "kind": "product",
    "chainId": "lowes",
    "chain": "Lowe's",
    "source": "instacart",
    "storeId": "122843",
    "zipCode": "60601",
    "searchTerm": "paint",
    "rank": 1,
    "productId": "25284489",
    "productName": "Valspar Signature Satin Ultra White Tintable Latex Interior Paint + Primer (1-quart) | 007.0773961.005",
    "brand": "Valspar",
    "size": "qt",
    "price": 23.98,
    "regularPrice": null,
    "onSale": false,
    "currency": "USD",
    "priceBasis": "instacart",
    "unitPrice": null,
    "unit": null,
    "availability": null,
    "inStock": true,
    "upc": null,
    "image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_05da107d-499a-40f4-bbd3-baad9e5a91dd.jpg",
    "productUrl": "https://www.instacart.com/store/lowes-home-improvement/products/25284489-valspar-signature-satin-interior-paint-freshly-baked-3008-10a-1-qt",
    "fulfillment": "delivery",
    "scrapedAt": "2026-11-12T08:39:42Z",
    "previousPrice": null,
    "priceChange": null,
    "priceChangePercent": null,
    "priceStatus": "first-seen",
    "firstSeenAt": "2026-11-12T08:39:42Z",
    "priceDropped": false,
    "priceRose": false,
    "newProduct": true,
    "resultId": "b39e7b3e82d188bdd0e3e22500cf3ba4e0cef4e78e121afe8afabe2f83ad9164"
  },
  {
    "kind": "product",
    "chainId": "lowes",
    "chain": "Lowe's",
    "source": "instacart",
    "storeId": "122843",
    "zipCode": "60601",
    "searchTerm": "paint",
    "rank": 2,
    "productId": "26746248",
    "productName": "HGTV Home by Sherwin-Williams Base Tintable Paint sample base ( Half-pint )",
    "brand": "Hgtv Home By Sherwin-williams",
    "size": "1 each",
    "price": 7.98,
    "regularPrice": null,
    "onSale": false,
    "currency": "USD",
    "priceBasis": "instacart",
    "unitPrice": null,
    "unit": null,
    "availability": null,
    "inStock": true,
    "upc": null,
    "image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_88cfec28-5096-4029-b6a8-a8836fe9e696.png",
    "productUrl": "https://www.instacart.com/store/lowes-home-improvement/products/26746248-hgtv-home-by-sherwin-williams-interior-exterior-satin-sample-base-paint-each",
    "fulfillment": "delivery",
    "scrapedAt": "2026-11-12T08:39:42Z",
    "previousPrice": null,
    "priceChange": null,
    "priceChangePercent": null,
    "priceStatus": "first-seen",
    "firstSeenAt": "2026-11-12T08:39:42Z",
    "priceDropped": false,
    "priceRose": false,
    "newProduct": true,
    "resultId": "de0ec019e18cb7f3ed2d7599618a043e27510d5d142fe78e4bbdf402d3860014"
  },
  {
    "kind": "product",
    "chainId": "ace-hardware",
    "chain": "Ace Hardware",
    "source": "instacart",
    "storeId": "595073",
    "zipCode": "60601",
    "searchTerm": "paint",
    "rank": 1,
    "productId": "32953088",
    "productName": "Pain & Primer - Eggshell White",
    "brand": null,
    "size": "1 gal",
    "price": 59.99,
    "regularPrice": null,
    "onSale": false,
    "currency": "USD",
    "priceBasis": "instacart",
    "unitPrice": null,
    "unit": null,
    "availability": null,
    "inStock": true,
    "upc": null,
    "image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_a0578e3d-1d64-47a1-8ac2-1a714fdf7ee5.jpg",
    "productUrl": "https://www.instacart.com/store/ace-hardware/products/32953088-pain-primer-eggshell-white-1-gal",
    "fulfillment": "delivery",
    "scrapedAt": "2026-11-12T08:39:46Z",
    "previousPrice": null,
    "priceChange": null,
    "priceChangePercent": null,
    "priceStatus": "first-seen",
    "firstSeenAt": "2026-11-12T08:39:46Z",
    "priceDropped": false,
    "priceRose": false,
    "newProduct": true,
    "resultId": "9e49669441b7797fe1a8d4dcefdd0bc9daa78cfd51ae737a9fcfc949c25e1ec2"
  },
  {
    "kind": "product",
    "chainId": "michaels",
    "chain": "Michaels",
    "source": "instacart",
    "storeId": "55973",
    "zipCode": "60601",
    "searchTerm": "paint",
    "rank": 1,
    "productId": "24487359",
    "productName": "Craft Smart 16 Color Matte Acrylic Paint Value Pack",
    "brand": "Craft Smart",
    "size": "16 ct",
    "price": 9.49,
    "regularPrice": null,
    "onSale": false,
    "currency": "USD",
    "priceBasis": "instacart",
    "unitPrice": null,
    "unit": null,
    "availability": null,
    "inStock": true,
    "upc": null,
    "image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_c3bae90a-cbdd-4087-a1e2-4bdc546ddc39.jpg",
    "productUrl": "https://www.instacart.com/store/michaels/products/24487359-craft-smart-16-color-matte-acrylic-paint-value-pack-16-ct",
    "fulfillment": "delivery",
    "scrapedAt": "2026-11-12T08:39:51Z",
    "previousPrice": null,
    "priceChange": null,
    "priceChangePercent": null,
    "priceStatus": "first-seen",
    "firstSeenAt": "2026-11-12T08:39:51Z",
    "priceDropped": false,
    "priceRose": false,
    "newProduct": true,
    "resultId": "6189316b1225c49d3d1b8c21450092cabb6b265da7e1c51ebee39ed16c2409a3"
  },
  {
    "kind": "product",
    "chainId": "michaels",
    "chain": "Michaels",
    "source": "instacart",
    "storeId": "55973",
    "zipCode": "60601",
    "searchTerm": "paint",
    "rank": 2,
    "productId": "24411891",
    "productName": "Craft Smart Acrylic Paint Value Pack",
    "brand": "Craft Smart",
    "size": "1 each",
    "price": 7.99,
    "regularPrice": null,
    "onSale": false,
    "currency": "USD",
    "priceBasis": "instacart",
    "unitPrice": null,
    "unit": null,
    "availability": null,
    "inStock": true,
    "upc": null,
    "image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_c39b9238-0251-4117-befc-1a8b497110c9.jpg",
    "productUrl": "https://www.instacart.com/store/michaels/products/24411891-craft-smart-acrylic-paint-value-pack-each",
    "fulfillment": "delivery",
    "scrapedAt": "2026-11-12T08:39:51Z",
    "previousPrice": null,
    "priceChange": null,
    "priceChangePercent": null,
    "priceStatus": "first-seen",
    "firstSeenAt": "2026-11-12T08:39:51Z",
    "priceDropped": false,
    "priceRose": false,
    "newProduct": true,
    "resultId": "50782c14030b870b8584d6cf72ceffb5c389ece91356a247e81703a342588ace"
  }
]
```

The five examples above are unchanged real rows from three chains in the local default test. Source spelling, brand labels, sizes and nulls are retained. The dataset also contains this real free comparison:

```json
{
  "kind": "comparison",
  "resultId": "f3361c2cfd80cb8a9653abc12d734b461e0b8ecde6fbec9106d5b3dd7a4b7c3b",
  "searchTerm": "paint",
  "zipCodes": [
    "60601"
  ],
  "currency": "USD",
  "productsCompared": 60,
  "scope": "delivered search results across requested ZIP codes",
  "partial": false,
  "byChain": [
    {
      "chainId": "lowes",
      "chain": "Lowe's",
      "count": 20,
      "cheapestPrice": 6.98,
      "medianPrice": 19.73,
      "status": "ok",
      "reason": null,
      "byZip": [
        {
          "zipCode": "60601",
          "count": 20,
          "cheapestPrice": 6.98,
          "medianPrice": 19.73
        }
      ]
    },
    {
      "chainId": "ace-hardware",
      "chain": "Ace Hardware",
      "count": 20,
      "cheapestPrice": 4.59,
      "medianPrice": 9.99,
      "status": "ok",
      "reason": null,
      "byZip": [
        {
          "zipCode": "60601",
          "count": 20,
          "cheapestPrice": 4.59,
          "medianPrice": 9.99
        }
      ]
    },
    {
      "chainId": "michaels",
      "chain": "Michaels",
      "count": 20,
      "cheapestPrice": 2.99,
      "medianPrice": 11.99,
      "status": "ok",
      "reason": null,
      "byZip": [
        {
          "zipCode": "60601",
          "count": 20,
          "cheapestPrice": 2.99,
          "medianPrice": 11.99
        }
      ]
    }
  ],
  "cheapestProduct": {
    "resultId": "5457f79cc3c8f21f1302ea27665df02c2d91140a6aed57f4c143ed13931f0fc1",
    "chainId": "michaels",
    "chain": "Michaels",
    "zipCode": "60601",
    "productName": "Craft Smart Color Primary Acrylic Paint Value Set",
    "size": "2 fl oz",
    "price": 2.99,
    "productUrl": "https://www.instacart.com/store/michaels/products/64424358-4-color-primary-acrylic-paint-value-set-by-craft-smart"
  },
  "upcMatches": [],
  "comparisonNote": "Search results can differ in brand, size and stock. Only matching valid UPC/GTIN values identify the same product; fees and taxes are excluded.",
  "generatedAt": "2026-11-12T08:39:51Z"
}
```

`SUMMARY` records chain and ZIP coverage, failed chains, requests, traffic, charges and tracking. `COMPARISONS` in the key-value store contains the free comparisons alone.

### Pricing

- **Price: $0.0015 per delivered product ($1.50 per 1,000).** Silver $0.00135; Gold and above $0.0012. Publisher review sets the final Store prices.
- One primary product event. No start fee, search fee or comparison fee is proposed. Price tracking is included.
- No priced product delivered means no product charge. Failed requests and chains with no coverage are free; delivered products from other chains still have their product event.
- A product returned under two search terms or ZIPs produces two contextual rows and two events. Duplicate results within the same context are written and charged once.

What typical jobs cost at the list price:

| Job | Cost |
|---|---|
| Default input: 60 products and one free comparison | $0.09 |
| One search × eight chains × 20 products, where all return 20 | $0.24 for 160 product rows |
| 100 delivered rows each day for 30 days | $4.50 for 3,000 product rows |

Set Maximum cost per run in Apify. The Actor checks that a whole product event fits, stops at the limit, and still writes free comparisons of delivered products with partial=true. Tier prices and cloud costs need publisher verification.

### Tips

- Compare sizes and product types before interpreting the cheapest search result. Use upcMatches only for equal valid product codes.
- Use byZip for local comparisons; the chain-wide median pools every requested ZIP. The same store can appear for more than one requested ZIP.
- Keep the search words, cap, chain list and ZIPs stable for repeat samples. A ranking change can alter the median without individual prices moving.
- Read each chain status and SUMMARY inputs. No coverage, no results, a source refusal and a spending limit have different meanings.
- Brand labels come from the source and may be incomplete or oddly capitalized. Availability and unit prices can be null.

### Use it through the API

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("niches/store-prices-stock").call(run_input={"searches": ["paint"], "zipCodes": ["60601"], "chains": ["lowes", "ace-hardware", "michaels"], "maxProductsPerChain": 20})
for row in client.dataset(run.default_dataset_id).iterate_items():
    print(row)
```

**JavaScript**

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

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('niches/store-prices-stock').call({"searches": ["paint"], "zipCodes": ["60601"], "chains": ["lowes", "ace-hardware", "michaels"], "maxProductsPerChain": 20});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

**HTTP (one call, results back)**

```bash
curl -X POST 'https://api.apify.com/v2/acts/niches~store-prices-stock/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>' \
  -H 'Content-Type: application/json' \
  -d '{"searches": ["paint"], "zipCodes": ["60601"], "chains": ["lowes", "ace-hardware", "michaels"], "maxProductsPerChain": 20}'
```

### Integrations and schedules

- **Schedules:** run it every hour, day or week from the Apify Console (Schedules) and keep a history of results.
- **Make, Zapier, n8n, Google Sheets, Slack, Airtable:** connect it through Apify's integrations, or send each finished run to a **webhook**.
- **Datasets:** results stay in the run's dataset; export them or read them by API whenever you need them.

### Use it with AI agents (MCP)

Add Apify's MCP server with this Actor already pinned (`https://mcp.apify.com?tools=niches/store-prices-stock`) to Claude, ChatGPT, Cursor, VS Code or any MCP client. The agent can find this Actor and run it for you: ask it for "Compare paint at Lowe's, Ace Hardware and Michaels in ZIP 60601. Return counts, cheapest and median prices, and show missing coverage.". AI agents can also pay for runs directly through Apify's agentic payments.

### Limits

- Only the eight listed US retail chains are supported. Lowe's uses the home-improvement storefront.
- The catalog is the assortment available through Instacart; it may omit products carried by the chain elsewhere. A cap does not guarantee that many products or a full-catalog export.
- Prices may exceed store shelf prices and omit taxes, delivery fees, tips, memberships and checkout promotions. This is not a final checkout total.
- Each chain and ZIP uses one shop, preferring delivery, then another available fulfillment type. The chosen service is shown in every product row. A chain without local coverage is not replaced by a distant shop.
- Counts, medians and minimums describe delivered search results across potentially different sizes and brands. Out-of-stock products may still have prices and remain in the comparison.
- Only equal checksum-valid UPC/GTINs produce cross-chain matches. Names, images and internal product IDs never prove equivalence. Sources often omit UPCs and unit prices.
- Searches return visible primary product grids, excluding the separate related-items section. An explicit zero-result response or a related-items-only section yields no product charge.
- Only public signed-out data is read: no login, no account. A chain that refuses or asks for a login stops for that run and the summary says why; the other chains continue.
- A shared source refusal can affect all selected chains. Read failedChains and the partial flag. The run can still deliver products from chains read before the refusal.
- Price histories retain up to 60,000 recently seen products in your account. newProduct means new to that history. It does not mean a new product launch.
- Website changes and store coverage can change results; read each run's SUMMARY. Tractor Supply has no shop for some city ZIP codes (for example Chicago 60601).

### FAQ

**Does cheapest mean an identical item costs less?**

No. It means the lowest delivered search-result price. The same search can return different sizes and brands; only matching valid UPC/GTIN values identify shared products.

**Are these shelf prices?**

These are the chain's Instacart shop prices. They can differ from in-store shelf prices and exclude checkout fees and taxes.

**Why is stock level or unit price null?**

The source did not supply that field. inStock may still show its availability signal. No quantity or unit price is inferred.

**Why did a chain return nothing?**

It may not serve the ZIP, have no priced search results, have refused access, or have been reached after your spending limit. SUMMARY records the reason.

**How does price tracking work?**

Each chain, store ID, ZIP, fulfillment and product has its own baseline in a named key-value store. Search terms share the same baseline for the same product context. Only delivered rows enter history.

**Do I need retailer accounts?**

No retailer account is accepted or used. The Actor stops if the public source requires login.

**Can I export only products?**

Filter the dataset by kind=product. Free comparisons use kind=comparison and are also saved under COMPARISONS in the key-value store.

### Support

Questions, a site that changed, or a field you need? Open an issue on this Actor's **Issues** tab: we answer there, usually within a day.

***

Also found as: store prices by ZIP, retail stock by ZIP, Lowe's prices, Sephora prices, Ace Hardware stock, Michaels prices, DICK'S Sporting Goods stock, Tractor Supply prices, Staples prices, Five Below stock, retail price comparison API, store price tracker.

# Actor input Schema

## `searches` (type: `array`):

Enter product searches, one per line: paint, cordless drill, lipstick or printer paper. Use a size or model for tighter results. Up to 20 searches; each is sent to every selected chain.

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

Enter five-digit US ZIP codes, one per line. Each chain uses a shop serving that ZIP; missing coverage is reported. Up to 10 ZIP codes.

## `chains` (type: `array`):

Select one or more of the eight chains. Lowe's means the home-improvement retailer. Each chain is checked for every ZIP and search; a shop may not serve your ZIP.

## `maxProductsPerChain` (type: `integer`):

Maximum priced product rows per chain for each search at each ZIP. Default 20, maximum 500. The source may return fewer results. Only delivered product rows are charged.

## `trackPrices` (type: `boolean`):

Compare each product with the last completed history for the same chain, store, ZIP and fulfillment. Adds priceDropped, priceRose and newProduct for free.

## `trackingName` (type: `string`):

Use a short name such as weekly-paint for a separate history. Leave blank for the default history. Run one job at a time per history.

## Actor input object example

```json
{
  "searches": [
    "paint"
  ],
  "zipCodes": [
    "60601"
  ],
  "chains": [
    "lowes",
    "ace-hardware",
    "michaels"
  ],
  "maxProductsPerChain": 20,
  "trackPrices": true
}
```

# Actor output Schema

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

Dataset: the results.

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

What each input returned, and notes.

# 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 = {
    "searches": [
        "paint"
    ],
    "zipCodes": [
        "60601"
    ],
    "chains": [
        "lowes",
        "ace-hardware",
        "michaels"
    ],
    "maxProductsPerChain": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("niches/store-prices-stock").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 = {
    "searches": ["paint"],
    "zipCodes": ["60601"],
    "chains": [
        "lowes",
        "ace-hardware",
        "michaels",
    ],
    "maxProductsPerChain": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("niches/store-prices-stock").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 '{
  "searches": [
    "paint"
  ],
  "zipCodes": [
    "60601"
  ],
  "chains": [
    "lowes",
    "ace-hardware",
    "michaels"
  ],
  "maxProductsPerChain": 20
}' |
apify call niches/store-prices-stock --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,niches/store-prices-stock"
        }
    }
}
```

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/yIKbMTCfZ8YOg6hJT/builds/5o5eBfHBXQehFGikl/openapi.json
