# Verified Product Search API – Price & Stock (`machinetollforgeai/commerce-graph-lite`) Actor

Find verified local product prices, stock availability, merchants, sources, and confidence scores from a product name or specification — no product URL required

- **URL**: https://apify.com/machinetollforgeai/commerce-graph-lite.md
- **Developed by:** [mohammed naif abdo maros](https://apify.com/machinetollforgeai) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $25.00 / 1,000 offer verifications

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Verified Product Search API - Price & Stock

**From product intent to a verified local offer - no product URL required.**

Search for a product by name or specification and return structured local market intelligence including verified price, stock availability, merchant/source evidence, product-match confidence, and verification signals.

Built for **AI agents, developers, procurement workflows, ecommerce research, price intelligence, and commerce automation.**

### What this Actor does

Give the Actor a product query such as `MacBook Air M4 16GB 512GB` and a target market such as `SA`.

The Actor can:

1. Discover relevant public product pages.
2. Match the requested product and exact variant.
3. Validate the requested market.
4. Validate the expected local currency.
5. Check current public price and stock signals.
6. Rank suitable offers.
7. Return a verified result with confidence and source evidence.

### Quick start

```json
{
  "action": "discover_offers",
  "country": "SA",
  "query": "MacBook Air M4 16GB 512GB",
  "maxResults": 3,
  "strictMatch": true,
  "respectRobots": true,
  "searchLang": "en",
  "allowDeepCheck": false
}
```

### Core capabilities

- Product discovery from natural-language intent
- Exact product and variant matching
- Market-aware search
- Local-currency validation
- Price verification
- Public stock verification
- Merchant and source evidence
- Confidence scoring
- Offer revalidation using `stateToken`

### Supported actions

#### `discover_offers`

Discover and verify product offers from a product query.

#### `verify_offer`

Verify a known public product URL for product identity, variant, price, currency, availability, source consistency, and freshness.

#### `revalidate_offer`

Recheck a previously verified offer using its returned `stateToken`.

### Result statuses

- `verified`
- `market_signal`
- `not_found`
- `blocked`
- `budget_exhausted`

### Market-aware behavior

The requested market remains the source of truth.

- SA -> SAR
- AE -> AED
- US -> USD
- GB -> GBP
- JP -> JPY

### Designed for AI agents

```text
Product intent
    |
    v
Product discovery
    |
    v
Variant matching
    |
    v
Market + currency validation
    |
    v
Price + stock verification
    |
    v
Verified local offer
```

### Pricing

This Actor uses **Pay per event** pricing.

Current billable actions include:

- Commerce Search
- Offer Verification
- Offer Revalidation
- Actor Start

Users can restrict the maximum cost of an individual run.

### Good use cases

- AI shopping-agent product discovery
- Local price and stock research
- Procurement research
- Ecommerce comparison
- Product intelligence
- Price intelligence
- Offer revalidation before downstream agent actions

### Responsible use

This Actor is intended for lawful public-product research and commerce workflows.

Restricted high-risk categories may be blocked.

It is designed to work with publicly accessible product information and supports respecting robots.txt.

### Independent service

Verified Product Search API is an independent developer tool.

Third-party product names, merchant names, brands, and trademarks remain the property of their respective owners.

No affiliation with or endorsement by returned merchants or manufacturers is implied.

# Actor input Schema

## `action` (type: `string`):

discover\_offers searches first; verify\_offer checks one known URL; revalidate\_offer checks a prior state token; preflight\_purchase performs strict offer-integrity preflight.

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

Product name/model/specification for discovery or identity matching.

## `expectedQuery` (type: `string`):

Optional product/model/specification expected at a direct URL.

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

Public product page URL for verify\_offer or preflight\_purchase.

## `stateToken` (type: `string`):

Token returned by a previous verification. Required by revalidate\_offer.

## `destinationCountry` (type: `string`):

ISO 3166-1 alpha-2 country code, e.g. US, DE, JP, BR, SA.

## `country` (type: `string`):

Backward-compatible country field. destinationCountry takes priority.

## `locale` (type: `string`):

BCP-47 locale such as en-US, de-DE, ja-JP, ar-SA.

## `preferredCurrency` (type: `string`):

Optional ISO 4217 currency such as USD, EUR, JPY, SAR.

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

Maximum verified/recheck offers in discovery mode.

## `urls` (type: `array`):

Optional public product URLs to verify alongside or instead of discovery.

## `minimumMatchScore` (type: `number`):

Minimum product identity score.

## `allowDeepCheck` (type: `boolean`):

Allow browser fallback when HTTP metadata is insufficient. Defaults to true for verification and false for low-cost revalidation.

## `respectRobots` (type: `boolean`):

Check and respect robots.txt before fetching public pages.

## `timeoutSeconds` (type: `integer`):

Per-page timeout in seconds.

## Actor input object example

```json
{
  "action": "discover_offers",
  "destinationCountry": "US",
  "locale": "en",
  "maxResults": 3,
  "minimumMatchScore": 75,
  "respectRobots": true,
  "timeoutSeconds": 20
}
```

# Actor output Schema

## `results` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("machinetollforgeai/commerce-graph-lite").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("machinetollforgeai/commerce-graph-lite").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 '{}' |
apify call machinetollforgeai/commerce-graph-lite --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,machinetollforgeai/commerce-graph-lite"
        }
    }
}

```

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/mhznWsOojDdnqhCme/builds/LdW6AXVyKmcyYrmhl/openapi.json
