# LATAM Industrial, Fleet & Real Estate Auction Aggregator (`francescopacifico1905/latam-auction-aggregator`) Actor

Multi-modal B2B auction intelligence aggregator across Superbid Exchange (BR, AR, CO, CL, PE), Brazil's official PNCP public asset auctions, and user-supplied CAIXA real estate CSV feeds. Extracts bid velocity, discount vs appraisal/FIPE, judicial/fiduciary metadata, and edital/matricula PDFs.

- **URL**: https://apify.com/francescopacifico1905/latam-auction-aggregator.md
- **Developed by:** [Francesco Pacifico](https://apify.com/francescopacifico1905) (community)
- **Categories:** E-commerce, Automation, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 extracted & enriched auction lots

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/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

## LATAM Industrial, Fleet & Real Estate Auction Aggregator

Multi-modal B2B auction intelligence aggregator across **Superbid Exchange (5 LATAM countries)**, **Brazil's official PNCP Public Asset Auctions (`Leilão Eletrônico` & `Leilão Presencial`)**, and **bring-your-own CAIXA Imóveis CSV feeds (`Lista_imoveis_<UF>.csv`)**.

Built HTTP-first for low-latency REST workflows, `n8n` / `Make` pipelines, and autonomous AI agent discovery via the Apify MCP Server (`https://mcp.apify.com`).

***

### Key Capabilities & Data Sources

| Source | Coverage | Key Intelligence Extracted |
|---|---|---|
| **`SUPERBID`** | Brazil (`BR`), Argentina (`AR`), Colombia (`CO`), Chile (`CL`), Peru (`PE`) | Industrial machinery, heavy construction & agri equipment, commercial fleets, distressed real estate, IT hardware, scrap, marine/aviation, `bidsCount`, `biddersCount`, `visitsCount`, `appraisalOrReferencePrice` (FIPE / Valor Contábil), `discountPercent`, `matriculaUrl`, `editalUrl`, `appraisalReportUrl`, judicial process/court |
| **`PNCP_LEILAO`** | Brazil Federal, State & Municipal Public Agencies (`pncp.gov.br`) | Official public asset liquidation auctions (`codigoModalidadeContratacao` `1` & `13`), estimated reserve price, buyer authority & CNPJ, UF/city, attached **Edital PDF** URLs, real estate registry codes |
| **`CAIXA_CSV`** | Brazil Distressed Real Estate (`caixaCsvText` or user-hosted `caixaCsvUrls`) | Streaming byte-slice parser for ISO-8859-1 / UTF-8 `Lista_imoveis_<UF>.csv` feeds (`N° do imóvel` through `Link de acesso`), BRL pricing normalization, discount %, FGTS/financing/occupancy parsing, and Matrícula PDF URLs |

> **CAIXA Anti-CAPTCHA Boundary**: `venda-imoveis.caixa.gov.br` enforces Radware Bot Manager CAPTCHA challenges on direct automated requests. This Actor **never** sends requests to or bypasses challenges on `*.caixa.gov.br`. Any `*.caixa.gov.br` URL supplied in `caixaCsvUrls` is cleanly skipped and emitted as a **free** `CAPTCHA_GATED` diagnostic row (`billed: false`), while inline `caixaCsvText` or CSV mirrors you host on S3, GCS, or Apify Key-Value Store are parsed normally.

***

### Execution Modes & Stateful Delta Diffing

1. **`search` Mode (Market Discovery & Filtering)**:
   - Filter across `countries` (`BR`, `AR`, `CO`, `CL`, `PE`), `assetCategory` (`INDUSTRIAL_MACHINERY`, `HEAVY_AND_AGRI`, `TRUCKS_AND_BUSES`, `CARS_AND_MOTOS`, `REAL_ESTATE`, `TECH_AND_IT`, `SCRAP_AND_MATERIALS`, `MARINE_AND_AVIATION`), `saleModality` (`ALL`, `AUCTION`, `SEALED_RFQ_OR_DIRECT`, `JUDICIAL_ONLY`), `keyword`, Brazilian `stateUf`, `minDiscountPercent`, `minPrice`, and `maxPrice`.
   - Sort via `RELEVANCE`, `CLOSING_SOON`, `MOST_BIDS`, `PRICE_ASC`, `PRICE_DESC`, or `DISCOUNT_DESC`.
2. **`watchlist_refresh` Mode (High-Frequency Bid & Price Polling)**:
   - Monitor specific lots by canonical ID (`superbid:<id>`, numeric ID, or `pncp:<cnpj>-1-<seq>/<year>[:item]`) at lower per-lot cost.
   - Pair with `stateStoreName` + `onlyEmitChanges: true` + `webhookUrl` to detect price jumps, new bids, and `OPEN -> SOLD/CLOSED` transitions across scheduled runs without paying for unchanged lots.

***

### Pay-Per-Event (PPE) Pricing

| Event | Trigger | Standard | Bronze (10% off) | Silver (20% off) | Gold (20% off) |
|---|---|---|---|---|---|
| `apify-actor-start` | Actor run start | `$0.00005` | `$0.00005` | `$0.00005` | `$0.00005` |
| `auction-lot-extracted` | Emitted `OK` lot in `search` mode | `$0.0035` (`$3.50 / 1k`) | `$0.00315` | `$0.0028` | `$0.0028` |
| `watchlist-bid-refresh` | Emitted `OK` lot in `watchlist_refresh` mode | `$0.0020` (`$2.00 / 1k`) | `$0.0018` | `$0.0016` | `$0.0016` |
| Diagnostic / Unchanged Rows | `INVALID_INPUT`, `NOT_FOUND`, `CAPTCHA_GATED`, `UPSTREAM_ERROR`, or unchanged skipped lots | **Free (`$0.00`)** | **Free** | **Free** | **Free** |

***

### Input Examples

#### Search Active Heavy Machinery & Fleet Lots (BR + CO)

```json
{
    "mode": "search",
    "countries": ["BR", "CO"],
    "assetCategory": "HEAVY_AND_AGRI",
    "saleModality": "ALL",
    "keyword": "Caterpillar",
    "sortBy": "MOST_BIDS",
    "includeSuperbid": true,
    "includePncpPublicAuctions": true,
    "maxItems": 25
}
```

#### Poll Watchlist With Change-Only Webhook Alerts

```json
{
    "mode": "watchlist_refresh",
    "watchlistLotIds": [
        "superbid:4812031",
        "pncp:00394452000103-1-000124/2026:1"
    ],
    "onlyEmitChanges": true,
    "stateStoreName": "latam-auction-watchlist",
    "webhookUrl": "https://hooks.example.com/auctions",
    "maxItems": 100
}
```

***

### Sample Output Record

```json
{
    "lotId": "superbid:4812031",
    "externalId": "4812031",
    "source": "SUPERBID",
    "mode": "search",
    "status": "OK",
    "billed": true,
    "billedEvent": "auction-lot-extracted",
    "errorMessage": null,
    "country": "BR",
    "title": "Escavadeira Hidráulica Caterpillar 320D2L Ano 2018",
    "description": "Equipamento em operação. Valor contábil: R$ 450.000,00.",
    "assetCategory": "HEAVY_AND_AGRI",
    "categoryLabel": "Máquinas Pesadas e Agrícolas",
    "subCategoryLabel": "Escavadeiras",
    "legalSaleType": "CORPORATE",
    "modalityLabel": "Leilão",
    "lotStatus": "OPEN",
    "currency": "BRL",
    "currentPrice": 285000,
    "openingOrMinimumPrice": 220000,
    "appraisalOrReferencePrice": 450000,
    "currentPriceUsdEstimate": 51300,
    "discountPercent": 36.67,
    "bidsCount": 14,
    "biddersCount": 5,
    "visitsCount": 612,
    "closingAt": "2026-11-20T17:00:00.000Z",
    "openingAt": "2026-11-05T13:00:00.000Z",
    "pracaRound": "1ª Praça",
    "sellerName": "Construtora Exemplo S/A",
    "auctioneerOrStoreName": "Superbid Exchange",
    "location": {
        "city": "Campinas",
        "state": "SP",
        "country": "Brasil",
        "address": null,
        "latitude": -22.9099,
        "longitude": -47.0626
    },
    "judicial": null,
    "financingAndTerms": {
        "acceptsFinancing": null,
        "acceptsFgts": null,
        "acceptsProposals": true,
        "allowsCreditCard": false,
        "buyerCommissionPercent": 5,
        "occupancyStatus": "UNKNOWN"
    },
    "documents": {
        "lotUrl": "https://exchange.superbid.net/oferta/4812031",
        "thumbnailUrl": "https://cdn.superbid.net/example.jpg",
        "matriculaUrl": null,
        "editalUrl": "https://cdn.superbid.net/edital.pdf",
        "appraisalReportUrl": "https://cdn.superbid.net/laudo.pdf",
        "attachmentsCount": 2
    },
    "diff": {
        "isNewLot": true,
        "hasChanges": true,
        "priceChanged": false,
        "previousPrice": null,
        "priceDelta": null,
        "newBidsCount": 0,
        "statusChanged": false,
        "stateHash": "4a1f9c2e8b0d31a7"
    },
    "checkedAt": "2026-11-14T14:30:00.000Z"
}
```

***

### MCP & Automation Integrations (`n8n` / Apify MCP)

Use with Apify's hosted MCP server (`https://mcp.apify.com`) so AI agents can query distressed industrial CapEx and LATAM fleet inventory on demand:

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": ["mcp-remote", "https://mcp.apify.com/?actors=francescopacifico1905/latam-auction-aggregator"]
        }
    }
}
```

For `n8n` or scheduled CRON workflows:

1. Run `search` daily with `stateStoreName` set (e.g. `"capex-deal-sourcing"`) and `onlyEmitChanges: true`.
2. Route high-discount (`discountPercent >= 30`) or judicial lots directly into Slack, HubSpot, or underwriting spreadsheets via `webhookUrl` or the dataset items endpoint.

***

### Related Distressed Asset & Industrial Auction Intelligence

Explore the rest of the multi-region distressed assets and industrial liquidation suite:

| Region | Actor | Coverage & Core Value |
|---|---|---|
| **EU / Italy** | **[Italy PVP & Fallco Judicial Auctions, Machinery & OMI Spread (`francescopacifico1905/italy-judicial-auctions`)](https://apify.com/francescopacifico1905/italy-judicial-auctions)** | Italian Ministry of Justice PVP + Fallco Rete IVG judicial lots (real estate, machinery, fleets, company branches) enriched with Agenzia delle Entrate OMI EUR/sqm spread & selective appraisal PDF extraction |
| **LATAM** | **[LATAM Industrial & Judicial Auction Aggregator (`francescopacifico1905/latam-auction-aggregator`)](https://apify.com/francescopacifico1905/latam-auction-aggregator)** | Brazil Caixa Econômica Federal real estate + Superbid & Sold LATAM industrial machinery, heavy equipment, commercial vehicles & judicial insolvency lots |

# Actor input Schema

## `mode` (type: `string`):

Select 'search' to discover and filter active auction lots, or 'watchlist_refresh' to poll current bids, prices, and status changes for specific lot IDs.

## `countries` (type: `array`):

Target LATAM countries for Superbid Exchange queries: BR (Brazil), AR (Argentina), CO (Colombia), CL (Chile), PE (Peru). PNCP and CAIXA feeds are Brazil-only.

## `assetCategory` (type: `string`):

Filter by normalized industrial, fleet, real estate, or material asset category.

## `saleModality` (type: `string`):

Filter by auction legal modality (public auction, sealed RFQ/direct offer, or judicial-only).

## `keyword` (type: `string`):

Optional search keyword matched against lot title, description, asset model, or CNPJ seller (e.g., 'Caterpillar', 'empilhadeira', 'Scania', 'galpao', 'terreno').

## `stateUf` (type: `string`):

Optional 2-letter Brazilian state code filter (e.g., SP, MG, PR, RJ, RS, BA).

## `minDiscountPercent` (type: `integer`):

Keep only lots with computed discount >= this percentage (0 to 99). Computed from appraisal/FIPE/accounting reference price when published.

## `minPrice` (type: `integer`):

Optional lower bound on currentPrice (in the lot's local currency, e.g., BRL/ARS/COP/CLP/PEN).

## `maxPrice` (type: `integer`):

Optional upper bound on currentPrice (in the lot's local currency).

## `sortBy` (type: `string`):

Result ordering strategy applied across Superbid API sorting and multi-source merging.

## `includeSuperbid` (type: `boolean`):

Query live public auction lots across Superbid LATAM corporate, judicial, fleet, and machinery portals.

## `includePncpPublicAuctions` (type: `boolean`):

Query Brazil's official federal/state/municipal Portal Nacional de Contratacoes Publicas (PNCP) for active public auctions (Leilao Eletronico and Leilao Presencial).

## `caixaCsvText` (type: `string`):

Optional raw CSV text downloaded from CAIXA Imoveis (Lista_imoveis\_<UF>.csv, ISO-8859-1 or UTF-8 semicolon-delimited) to parse and merge into the unified schema.

## `caixaCsvUrls` (type: `array`):

Optional HTTPS URLs to your own hosted copies/mirrors of CAIXA Lista_imoveis\_<UF>.csv (S3, GCS, Apify KVS). Direct \*.caixa.gov.br URLs are skipped cleanly with a free CAPTCHA_GATED diagnostic record.

## `watchlistLotIds` (type: `array`):

Lot identifiers to monitor in 'watchlist_refresh' mode. Accepts numeric Superbid IDs ('1234567'), 'superbid:1234567', or 'pncp:<cnpj>-1-<seq>/<year>\[:itemNumber]'.

## `onlyEmitChanges` (type: `boolean`):

When enabled, lots whose currentPrice, bidsCount, and lotStatus match the previous Key-Value Store snapshot are updated silently without emitting dataset rows or charging PPE.

## `stateStoreName` (type: `string`):

Optional named Apify Key-Value Store to persist watchlist/search snapshots across independent runs (recommended for scheduled monitoring). Uses default run KVS if omitted.

## `stateRecordName` (type: `string`):

Record name inside the Key-Value Store holding the consolidated auction state snapshots.

## `webhookUrl` (type: `string`):

Optional HTTP/HTTPS endpoint to receive a JSON summary payload when lots are newly discovered or change price/bids/status.

## `notifyOnNoChange` (type: `boolean`):

If enabled, fires webhookUrl even when 0 new or changed lots are observed in the run.

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

Maximum number of OK auction lot records to emit and charge per run (1 to 5000). Free diagnostic rows are excluded from this cap.

## `concurrency` (type: `integer`):

Maximum concurrent API enrichment requests (1 to 15).

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

Optional Apify Proxy or custom proxy URLs for outbound API requests (not required for standard Superbid or PNCP runs).

## Actor input object example

```json
{
  "mode": "search",
  "countries": [
    "BR"
  ],
  "assetCategory": "ALL",
  "saleModality": "ALL",
  "minDiscountPercent": 0,
  "sortBy": "MOST_BIDS",
  "includeSuperbid": true,
  "includePncpPublicAuctions": false,
  "caixaCsvUrls": [],
  "watchlistLotIds": [],
  "onlyEmitChanges": false,
  "stateRecordName": "AUCTION_MONITOR_STATE",
  "notifyOnNoChange": false,
  "maxItems": 25,
  "concurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Normalized auction lots with pricing, discount vs appraisal/FIPE, bid counts, judicial/financing terms, document links, and state diffs.

## `keyValueStore` (type: `string`):

Default Key-Value Store containing RUN_SUMMARY breakdown and consolidated watchlist state.

# 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 = {
    "mode": "search",
    "countries": [
        "BR"
    ],
    "assetCategory": "ALL",
    "saleModality": "ALL",
    "minDiscountPercent": 0,
    "sortBy": "MOST_BIDS",
    "includeSuperbid": true,
    "includePncpPublicAuctions": false,
    "onlyEmitChanges": false,
    "stateRecordName": "AUCTION_MONITOR_STATE",
    "notifyOnNoChange": false,
    "maxItems": 25,
    "concurrency": 5,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("francescopacifico1905/latam-auction-aggregator").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 = {
    "mode": "search",
    "countries": ["BR"],
    "assetCategory": "ALL",
    "saleModality": "ALL",
    "minDiscountPercent": 0,
    "sortBy": "MOST_BIDS",
    "includeSuperbid": True,
    "includePncpPublicAuctions": False,
    "onlyEmitChanges": False,
    "stateRecordName": "AUCTION_MONITOR_STATE",
    "notifyOnNoChange": False,
    "maxItems": 25,
    "concurrency": 5,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("francescopacifico1905/latam-auction-aggregator").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 '{
  "mode": "search",
  "countries": [
    "BR"
  ],
  "assetCategory": "ALL",
  "saleModality": "ALL",
  "minDiscountPercent": 0,
  "sortBy": "MOST_BIDS",
  "includeSuperbid": true,
  "includePncpPublicAuctions": false,
  "onlyEmitChanges": false,
  "stateRecordName": "AUCTION_MONITOR_STATE",
  "notifyOnNoChange": false,
  "maxItems": 25,
  "concurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call francescopacifico1905/latam-auction-aggregator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,francescopacifico1905/latam-auction-aggregator"
        }
    }
}
```

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/OhyiEw2jUYnpeWp0k/builds/mumMWV40j49O108g0/openapi.json
