# Lowes Product Lookup (`maplerope44/lowes-product-lookup`) Actor

Quickly look up Lowes product prices and availability by entering a product ID and zip code. Get real-time stock and pricing details from nearby stores, making it easy to compare locations and plan your purchase efficiently.

- **URL**: https://apify.com/maplerope44/lowes-product-lookup.md
- **Developed by:** [Maple Rope](https://apify.com/maplerope44) (community)
- **Categories:** E-commerce, Integrations, Automation
- **Features:** Limited permissions
- **Stats:** 217 total users, 9 monthly users, 99.0% runs succeeded, 3 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 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

## Overview

The Product Lookup API allows you to retrieve real-time pricing and availability for any product by providing a product ID and zip code. This API helps users check stock levels and compare prices across nearby locations, making it ideal for shoppers, contractors, and businesses that need up-to-date inventory information.

## Free Users

Free Users are limited to a maximum of 20 lookups per day and up to 100 lookups per month. Please reach out if you need additional requests to validate your use case.

### IMPORTANT

This actor is currently using an **introductory** reduced pricing for V2.

## Key Features

- Real-Time Data: Get the latest price and availability for products.
- Location-Based Results: Enter a zip code to see stock levels at nearby stores.
- Efficient Shopping: Compare pricing across multiple locations to find the best deal.
- Easy Integration: Simple API request format for quick implementation in apps, tools, or websites.

Whether you're planning a DIY project, managing supplies for a business, or just looking for the best price at your local store, this API makes it easy to find the information you need in seconds.

**COMING SOON**

- Batch requests with multiple product ids.
- Price Change Notifications

## Input Schema

**IMPORTANT**

Runtime may vary significantly depending on caching. Set the timeout to at least **120s** to prevent Apify from timing out the request before a response is returned.

| Parameter   | Type   | Required | Description |
|------------|--------|----------|-------------|
| `zip`      | string | yes      | The zip code for the product location. |
| `productId`| string | yes      | The unique identifier of the product. |
| `noWait` | boolean | no | If set, an asyncId will be returned immediately for later polling. |
| `callback` | string | no | If set, an asyncId will be returned immediately and the results will be provided via the callback. |

> Returns the product details directly if the lookup completes quickly.

### Asynchronous Lookup

| Parameter  | Type   | Required | Description |
|------------|--------|----------|-------------|
| `asyncId`  | string | yes      | An ID obtained from a previous lookup request when a timeout occurs. Use this to retrieve the product results once available. |

> If the initial lookup takes too long, the response will return an `asyncId` instead of product data. Use this `asyncId` to request the results later.

## Output Schema

### Successful Synchronous Response

If the timeout doesn't elapse and the results are available, the below sample output schema applies.

```json
{
  "asyncId": "string",
  "status": 200,
  "stores": {
    "STORE_ID": {
      "id": "string",
      "name": "string",
      "address": "string",
      "city": "string",
      "state": "string",
      "zip": "string",
      "phone": "string",
      "distance": "number",
      "hours": {
        "mon": {
          "open": "string",
          "close": "string"
        },
        "tue": {
          "open": "string",
          "close": "string"
        },
        "wed": {
          "open": "string",
          "close": "string"
        },
        "thu": {
          "open": "string",
          "close": "string"
        },
        "fri": {
          "open": "string",
          "close": "string"
        },
        "sat": {
          "open": "string",
          "close": "string"
        },
        "sun": {
          "open": "string",
          "close": "string"
        }
      },
      "products": {
        "PRODUCT_ID": {
          "name": "string",
          "description": "string",
          "url": "string",
          "imageUrl": "string",
          "quantityAvailable": number,
          "priceCentsPerUnit": number,
          "salePriceCentsPerUnit": number,
          "bulkQuantityRequired": number,
          "bulkPriceCentsPerUnit": number
        }
      }
    }
  }
}
```

### Asynchronous Response (Timeout, noWait is true, or callback is set)

```json
{
  "asyncId": "abcd-1234-efgh-5678"
  "status": 202 | 206
}
```

### Product Lookup Result Response (when asyncId is passed in)

```json
{
  "asyncId": "abcd-1234-efgh-5678"
  "status": 202 | 206
}
```

A 202 will be returned if the request has not started yet.
A 206 will be returned if the request is in progress.
If the data is ready, the Successful Synchronous Response above will be returned instead.

## Support

For issues or assistance, contact support via Apify or email [**help@maplerope.com**](mailto:help@maplerope.com).

# Actor input Schema

## `zip` (type: `string`):

The zip code to lookup

## `productId` (type: `string`):

The Product Id from the Lowes website for an item. This is the number at the last part of the URL.

## Actor input object example

```json
{
  "zip": "10918",
  "productId": "3131025"
}
```

# 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 = {
    "zip": "10918",
    "productId": "3131025"
};

// Run the Actor and wait for it to finish
const run = await client.actor("maplerope44/lowes-product-lookup").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 = {
    "zip": "10918",
    "productId": "3131025",
}

# Run the Actor and wait for it to finish
run = client.actor("maplerope44/lowes-product-lookup").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 '{
  "zip": "10918",
  "productId": "3131025"
}' |
apify call maplerope44/lowes-product-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,maplerope44/lowes-product-lookup"
        }
    }
}
```

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/5f5Nm8ropde429bO5/builds/WpftU3t47kGCypnk3/openapi.json
