# Product Page Lookup – Price, Stock & Variants from Any Shop URL (`coregent/product-page-lookup`) Actor

Give an AI agent any product URL from an online shop and get back one clean product record: name, brand, price, currency, stock, variants, SKU/GTIN and rating, read live from the shop's own structured data. One URL per call. Free when no product is found.

- **URL**: https://apify.com/coregent/product-page-lookup.md
- **Developed by:** [Delowar Munna](https://apify.com/coregent) (community)
- **Categories:** E-commerce, AI
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 product lookups

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

## 🛒 Product Page Lookup – Price, Stock & Variants from Any Shop URL (API for AI agents)

![Product Page Lookup](https://raw.githubusercontent.com/coregentdevspace/product-page-lookup-assets/main/thumbnail-product-page-lookup.png)

**What does this page sell, at what price, and is it in stock?** Give this Actor one product URL from an online shop
and get back, in a few seconds, one clean product record: name, brand, price, currency, stock, variants (sizes,
colours), SKU, GTIN/barcode and rating, read live from the shop's own structured data.

Built as a **tool for AI agents** (Claude, ChatGPT, Cursor, n8n or your own) through Apify's MCP server, and for
developers calling the Apify API from pricing and catalogue pipelines. One URL per call, four inputs, a compact
response, and a flat price per lookup. **Pages with no product, unsupported shops and errors are free.** No login, no
cookies, no API keys.

### ✨ What you get

- **One normalised product record:** name, brand, SKU, GTIN (check digit validated), MPN, category, price,
  compare-at ("was") price, ISO currency code, price range across variants, stock status, rating and review count,
  main image.
- **Variants** with their options (e.g. `{"Color": "Black", "Size": "9"}`), SKU, GTIN, price, stock and a direct
  variant link. `variantCount` always shows the full number, even when you ask for fewer.
- **Live data** from the page itself, not an index that lags by days.
- **Where each field came from:** `sources` names the structured data behind every field (`json-ld`,
  `shopify-json`, `woo-store-api`, `microdata`, `opengraph`), and `confidence` tells you how solid the price is.
- **Honest statuses:** a category page, a blocked shop or a page without product data returns its own status, never
  an empty "success", and is not charged.

### 🏪 Which shops work

- **Shopify stores** (with full variant lists, options and stock per variant), **WooCommerce**, **BigCommerce**,
  **Magento / Adobe Commerce**, and brand sites that publish schema.org product data, which most shops do for Google.
- **Not supported:** Amazon, eBay, Etsy, Walmart, AliExpress, Temu, SHEIN and TikTok Shop. These return
  `status: "unsupported"` at once, free. For TikTok Shop products, use
  [TikTok Shop Product Scraper](https://apify.com/coregent/tiktok-shop-product-scraper).
- Shops behind a bot challenge return `status: "blocked"`, free. This Actor never tries to get around a block.

### 🧑‍💼 Who it's for

- **Shopping and price-comparison agents:** "Is this jacket in stock in medium, and what does it cost?"
- **Procurement and sourcing agents:** check price and stock on a supplier's product page before ordering.
- **E-commerce and competitor research:** read a competitor's price, variants and GTINs from their product page.
- **Price-watch workflows:** call it on a schedule for each tracked URL and compare prices over time.
- **Developers:** one API call per product URL in your catalogue or pricing pipeline.

### 🤖 Use it from an AI agent (MCP)

Connect Apify's MCP server with just this Actor as a tool, using this URL:

```
https://mcp.apify.com?tools=coregent/product-page-lookup
```

- **Claude (claude.ai or Claude Desktop):** Settings → Connectors → **Add custom connector**, paste the URL, and sign
  in with Apify when asked.
- **Claude Code:**
  `claude mcp add product-page-lookup "https://mcp.apify.com?tools=coregent/product-page-lookup" -t http`
- **ChatGPT:** add a custom MCP server with the same URL and choose OAuth.
- **Cursor, VS Code and other clients that take a remote URL:**

```json
{ "mcpServers": { "product-page-lookup": { "url": "https://mcp.apify.com?tools=coregent/product-page-lookup" } } }
```

Sign-in uses your own Apify account (the free plan works), and runs are billed there. The agent sees one tool,
`coregent--product-page-lookup`, with four inputs. Already using Apify's MCP server with other Actors? Add
`coregent/product-page-lookup` to your `tools=` list, comma-separated.

**Try asking your agent:**

- "What does this cost and is it in stock in size 8? https://rothys.com/products/the-original-slip-on-sneaker-black-solid"
- "Compare price and stock for these three product links and tell me the cheapest one that's available."
- "Read this product page and give me its GTIN and every colour it comes in."
- "Is this item on sale right now? What's the original price?"

A typical tool call:

```json
{ "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid", "maxVariants": 10 }
```

The agent gets back one JSON object (below), small enough to reason over directly. Set `"maxVariants": 0` for the
product without its variant list, the smallest response.

### 🚀 Use it from the API

Run it synchronously and read the result in one request:

```bash
curl -X POST "https://api.apify.com/v2/acts/coregent~product-page-lookup/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://www.nalgene.com/product/geyser-outdoor-clean-kit/"}'
```

The same object is also saved to the run's `OUTPUT` record.

### 📥 Input

| Field | Description |
|---|---|
| `url` (required) | Full URL of one product page on an online shop. Category, search and home pages return `not_product`. |
| `maxVariants` | 0–100, default 20. How many variants to list. `0` returns the product without the variant list. |
| `includeDescription` | Add the product description as plain text, up to 1,500 characters. Off by default. |
| `includeImages` | Return up to 10 image URLs instead of only the main image. Off by default. |

#### Example inputs

A Shopify product with every variant (the run behind the sample output and screenshots below):

```json
{ "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid", "maxVariants": 20 }
```

A WooCommerce product, without the variant list:

```json
{ "url": "https://www.nalgene.com/product/geyser-outdoor-clean-kit/", "maxVariants": 0 }
```

Everything, including description and all images:

```json
{ "url": "https://www.gymshark.com/products/gymshark-vital-seamless-shorts-dark-green-marl-logo", "maxVariants": 100, "includeDescription": true, "includeImages": true }
```

### 📦 Output

One record per call. In Apify Console the run's dataset has two views.

#### Product

![Product view](https://raw.githubusercontent.com/coregentdevspace/product-page-lookup-assets/main/product-page-lookup-output-product-table-view.png)

#### Variants

![Variants view](https://raw.githubusercontent.com/coregentdevspace/product-page-lookup-assets/main/product-page-lookup-output-variants-table-view.png)

#### Sample record

From `{ "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid", "maxVariants": 20 }`, with the
variant list trimmed to the first 2 of 17:

```json
{
  "status": "ok",
  "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid",
  "canonicalUrl": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid",
  "shop": "Rothy's",
  "platform": "shopify",
  "confidence": "high",
  "checkedAt": "2026-11-26T16:18:49.739Z",
  "product": {
    "name": "The Original Slip On Sneaker - Black Solid",
    "brand": "Rothy's",
    "sku": null,
    "gtin": null,
    "mpn": null,
    "category": "Apparel & Accessories > Shoes",
    "price": 99,
    "compareAtPrice": 125,
    "currency": "USD",
    "priceRange": { "min": 99, "max": 99 },
    "availability": "in_stock",
    "rating": { "value": 4.6, "count": 17549 },
    "image": "https://cdn.shopify.com/s/files/1/0877/4986/files/006_TheSneaker_Black_pdp_A_b484150f-1fa8-4f8c-b8f8-3580e1e7604c.jpg?v=1788056125",
    "images": null,
    "description": null
  },
  "variantCount": 17,
  "variants": [
    {
      "title": "Black Solid / 5",
      "options": { "Color": "Black Solid", "Size": "5" },
      "sku": "006_105_BLK_5",
      "gtin": "192249020175",
      "price": 99,
      "compareAtPrice": 125,
      "availability": "in_stock",
      "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid?variant=12222891917420"
    },
    {
      "title": "Black Solid / 5.5",
      "options": { "Color": "Black Solid", "Size": "5.5" },
      "sku": "006_105_BLK_5.5",
      "gtin": "192249020182",
      "price": 99,
      "compareAtPrice": 125,
      "availability": "in_stock",
      "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid?variant=12222912725100"
    }
  ],
  "truncated": false,
  "sources": { "variants": "shopify-json", "price": "shopify-json", "currency": "json-ld", "compareAtPrice": "shopify-json", "availability": "shopify-json", "rating": "json-ld", "name": "json-ld", "brand": "json-ld", "category": "json-ld" },
  "notes": []
}
```

Product-level `sku` and `gtin` are often `null` on products with variants, because shops state them per variant. On
a product without variants, such as the WooCommerce example above, they come back on `product`.

#### Statuses

| `status` | Meaning | Charged? |
|---|---|---|
| `ok` | Product found with name, price and currency | Yes, one `lookup` |
| `partial` | Product found, but the price or currency isn't on the page (e.g. "price on request"); see `notes` | Yes, one `lookup` |
| `not_product` | No product on this page: a category, search, article or home page, or a page that shows prices only in the browser | No |
| `unsupported` | A marketplace this Actor doesn't handle (Amazon, eBay, Etsy, Walmart, AliExpress, Temu, SHEIN, TikTok Shop) | No |
| `blocked` | The shop refused the request or answered with a bot challenge | No |
| `error` | Invalid URL, network failure or timeout | No |

Fields the page doesn't state come back as `null`, never as guesses. `availability` is one of `in_stock`,
`out_of_stock`, `preorder`, `backorder`, `discontinued` or `unknown`. A GTIN that fails its check digit is dropped,
with a note.

`confidence` is `high` when the price comes from JSON-LD or the shop's own product API, `medium` from microdata, and
`low` from Open Graph meta tags only.

**Currency:** prices are what the page shows. Some Shopify stores convert prices to the visitor's local currency;
the record then uses that currency throughout and leaves a variant's price empty rather than mixing in prices from
another currency.

### 💳 Pricing

Pay per event: one **`lookup`** charge for each call that finds a product (`ok` or `partial`). Variants, the
description and images are included at no extra charge. Everything else is free: pages with no product,
unsupported or blocked shops, and errors. There's no start fee.

This README deliberately doesn't quote figures, because prices can change. See the **Pricing** tab on this page
for the current rate on your plan.

### ❓ FAQ

**Why not just fetch the page with a general web browser tool?** A general fetch gives the agent page text to parse.
It loses the variant list, GTINs and per-variant stock, and the agent spends tokens reading a whole page. This Actor
reads the shop's structured product data and returns only the record.

**Does it work for any shop?** It works for shops that publish structured product data, which most do so they
appear properly in Google. In our tests on real shops, about nine in ten reachable product pages returned a product.
Pages that show prices only after the browser runs scripts return `not_product`, free.

**Why are Amazon and eBay not supported?** Amazon pages carry no structured product data, and eBay and Etsy refuse
automated requests. Dedicated Actors cover those marketplaces.

**Can I check many URLs?** Yes: call it once per URL. Agents loop over a list; from the API, run calls in parallel.

**Is personal data collected?** No. The record holds product data only: no reviewer names, review text or customer
data.

### 🛠 Support

Found a shop where the record is wrong or empty? Open an issue on the Actor's **Issues** tab with the URL, and we'll
look at it.

# Actor input Schema

## `url` (type: `string`):

Full URL of one product page on an online shop, e.g. https://rothys.com/products/the-original-slip-on-sneaker-black-solid. Category, search and home pages return not_product.

## `maxVariants` (type: `integer`):

Most variants (sizes, colours) to return, 0–100. 0 returns the product without the variant list. variantCount always shows the full number.

## `includeDescription` (type: `boolean`):

Add the product description as plain text, capped at 1,500 characters. Off by default to keep the response small.

## `includeImages` (type: `boolean`):

Return up to 10 image URLs. When off, only the main image URL is returned.

## Actor input object example

```json
{
  "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid",
  "maxVariants": 5,
  "includeDescription": false,
  "includeImages": false
}
```

# Actor output Schema

## `result` (type: `string`):

No description

## `overview` (type: `string`):

No description

## `variants` (type: `string`):

No description

# 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 = {
    "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid",
    "maxVariants": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("coregent/product-page-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 = {
    "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid",
    "maxVariants": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("coregent/product-page-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 '{
  "url": "https://rothys.com/products/the-original-slip-on-sneaker-black-solid",
  "maxVariants": 5
}' |
apify call coregent/product-page-lookup --silent --output-dataset

```

## MCP server setup

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