# Octopart Scraper — MPN Price, Stock & Multi-Distributor Offers (`crawloop/octopart-scraper`) Actor

Octopart scraper for MPN / BOM lookup and multi-distributor offer enrichment. Compare DigiKey, Mouser, Arrow, Farnell and broker price breaks, stock, datasheets and alternates — Octopart / Nexar API alternative for procurement workflows.

- **URL**: https://apify.com/crawloop/octopart-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, AI, Other
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 1,000 product results

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

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

## Octopart Scraper — MPN Price, Stock & Multi-Distributor Offers

> **Electronics aggregator data** — Octopart cross-distributor price & stock next to DigiKey and RS Online catalog enrichment.

| DigiKey | RS Online | Octopart |
| :--- | :--- | :--- |
| [DigiKey Product Scraper](https://apify.com/crawloop/digikey-product-scraper) | [RS Online Scraper](https://apify.com/crawloop/rs-online-scraper) | **Octopart Scraper** ◄── you are here |

> **Disclaimer:** Unofficial Actor for publicly accessible Octopart search and part-detail pages. **Octopart**, **Nexar**, **Altium**, and related names are trademarks of their respective owners. Not affiliated with, sponsored by, or endorsed by Altium or Nexar. Provided for informational and research purposes only. You are responsible for complying with applicable laws and site terms of use.

**Octopart scraper** / **Octopart API alternative** for Apify — look up electronic components by **manufacturer part number (MPN)**, **search URL**, or **part URL**, then export **multi-distributor offers**, **quantity-break pricing**, **live stock**, **authorized vs independent** flags, **datasheets**, **parametric specs**, and **alternates** as clean JSON. Run from the Console, **Python**, **Node.js**, or **MCP** / AI assistants.

Compare DigiKey, Mouser, Arrow, Farnell, Newark, RS, TME, Verical, and independent brokers in **one Octopart search** — built for **BOM price comparison**, **shortage monitoring**, and **procurement enrichment** without enterprise Nexar part limits.

***

### Key Features

- **MPN / BOM batch lookup** — Octopart search across authorized and independent distributors
- **Nested or flat offers** — one product record with `offers[]`, or one spreadsheet row per distributor line
- **Expanded price tables** — opens “Show All” on part pages so you get the full distributor ladder, not only the first five rows
- **Price breaks + stock** — qty tiers (1 / 10 / 100 / 1k / 10k), min/max price, currency, SKU, packaging
- **Part details enrichment** — description, datasheet, parametric attributes, alternates
- **Filters** — authorized-only, independent-only, in-stock, exact MPN match
- **Currency / country context** — USD/US by default; pass `currency` + `country` for regional pricing
- **Stealth browser** — Camoufox + sticky residential proxy (PerimeterX-aware)

***

### Use Cases

| Use case | What you get | Why it helps |
| :--- | :--- | :--- |
| **BOM cross-distributor quote** | MPN → DigiKey + Mouser + Arrow + brokers in one item | First-pass quote without N single-distributor runs |
| **Authorized vs independent** | `distributorType` + stock/price | Spot broker pricing vs franchised channels |
| **Shortage / allocation** | Stock + price breaks per seller | See who still has inventory |
| **Alternate discovery** | Alternates from the part page | Mitigate EOL / NRFND risk |
| **Nexar API alternative** | Pay-per-result Octopart data | Avoid monthly part-limit plans for ad-hoc BOM work |

***

### When to use this Actor

- You need an **Octopart multi-distributor compare** for known MPNs
- **BOM enrichment** / price intelligence before diving into a single authorized catalog
- An **Octopart / Nexar API alternative** without enterprise credentials
- Spreadsheet export of flat distributor offers (`outputMode: offers`)

### When not to use this Actor

- Official **Nexar GraphQL API** contracts with your own SLA / part limits
- Deep **DigiKey / RS** catalog parametrics only — use the sibling Actors
- Cart, RFQ, checkout, BOM-tool automation, or account login flows

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `partNumbers` | Array | — | MPNs for Octopart search |
| `searchUrls` | Array | — | Octopart `/search?q=` URLs |
| `partUrls` | Array | — | `/part/{mfr}/{MPN}` URLs |
| `outputMode` | Enum | `product` | `product` (nested offers) or `offers` (flat rows) |
| `maxItems` | Integer | `50` | Cap on dataset items |
| `maxOffersPerPart` | Integer | — | Cap offers kept per MPN |
| `includeDetails` | Boolean | `true` | Fetch part page enrichment |
| `includeTechnicalData` | Boolean | `true` | Parametric attributes |
| `includeAlternates` | Boolean | `true` | Alternate MPNs |
| `authorizedOnly` | Boolean | `false` | Authorized only |
| `independentOnly` | Boolean | `false` | Independent only |
| `inStockOnly` | Boolean | `false` | Drop zero/missing stock |
| `exactMatchOnly` | Boolean | `false` | Exact MPN/SKU match only |
| `currency` | String | `USD` | Pricing currency |
| `country` | String | `US` | Stock/pricing country |
| `browserEngine` | Enum | `auto` | `auto` / `camoufox` / `firefox` |
| `requestDelaySecs` | Number | `1.5` | Delay between navigations |
| `proxyConfiguration` | Object | Residential US | Apify Proxy sticky session |

#### Input Example — BOM MPN lookup

```json
{
  "partNumbers": ["STM32F405RGT6", "LM358DR"],
  "outputMode": "product",
  "maxItems": 25,
  "includeDetails": true,
  "currency": "USD",
  "country": "US",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

#### Input Example — flat offers spreadsheet

```json
{
  "partNumbers": ["STM32F405RGT6"],
  "outputMode": "offers",
  "authorizedOnly": true,
  "inStockOnly": true,
  "maxItems": 200
}
```

***

### Output

#### Product mode (`recordType: product`)

| Field | Description |
| :--- | :--- |
| `mpn` / `manufacturer` | Part identity |
| `offers[]` | Distributor rows with price breaks, stock, type, buy URL |
| `offersCount` / `distributorCount` | Counts |
| `qtyAvailableValue` / `unitPriceValue` | Best stock / min price summary |
| `compliance` / `technicalData` | Detail enrichment |
| `alternates` | Alternate MPNs |
| `datasheetUrl` / `detailUrl` / `url` | Links |

#### Offers mode (`recordType: listing`)

One row per distributor offer: `distributor`, `distributorType`, `distiPartNumber`, `qtyAvailableValue`, `unitPriceValue`, `priceBreaks`, `currency`, `buyUrl`, etc.

#### Example product (abbreviated)

```json
{
  "source": "octopart",
  "recordType": "product",
  "query": "STM32F405RGT6",
  "mpn": "STM32F405RGT6",
  "manufacturer": "STMicroelectronics",
  "url": "https://octopart.com/search?q=STM32F405RGT6&currency=USD&country=US",
  "offersCount": 5,
  "unitPriceValue": 6.638,
  "qtyAvailableValue": 14692,
  "currency": "USD",
  "offers": [
    {
      "distributor": "Newark",
      "distributorType": "authorized",
      "mpn": "STM32F405RGT6",
      "stock": 14692,
      "priceBreaks": [
        {"qty": 1, "price": 11.08, "currency": "USD"},
        {"qty": 10, "price": 8.67, "currency": "USD"}
      ],
      "currency": "USD"
    }
  ],
  "scrapedAt": "2026-08-11T12:00:00Z"
}
```

***

### Integration examples

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/octopart-scraper').call({
  partNumbers: ['STM32F405RGT6'],
  outputMode: 'product',
  maxItems: 10,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0]?.offersCount, items[0]?.unitPriceValue);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("crawloop/octopart-scraper").call(
    run_input={
        "partNumbers": ["STM32F405RGT6"],
        "outputMode": "product",
        "maxItems": 10,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("mpn"), item.get("offersCount"), item.get("unitPriceValue"))
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~octopart-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"partNumbers":["STM32F405RGT6"],"outputMode":"product","maxItems":5}'
```

***

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp).
Connect your Apify account, then call this Actor by its Store ID / name (`crawloop/octopart-scraper`).

Example prompts:

- "Run Octopart Scraper for STM32F405RGT6 and LM358DR and return nested distributor offers as JSON"
- "Scrape Octopart BOM prices with inStockOnly and summarize the cheapest authorized seller per MPN"
- "Chain Octopart Scraper then DigiKey Product Scraper to enrich the top MPN with full DigiKey parametrics"

***

### Suite next step

After an Octopart multi-distributor pass, enrich the winning MPN on [DigiKey Product Scraper](https://apify.com/crawloop/digikey-product-scraper) or [RS Online Scraper](https://apify.com/crawloop/rs-online-scraper) for deeper catalog parametrics and lifecycle fields.

***

### FAQ

**Is this the official Nexar / Octopart API?**\
No. This Actor reads publicly rendered Octopart search and part pages. For contracted API access, use Nexar directly.

**Why residential proxy?**\
Octopart fronts PerimeterX bot protection. Sticky Apify RESIDENTIAL sessions materially improve success rate versus datacenter IPs.

**Product vs offers mode?**\
`product` returns one dataset item per MPN with nested `offers[]` (best for BOM APIs). `offers` flattens each distributor line into its own row (best for spreadsheets / BI).

**Can I get full quantity price breaks?**\
Yes — after expanding the offer table, visible qty ladders (typically 1 / 10 / 100 / 1,000 / 10,000) are exported on each distributor row.

**How do I scrape Octopart with Python or Node.js?**\
Use the Apify Client snippets above, or call the Actor from MCP / an AI assistant with the prompts in this README.

***

### Related Actors

| Actor | Role |
| :--- | :--- |
| [DigiKey Product Scraper](https://apify.com/crawloop/digikey-product-scraper) | Authorized DigiKey catalog / parametrics |
| [RS Online Scraper](https://apify.com/crawloop/rs-online-scraper) | RS components catalog enrichment |
| **Octopart Scraper** ◄── you are here | Multi-distributor MPN price & stock |

# Actor input Schema

## `partNumbers` (type: `array`):

Manufacturer part numbers for Octopart /search?q= lookup. Primary BOM input.

## `searchUrls` (type: `array`):

Octopart search URLs like https://octopart.com/search?q=STM32F405RGT6 (query is parsed from q=).

## `partUrls` (type: `array`):

Octopart /part/{manufacturer}/{MPN} URLs. Runs search aggregation plus detail enrichment.

## `outputMode` (type: `string`):

product = one dataset item per MPN with nested offers\[]. offers = one listing row per distributor offer (spreadsheet-friendly).

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

Stop after this many dataset items (products or flat offer rows).

## `maxOffersPerPart` (type: `integer`):

Optional cap on distributor offer rows kept per MPN after filters.

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

Fetch /part page for datasheet, description and enrichment (product mode).

## `includeTechnicalData` (type: `boolean`):

Include parametric attributes from the part page when available.

## `includeAlternates` (type: `boolean`):

Include alternate MPNs from the part page.

## `authorizedOnly` (type: `boolean`):

Keep authorized / franchised distributor offers only (when badge is detected).

## `independentOnly` (type: `boolean`):

Keep independent / broker-style offers only.

## `inStockOnly` (type: `boolean`):

Drop offers with missing or zero stock.

## `exactMatchOnly` (type: `boolean`):

Drop offer rows whose SKU/MPN does not exactly equal the query.

## `currency` (type: `string`):

Octopart currency context (USD, EUR, …).

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

Octopart country / region context for stock & pricing (US, DE, …).

## `browserEngine` (type: `string`):

auto prefers Camoufox (PerimeterX); firefox uses Playwright Firefox fallback.

## `requestDelaySecs` (type: `number`):

Pause between navigations on the sticky browser session.

## `proxyConfiguration` (type: `object`):

Apify Proxy settings. Sticky RESIDENTIAL US sessions recommended for PerimeterX.

## Actor input object example

```json
{
  "partNumbers": [
    "LM358DR"
  ],
  "outputMode": "product",
  "maxItems": 50,
  "includeDetails": true,
  "includeTechnicalData": true,
  "includeAlternates": true,
  "authorizedOnly": false,
  "independentOnly": false,
  "inStockOnly": false,
  "exactMatchOnly": false,
  "currency": "USD",
  "country": "US",
  "browserEngine": "auto",
  "requestDelaySecs": 1.5,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Default dataset items.

# 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 = {
    "partNumbers": [
        "LM358DR"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/octopart-scraper").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 = {
    "partNumbers": ["LM358DR"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/octopart-scraper").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 '{
  "partNumbers": [
    "LM358DR"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call crawloop/octopart-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/pi1vwEfgKcKBZ5qgY/builds/8Rtpn4Kr4Kf3fVxWR/openapi.json
