# Pololu Engineering Parts (`dromb/pololu-us-engineering-parts-stage0`) Actor

- **URL**: https://apify.com/dromb/pololu-us-engineering-parts-stage0.md
- **Developed by:** [Dmitriy Gyrbu](https://apify.com/dromb) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 71.4% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.60 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Pololu engineering parts — two exact product pages

Private Stage0 Actor for **Pololu 3415 (VL53L1X sensor carrier)** and **Pololu 4860 (12 V motor with 48 CPR encoder, no gearbox)**. It reads each requested canonical product page directly and returns the displayed **USD quantity price breaks**, source-owned technical fields, and a timestamped HTTP evidence record. It is not a general catalogue scraper, inventory API, or checkout quote service.

### What you can do

Run the Actor with an optional product selection and output limit:

```json
{"productIds":["3415","4860"],"maxItems":2}
```

| Input | Accepted values | Default | Meaning |
| --- | --- | --- | --- |
| `productIds` | One or two distinct strings selected from `3415`, `4860` | Both products | Product order is respected. Other IDs, empty lists and duplicates are rejected by runtime. |
| `maxItems` | Integer 1–2 | 2 | Maximum number of products processed from the start of `productIds`, not page size or concurrency. |

Example for the motor only: `{"productIds":["4860"],"maxItems":1}`. The Apify platform can coerce some raw input values before runtime; do not rely on strict wire-format rejection for numeric IDs or booleans. There are no keyword, URL, category, barcode, store, filter, proxy, pagination or bulk-scrape controls.

### Supported seller pages

- `https://www.pololu.com/product/3415` — **sensor carrier board**, not a bare ST sensor IC. The 400 cm maximum range is conditional, 2.6–5.5 V supply and I²C interface. Headers may require soldering.
- `https://www.pololu.com/product/4860` — **motor and encoder, no gearbox**; motor nominal voltage 12 V, 48 encoder counts per revolution, 8200 RPM no-load and extrapolated 1.8 A stall current (not a continuous rating). Seller MP/HP naming conflict is reported, not hidden.

Exact HTTPS host/path is enforced. Redirects, cross-product prices, hidden offers, foreign SKU descriptions, non-HTML responses, missing source identity and incompatible technical evidence are rejected. HTTP retrieval is direct, without proxies/retries; response size and per-request time are bounded. If fetching a requested page fails, the run fails rather than silently substituting an unrelated product.

### Outputs and API paths

One Apify Actor run is the **only operation**. There is **no public search**, **no pagination**, and no custom `search`, `item`, `categories`, `stock`, `specials` or paginated endpoints. The Actor fetches only the two allowlisted Pololu pages. A successful run writes 1–2 records to its default Dataset and stores `INPUT`/`OUTPUT` in its default key-value store.

| Apify API path (using IDs from the actual run) | Content |
| --- | --- |
| `GET /v2/actor-runs/{RUN_ID}` | Run status, build and storage IDs. Accept product data only if `SUCCEEDED`. |
| `GET /v2/datasets/{DATASET_ID}/items` | JSON product records, one per selected seller SKU, via the default Dataset API. |
| `GET /v2/key-value-stores/{STORE_ID}/records/INPUT` | Input as persisted by Apify after any platform normalization. |
| `GET /v2/key-value-stores/{STORE_ID}/records/OUTPUT` | Success count or sanitized failure diagnostic. |

**Successful `OUTPUT`**:

```json
{"success":true,"published_item_count":2,"source":"direct HTTP, unsigned; buyer prices require current run evidence"}
```

`published_item_count` matches the rows acknowledged by that successful run. A failure is not a success with zero rows; `STAGE0_FAILED` may be saved, including uncertainty over a partially acknowledged Dataset write.

Each Dataset record has exactly **14 top-level fields**: `seller`, `seller_sku`, `title`, `url`, `kind`, `price_currency`, `price_tiers`, `stock_quantity`, `stock_status`, `price_observation`, `source_kind`, `technical`, `conflicts`, `source_receipt`. The `technical` fields differ by product; source SHA256, HTTP 200, final URL, received UTC and response byte count are inside `source_receipt`.

The Dataset schema declares `overview`, `technical` and `provenance` **views**, which are projections of these same records, not separate API endpoints. The Output schema links Dataset results and KVS `OUTPUT`. Availability/stock quantity is **unknown** (`stock_quantity=null`); backorder permission is not proof of inventory. Prices are observed source-page **unit** amounts, not tax/shipping-inclusive order quotes or fixed commitments. `conflicts` preserves the motor `SOURCE_MP_HP_LABEL_CONFLICT` warning.

### Quality and limits

- Source identity, SKU/URL, seller, technical profile and provenance are cross-checked. The Draft-07 Dataset schema binds sensor fields to 3415 and motor fields to 4860; successful JSON record keys remain compatible with earlier versions.
- Prices must be positive, nonincreasing by quantity, and come from the main seller offer; supported breaks are 1, 5, 25 and 100 units. Missing fields are not invented. HTML hashes can change without a material product-data change.
- The runtime acquires and parses all selected pages before writing the Dataset. A failed Dataset write can still leave partial data; use the run status, saved `OUTPUT` and Dataset together when interpreting results.
- No authenticated Pololu API, stock quantity, full-catalogue coverage, checkout guarantee, product photo redistribution or commercial-data licence is claimed.

### Verified build and release boundaries

The private R18b NONLATEST build `fDcgGHCL8CRN0cbSI` (`0.0.4`) passed cloud acceptance on 17 November 2026. The R19 documentation review identified limitations in the earlier Dataset schema. R20 (`Gfqf8q0i312jOcuJY`, `0.0.5`) strengthened the schema and passed owner-bound source/build verification and two-SKU live cloud run `H71jCqsLPp18xVnj6` on 18 November 2026, with two valid records, `OUTPUT.success=true`, and source HTTP 200 for each product. The technical runtime is unchanged in this documentation revision.

This README records verified historical QA without asserting that a particular tag is currently `latest`; check the live tagged build at execution time. The Actor is **private** and uses **FREE** pricing as last checked on 18 November 2026. PPE billing, user rights, Store publication, commercial eligibility and Console view rendering are **separate acceptance gates**; the existence of an SDK event name does not prove charged events. Provider-level Actor description and summary README may be separately cached or stale, and updating a version's source files does not by itself prove those fields were synchronized.

# Actor input Schema

## `productIds` (type: `array`):

Choose one or both exact Pololu item IDs. #3415 is the VL53L1X carrier board; #4860 is a motor with encoder but no gearbox. Selected order is preserved. Unknown IDs, duplicates, and empty lists are rejected.

## `maxItems` (type: `integer`):

Limit the number of selected products to fetch, starting from the first item in Products to fetch. This is a maximum output count, not a page size or concurrency setting. Only 1 or 2 is supported.

## Actor input object example

```json
{
  "productIds": [
    "3415",
    "4860"
  ],
  "maxItems": 2
}
```

# Actor output Schema

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

Canonical item URLs, displayed quantity price breaks, technical facts, unknown-inventory safeguards, source response SHA256/UTC. The dataset may be empty after an input/source failure.

## `summary` (type: `string`):

JSON OUTPUT record; success and published_item_count on success, or STAGE0_FAILED diagnostic with partial write uncertainty on failure.

# 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 = {
    "productIds": [
        "3415",
        "4860"
    ],
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("dromb/pololu-us-engineering-parts-stage0").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 = {
    "productIds": [
        "3415",
        "4860",
    ],
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("dromb/pololu-us-engineering-parts-stage0").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 '{
  "productIds": [
    "3415",
    "4860"
  ],
  "maxItems": 2
}' |
apify call dromb/pololu-us-engineering-parts-stage0 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dromb/pololu-us-engineering-parts-stage0"
        }
    }
}
```

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/4nn2pHO7lnTg0kZCx/builds/785zqzSZhYzTMO2xs/openapi.json
