# Partida Cero | Construction Estimate Auditor (EN/ES) (`partidacero/partida-cero-construction-estimate-auditor`) Actor

- **URL**: https://apify.com/partidacero/partida-cero-construction-estimate-auditor.md
- **Developed by:** [Partida Cero](https://apify.com/partidacero) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$6.99 / 1,000 completed estimate audits

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Partida Cero — Construction Estimate Auditor (English / Español)

**Find arithmetic inconsistencies in construction estimates before they become expensive.** Upload a text-based PDF, Excel XLSX or CSV and receive a structured consistency check plus a downloadable PDF report.

### Features

- Checks **quantity × unit price** against stated amounts.
- Compares **declared pre-tax total**, **sum of line amounts**, and **recalculated total** when the document supports them.
- Flags possible duplicate lines, zero or negative quantities, and unusual prices.
- For supported detailed PDF layouts, verifies chapter totals and available labor/materials breakdowns.
- Outputs **PDF, JSON, findings CSV and extracted-items CSV**.
- Report language **English by default**, or **Español**.
- Independently chooses **numeric convention**: auto, `1,234.56` or `1.234,56`.
- Can detect explicit `EUR`, `USD`, `GBP` markers or accept a selected currency. **No conversion occurs.** Unknown currency appears as `UNSPECIFIED`.

### Quick start

1. Open **Input** and upload a document using the Apify file uploader. Files are stored in an Apify Key-Value Store. External file URLs are not supported by this version.
2. Choose the output language (`English` or `Español`).
3. Choose the **number format used inside the source file**, independently from the report language; automatic detection is the default, but manually select a convention if a format is ambiguous.
4. Select a currency if the document doesn't explicitly state one.
5. Start the Actor; if successful, download the PDF/CSV/JSON reports from **Output**.

**Important:** Source line-item descriptions are preserved exactly as written, so a Spanish source document will still list its original Spanish descriptions in an English-language report.

### Current limitations

This is an **arithmetic consistency check, not a professional appraisal, certification, price comparison, or guarantee of completeness**. It does not validate building codes, quantities from drawings, market price levels, or tax compliance. It can miss errors. It does not perform OCR. Unsupported/ambiguous documents are rejected. On some PDF layouts, coverage must be reviewed against the original estimate.

Maximum document size: 5 MB; text-based PDF up to 25 pages; XLSX with up to 6 processed sheets; up to 5,000 line items.

### Privacy and storage

Uploaded documents are processed using Apify storage and compute. Before uploading client data, obtain permission and verify retention and access settings. Avoid personal or confidential documents during testing.

### Pricing

This Actor uses **Pay per event** pricing when the publisher has configured the `audit-complete` event in Apify Console. One event is charged after a successfully completed audit. If the document cannot be interpreted safely, no `audit-complete` event is charged. The event price is displayed on the Apify Store listing and is set by the publisher, not the source code. Apify platform usage may affect the creator's margin; users should consult the pricing panel before running.

***

### Español — Auditoría de presupuestos de obra

Sube un **PDF digital, Excel o CSV** y obtén un informe que comprueba multiplicaciones, totales, posibles duplicados y cantidades o precios sospechosos. Selecciona **Español** en el campo **Report language** para obtener las incidencias y el informe PDF en español. Elige el formato numérico de tu documento (`1.234,56` o `1,234.56`) de forma independiente. Se admiten EUR, USD y GBP como etiquetas, **sin conversión de divisas**.

**Límites:** no hay OCR, ni verificación de precios de mercado, mediciones físicas o legislación. Un informe sin errores detectados **no demuestra** que el presupuesto sea correcto. Antes de subir documentos de clientes, revisa sus permisos y la retención de Apify.

**Modelo comercial:** se factura el evento `audit-complete` por cada auditoría completada cuando el titular haya configurado su precio en Apify. Comprueba el precio en la ficha antes de ejecutar.

# Actor input Schema

## `fileUrl` (type: `string`):

Upload to an Apify Key-Value Store with the file picker. External links are not supported; max 5 MB.

## `language` (type: `string`):

Language for findings, summaries, and the downloadable PDF. Original line descriptions remain unchanged.

## `numberFormat` (type: `string`):

Select the numeric convention used INSIDE the estimate, independently from report language.

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

The tool NEVER converts amounts. If currency is not present, select it or results will be marked UNSPECIFIED.

## Actor input object example

```json
{
  "language": "en",
  "numberFormat": "auto",
  "currency": "auto"
}
```

# Actor output Schema

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

No description

## `reportPdf` (type: `string`):

No description

## `reportJson` (type: `string`):

No description

## `reportCsv` (type: `string`):

No description

## `extractedCsv` (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("partidacero/partida-cero-construction-estimate-auditor").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("partidacero/partida-cero-construction-estimate-auditor").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 partidacero/partida-cero-construction-estimate-auditor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,partidacero/partida-cero-construction-estimate-auditor"
        }
    }
}
```

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/wenbmpMj2M2BDhL2c/builds/sx7XbRT6IBcYUJZEN/openapi.json
