{
  "openapi": "3.0.1",
  "info": {
    "title": "Italian Judicial Auctions + AI Appraisal Reader",
    "description": "Lots from the official Italian court auction portal (Portale Vendite Pubbliche) as structured data: prices, dates, addresses, cadastral data, documents. Optional AI reading of the appraisal: occupancy, building irregularities, condominium arrears, appraised value and discount.",
    "version": "0.1",
    "x-build-id": "5rGB1ryFKFf8bbidB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/marco_mix~aste-giudiziarie-pvp/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-marco_mix-aste-giudiziarie-pvp",
        "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/marco_mix~aste-giudiziarie-pvp/runs": {
      "post": {
        "operationId": "runs-sync-marco_mix-aste-giudiziarie-pvp",
        "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/marco_mix~aste-giudiziarie-pvp/run-sync": {
      "post": {
        "operationId": "run-sync-marco_mix-aste-giudiziarie-pvp",
        "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": {
          "lotType": {
            "title": "Type of lot",
            "enum": [
              "IMMOBILI",
              "MOBILI",
              "AZIENDE",
              "VALORI/CREDITI",
              "ALTRO"
            ],
            "type": "string",
            "description": "What is being sold.",
            "default": "IMMOBILI"
          },
          "category": {
            "title": "Category",
            "enum": [
              "",
              "IMMOBILE_RESIDENZIALE",
              "IMMOBILE_COMMERCIALE",
              "IMMOBILE_INDUSTRIALE",
              "IMPIANTO_SPORTIVO",
              "ALTRA_CATEGORIA",
              "AUTOVEICOLI_E_CICLI",
              "NAUTICA",
              "MACCHINARI_UT_MAT_PRIME",
              "INFORMATICA_E_ELET",
              "ARREDAMENTO_ELETTRO",
              "ARTE_OREF_OROL_ANTIQ",
              "ABBIGLIAMENTO_E_CALZATURE",
              "ALTRA_CATEGORIA_M",
              "QUOTA_SOCIETARIA",
              "CESSIONE_AFFITTO",
              "ALTRA_CATEGORIA_A",
              "AZIONI_TITOLI",
              "CREDITI",
              "ALTRA_CATEGORIA_V",
              "MARCHI",
              "BREVETTI",
              "ALTRA_CATEGORIA_AL"
            ],
            "type": "string",
            "description": "Optional. Must belong to the chosen type of lot.",
            "default": ""
          },
          "court": {
            "title": "Court",
            "type": "string",
            "description": "City of the court handling the procedure, for example Torino, Milano, Roma. Leave empty for all of Italy."
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Keep only lots located in these provinces. Use the name (Torino) or the two-letter code (TO).",
            "items": {
              "type": "string"
            }
          },
          "searchText": {
            "title": "Free text",
            "type": "string",
            "description": "Words to look for in the listing, for example a town or a street."
          },
          "minPrice": {
            "title": "Minimum base price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Lowest base price to include."
          },
          "maxPrice": {
            "title": "Maximum base price (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Highest base price to include."
          },
          "onlyUpcoming": {
            "title": "Only sales not yet held",
            "type": "boolean",
            "description": "Skip lots whose sale date is in the past.",
            "default": true
          },
          "publishedInLastDays": {
            "title": "Published in the last N days",
            "minimum": 1,
            "type": "integer",
            "description": "For monitoring: return only lots published on the portal in the last N days, newest first. Leave empty to get all lots."
          },
          "includeDetails": {
            "title": "Full record for every lot",
            "type": "boolean",
            "description": "Adds the assets with cadastral data and occupancy, coordinates, offer deadline, the links to the appraisal, sale notice and photos, and the contacts of the delegate and custodian. One extra request per lot.",
            "default": true
          },
          "readAppraisals": {
            "title": "Read appraisals with AI",
            "type": "boolean",
            "description": "For each lot with an appraisal attached, an AI model reads the document and extracts: occupancy, building irregularities and the cost to fix them, unpaid condominium fees, burdens that stay with the buyer, appraised value and discount of the base price on it. Charged per appraisal read. An appraisal read by AI can contain mistakes: always check the original document before making an offer.",
            "default": false
          },
          "maxAppraisals": {
            "title": "Maximum number of appraisals to read",
            "minimum": 1,
            "type": "integer",
            "description": "Limit on appraisals read in this run. Leave empty to read one for every lot returned."
          },
          "language": {
            "title": "Language of the AI summary",
            "enum": [
              "it",
              "en"
            ],
            "type": "string",
            "description": "Language of the free-text fields written by the AI.",
            "default": "it"
          },
          "maxItems": {
            "title": "Maximum number of lots",
            "minimum": 1,
            "type": "integer",
            "description": "The run stops after this many lots.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}