{
  "openapi": "3.0.1",
  "info": {
    "title": "Italy PVP & Fallco Judicial Auctions, Machinery & OMI Spread",
    "description": "Italian multi-asset judicial auctions intelligence (PVP Ministero della Giustizia + Fallco Aste IVG) with Agenzia delle Entrate OMI price-per-sqm spread benchmarking, optional <=15 MB text PDF appraisal parsing, bilingual EN/IT output (<4 KB), and zero-cost delta monitoring.",
    "version": "1.0",
    "x-build-id": "yEj75HKhjyUvMOTAd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/francescopacifico1905~italy-judicial-auctions/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-francescopacifico1905-italy-judicial-auctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/francescopacifico1905~italy-judicial-auctions/runs": {
      "post": {
        "operationId": "runs-sync-francescopacifico1905-italy-judicial-auctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/francescopacifico1905~italy-judicial-auctions/run-sync": {
      "post": {
        "operationId": "run-sync-francescopacifico1905-italy-judicial-auctions",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "operation": {
            "title": "Operation",
            "enum": [
              "search",
              "lot_by_id"
            ],
            "type": "string",
            "description": "Search filtered Italian auctions across PVP and Fallco or fetch a single lot by its PVP/Fallco ID.",
            "default": "search"
          },
          "sources": {
            "title": "Auction portals",
            "type": "array",
            "description": "Upstream judicial sources to query. Cross-portal duplicates between Fallco and PVP are merged automatically.",
            "items": {
              "type": "string",
              "enum": [
                "PVP",
                "FALLCO"
              ]
            },
            "default": [
              "PVP",
              "FALLCO"
            ]
          },
          "assetTypes": {
            "title": "Asset categories",
            "type": "array",
            "description": "Filter by real estate or non-real-estate liquidation categories (machinery, fleets, company branches, inventory).",
            "items": {
              "type": "string",
              "enum": [
                "ALL",
                "REAL_ESTATE",
                "INDUSTRIAL_MACHINERY",
                "VEHICLES_FLEET",
                "COMPANY_BRANCH",
                "OTHER_MOVABLES"
              ]
            },
            "default": [
              "ALL"
            ]
          },
          "region": {
            "title": "Italian region (optional)",
            "type": "string",
            "description": "Canonical region name (e.g. 'Lombardia', 'Veneto', 'Lazio', 'Emilia-Romagna') pushed directly to PVP search."
          },
          "province": {
            "title": "Province code or name (optional)",
            "type": "string",
            "description": "Two-letter province code (e.g. 'MI', 'RM', 'TO', 'BG') or province name."
          },
          "municipality": {
            "title": "Municipality / Comune (optional)",
            "type": "string",
            "description": "Italian municipality name (e.g. 'Milano', 'Roma', 'Brescia'). Resolved via bundled 7,904-municipality geo index."
          },
          "latitude": {
            "title": "Radius latitude (optional)",
            "minimum": -90,
            "maximum": 90,
            "type": "number",
            "description": "WGS84 latitude for radius search on PVP and Fallco (must be paired with longitude)."
          },
          "longitude": {
            "title": "Radius longitude (optional)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "WGS84 longitude for radius search on PVP and Fallco (must be paired with latitude)."
          },
          "radiusKm": {
            "title": "Radius in km (optional)",
            "minimum": 1,
            "maximum": 200,
            "type": "number",
            "description": "Search radius in km around latitude/longitude (1-200 km)."
          },
          "court": {
            "title": "Court / Tribunale (optional)",
            "type": "string",
            "description": "Tribunale city or full court name (e.g. 'Milano' or 'Tribunale di MILANO')."
          },
          "keyword": {
            "title": "Search keyword (optional)",
            "type": "string",
            "description": "Free-text keyword pushed server-side (e.g. 'CNC', 'furgone', 'capannone', 'bilocale')."
          },
          "minPriceEur": {
            "title": "Minimum base price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Minimum auction starting price in EUR (pushed server-side to PVP and Fallco)."
          },
          "maxPriceEur": {
            "title": "Maximum base price (EUR)",
            "minimum": 0,
            "type": "number",
            "description": "Maximum auction starting price in EUR (pushed server-side to PVP and Fallco)."
          },
          "auctionDateFrom": {
            "title": "Auction date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional inclusive lower bound for the scheduled auction date."
          },
          "auctionDateTo": {
            "title": "Auction date to (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional inclusive upper bound for the scheduled auction date."
          },
          "minOmiDiscountPct": {
            "title": "Minimum OMI spread discount % (optional)",
            "minimum": -100,
            "maximum": 100,
            "type": "number",
            "description": "Keep only OMI-matched lots discounted by at least X% below OMI midpoint (e.g. 25 keeps lots with omiDiscountPct <= -25%)."
          },
          "lotId": {
            "title": "Lot ID (for operation = lot_by_id)",
            "type": "string",
            "description": "PVP insertion ID or Fallco sale code (optionally prefixed as 'PVP:4611283' or 'FALLCO:1734903')."
          },
          "onlyActive": {
            "title": "Active auctions only",
            "type": "boolean",
            "description": "Restrict results to active upcoming auctions.",
            "default": true
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "AUCTION_DATE_ASC",
              "AUCTION_DATE_DESC",
              "PRICE_ASC",
              "PRICE_DESC",
              "OMI_DISCOUNT_DESC"
            ],
            "type": "string",
            "description": "Result ordering applied server-side when supported and harmonized across merged portals.",
            "default": "AUCTION_DATE_ASC"
          },
          "enrichDetails": {
            "title": "Fetch lot detail endpoints",
            "type": "boolean",
            "description": "Fetch full PVP/Fallco lot details (surface sqm, cadastral refs, court procedure number, attachment URLs, PVP cross-ID).",
            "default": true
          },
          "enrichOmiSpread": {
            "title": "Compute Agenzia Entrate OMI spread",
            "type": "boolean",
            "description": "Benchmark real-estate EUR/sqm against Agenzia delle Entrate OMI open-data zone bands without SPID/Fisconline.",
            "default": true
          },
          "omiCsvUrl": {
            "title": "Custom OMI VALORI CSV URL (optional)",
            "type": "string",
            "description": "Optional HTTP/HTTPS URL to a newer Agenzia delle Entrate OMI VALORI CSV (ondata format), streamed row-by-row over Buffer slices."
          },
          "parseAppraisalPdf": {
            "title": "Extract selectable text from appraisal PDFs (+$0.004/PDF)",
            "type": "boolean",
            "description": "Opt-in pure-JS extraction for appraisal/perizia PDFs <= 15 MB. Scanned image PDFs, >15 MB files, and download failures are NEVER charged.",
            "default": false
          },
          "maxPdfParses": {
            "title": "Max PDFs to parse per run",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Upper cap on optional appraisal PDF downloads when parseAppraisalPdf is true.",
            "default": 10
          },
          "maxItems": {
            "title": "Maximum enriched lots",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum lots to emit and charge via judicial-lot-enriched in a single run (1-500).",
            "default": 25
          },
          "onlyNew": {
            "title": "Only emit newly seen lots (zero-cost delta mode)",
            "type": "boolean",
            "description": "Skip previously seen lotKeys stored in stateStoreName before charging judicial-lot-enriched.",
            "default": false
          },
          "onlyEmitChanges": {
            "title": "Only emit new or price/date-changed lots",
            "type": "boolean",
            "description": "Skip lots whose basePriceEur, minimumBidEur, and auctionDateIso match the previous state snapshot.",
            "default": false
          },
          "stateStoreName": {
            "title": "Persistent state Key-Value Store name",
            "type": "string",
            "description": "Named Apify Key-Value Store used for delta deduplication across scheduled CRON runs (defaults to ITALY_AUCTIONS_STATE)."
          },
          "webhookUrl": {
            "title": "Alert webhook URL (optional)",
            "type": "string",
            "description": "Optional Slack, n8n, Make, or Zapier webhook URL receiving a JSON summary of new or changed judicial lots."
          },
          "notifyOnNoChange": {
            "title": "Send webhook even when zero changes occur",
            "type": "boolean",
            "description": "If true, posts webhook summary even on zero-change runs.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Optional Apify Proxy settings. Public PVP, Fallco, and OMI open data normally work without proxies."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}