# DRAMWatch (`orthogonal_redbud/dramwatch`) Actor

DRAMWatch helps resellers, integrators, and procurement teams monitor DRAM pricing and availability across public supplier and distributor websites.

Instead of manually checking product pages, DRAMWatch automatically tracks price changes and availability signals and notifies you when changes occur.

- **URL**: https://apify.com/orthogonal_redbud/dramwatch.md
- **Developed by:** [Filip Ebert, BSc.](https://apify.com/orthogonal_redbud) (community)
- **Categories:** E-commerce, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

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

## DRAMWatch – DRAM Price Monitor

**Never miss a DRAM price change again.** Track memory module prices across major distributors and get instant alerts when prices move or stock runs low.

Built for resellers, integrators, and procurement teams — not consumer deal hunting.

***

### Try it now

```json
{
  "sources": [
    "https://www.mouser.com/ProductDetail/Kingston/KF556C40BB-16",
    "https://www.digikey.com/en/products/detail/crucial-technology/CT8G4DFRA32A/10274541"
  ],
  "alertThresholdPercent": 3,
  "alertOn": {
    "priceIncrease": true,
    "priceDecrease": false,
    "availabilityChange": true
  },
  "notify": {
    "email": "you@example.com"
  }
}
```

Copy this into the Apify input form and click Run. You'll get price data from real Mouser and Digi-Key products.

***

### What it does

**Monitors prices** — Automatically checks DRAM product pages for price changes\
**Tracks availability** — Alerts you when products go in or out of stock\
**Stores history** — Keeps price trends so you can analyze patterns\
**Sends alerts** — Email, webhooks (n8n/Zapier), or Slack notifications\
**Normalizes currencies** — Compare USD, EUR, GBP prices in one dashboard

***

### Who uses it

- **Resellers** — React faster when distributor prices drop or spike
- **Procurement teams** — Monitor supply chain volatility and plan orders
- **System integrators** — Track component costs for quotes and proposals
- **Automation workflows** — Feed price data into n8n, Zapier, or Make

***

### Works with these suppliers

**Known-compatible:**

- Mouser
- Digi-Key
- Arrow
- Avnet
- Future Electronics

**Also works with:**

- Most public product pages with a visible price
- Amazon (requires Product Advertising API — see below)
- Custom distributor sites

***

### How to use

#### 1. Add product URLs

Paste URLs from Mouser, Digi-Key, Arrow, or any supplier page.

#### 2. Set alert rules

Choose when to get notified:

- Price increases above X%
- Price decreases (great for buyers)
- Availability changes (in stock → out of stock)

#### 3. Choose where alerts go

- **Email** — Direct to your inbox
- **Webhook** — Integrate with n8n, Zapier, Make, or custom systems
- **Slack** — Post to your team channel

#### 4. Run once or schedule

- **One-time run** — Check prices right now
- **Scheduled** — Daily or weekly automated checks

***

### Amazon & marketplaces

**Amazon requires special setup**

For reliable Amazon monitoring, provide **Product Advertising API** credentials in the input. Without it, the Actor may attempt browser scraping which can be blocked or violate Amazon's Terms of Service.

Example:

```json
"amazonPAConfig": {
  "accessKey": "YOUR_ACCESS_KEY",
  "secretKey": "YOUR_SECRET_KEY",
  "partnerTag": "YOUR_PARTNER_TAG",
  "region": "us-east-1"
}
```

**Don't have PA API?** Set `acknowledgeAmazonRisk: true` to proceed anyway (not recommended for production).

***

### Output format

Each run returns a JSON dataset:

```json
{
  "source": "https://www.mouser.com/...",
  "oldPrice": 45.99,
  "newPrice": 42.50,
  "currency": "USD",
  "changePercent": -7.59,
  "availabilityChanged": false,
  "available": true,
  "detectedAt": "2025-12-18T17:30:00.000Z",
  "alertSent": true
}
```

Perfect for:

- Dashboards (Google Sheets, Airtable, Power BI)
- Automation triggers
- Price history analysis

#### Output Schema

The full JSON schema for the output data:

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "DRAM Pricing Change Monitor output",
  "description": "Results of price monitoring for each source URL.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "source": {
        "type": "string",
        "format": "uri",
        "title": "Source URL",
        "description": "The product page URL that was monitored."
      },
      "oldPrice": {
        "type": ["number", "null"],
        "title": "Previous price",
        "description": "The price from the last monitoring run."
      },
      "newPrice": {
        "type": ["number", "null"],
        "title": "Current price",
        "description": "The price detected in this run."
      },
      "currency": {
        "type": "string",
        "title": "Currency",
        "description": "The currency code (e.g., USD)."
      },
      "changePercent": {
        "type": "number",
        "title": "Price change percentage",
        "description": "Percentage change from old to new price."
      },
      "availabilityChanged": {
        "type": "boolean",
        "title": "Availability changed",
        "description": "Whether product availability status changed."
      },
      "available": {
        "type": "boolean",
        "title": "Currently available",
        "description": "Whether the product is currently in stock."
      },
      "detectedAt": {
        "type": "string",
        "format": "date-time",
        "title": "Detection timestamp",
        "description": "ISO timestamp when the price was checked."
      },
      "alertSent": {
        "type": "boolean",
        "title": "Alert sent",
        "description": "Whether an alert notification was sent for this change."
      }
    },
    "required": ["source", "newPrice", "currency", "changePercent", "availabilityChanged", "available", "detectedAt", "alertSent"]
  }
}
```

***

### Presenting Results in Attractive UI

The JSON output can be easily visualized using various tools:

#### Web Dashboard Example

You can use the output to create a simple HTML dashboard:

```html
<!DOCTYPE html>
<html>
<head>
    <title>DRAM Price Monitor Dashboard</title>
    <style>
        table { border-collapse: collapse; width: 100%; }
        th, td { border: 1px solid #ddd; padding: 8px; text-align: left; }
        th { background-color: #f2f2f2; }
        .price-up { color: red; }
        .price-down { color: green; }
    </style>
</head>
<body>
    <h1>DRAM Price Changes</h1>
    <table id="priceTable">
        <thead>
            <tr>
                <th>Source</th>
                <th>Old Price</th>
                <th>New Price</th>
                <th>Change %</th>
                <th>Available</th>
                <th>Detected At</th>
            </tr>
        </thead>
        <tbody>
            <!-- Data will be inserted here -->
        </tbody>
    </table>

    <script>
        // Fetch data from Apify dataset API
        fetch('https://api.apify.com/v2/datasets/YOUR_DATASET_ID/items?format=json')
            .then(response => response.json())
            .then(data => {
                const tbody = document.querySelector('#priceTable tbody');
                data.forEach(item => {
                    const row = document.createElement('tr');
                    const changeClass = item.changePercent > 0 ? 'price-up' : item.changePercent < 0 ? 'price-down' : '';
                    row.innerHTML = `
                        <td><a href="${item.source}" target="_blank">${item.source.split('/').pop()}</a></td>
                        <td>${item.oldPrice ? '$' + item.oldPrice : 'N/A'}</td>
                        <td>${item.newPrice ? '$' + item.newPrice : 'N/A'}</td>
                        <td class="${changeClass}">${item.changePercent.toFixed(2)}%</td>
                        <td>${item.available ? 'Yes' : 'No'}</td>
                        <td>${new Date(item.detectedAt).toLocaleString()}</td>
                    `;
                    tbody.appendChild(row);
                });
            });
    </script>
</body>
</html>
```

Replace `YOUR_DATASET_ID` with your actual dataset ID from Apify.

#### Integration with Tools

- **Google Sheets**: Use Apify's Google Sheets integration to automatically update spreadsheets.
- **Airtable**: Sync results to Airtable bases for collaborative dashboards.
- **Power BI / Tableau**: Connect via API for advanced analytics.
- **Custom Web App**: Build with React/Vue.js using the JSON API.

***

### Advanced features

#### Currency normalization

Monitor suppliers in different countries and compare everything in USD, EUR, or your base currency.

#### Browser mode

For JavaScript-heavy pages, enable `browser: true` in the input (uses Puppeteer).

#### Custom selectors

If auto-detection fails, specify a CSS selector: `"priceSelector": "#price, .product-price"`

***

### Legal & ethical use

This Actor only reads **publicly visible information**\
You are responsible for complying with each website's Terms of Service\
Do not use for scraping paywalled, authenticated, or restricted content

***

### FAQ

**Q: Can I monitor 100 products at once?**\
A: Yes. Add as many URLs as you need to the `sources` array.

**Q: How often should I run it?**\
A: Most teams run daily or weekly. Real-time monitoring isn't needed for DRAM pricing.

**Q: Does it work with market indexes like DRAMeXchange?**\
A: Not yet. Market/index sites use different data formats. Planned for v1.1.

**Q: Can I export the data?**\
A: Yes. All results are stored in JSON format and can be exported to CSV, Google Sheets, or via API.

***

### Get started

1. Click **Try for free** in the Apify Console
2. Paste the demo input above
3. Click **Run**
4. See price data from real Mouser and Digi-Key products

**Need help?** Check the [examples folder](examples/) for more input samples.

# Changelog

This Actor's version history is a separate document: https://apify.com/orthogonal_redbud/dramwatch/changelog.md

# Actor input Schema

## `sources` (type: `array`):

List of public DRAM product pages from suppliers or distributors.

## `alertThresholdPercent` (type: `number`):

Minimum price change percentage required to trigger an alert.

## `alertOn` (type: `object`):

Select which changes should trigger notifications.

## `normalizeCurrency` (type: `boolean`):

Convert prices to a single base currency before comparison.

## `baseCurrency` (type: `string`):

Target currency used when normalizing prices.

## `notify` (type: `object`):

Configure where alerts should be delivered.

## `storeHistory` (type: `boolean`):

Save historical price data for auditing and comparisons.

## `runLabel` (type: `string`):

Optional label to help identify this run.

## `amazonPAConfig` (type: `object`):

Optional configuration for fetching Amazon prices using the Product Advertising API.

## `acknowledgeAmazonRisk` (type: `boolean`):

Confirm that you understand Amazon pages may restrict automated access.

## Actor input object example

```json
{
  "sources": [
    "https://www.mouser.com/ProductDetail/Kingston/KF556C40BB-16",
    "https://www.digikey.com/en/products/detail/crucial-technology/CT8G4DFRA32A/10274541"
  ],
  "alertThresholdPercent": 3,
  "normalizeCurrency": true,
  "baseCurrency": "USD",
  "storeHistory": true,
  "acknowledgeAmazonRisk": false
}
```

# Actor output Schema

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

All monitored products with complete price and availability data

## `priceIncreases` (type: `string`):

Products that became more expensive (critical for budget planning)

## `priceDecreases` (type: `string`):

Products that became cheaper (opportunities for savings)

## `availabilityChanges` (type: `string`):

Products with stock status changes

## `alertsSent` (type: `string`):

Products that triggered notifications during this run

## `allResults` (type: `string`):

Complete dataset with all fields

# 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("orthogonal_redbud/dramwatch").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("orthogonal_redbud/dramwatch").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 orthogonal_redbud/dramwatch --silent --output-dataset

```

## MCP server setup

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

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/98tATCLv2Jn3G1AaQ/builds/tFasyiqfdbzINpMjo/openapi.json
