# Evidnora – MAP Price Monitoring & Evidence (`soruvalab/marginwatch-apify`) Actor

Monitor product prices against user-defined MAP thresholds, detect potential pricing discrepancies, and preserve HTML evidence with SHA-256 hashes and optional offline PNG snapshots.

- **URL**: https://apify.com/soruvalab/marginwatch-apify.md
- **Developed by:** [SoruvaLab](https://apify.com/soruvalab) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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

## Evidnora – MAP Price Monitoring & Evidence

**Monitor advertised product prices, identify potential MAP discrepancies, and preserve verifiable HTML evidence.**

Evidnora is a product price monitoring Actor developed by **SoruvaLab**. It compares prices extracted from publicly accessible product pages against MAP (Minimum Advertised Price) thresholds provided by the user.

### What Evidnora does

- **Price comparison:** Compare extracted product prices with user-supplied MAP thresholds.
- **Potential discrepancy detection:** Flag prices below the supplied threshold.
- **Structured data extraction:** Read supported JSON-LD Product and ProductGroup offers.
- **Evidence preservation:** Store retrieved HTML and evidence metadata.
- **SHA-256 hashing:** Generate cryptographic hashes for evidence integrity checks.
- **Optional PNG snapshots:** Render retrieved HTML offline and save a PNG image.
- **Structured output:** Export price observations, comparison results, timestamps, evidence keys, and verification status to an Apify Dataset.

### Input example

```json
{
  "products": [
    {
      "url": "https://example.com/products/example-shoe",
      "productName": "Example Shoe",
      "mapPrice": 150,
      "currency": "USD"
    }
  ],
  "captureScreenshots": false
}
```

You can submit 1–25 products per run.

The MAP threshold must be supplied by the user. Evidnora does not independently determine a brand's official MAP policy.

### Output statuses

| Status | Meaning |
| --- | --- |
| `NO_DISCREPANCY` | Extracted price does not fall below the supplied threshold. |
| `POTENTIAL_MAP_DISCREPANCY` | Extracted price is below the supplied threshold. |
| `INDETERMINATE` | A reliable price comparison could not be completed. |

Results may include the observed price, currency, price difference, source URL, retrieval time, evidence record keys, and SHA-256 hash.

### Evidence and verification limitations

Evidnora extracts prices from supported structured data contained in retrieved HTML.

**A structured-data price is not necessarily the price displayed to a customer in a live browser.**

The `PAGE_DISPLAY_NOT_VERIFIED` status explicitly identifies this limitation.

When screenshot capture is enabled, Evidnora renders retrieved HTML in an offline, network-restricted environment. The resulting PNG is an **offline HTML snapshot**, not an independently verified screenshot of a live product page.

HTML evidence and metadata are stored in a named Apify key-value store.

A potential MAP discrepancy is an automated observation, **not proof of a policy violation or legal wrongdoing**. Users are responsible for verifying applicable MAP policies, product variants, currency, and actual displayed prices before taking action.

### Supported pages and limitations

Evidnora currently supports unambiguous prices from JSON-LD Product or ProductGroup offers.

Some websites use different formats, dynamic rendering, multiple conflicting prices, or access restrictions. In these cases, Evidnora may return `INDETERMINATE`.

The Actor does not bypass authentication, access controls, or website restrictions.

### Typical use cases

- Brand pricing oversight
- Distributor and reseller price monitoring
- MAP compliance review workflows
- Product pricing evidence collection
- Structured price discrepancy reporting

### Developer

Developed by **SoruvaLab**.

# Actor input Schema

## `products` (type: `array`):

Add product page URLs and your authorized MAP reference prices.

## `captureScreenshots` (type: `boolean`):

Optionally render previously retrieved HTML as a PNG without external network access or JavaScript. This is not a verified live-page screenshot.

## Actor input object example

```json
{
  "products": [
    {
      "url": "https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole",
      "productName": "Example Shoe",
      "mapPrice": 150,
      "currency": "USD"
    }
  ],
  "captureScreenshots": false
}
```

# Actor output Schema

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

Product prices, MAP comparisons, timestamps, and evidence record keys.

# 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 = {
    "products": [
        {
            "url": "https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole",
            "productName": "Example Shoe",
            "mapPrice": 150,
            "currency": "USD"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("soruvalab/marginwatch-apify").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 = { "products": [{
            "url": "https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole",
            "productName": "Example Shoe",
            "mapPrice": 150,
            "currency": "USD",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("soruvalab/marginwatch-apify").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 '{
  "products": [
    {
      "url": "https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole",
      "productName": "Example Shoe",
      "mapPrice": 150,
      "currency": "USD"
    }
  ]
}' |
apify call soruvalab/marginwatch-apify --silent --output-dataset

```

## MCP server setup

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

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/yqHsCzd2TcWfvl2jx/builds/1qQQecBmUqqk5OEBe/openapi.json
