# SparkFun Electronics Catalog, Search & Product Details (`dromb/sparkfun-us-product-stage0`) Actor

Find SparkFun electronic components by keyword or category, export category product listings, or extract detailed SKU, prices, availability, documents and source evidence from direct product links. Five bounded workflows: search, categories, category, item, batch.

- **URL**: https://apify.com/dromb/sparkfun-us-product-stage0.md
- **Developed by:** [Dmitriy Gyrbu](https://apify.com/dromb) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% 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

## SparkFun Electronics Product Search, Categories & Technical Details

**Find SparkFun parts, browse electronic-component categories, capture prices and availability signals, and export product details into structured JSON or CSV.**

Use this Actor to build research lists for a bill of materials (BOM), find relevant sensors or boards, compare component offers, and collect vendor documentation. Its five workflows cover **search**, **categories**, **category listings**, **single-product details**, and **batch product details**. It is an *unofficial* tool, not affiliated with SparkFun.

### Why use it?

- **Find components quickly:** run a keyword search or navigate the SparkFun category directory, then export the resulting product links.
- **Check products for a BOM:** inspect seller-visible SKU, title, structured offer signals, availability, selected documentation and technical evidence on a product page.
- **Audit a catalog:** preserve source URLs, observation times and raw HTML hashes; review unresolved engineering conflicts rather than guessing specification values.
- **Work with your data:** the Apify Dataset contains one JSON record per returned category, listing item or product. Export JSON/CSV for your own analysis.

### Quick start (3 steps)

1. Open the Actor **Input** tab. For a ready-to-run two-item example, leave **What to collect** unset. Otherwise choose: `search`, `categories`, `category`, `item`, or `batch`. Paste the appropriate query or URL.
2. Click **Start** on an approved build. Use small limits for the first run: one listing page and up to 24 results.
3. Open **Storage → Dataset** for JSON/CSV results. Open the run **Key-value store → OUTPUT** for the operation summary; inspect the log and partial-write indicator if a run failed.

### Examples: copy into Input → JSON

#### 1. Search for components by keyword

```json
{"operation":"search","query":"ina228","page":1,"pages":1,"maxItems":24}
```

Returns lightweight result rows with `title`, available `sku`, `url`, `price`, `availability`, and `source` provenance. Rows from search are *not* independently verified product-detail cards.

#### 2. Discover the category directory

```json
{"operation":"categories"}
```

Returns category names, parent categories (when present), and `category_url`. Copy one returned URL into the next example.

#### 3. Browse a category

```json
{"operation":"category","categoryUrl":"https://www.sparkfun.com/sensors/current.html","page":1,"pages":2,"maxItems":40}
```

Collects up to 40 distinct product links from two native SparkFun category pages. `maxItems` limits *output*; it does not change the retailer's page size.

#### 4. Inspect one product

```json
{"operation":"item","url":"https://www.sparkfun.com/sparkfun-current-sensor-ina228-qwiic.html"}
```

Returns a product-detail record including SKU, title, source-backed offer signals, available technical links, and explicit warnings about conflicting INA228 shunt documentation.

#### 5. Inspect several product pages

```json
{"operation":"batch","batchUrls":[
  {"url":"https://www.sparkfun.com/sparkfun-current-sensor-ina228-qwiic.html"},
  {"url":"https://www.sparkfun.com/weather-meter-kit.html"}
]}
```

Processes 1–10 direct product pages. The full batch validates before Dataset writes begin; a later Dataset-write failure may still leave partially saved rows.

#### Legacy input remains supported

```json
{}
```

Without `operation` (or with an empty UI selection), the original `productUrls` contract remains active (one or two product links, with the same two defaults). The Input form can retain only unchanged optional UI prefills without disrupting the original two-product mode. Existing callers can continue sending `{"productUrls":[{"url":"..."}]}` unchanged; existing detailed product output fields are preserved.

### Output tab in Apify

The Actor declares a **Products and categories** overview and a **Source and technical evidence** view, plus a direct link to the `OUTPUT` run summary. These are two perspectives on the **same default Dataset**, not separate datasets or filters for record type. A search listing row is not a verified item card; check `operation`, `stage`, and `detail_verified` where supplied. Dataset schema/view acceptance in Apify must still be proven with a real build.

The `categories` mode currently returns **linked entries available in the official index**, not a certified complete category tree. Some subcategory names appear only as text; the Actor does not invent URLs for them. For deeper discovery, open a returned top-level category and use its native subcategory links in a separate run when supported.

### What do the results contain?

| Operation | Dataset row | Main fields |
| --- | --- | --- |
| `search` | Listing item | `operation`, `title`, `sku` if visible, `url`, `price`, `availability`, `source`, `detail_verified: false` |
| `categories` | Category | `operation`, `category`, `parent_category`, `category_url`, `source` |
| `category` | Listing item | Same as search; one row per unique product link |
| `item` | Detailed product | `sku`, `title`, `source`, `price`, `availability`, `specs`, `documents`, `field_conflicts`, `technical_claims` (object grouped by claim type, such as `shunt`), `engineering_reference` |
| `batch` | Detailed product | Same detailed product contract, one row per successfully validated URL |

**Price semantics:** price amounts are decimal strings or `null`. A listing currency is USD only when the matching visible price contains a `$` sign; numeric-only price metadata keeps the currency `null`. Promotional/related product tiles are excluded from listing rows; a detailed page accepts currency only from explicit structured evidence. Availability is a displayed signal, not a guarantee of local inventory. Missing fields stay missing.

**Engineering evidence:** for INA228, a documented 10 mΩ versus 15 mΩ shunt conflict remains unresolved; the Actor does not pick a speculative shipped-board value. Weather Meter Kit engineering-reference details are recorded separately from product-page claims.

On success, the `OUTPUT` object includes `status: "STAGE0_UNATTESTED"`, `rows`, `conflict_count`, and `release_ready: false`. On failure, the Actor attempts `STAGE0_FAILED` with `failure_phase` and `dataset_partial_write_possible`, so consumers can reconcile writes rather than blindly repeat.

### Limits and reliability

- **Search/category:** one to three native pages per run; up to 72 distinct listing rows and page numbers up to 20. No promise of exhaustive catalog coverage, stable upstream totals, or automatic alerts.
- **Categories:** one first-party category index page. If the directory markup changes, the parser fails rather than inventing category paths.
- **Item/batch:** one product or up to 10 direct canonical `https://www.sparkfun.com/<product-slug>.html` links. Deep technical extraction has been chiefly verified with SEN-31438 and SEN-15901; other pages may fail identity checks.
- **Network:** direct HTTPS to SparkFun only, bounded response size, timeouts, no redirects, no third-party scraper APIs and no captcha bypass. Pages that block access or change structure can fail.
- **Validation stage:** R18c was accepted as a **PRIVATE, NONLATEST, scoped cloud-tested build** on 19 November 2026 (build `0.0.3`, ID `y9T4xCWtKBtnCNRx1`). All five operations passed with real Apify runs: `categories` returned 13 valid directory entries, `search` 2 listing rows, `category` 12 listing rows, `item` 1 detailed card, and `batch` 2 detailed cards. Legacy empty input also returned 2 details; a foreign-host URL was rejected without Dataset writes. Document URLs were deduplicated; the INA228 10/15 mΩ shunt conflict remains unresolved. The limited sample is **not** proof of full catalog coverage, all product-page variants, commercial rights, complete seller availability, or publication readiness. A broader pagination/reliability and independent source-rights qualification is still required. R18d changes documentation only; the proven R18c cloud run evidence does not automatically attest any subsequent build or release of R18d.
- **Commercial use:** independent redistribution rights, prices, seller availability, privacy and publication gates remain outside this preview. This README does not certify permission to resell third-party data.

### R19 optional buyer enrichment — nonproduction candidate only

#### Follow search/category results to product details

Add `"includeDetails": true` to `search` or `category`, and set `maxItems` to no more than 10. Example:

```json
{"operation":"search","query":"ina228","page":1,"pages":1,"maxItems":5,"includeDetails":true}
```

Each listing keeps its existing `operation`, `sku`, `title`, `url`, `price`, `availability`, and `source` fields. If every PDP identity is verified against its listing, the row additionally contains `detail_verified: true`, `detail` (the full product object), and `stage: "CATALOG_LISTING_WITH_DETAIL_UNATTESTED"`. A changed listing title, conflicting SKU, invalid PDP or HTTP failure rejects the entire batch before Dataset writing. This uses additional first-party HTTP requests and does not promise a complete seller catalog.

For direct `item`/`batch` product records and optional `detail` objects, R19 adds `price_tiers` (seller-displayed quantity breaks when unambiguous), `price_tiers_state`, and stronger product buy-box availability extraction. Missing quantity breaks remain an empty array; the actor never invents a discount. These new fields do not remove or reinterpret historical columns. Technical/rights and completeness flags remain deliberately conservative.

R19 is a source-only NONPROD candidate. Existing R18d cloud evidence does **not** attest R19 execution. No deployed default, public listing, or pricing claim is made here.

### FAQ

**Do I need a specific item URL?** No for `search` or `categories`; yes for `item` and `batch`. For `category`, use a category URL from `categories`.

**Can I run a large daily sync?** Not yet. Pagination and output caps exist, but broad cloud reliability and Store acceptance have not been demonstrated. This Actor has no scheduler or automatic change alerts.

**Why are some listing SKUs blank?** The list page does not always display an SKU. `null` is intentional; use `item` for a detail check where supported.

**Can I use it as a complete procurement feed?** No. Taxes, freight, variants, fulfillment and product revision identity may be missing; do not use missing values as verified purchasing facts.

*Unofficial SparkFun research tool. The R18c evidence concerns a private NONLATEST build; R18d preserves the same runtime and is a documentation-only source change. `OUTPUT.release_ready=false` and `STAGE0_UNATTESTED` remain intentional. No public Store launch, billing or commercial rights have been approved.*

### Verified private cloud QA (R18c, 19 November 2026)

- Actor `TyMTfNcYSi9o6C55B`; build `y9T4xCWtKBtnCNRx1` (`0.0.3`, `sf-sparkfun-r18c-rc1`), state `SUCCEEDED`.
- Successful operation runs: `categories` `dcnLwwVtH87UGV7dv`, `search` `EyhQIjlbxfii6bxNd`, `category` `TcmGzyffxnaImAoYE`, `item` `mmWbUCBUk0cVei0fC`, `batch` `j4qtiRGz1kFtYrAtf`.
- Additional tests: empty legacy input `0j7fKYausU1hzUR2l` succeeded; forbidden external URL `fXwA0fWOPjbolK1oH` failed as expected without Dataset writes.
- Source-bound readbacks and the release evidence are recorded in [R72 verified release routes](https://docs.google.com/document/d/1ZS5rDWsbFT6jDnknpy-4_VSVLb_LqGoqzuxn5_YEJdE/edit). These results do **not** establish release-ready full buyer cards, `latest`, or public/commercial readiness.

### R20 nonproduction source hardening — planned candidate, not deployed

R20 corrects four false source-attribution cases reproduced in R19: related-product
stock and discount blocks must not be presented as the primary product's data;
visible discount scanning cannot escape its owner container. If an upstream
layout cannot be scoped reliably, quantity pricing is left empty with a
nonverified status instead of guessing. The seller's displayed discount levels
are **not** stock quantities, checkout quotes or a guarantee of current pricing.

Optional `includeDetails=true` now also adds `detail_offer_consistent` (`true`,
`false`, or `null`) and `detail_offer_discrepancies` (observed differences in
price or availability between the listing snapshot and the later PDP snapshot).
These fields are **only** on enriched listing rows. `detail_verified=true`
means the same-host PDP identity and parsing passed; it does **not** mean
independent procurement evidence, matching live checkout price or certification.
Two page snapshots can legitimately differ because inventory or pricing changed.
Original listing and PDP prices, source hashes and observation times are retained.

This R20 archive has local/offline verification only. Real R20 cloud build, live
HTML selector acceptance, free-user PPE billing, owner latest, public Store
publication and commercial redistribution rights have **not** been established.
No direct provider/production write is implied by this document.

# Actor input Schema

## `operation` (type: `string`):

Choose search results, category directory, category products, one product card, or a batch of cards. Leave it unset for the original 1–2 page workflow.

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

For search: product name, part number or keyword (2–80 letters/numbers/safe punctuation).

## `categoryUrl` (type: `string`):

For category: copy a SparkFun category URL from the categories output, e.g. https://www.sparkfun.com/sensors/current.html.

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

For item: one direct canonical SparkFun .html product page, e.g. https://www.sparkfun.com/weather-meter-kit.html.

## `page` (type: `integer`):

One-based search/category page number (1–20).

## `pages` (type: `integer`):

For search/category: 1–3 consecutive pages per run (max page 20).

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

For search/category: maximum 1–72 unique listing products per run. Does not modify upstream page size.

## `includeDetails` (type: `boolean`):

Optional for search/category: fetch and validate each listed product page, adding detail as a nested object. Requires maxItems <= 10. Extra seller requests; disabled unless explicitly true.

## `productUrls` (type: `array`):

Legacy input: 1–2 direct product pages if operation is omitted; also accepted for operation=item with exactly 1 URL. For multiple (up to 10), use batchUrls with operation=batch.

## `batchUrls` (type: `array`):

For batch: 1–10 unique direct SparkFun product page URLs. Every page must validate before any Dataset write.

## Actor input object example

```json
{
  "page": 1,
  "pages": 1,
  "maxItems": 24,
  "productUrls": [
    {
      "url": "https://www.sparkfun.com/sparkfun-current-sensor-ina228-qwiic.html"
    },
    {
      "url": "https://www.sparkfun.com/weather-meter-kit.html"
    }
  ]
}
```

# Actor output Schema

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

Mixed category, product-listing and item rows. Read operation and stage before interpreting fields.

## `runSummary` (type: `string`):

OUTPUT status, rows and partial-write information in the key-value store.

# 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 = {
    "page": 1,
    "pages": 1,
    "maxItems": 24,
    "productUrls": [
        {
            "url": "https://www.sparkfun.com/sparkfun-current-sensor-ina228-qwiic.html"
        },
        {
            "url": "https://www.sparkfun.com/weather-meter-kit.html"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("dromb/sparkfun-us-product-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 = {
    "page": 1,
    "pages": 1,
    "maxItems": 24,
    "productUrls": [
        { "url": "https://www.sparkfun.com/sparkfun-current-sensor-ina228-qwiic.html" },
        { "url": "https://www.sparkfun.com/weather-meter-kit.html" },
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("dromb/sparkfun-us-product-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 '{
  "page": 1,
  "pages": 1,
  "maxItems": 24,
  "productUrls": [
    {
      "url": "https://www.sparkfun.com/sparkfun-current-sensor-ina228-qwiic.html"
    },
    {
      "url": "https://www.sparkfun.com/weather-meter-kit.html"
    }
  ]
}' |
apify call dromb/sparkfun-us-product-stage0 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dromb/sparkfun-us-product-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/TyMTfNcYSi9o6C55B/builds/gHGNS0GxCDvABx5e2/openapi.json
