# Supplier Price List PDF/Excel to JSON & Changes (`invincible_nova/supplier-price-list-parser`) Actor

Normalize supplier XLSX, CSV, and text-based PDF price lists into product rows with source evidence, review warnings, CSV export, and optional price-change comparison.

- **URL**: https://apify.com/invincible\_nova/supplier-price-list-parser.md
- **Developed by:** [Sergei Pechenov](https://apify.com/invincible_nova) (community)
- **Categories:** E-commerce, Developer tools
- **Stats:** 1 total users, 1 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?

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

## Supplier Price List PDF/Excel to JSON & Changes

Normalize supplier XLSX, CSV, and text-based PDF price lists into consistent product rows for Sheets, procurement workflows, e-commerce catalogs, n8n/Make, and AI agents. Every row keeps its source sheet/row or PDF page/line, confidence, and explicit review warnings. Add the previous price list to detect added, removed, and price-changed SKUs.

### Why this is different

This is not a generic PDF table dump. It maps common supplier headers to a stable price schema, preserves uncertain rows instead of silently dropping them, exports clean CSV, and compares price-list revisions.

### Inputs

- One current `.xlsx`, `.csv`, or text-based `.pdf`, by public HTTPS URL or file upload.
- Optional previous document in any supported format.
- Optional worksheet, 1-based XLSX/CSV header row, exact column mapping, default currency, and decimal separator.

The MVP intentionally does not support legacy `.xls`, password-protected files, scanned/OCR PDFs, macros, fuzzy item-master matching, human review, or ERP writeback.

### Output row

```json
{
  "status": "ok",
  "change": "priceChanged",
  "sku": "A-100",
  "name": "Stainless steel valve",
  "price": 42.5,
  "currency": "USD",
  "uom": "EA",
  "pack": "1",
  "confidence": 1,
  "warnings": [],
  "source": { "fileName": "prices.xlsx", "sheet": "Products", "row": 18, "page": null, "line": null }
}
```

Rows without an SKU, name, or parseable price are still returned as `needsReview`. The Key-value store also contains `SUMMARY`, `NORMALIZED.csv`, and—when a previous list is supplied—`CHANGES.csv`.

### Automatic mapping

The Actor recognizes common variants such as SKU, part number, item number, product code, description, list/unit/net price, currency, UOM, pack size, brand, stock, and availability. Use `headerRow` or `columnMapping` when a supplier uses unusual labels.

### Safety and limits

- 20 MB input limit, 25,000 emitted rows, the first 256 worksheet columns, and up to 100 text-PDF pages.
- Only public HTTPS URLs; credentials and private/reserved network targets are blocked.
- XLSX archive entry and expanded-size limits reduce zip-bomb risk.
- Formula text or cached values may be read, but formulas and macros are never executed; macro-enabled workbooks are rejected.
- Temporary files are deleted after processing. Output remains in your run storage according to Apify settings.
- Process only documents you are allowed to use.

### PDF quality

PDF support is for text-based, consistently aligned price lists. The Actor searches beyond covers and catalog preambles, recognizes repeated table headers, and keeps PDF page/line evidence. PDF is a display format, so rows with ambiguous alignment may be marked `needsReview`. Scanned PDFs fail explicitly instead of producing fabricated rows.

### Support

Open a GitHub Issue with a public sample file, the expected headers/row, actual output, and run ID. Never post confidential supplier files publicly.

# Actor input Schema

## `documentUrl` (type: `string`):

Public HTTPS URL to an XLSX, CSV, or text-based PDF.

## `document` (type: `string`):

Upload XLSX, CSV, or text-based PDF. Do not upload data you are not allowed to process.

## `previousDocumentUrl` (type: `string`):

Optional previous version for added, removed, and price-changed SKUs.

## `previousDocument` (type: `string`):

Optional previous XLSX, CSV, or PDF.

## `sheetName` (type: `string`):

Optional XLSX worksheet. By default all visible sheets are inspected.

## `headerRow` (type: `integer`):

Optional 1-based XLSX/CSV header row. PDF table headers are detected throughout the document.

## `columnMapping` (type: `object`):

Optional exact header names when automatic synonyms are insufficient.

## `defaultCurrency` (type: `string`):

ISO code used only when no currency is present, for example USD or EUR.

## `decimalSeparator` (type: `string`):

Choose the numeric convention or let the Actor infer it per value.

## `maxRows` (type: `integer`):

Safety limit for normalized rows.

## Actor input object example

```json
{
  "documentUrl": "https://inventory.data.gov/dataset/67567804-073d-40ad-a710-2b0bed8b84e2/resource/3b7ed6b7-7dce-42f1-852d-6465e3e790e4/download/nsn-extract-2-21-23.xls.xlsx",
  "defaultCurrency": "USD",
  "decimalSeparator": "auto",
  "maxRows": 100
}
```

# Actor output Schema

## `products` (type: `string`):

No description

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

No description

## `normalizedCsv` (type: `string`):

No description

## `changesCsv` (type: `string`):

No description

# 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("invincible_nova/supplier-price-list-parser").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("invincible_nova/supplier-price-list-parser").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 invincible_nova/supplier-price-list-parser --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,invincible_nova/supplier-price-list-parser"
        }
    }
}

```

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/vamS53PnR8buIWfBw/builds/w86cPlrgILgLSRnth/openapi.json
